If you need to build a command line and check its settings, start the command line runner from the ReadyAPI user interface. See Getting Generated Command Line.
Note: | To use the command line runner, you need an active ReadyAPI Test license. If you do not have a license, sign up for a free trial. |
Run the utility
To launch the runner from ReadyAPI, select the appropriate menu command:
-
In ReadyAPI, select a security test and choose Project > Launch Security TestRunner from the main menu:
-
In ReadyAPI, right-click the Security Tests node in the Navigator panel and select Launch Security TestRunner:
-
In ReadyAPI, right-click the desired security test and select Launch Security TestRunner:
After you have selected a menu command, ReadyAPI displays a dialog box. Use it to configure the parameters of the run (see below), or copy the generated command string and run the utility from the command line.
Licensing
The security test runner is installed along with ReadyAPI and uses the same modules. It does not require any special license as it uses the existing ReadyAPI Test license you have.
Parameters
The configuration dialog organizes the utility parameters in the following tabs:
Basic tab
Parameter | Description |
---|---|
Test Suite and Test Case |
Specifies for which test suite and test case a security test should run. The ReadyAPI security testing engine is based on the SoapUI engine, where security tests were part of test cases. The ReadyAPI security testing subsystem supports the SoapUI approach for specifying the security tests to be run. The test suite and test case names are available in the security test editor right after the name of your security test: An alternative approach to specify the security test is to use the Security Test box. The test suite and test case parameters are analogues of the -s and -c command-line arguments correspondingly.
|
Security Test |
Specifies a security test to be run. If this parameter is not specified, the runner executes all the security tests in the specified test case. This parameter is an analogue of the -n command-line argument.Specify a security test to be run by using this parameter, or by using a combination of the test suite and test case parameters. |
Enable UI |
Use this option to enable UI-related components. This is required if your test uses the UISupport class.This parameter is an analogue of the -i command-line argument.
|
Security TestRunner Path | Specifies the fully-qualified name of the runner file (securitytestrunner.bat or .sh). By default, the file is located in the <ReadyAPI> directory. |
Save Project | This is useful to make sure that all the recent changes to the project are saved before the run. |
Add Settings |
Commands the runner to use workspace settings from the readyapi-settings.xml file that is located in the <User directory>/.readyapi directory. To specify another XML setting file, use the -t command-line argument. In the Launch Security TestRunner dialog, specify this argument in the Custom Args tab.
|
Project Password |
Specifies the project password, if your project is encrypted. This parameter is an analogue of the -x command-line argument.
|
user-settings.xml Password |
Specifies the password for the XML setting file. This parameter is an analogue of the -v command-line argument.
|
Ignore Errors |
Commands the runner to ignore errors that occur during the test run. If you select this check box, the runner will not stop the test if an error occurs. However, in this case, the runner will not log information on errors. If you keep this check box clear, the runner will stop when an error occurs and will log information about that error. This parameter is an analogue of the -I command-line argument.
|
Save After |
Commands the runner to save the project after the test run finishes. This may be useful if your test stores data to the project. This parameter is an analogue of the -S command-line argument.
|
Overrides tab
Parameter | Description |
---|---|
Environment |
Specifies the environment configuration for the test run. This value overrides the environment configuration selected for your project in the ReadyAPI toolbar. This parameter is an analogue of the -E command-line attribute.
|
Endpoint |
Specifies the endpoint to be used for requests during the test run. This value overrides endpoints specified in request properties in your project. This parameter is an analogue of the -e command-line argument.
|
Host:Port |
Specifies the host and port to be used in requests during the test run. Usage format: host:port . To specify the host, use its IP address or name. This value overrides the hosts and ports specified in request properties in your project.This parameter is an analogue of the -h command-line argument.
|
Username |
Specifies a user name for authorization tasks during the test run. This value overrides the user names specified in authorization properties of test requests. This parameter is an analogue of the -u command-line argument.
|
Password |
Specifies a password for authorization tasks during the test run. This value overrides the password specified in authorization properties of test requests. This parameter is an analogue of the -p command-line argument.
|
Domain |
Specifies a domain for authorization tasks during the test run. This value overrides the domains specified in authorization properties of test requests. This parameter is an analogue of the -d command-line argument.
|
WSS Password Type |
Specifies the WS-Security password type. Select Text or Digest to set either the PasswordText or the PasswordDigest type respectively.This parameter is an analogue of the -w command-line argument.
|
Reports tab
Parameter | Description | ||||
---|---|---|---|---|---|
Print Report |
Commands the runner to include summary data into the generated reports. This parameter is an analogue of the -r command-line argument.Default value: enabled. |
||||
Export JUnit Results |
Commands the runner to create a JUnit-style report. This parameter is an analogue of the -j command-line argument.Default value: enabled. |
||||
Export All |
If this check box is clear, the report will contain information only about errors. If the check box is selected, the report will include messages of other types too. This parameter is an analogue of the -a command-line argument.Default value: enabled. |
||||
Root Folder |
The fully-qualified name of the directory that will store exported test reports. If the specified directory does not exist, it will be created.
-f command-line argument.
|
||||
Open Report |
Commands the runner to open the generated reports in your default browser after the test run finishes. This parameter is an analogue of the -o command-line argument. |
||||
Select Report Type |
Specifies the type of the generated report. You have the following options:
-R command-line argument.
|
||||
Report Format(s) |
Specifies the format of the generated report. Possible values: PDF, XLS, HTML, RTF, CSV, TXT, XML. If you keep this edit box empty, PDF will be used. Do not specify periods in format names. To specify multiple formats, separate them with commas, for example: PDF, CSV, XML (default) .This parameter is an analogue of the -F command-line argument.
|
For more information about reports and customization, see Reporting.
Properties tab
On the Properties tab, specify variable values that will take effect during the test run.
Use strings of the following format: <variable-name>=<value>
.
Separate multiple name-value pairs with spaces, or put each pair into a new line. If a variable name or value includes spaces, enclose the entire pair in quotes. For example:
image_to_upload="C:\My Application\image.png"
Property | Description |
---|---|
Global Properties |
Specifies global property values for the test run. The values you specify will override properties listed in the Global Properties settings of the ReadyAPI preferences. This parameter is an analogue of the -G command-line argument.
|
System Properties |
Specifies system property values for the test run. The values you specify will override these properties’ values you have in the ReadyAPI Help > System Properties dialog. This parameter is an analogue of the -D command-line argument.
|
Project Properties |
Specifies the project property values for the test run. The values you specify will override project-level properties. This parameter is an analogue of the -P command-line argument.
|
Custom Args tab
On The Custom Args tab, add any extra arguments to the runner if you need. For example, to command the runner to use a setting file that is different from default readyapi-settings.xml, enter the following text into the Tool Args edit box:
See Also
Command-Line Arguments
About Security TestRunner
Automating Test Runs