Enforcing an execution order
You can set a specific execution sequence for test cases within a test set or a test execution. This sequence determines the order in which the test cases run initially. However, any changes to the order within a test execution do not affect the order in the test set. So, the sequences you set within a test set and a test execution operate independently of each other.
note
You can enforce a specific execution order only for statically assigned test cases, with dynamically assigned ones following in a random order only after the static ones have been completed.
Steps
- Determine where you want to reorder the test cases within your project:
- Within a test set.
- Within a test execution.
- Enable the Enforce Execution Order toggle.
- Go to Test Sets, and then to the Configuration tab, and select the Enforce Execution Order toggle.
- Alternatively, if you want to reorder within a test execution, go to Execution, and then to the Settings tab, and enable the Enforce Execution Order toggle.
- After you've enabled the execution order, return to the tab where you see the test cases. Depending on where you've activated the enforcement, follow these steps:
- If you're within Test Sets, return to Test Cases and select Reorder.
- If you're within Execution, return to Results and select Reorder.This opens the Reorder test cases view where you can arrange the order of test case executions.
- Drag and drop test cases to reorder them in the test set or test execution.
- When you finish reordering the test cases, select Save.
When you execute the test set, the test cases will run in the order you previously saved.