Using while loop in Test Designer 2.0
Use
Attached Loopingexample Patternsdesigner Safelyscript will show how to use while loop in Scenariodesigner Editorscript.
UsewhileLoop.ds
loops only when repeated behavior is required and bounded. Current Scenario Editor guidance should avoid unbounded legacy Test Designer loop patterns.
Recommended
Set clear exit conditions for every loop.Prefer data-driven iteration or suite configuration when available.Protect tests from infinite loops with maximum attempts or timeouts.Log enough context to diagnose which iteration failed.
Validation workflow
Identify the repeated action and exit condition.Set a safe maximum iteration count.Validate each iteration against expected state.Review output before increasing data size or concurrency.
Last updated: SeptemberJune 20,26, 20262023
If you have any feedback on this topic, please contact us at documentation@appvance.ai