Run TruWeb scripts

You can run a TruWeb script using the TruWeb executable, or in LoadRunner, Performance Center, or StormRunner Load.

TruWeb executable

To run a TruWeb script, run the relevant command:

Run mode Command and description

TruWeb <path to script folder>

Runs a single iteration for a single Vuser, regardless of the supplied scenario.yml file.

This is the default mode.


TruWeb -mode=load <script folder>

Runs the script using the scenario settings defined in script's the scenario.yml file. For more information, see scenario.yml.



Single mode: TruWeb C:\ScriptFolder

Load mode: TruWeb -mode=load C:\ScriptFolder


Single mode: TruWeb ~/ScriptFolder

Load mode: TruWeb -mode=load ~/ScriptFolder

Viewing test logs and results

  • Test run logs per Vuser are saved to ..\<Script folder>\results\logs. The log filename contains the Vuser ID.

    The log files are generated according to the vuserLogger settings in the script's rts.yml file.

  • Raw data is saved to a SQLite database file, truWebDB.db, in ..\<Script Directory>\results\.

    Note: If you use DB Browser for SQLite to view the raw data (recommended), make sure to close the file before running another test. If left open, DB Browser may lock the database file for write access.

Back to top

External tools and IDEs

You can run your TruWeb script from the TruWeb plugin within your scripting tool.

Example: JetBrains WebStorm (IntelliJ)

Select Tools > External Tools > Run TruWeb.

The results are displayed in the bottom panel. To run the script again, click the green Run button.


To run one iteration of the script with one user, select TruWeb > Run single user.

To run a scenario with the script, select TruWeb > Run scenario. TruWeb runs the script using the scenario defined in the scenario.yml file.

TruWeb in Micro Focus testing tools

You can run a TruWeb script using LoadRunner, Performance Center, or StormRunner Load 12.60.

To run a TruWeb script in your Micro Focus testing tool:

  1. Prerequisite for LoadRunner/Performance Center: If your script was created in a tool other than VuGen, import the script into VuGen:

    1. In VuGen, select File > Open > Import TruWeb Script.
    2. Browse to your script's main.js file and click Open.
    3. Enter a name for your script, and the location where you want to save the imported script.
    4. Click Import.
  2. In your testing tool, run your script as you would any other script. For more information, see the relevant Help Center for your testing tool.

See also: