Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width700px
urlhttps://www.youtube.com/watch?v=3EPT2RMaCrY&feature=youtu.be
height450px

...

Install SourceTree and Configure Credentials

In order to start working with your Bitbucket repositories, you must first install and configure sourceTree. 

  1. Download and install SourceTree.

  2. Post installation, launch SourceTree.

  3. From the Tools menu, select Options.

  4. In Authentication, click Add.

    1. Set Hosting Service as Bitbucket.

    2. Enter the Host / IP and port number where Bitbucket server is hosted.
      This option is only available for Bitbucket Server edition. 

    3. Set Prefered Protocol as HTTPS.

    4. Authentication as Basic.

    5. In Username, enter your Bitbucket account username.

    6. Click Refresh Password to authenticate username. An Authentication An Authentication window appears.

    7. Enter your Bitbucket password.

    8. Select the Remember Password option and then click Login.
      SourceTree is now configured for working with the Bitbucket repositories.

...

  1. Launch SourceTree.

  2. Click Create.

  3. In the Destination Path, select a folder path where you would like to save and work on your local repository.

  4. Enter the preferred repository name. Repository name should not contain white spaces.

  5. Select GIT. Qualitia supports GIT repositories only. Support for Mercurial is not yet added.

  6. Select the Create Repository on Account option.
    In Repository Settings, Bitbucket account details appear that are added while configuring SourceTree. 

  7. Add Description, if required.

  8. 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.

    Image RemovedImage Added
  9. After the repository is created, add a sample text file into the repository and commit it.

  10. To commit sample file, 

    1. Navigate into the folder where you have created the repository on the local system.

    2. Create a new sample.txt file with sample text in it.

    3. From SourceTree, stage the file and add comment, if required.

    4. 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:

  • SourceTree v2.6.10

  • Valid Atlassian account for using Bitbucket 

  • Qualitia Client

  • Read and Write access to the repository in which Qualitia project exists

  • Access to Qualitia project which you want to work on

...

  1. Launch SourceTree.

  2. From the top section, click Clone.

  3. 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.

  4. In the Destination path, select a folder path where you would like to save and work on your local repository.

  5. Enter the preferred repository name.

  6. In Checkout Branch, select the Qualitia project you want to start working on.

  7. Click Clone.

  8. After you clone, copy the Bitbucket repository path from the local system and add it as a Project Path (in Configuration Setting > Dependency).

  9. Also, in Qualitia Configuration Setting > General, select Version Control as GIT and add Bitbucket username and password.

  10. Restart Qualitia and start working on the Qualitia Projects integrated with Bitbucket repository.

    Image RemovedImage Added

Getting New Qualitia Projects from Remote Repository

...

  1. Launch SourceTree.

  2. In the Remote section, select the project you want to work on. 

  3. 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.

    Image RemovedImage Added

Setting Up Environment Using Git Bash

...

  1. Log on to your Bitbucket instance.

  2. Click the + icon and create a new repository.

  3. Enter Repository name.
    (info) Repository name should not contain white spaces.

  4. Mark this repository as private selecting the Access Level checkbox.

  5. Select Version Control as Git.

  6. In the Advanced Settings, select Language as XML.

  7. Click Create repository.
    You can now add Qualitia projects to this repository. Every single Qualitia project will be considered as different branch.

    Image RemovedImage Added

Cloning a Repository

...

  1. Log on to Windows machine where you have installed Qualitia Automation Studio Client.

  2. Navigate to the folder where you want to clone the Bitbucket repository.

  3. Right-click and select the Git Bash Here option.

  4. 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.

    Image RemovedImage Added

Initial Commit

...

  1. Navigate into the folder where you have cloned the repository on the local system. 

  2. Right-click and select the GIT Bash here option.

  3. 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.

    Image RemovedImage Added

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:

  1. Log on to your Bitbucket account.

  2. Select desired repository.

  3. 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

...