Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
2.
Configuring Security Test Runner From GUI
2.1.
Parameters for Security TestRunner
2.2.
Generate command line
3.
Configuring Security Test Runner From CLI
4.
TestRunner Exit Codes
5.
Frequently Asked Questions
5.1.
What is ReadyAPI?
5.2.
What is the difference between ready API and postman?
5.3.
Is ReadyAPI an automation tool?
6.
Conclusion
Last Updated: Mar 27, 2024

Security Test runner in Ready API

Author Harsh
0 upvote

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.

Security Test Runner Ready 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.

 

Launch Security TestRunner ReadyAPI

 

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.
     

Basic tab ReadyAPI

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.

Overrides tab ReadyAPI

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.

Reports tab ReadyAPI

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>

Properties tab ReadyAPI

4. Custom args tab 🌟

Any extra arguments that may be required by the runner can be added to this tab.

Custom args tab ReadyAPI

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.

Command line ReadyAPI

Configuring Security Test Runner From CLI

All of the configurations that can be done using the GUI can also be done from the command line itself using the arguments.

The Security Test Runner is located in the <ReadyAPI_Installation_Directory>/bin folder. The name of the runner is securitytestrunner.bat on windows and securitytestrunner.sh on Linux or macOS.

The general Syntax for running the TestRunner from the command line is as follows

securitytestrunner.sh [optional-arguments] <test-project>

Users can specify different arguments to configure the TestRunner before running the actual test. Below is a list of some of the frequently used arguments.

Argument Description Ready API

TestRunner Exit Codes

After running the test the Security Test Runner returns an integer value that specifies certain things.

Exit Codes TestRunner Ready API

Frequently Asked Questions

What is ReadyAPI?

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.
 

What is the difference between ready API and postman?

Postman is designed to work with each individual API endpoint, So it is nearly hard to manage and monitor end-to-end testing over time. And in the case of ReadyAPI, each test case is customized which is why tests may include a variety of endpoints, resources, or data sets.
 

Is ReadyAPI an automation tool?

Ready API is a tool for REST and SOAP API automation testing. ReadyAPI focuses on boosting efficiency and usability when used to test web services. You can simplify thorough web services testing with ReadyAPI.

Conclusion

This article has discussed the Security Test runner available in Ready API. We have also seen the different arguments that we can use to configure the Security test runner.

If you think this blog has helped you enhance your knowledge about the above question, and if you would like to learn more, check out our articles

 

and many more on our Website.

Visit our website to read more such blogs. Make sure that you enroll in the courses provided by us, take mock tests and solve problems and interview puzzles available. Also, you can pay attention to interview stuff- interview experiences and an interview bundle for placement preparations.

Please upvote our blog🏆  if you find them useful to help other ninjas grow.

Live masterclass