You use PerformanceTestRunner to execute ReadyAPI load tests from the command line.
The runner is located in the <ReadyAPI>/bin
directory. The file name is loadtestrunner.bat
(Windows) or loadtestrunner.sh
(Linux and macOS).
You can configure the command line visually by running the utility from the ReadyAPI user interface.
The runner command line has the following format:
loadtestrunner.bat [optional-arguments] <test-project> -n<load-test-name>
The following command runs the MassLoad1 test from the specified test project for 10 minutes and saves the test report in the PDF format to the c:\test reports directory:
loadtestrunner.bat -L600:0:0 "-rc:\test reports" -FPDF "c:\my projects\my-project.xml" -nMassLoad1
The following command sets a value for the
file.separator
system variable for the test run, runs MyLoadTest from the specified project on the specified agents, and exports accumulated statistics to two .cvs files:loadtestrunner.bat -Dfile.separator=; -a "192.168.0.10:8080=Test Scenario 1" -a "192.168.0.20:8800=Test Scenario 2" "-eMy Stat Group 1" "-eMy Stat Group 2" "c:\my projects\my-project.xml" -nMyLoadTest