Subscribe to SoftLogica
Newsletter to get 10% discount on newly
released products!
Summary Report
Command Line
WAPT allows performing a number of its operations with the use of
command line. In this way, you can perform WAPT 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 and then run these scenarios from the console.
For example, you can run several tests in a batch (run a .bat file) so that 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 execute WAPT test scenarios,
create HTML reports and save test run results from the command line.
-help: opens WAPT help topics.
-run <scenario file name>:
runs the test using the specified scenario file.
This command has additional options:
-run <scenario file name> [-noexit] [-hr <HTML report folder>]
[-sr <results folder>]
-noexit:WAPT will not exit
after test completion.
-hr <HTML report folder>: generates HTML report for current test results and saves
this report to specified folder. Report name is generated according to default
name pattern:
%n-users%c-date%d-time%t.html.
-sr <results folder>: saves results of test run to specified folder.
The name of results file is generated according to default
name pattern:
%n-users%c-date%d-time%t.wpr.
Here %n is scenario 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
Folder path specified in options above can be both relative
(for example, -hr Reports) and absolute
(for example, -sr C:\temp\Results).
If you use a relative path, then the folder with specified name will be
created in the directory where WAPT executable
file is located.
Besides, you can specify the name of some scenario in the command line and press Enter.
WAPT will open this scenario in the program window.