By running tests on branches, you can check changes and merge once you're certain that both the tests and app under test don't have any issues. You can run both individual tests and plans on a branch.
Open the test in the Trainer and take the following steps:
- Make sure the appropriate branch has been selected in the branch dropdown at the top of the Trainer window.
- Move the cursor to the top of the Trainer window.
- Click the play button.
Navigate to the Test Details page for the test you'd like to run, and take the following steps:
- Select the desired branch from the branch dropdown at the top of the page.
- Click on the "Run test" button.
- Select "Local run" or "Cloud run." Make any other configurations as needed. If you're testing a preview environment, or any testing environment, with an arbitrary and changing URL, you can use the URL override option to specify the URL you want to use.
- Click the "Start run" button at the bottom. Cloud runs will appear with a branching icon indicating that this run is not on the master branch.
To run a plan on a branch, navigate to the Plan Details page and take the following steps:
- Click the menu dropdown next to the "Run plan" button.
- Select "Run on branch." A "Configure plan run" menu will appear.
- Choose the branch you'd like to run the plan on. You can override the testing environment URL if needed.
- Click "Run now." If a plan is run on a branch, you will see it marked with a branch icon. If you hover over the icon, the name of the branch that the plan was triggered against will appear.
Branches and plans
Plans are not branched but they are branch aware. Practically speaking, this has the following implications:
- If a plan runs on a branch, the plan will use the latest version of each test on that branch. If one or more tests don't exist on the branch, the plan will use the latest version on master for those tests. If a test exists neither on master nor on the branch in which the plan is running, it will be skipped.
- If a plan runs on master and one or more tests in the plan don't have a version on the master branch, the plan will skip those tests.
Updated 7 months ago