Skip to main content

Edit and Play JavaScript Steps for Web Testing

JSLast reviewed: September 24, 2026

Use Edit &and Play iswhen a toolweb withintesting Teststep Designerneeds thattargeted isJavaScript completelyadjustment JavaScript.and Usingimmediate playback validation.

What changed in this toolarticle

you
  • Use cansmall, writereviewable JavaScript changes rather than replacing large scenario sections with custom code, add conditional statements, add loops, and create any complex scripts using JS Edit & Play like you would using IDEs such as Netbeans or Eclipse.

    In JS Edit & Play, you can have can open multiple files which open in different tabs which makes it easy forcode.

  • Replay the useredited to copy contents between different scripts.

    JS Edit & Play also has IntelliSense, which is a code-completion aid. That means as you type, the default methods and functions along custom-defined variables and functions are available to select from the drop-down.

    Note: Test Sesigner services must be running to work with JS Edit & Play.

    Accessing JS Edit & Play

    There are multiple ways to access JS Edit & Play.

    Option 1

    1. Open the Test Designer IDE

    Open any existing Test Designer script or record a new script

    Click File > Export > JavaScript.

    Click Save to save the script. The script will have a .js extension.

    Click Play.

    The Test Designer JS Edit & Play window will open with the script opened. From here you can edit the script, add more JS steps, and perform other actions.

    Option 2

      From AIQ navigate to Test Designer > JS Edit & Play.

      From here you can create a new script or open an existing script.

      The following topics provide more information on the JS Edit & Play user interface and details and examples of working with scriptsstep in the tool.

      same

      JSbrowser Editprofile &and Playtest fornode Webthat Testingwill User Interface - Information aboutrun the followingscenario.

      Keep menusScenario andEditor functions:

        File menu

        Options menu

        Export logs option

        Check Syntax option

        Play Script option

        Working with JS Edit & Play

          Debuggingterminology in the Console

          article and avoid older Designer-only phrasing.

          Validation workflow

          1. Open

            Customthe Functionsaffected web test step and make the smallest JavaScript change needed.

          2. Use Play to validate the step immediately against the application state.
          3. Save the scenario and run a short playback to confirm the edited step works in JS context.

          ScriptReview Examples

          note: Modernized the

          Exportingtitle, DSchanged Script with Descriptionswording to JSScenario Editor/Web Testing, and emphasized step-level validation after JavaScript edits.

          <![CDATA[ ]]>


          Last updated: JulySeptember 25,24, 20232026

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