Edit branch overview

When you want to create or modify a test asset or resource in HCL OneTest Server, you must use an Edit branch. An Edit branch is a temporary branch of the branch in the project repository into which you want to add the created resource or edited resource.

You must be a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test asset or resource.

Before you can create or edit a test asset or resource, you must select the branch in the project repository into which you want to add the created resource or the branch that contains the resource to edit.

After selection of the branch in the project repository, you must create an Edit branch, which is a temporary branch to contain the resources when you either create or edit a resource.

When you create the Edit branch, any member of the project can use your Edit branch while the branch is available. While you provide a name for the Edit branch, you must adhere to the rules of Git branch naming conventions. For more information, refer to the Git documentation. You can also view all the Edit branches from the Branch drop-down list when other members of the project create an Edit branch.

To differentiate the remote branch and Edit branch from the Branch drop-down list, an edit icon and the initials of the member who created the Edit branch are shown for the Edit branch. After you create the Edit branch, you can also view the Edit branch by accessing the remote Git repository from a browser.

If you want to save the created or edited resource to the branch in the project repository, you must publish the changes from the Edit branch to the branch in the project repository. When the project repository is replicated automatically to the remote repository, the created or edited resources are then available in the remote repository in the branch they were published. The Edit branch that you used is automatically deleted after you publish the contents in the Edit branch. The Edit branch automatically disappears from the Branch drop-down list and from the remote Git repository when you perform any of the following actions:

  • Publish changes to the remote Git repository

  • Discard the changes made in all test assets

    Note: After the Edit branch disappears, the Branch field is set to the previously selected branch name.