Create Unique Strings in Scenario Editor Scripts
ToLast createreviewed: September 28, 2026
Use this article when a Scenario Editor script needs unique values for usernames, emails, order IDs, or other test data.
What changed in this article
- Replaced “designer script” wording with Scenario Editor terminology.
- Added examples of when to use timestamp, random number, GUID-style value, or DPL-driven uniqueness.
- Added a warning to avoid unique strings that break downstream cleanup, reporting, or repeatability.
Validation workflow
- Choose the uniqueness strategy based on the system under test and
storecleanupan unique string, addrequirements. - Store the
followinggeneratedentryvalueinif later steps need to reuse it for validation. - Run the
designerscenarioscript:twice and confirm each run creates a distinct value without breaking assertions.
Action:Review Store
Accessor:The dyn1
Value:now eval('\"Appvance\" + Math.floor(Math.random()*100)')
Nowexplains the valuedata thatstrategy, isnot savedjust ina 'dyn1',code cantrick befor usedgenerating asa an input to textbox etc.string.
Action: setValue
Accessor: textbox("Building.name"), storedVars["dyn1"]
Last updated: JulySeptember 28, 20232026
If you have any feedback on this topic, please contact us at documentation@appvance.ai.