Versions Compared

Key

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

...

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.

...

  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

...