Command-Line Arguments

Use the test runner to run functional tests from the command line.

You can find the runner in the <ReadyAPI>/bin directory. The file name is testrunner.bat (Windows) or testrunner.sh (Linux and macOS).

To configure the runner’s command line visually, start it from the ReadyAPI user interface. For more information, see Test Runner GUI.

General Syntax

The runner’s command line has the following format:

testrunner.bat [optional-arguments] <test-project>

Required arguments

Optional arguments

Examples

  • The following command runs all the functional tests from the ReadyAPI project you have specified:

    testrunner.bat "c:\my projects\my-project.xml"
  • The following command runs my TestCase test case in your project and creates HTML files in a JUnit-style format:

    testrunner.bat -FPDF "-RJUnit-Style HTML Report" "-cmy TestCase" "c:\my projects\my-project.xml"

Known Issues

SPNEGO-Kerberos authorization will cause tests you start from the test runner to fail. To avoid this issue, add the following code to the end of the first set JAVA_OPTS line in the ReadyAPI.bat file:

-Djavax.security.auth.useSubjectCredsOnly=false

See Also

Publication date: