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

  1. One per Suite: You can only have one Precondition per test suite.
  2. Fresh Start: The starting state for a Precondition is always a "clean" app (freshly installed/reset).
  3. No Branching: The path to the required state should be concrete and linear (no "if/else" logic).
  4. 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.