Introduction
ReadyAPI is an API testing platform. It allows developers to automate testing.
It can be used for different types of testing -
⭐ Functional Testing - You can set tests for each application's functionality and check if your service works as expected. You can also test the security of your service and verify that it can resist the most common attacks.
⭐ Performance Testing - You can test the performance of the service against various situations.
Virtualization allows you to test the performance of API in real-world scenarios. It imitates real-world experiences and runs your API against them.

Your testing scripts might contain some bugs. We can debug the code step-by-step in ReadyAPI.
In this article, we will discuss how to debug functionality testing scripts with the help of an example.
How can we debug tests in ReadyAPI?
You can debug the functionality testing code step-by-step. You can also create breakpoints to pause between these steps.
You can read about the test steps here.
Sample Example
Let’s try to understand everything with the help of an example.
ReadyAPI has curated some sample test projects for it’s users. These sample test projects help in understanding test scripts. There are many sample test projects available, like - SOAP sample project, REST sample project, Data driven test project, security sample project, SQL injection sample project, etc.
For this example, let’s use a REST sample project.
Let’s get started 🏁
🐻 Open ReadyAPI.
🐻 Open the Dashboard tab. On the left-hand side, you can see Sample Projects.
🐻 Click on REST Sample Project.

🐻 Go to REST Sample Project > Functional Tests > Sample REST Test Suite.
🐻 There are many sample test scripts. For this example, let’s use Simple Login Call. In the Simple Login Call, there are three steps, start service, Login and stop service.
If you click on button, the script will run all the steps continuously one after the other without stopping at any point. This will not help us in debugging the script. But if we could test each step separately, it would help us in finding the bug.
✅ Use Step-by-Step Run to debug the code at each step.

🐻 Use the Play button ▶️, to run the script step by step.

🐻 Click on the Play Button ▶️, Start Service step will run, after which it will pause execution. Click on it ▶️ again, the REST Login step will be executed and execution will be paused. Click on it ▶️ again, the Stop Service step is executed. Since there was no error, the test script is PASSED.
On your right-hand side, you will see a list of parameters. Some of them change as we execute each step. (*) is used to represent that the parameter has been changed.
