How-to
Creating an autotest from a test case
Creating an autotest from a test case
Creating an autotest from a test case builds an autotest card from an existing test case in the same project. In the UI the action is Compile autotest on the test case details page.
Test case steps and autotest steps are different models. Compile tries to turn manual steps into Playwright steps; you almost always need to review and finish the result.
Prerequisites
- A team member role with write access to the project.
- A test case card is open in the project.
- The test case has steps you want as a starting point for an autotest.
Steps
- Open the test case in the project.
- Click Compile autotest.
- Wait for the service response.
- If an autotest card opens, ComplexQA created the autotest and navigated to its details.
- Open Steps, review each step, and fix Target, Value, and
action_namewhen needed. - Run Check syntax.
- Set status
READYonly when the scenario is ready to run. Only kindCASEwith statusREADYenters the queue.
Step read errors during creation
Compile creates an autotest even when some test case steps fail to convert. The result is a draft: status PENDING.
The UI opens the autotest card. If some steps were skipped, ComplexQA lists them: test case step sort_order and the reason. Converted steps are stored; skipped ones must be added by hand.
| Situation | What to do |
|---|---|
| Card opens, with a list of skipped steps | Treat creation as done. Review steps, fix or remove bad ones, then Check syntax |
| Error message and no autotest card | Creation did not finish (no autotest_case_id). Retry later or create an autotest manually: Autotest creation |
| Empty or incomplete steps after compile | Finish steps by hand: Autotest step authoring |
Do not set READY or include the autotest in a run until steps after compile are checked.
After creation
- Bind a test account to kind
CASEwhen needed. - Add
COMMONpredecessors in Pre autotest cases when needed: When to use COMMON and CASE. - Run: Autotest run creation.
Alternatives
- Empty autotest without compile-from-case: Autotest creation.
- Draft steps from an object-repository page: Autotest generation from a page.
Did this page help?