Skip to main content

Use Custom JavaScript Helpers in Scenario Editor

Use Custom JavaScript Helpers in Scenario Editor

Use custom JavaScript helpers only when a reusable function is needed and the behavior cannot be expressed clearly with standard Scenario Editor steps.

  • Keep helper functions small, named clearly, and scoped to reusable logic.
  • Do not embed credentials, tenant URLs, or environment-specific values in helper files.
  • Version helper files with the scenario or project maintenance process.
  • Prefer built-in Scenario Editor capabilities when they are sufficient.

Validation workflow

  1. Define the helper function and expected inputs.
  2. Validate it with a small controlled example.
  3. Call it from the scenario where the reusable behavior is needed.
  4. Review output and failures before using it in larger suites.

Last updated: September 20, 2026