Author automated test case — Tosca Cloud
Build automated tests from existing Cloud modules.
Prerequisite: tosca-cloud-basics + MCP connected.
Guardrails (read first)
- Reuse existing modules only. No UI module scanning in Cloud MCP — if a step has no module, report the gap and stop for that step.
- Confirm target folder/name and module sources before scaffolding.
- Steps at creation only — Cloud MCP has no append-step tool; include all steps in
tosca_builder_scaffoldTestCaseor use Builder UI for later edits.
Session checklist
Author automated Cloud test:
- [ ] Understand scenario → ordered actions/verifications
- [ ] Ask user which module folders to search
- [ ] getModulesSummary + inventory search for modules
- [ ] Match steps to modules (report gaps)
- [ ] scaffoldTestCase with testSteps
- [ ] Verify via inventory search; summarize modules used
Fast path
- Understand goal — user description → test flow.
- Find modules —
tosca_builder_getModulesSummary+tosca_inventory_search(artifactType: module). - User picks modules — present candidates; no UI scanning available.
- Scaffold —
tosca_builder_scaffoldTestCasewith module references. - Verify — inventory search for created test case.
Module sourcing
See references/module-sourcing.md. Agents must reuse existing modules — cannot scan applications.
Action modes
See references/action-modes-and-buffering.md for Input/Verify/WaitOn/Buffer conventions when editing step values via Builder APIs.
Procedure
- Understand intent — scenario or manual test → ordered atomic steps with concrete data.
- Ask module sources — which folders/tags to search; do not guess broadly.
- Match modules — per step, find module + attributes in allowed sources (module-sourcing.md).
- Scaffold with all steps —
tosca_builder_scaffoldTestCaseincludingtestStepsarray. - Verify — inventory search; report modules used, gaps, confidence score.
Hand off
Manual test first → tosca-authoring-manual-testcase.
API-heavy tests
When the scenario needs HTTP/service calls, create or reuse API messages via tosca-cloud-mcp → reference/workflows/manage-api-message.md workflow before scaffolding steps that reference them.