Author automated test case — Tosca Cloud
Build automated tests from existing Cloud modules. Hybrid: toscactl discovery + tn scaffold.
Prerequisite: tosca-cloud-connect. tn configured for scaffold step.
Runtime: tn for Builder scaffold — see runtime-routing.md.
Guardrails
- Reuse existing modules only. No UI scanning — report gaps.
- Confirm folder/name and module sources before scaffolding.
- All steps at creation — include full
testStepsin scaffold call.
Session checklist
Author automated Cloud test:
- [ ] Understand scenario
- [ ] Find modules [toscactl]
- [ ] Match steps to modules (report gaps)
- [ ] scaffoldTestCase [tn]
- [ ] Verify [toscactl or tn]
toscactl (default) — module discovery
toscactl assets find --type module --name "<partial>" --json --silent
toscactl assets find --type folder --name "<folder>" --json --silent
Present candidates to user before scaffolding.
tn (gap fallback) — scaffold
tn --loop "Activate /tosca. Create automated test '<name>' reusing modules from folders <folders>. Report module gaps. loop_complete when done."
Fast path
- Understand goal — user description → test flow
- [toscactl] Find modules —
assets find --type module - User picks modules — present candidates
- [tn] Scaffold —
tosca_builder_scaffoldTestCasewith module references - [toscactl] Verify —
assets find --type testCase --name "<name>"
See references/module-sourcing.md, references/action-modes-and-buffering.md.
Hand off
Manual test first → tosca-authoring-manual-testcase.
API-heavy tests → tosca-cloud → reference/workflows/manage-api-message.md (tn).