Skip to main content

Call JavaScript Functions from Scenario Editor

HowLast reviewed: September 25, 2026

Use this article when a Scenario Editor test needs to call a JScustom JavaScript function from JS Edit & Play.

What changed in this article

  • Replaced “Test Designer

    BelowIDE” arewording somewith ofScenario Editor terminology.

  • Corrected the screenshotsold ontypo how“Fist tostep” and clarified that Include loads the script before customJS calls the function.
  • Separated examples for DPL-driven parameters, hard-coded parameters, and values captured with Store/getText so users can choose the right call apattern.
particular

Validation JSworkflow

  1. Add the JavaScript file with Include before calling the function.
  2. Call the function definedwith customJS and pass parameters from DPL, constants, or captured variables.
  3. Replay the step in JS Edit & Play and

    Fistthen steprun inthe this process isscenario to include the JS script using the Include statement followed by CustomJS call withconfirm the function name.

    executes in context.

BelowReview isnote: an example of calling a customJS function “appLogin” with multiple parameters passed to it (withKept the dataarticle comingas fromuseful aScenario DPLEditor file)

guidance, but

Belowmodernized isthe annaming example of function calls with singleand parameter (Hardcoded data)examples.

Functions can also be called with dynamic data being passed to it by using Store, getText and using the defined variable in the function call as a parameter.


Last updated: JulySeptember 25, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai.