Preconditions
Preconditions allow you to set the initial state of the application before running your main test cases. For example, ensuring a user is already logged into an account.
Rules for Preconditions
- One per Suite: You can only have one Precondition per test suite.
- Fresh Start: The starting state for a Precondition is always a "clean" app (freshly installed/reset).
- No Branching: The path to the required state should be concrete and linear (no "if/else" logic).
- Automatic Execution: The Precondition is automatically executed regardless of whether you run a single test case or the entire suite.
Usage in Panel
- Mark the "is Precondition" checkbox in the test case settings.
- Ensure the path is reliable and leads to the exact state needed for the subsequent tests.