Recommendation
When to use COMMON and CASE
When to use COMMON and CASE
Recommendation on how to split setup and the checked scenario in ComplexQA: kind COMMON and kind CASE.
Why
The same sign-in or section entry repeats across many scenarios. Copying those steps into every CASE costs more than extracting them into a COMMON predecessor. Only a CASE with status READY enters the autotest run queue.
How to work
- Model repeated setup (sign-in, open a section, base data) as an autotest of kind
COMMON. - Set the
COMMONstatus toREADYwhen the setup is stable. - Model the checked scenario as a
CASE: unique steps after setup. - On the
CASEcard, open Pre autotest cases and listCOMMONpredecessors in order. - Bind a test account to the
CASEwhen you needlogin/password. KindCOMMONhas no account;TEST_ACCOUNTsteps insideCOMMONread thatCASEaccount. - For an autotest run, select only the needed
READY+CASEitems.
The hint under the block title states: those COMMON autotests run first in the same browser session, in that order; nested predecessors are not expanded; COMMON itself does not enter the run queue.
Creation: Autotest creation. Field model: Autotest.
What to avoid
| Bad | Good |
|---|---|
The whole scenario in one COMMON | COMMON for setup, CASE for the check |
An account on COMMON | Account only on CASE |
Nested predecessors on COMMON cards | A flat COMMON list on the CASE card |
A CASE without READY hoping it «gets picked» | Explicit READY before selection in a run |
Ten copies of sign-in steps in ten CASE items | One COMMON «Sign-in» as predecessor |
Sign-in COMMON on a CASE that captures the sign-in form | That CASE without the sign-in predecessor |
JSON import does not set kind COMMON or predecessors: change the kind after import yourself. Breakdown: How to author autotest steps without false failures.
Kinds named SHARED, SETUP, or SCENARIO do not exist in the product.
Did this page help?