Introduction
ReadyAPI is a simple, low-code API testing platform created to make your testing processes more efficient. It provides a lot of features that help to automate the testing processes for an API.
In this blog, we will discuss the Security Test runner. We will also talk about the different arguments that we can use to configure the Security test runner.
Configuring Security Test Runner From GUI
Security Test Runner is used to start security tests automatically.
🐻 Right click on the desired security test and select Launch Security Test Runner.
After launching the security TestRunner user can change the parameters for running the test.
Below are the details for all of the available parameters.
Parameters for Security TestRunner
There are 5 different tabs to configure the parameters for the security test runner.
1. Basic Tab 🌟
Users can configure the following parameters from the basic tab:
-
Test Suite and Test Case: Provides instructions on which test suite and test case a security test should be executed.
-
Security Test: It specifies the security test. If this parameter is not specified, then the TestRunner will execute all of the security tests.
-
Enable UI: Users can enable or disable the UI-related component using this option. This parameter is required if the test uses the UISupport class.
-
Security TestRunner Path: Fully-qualified name of the runner file
-
Save Project: To save the project
-
Add Settings: Instructs the runner to use the workspace settings listed in the readyapi-settings.xml file.
-
Project Password: the project password
-
user-settings.xml Password: Users can specify the password for the XML setting file using this option.
-
Ignore Errors: If this option is enabled, then the TestRunner ignores all the errors that occur during the test.
-
Save After: Save the project after running the test.
TestRunner Basic tab
2. Overrides tab 🌟
Users can configure the following parameters from the Overrides tab:
-
Environment: Users can specify which environment configuration to use for test.
-
Endpoint: Specifies the endpoint that will be accessed during the test run.
-
Host:Port: Specifies the Host and Port that will be accessed during the test run.
-
Username: Specifies the username that will be accessed during the test run.
-
Password: Specifies the password that will be accessed during the test run.
-
Domain: Specifies the domain that will be accessed during the test run.
- WSS Password Type : Specifies the WS-Security password type.
3. Reports tab 🌟
Users can configure the following parameters from the Reports tab:
-
Print Report: Add summary information to the reports that are generated.
-
Export JUnit Results: Instructs the runner to produce a report in the JUnit style.
-
Export All: If this checkbox is unchecked, the report will only provide error-related data. The report will also include messages of other types if the checkbox is ticked.
-
Root Folder: The exported test result will be stored in this directory.
-
Open Report: Open the generated reports in the browser after the test runs are finished.
-
Select Report Type: Users can select the type of report that will be generated.
- Report Format(s): Format for the generated report.
4. Properties tab 🌟
Any variable that will be used during the test can be specified in this tab.
To specify a variable use the following format:
<variable-name>=<value>
4. Custom args tab 🌟
Any extra arguments that may be required by the runner can be added to this tab.
Generate command line
Get Command line button can be used to generate the command line code After all of the configurations have been done.
Another way to generate the command line code is by simply clicking on the Launch button and finding the code highlighted in the below image.