You can run a TruWeb script using the TruWeb executable, or in LoadRunner, Performance Center, or StormRunner Load.
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. Responsible for the TruWeb scenario settings when running a TruWeb script in load mode. For details, see Run TruWeb scripts..
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.
The raw data generated when you run your TruWeb script is saved to a SQLite database file, in ..\<Script Directory>\results\truWebDB.db.
The database creates the following tables for the script run:
Provides a count of total running Vusers executing code within iterations. The number decreases when Vusers are waiting between iterations (pacing), and increases again when they enter the next iteration.
An entry is added to the table every time the total number changes.
Provides time measurements per request/response pair (URL).
This data is not reported by default, due to the performance override. To active it, in the runtime settings file (rts.yml), under the httpConnection section, change reportAtomicTransactions to true.
|BytesSent||Provides the amount of bytes sent to the server (upload) per request, per Vuser.|
(from version 2018.11.4)
|Provides for each Vuser information about opened and closed connections (state connect or shutdown).|
Provides values for user-defined data points, reported through load.utils.reportDataPoint API, per Vuser.
|Hits||Provides information about each request, including HTTP status code, per Vuser.|
Provides a cumulative count of running Vusers. An entry is added to the table every time the total number changes.
Provides the amount of bytes received from the server (download) per response, per Vuser.
Provides information on status and duration for each transaction reported, per Vuser.
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.
You can run a TruWeb script using LoadRunner, Performance Center, or StormRunner Load (see supported versions). Multiple TruWeb scripts can be run in parallel on one load generator.
To run a TruWeb script in your Micro Focus testing tool:
Prerequisite for LoadRunner/Performance Center: If your script was created in a tool other than VuGen, import the script into VuGen:
- In VuGen, select File > Open > Import TruWeb Script.
- Browse to your script's main.js file and click Open.
- Enter a name for your script, and the location where you want to save the imported script.
- Click Import.
- 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.