Bitbucket is a web-based version control repository hosting service for source code and development projects while using Git revision control systems. Bitbucket gives teams one place to plan projects, collaborate on code, test and deploy, all with free private Git repositories. Teams choose Bitbucket because it has a superior Jira integration & built-in continuous integration (CI).
BitBucket has now been integrated with the OpKey. OpKey users can execute their test artifacts (Suites) from the BitBucket environment by using the CLI commands. Once, Suite get executed successfully, you can view complete execution logs, execution result and do more. You need to add OpKey Jar given by OpKey team into repository. Being a CLI tool, you need to use commands (syntax) and trigger Suite execution. You can also execute multiple Suites parallely.
Getting started with working on BitBucket
Installing Git on Windows machine:
(For details about the stand alone Git installer, you can refer: https://www.atlassian.com/git/tutorials/install-git#windows)
Note: Make sure that you have your account on the BitBucket. If not, create your account from here.
Steps to be followed:
- Login to the BitBucket and go to the BitBucket dashboard page.
- Let us create a new repository file. Provide repository file name and then click on
- Here, you can view the newly created repository name along with a README.md file existing in it.
- Navigate to the desired drive of your system and create a new folder.
- Open the newly created folder, right click and then select the Git Bash Here option.
- Git Bash command prompt window opens.
- Let us now create a clone of the repository file. Click on the Clone button.
- Copy the clone of the repository and navigate to the Git Bash command prompt window.
- Press Shift + Insert button to paste the copied clone repository file.
- BitBucket login pop up windows opens. Login with your valid credentials.
- Clone of the copied repository has now been created to the newly created folder.
- Place OpKey CLI jar in the created folder. (In the example jar file is placed inside Folder name CLI).
- Run following commands.
- git add
- Git commit -m “message”
- Git pull –all
- Git push –all
- Now, OpKey CLI folder has been placed to the your BitBucket repository.
- Navigate to the Pipelines tab and select Java language.
- Copy the OpKey CLI Command here and then click on Commit file.
- Once execution gets completed, you can view the execution result.