Discover Modules / Suites / Test Cases
To execute tests by modules/suites/targets, you need the slugs (moduleSlug, suiteSlug, testCaseSlug). There are two ways to retrieve this information:
Option A: Get Complete Test Plan (Tree Structure)
Recommended approach. Returns the plan with the entire tree indata.modules[].suites[].cases[].
What to Extract from the Response
- moduleSlug:
data.modules[i].slug - suiteSlug:
data.modules[i].suites[j].slug - testCaseSlug:
data.modules[i].suites[j].cases[k].slug
Option B: List All Test Cases (Flattened)
Very useful for execution. Returns a flattened list withmoduleSlug/moduleName, suiteSlug/suiteName, and slug/name of each case.
Using Slugs in Execution
Once you have the slugs, use them to execute specific portions of your test plan:- By modules: Use
moduleSlugsarray - By suites: Use
suiteSlugsarray - By specific cases: Use
targetsarray withmoduleSlug,suiteSlug, andtestCaseSlug