Bitbucket is Atlassian's web-based version control repository. You can use Qualitia with Bitbucket as a version control system for your Qualitia test artifacts. In order to do so, you must install and configure Git client on your Windows machine.
Prerequisites for Bitbucket Integration
...
Setting Up Environment Using SourceTree (Recommended)
...
Setting up an environment is a one-time activity. After the setup is completed, all the changes made to the test cases and tasks are automatically managed in the Bitbucket repository.
Widget Connector | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Install SourceTree and Configure CredentialsIn order to start working with your Bitbucket repositories, you must first install and configure sourceTree.
|
...
Launch SourceTree.
Click Create.
In the Destination Path, select a folder path where you would like to save and work on your local repository.
Enter the preferred repository name. Repository name should not contain white spaces.
Select GIT. Qualitia supports GIT repositories only. Support for Mercurial is not yet added.
Select the Create Repository on Account option.
In Repository Settings, Bitbucket account details appear that are added while configuring SourceTree.Add Description, if required.
Select Is Private option to mark this repository as a private repository. Keeping repositories private enables you to control who can access and update data from your repository. This is important to avoid discrepancy in the project data.
After the repository is created, add a sample text file into the repository and commit it.
To commit sample file,
Navigate into the folder where you have created the repository on the local system.
Create a new sample.txt file with sample text in it.
From SourceTree, stage the file and add comment, if required.
Select Push changes immediately option and click Commit.
...
Cloning Repository and Checking-out First Qualitia Project
You can start working on the Qualitia projects which are already added to the Bitbucket repository by other Qualitia user. In order to do so, you need to clone the corresponding repository and checkout corresponding projects on local system.
Info |
---|
At the end of this topic, Qualitia users will be able to clone the repository and checkout the desired Qualitia project. |
To start working on existing Qualitia projects from Bitbucket:
Info |
---|
Prerequisites:
|
...
Launch SourceTree.
From the top section, click Clone.
Enter Source Path / URL.
This is the Bitbucket repository URL.
To get the correct URL, go to bitbucket.org > Select Repository Name > from the right-top corner, click Clone.In the Destination path, select a folder path where you would like to save and work on your local repository.
Enter the preferred repository name.
In Checkout Branch, select the Qualitia project you want to start working on.
Click Clone.
After you clone, copy the Bitbucket repository path from the local system and add it as a Project Path (in Configuration Setting > Dependency).
Also, in Qualitia Configuration Setting > General, select Version Control as GIT and add Bitbucket username and password.
Restart Qualitia and start working on the Qualitia Projects integrated with Bitbucket repository.
Getting New Qualitia Projects from Remote Repository
...
Launch SourceTree.
In the Remote section, select the project you want to work on.
Right-click and select Checkout origin/<ProjectName>
This will checkout the project folder (<ProjectName_projectdb>) into your local repository.
You can now start working on the newly checked-out Qualitia project.
Setting Up Environment Using Git Bash
...
Log on to your Bitbucket instance.
Click the + icon and create a new repository.
Enter Repository name.
Repository name should not contain white spaces.Mark this repository as private selecting the Access Level checkbox.
Select Version Control as Git.
In the Advanced Settings, select Language as XML.
Click Create repository.
You can now add Qualitia projects to this repository. Every single Qualitia project will be considered as different branch.
Cloning a Repository
...
Log on to Windows machine where you have installed Qualitia Automation Studio Client.
Navigate to the folder where you want to clone the Bitbucket repository.
Right-click and select the Git Bash Here option.
Enter the following command and press Enter.
Code Block $ git clone <Bitbucket repository URL>
The repository will be cloned to your local system and you can now add Qualitia projects to this repository.
To get the correct URL, go to bitbucket.org > Select Repository Name > from the right-top corner, click Clone.
Initial Commit
...
Navigate into the folder where you have cloned the repository on the local system.
Right-click and select the GIT Bash here option.
Enter the following command to checkout the project branch which you want to work on.
Code Block $ git fetch && git checkout <ProjectName>
This will checkout the project folder (<ProjectName_projectdb>) into your local repository.
You can now start working on the newly checked-out Qualitia project.
Change Management
...
If any user is working on a test case or task while triggering the suite execution, Qualitia cannot access. Such test cases are not executed and are marked with Not Executed status in the suite execution report.
...
Viewing Change History
You can view the complete history of changes made to Qualitia artifacts, test cases and tasks, in Bitbucket. This gives you ability to trace back every single change made by each and every Qualitia user.
To view change history:
Log on to your Bitbucket account.
Select desired repository.
From the left-side section, click Commits.
This gives you complete history of changes that were made to the repository, shows commit messages, displays which tasks and test cases were changed, and so forth.
...
Unlinking Project From Bitbucket Repository
...