Subscribe to SoftLogica
Newsletter to get 10% discount on newly
released products!
Command Line
Command Line
WAPT Pro allows performing a number of its operations using the
command line. In this way, you can perform WAPT Pro commands just from the
console, without opening the program window. It is convenient for
automated management of testing process.
If you use some tool that automatically
manages your test runs, you can create various test scenarios in
WAPT Pro and then run those scenarios from the console.
For example, you can run several tests in a batch (run a .bat file) so that the tests will be
executed one by one. Or you can
run tests automatically each time after the compilation and deployment of a new version of web application.
The following keys will allow you to run WAPT Pro test scenarios,
create HTML reports and CSV reports, and save test run results and generated logs from the command line.
-help: Opens WAPT Pro help topics.
-run <scenario file name>:
Runs a test with a specified scenario.
This command has additional options:
-noexit:WAPT Pro will not exit
after test completion.
-hr <HTML report folder>:
Saves the results of test run as HTML report in a specified folder.
Report name is generated automatically using the default name pattern:
%n-users%c-date%d-time%t.html
-sr <results folder>:
Saves the results of test run as WAPT Pro results file
in a specified folder.
The name of results file is generated automatically using the default
name pattern:
%n-users%c-date%d-time%t.wpr
-csv <csv results folder>:
Specifies a folder for saving the generated CSV reports.
Using this command, you can change the location for CSV reports which you defined in
General settings (in the Save results to edit box).
Names of CSV reports are generated automatically using the default name pattern:
%n-%p.csv
Note that WAPT Pro creates CSV reports only in case you have enabled the Save results
option in Log and Report Settings. This command can only
change the location for generated CSV reports.
%n is scenario name %p is profile name %c is the number of virtual users participated in the test %d is the date when the test was performed %t is the time when the test was performed
-log <logs folder>:
Specifies a folder for saving the generated log files.
Using this command, you can change the location for logs which you defined in
General settings
(Save log files to edit box).
Note that WAPT Pro generates logs only in case you have specified to create full or
error logs in Log and Report Settings (in the Level of detail combo-box). This
command can only change the location for generated logs.
You can use both relative folder path
(for example, -hr Reports) and absolute folder path (for example, -sr C:\Testing\Results).
If you use a relative path, then a folder with the specified name will be created
in the directory where WAPT Pro executable file is located.
Besides, you can specify the name of some scenario in the command line and press Enter.
WAPT Pro will open that scenario in the program window.