Performance Testing
Last updated
Last updated
Testing involves gradually intensifying the workload to observe the API's performance under heavier demand. Within this process, you can track response durations, review the status codes and advanced results associated with each request.
We can manually create a script by providing the valid Test Script details.
Step-1 : Select the Import from Functional Testing option.
Step-2 : Select the necessary scripts to be imported.
Step-1 : Select the type of API you'll be testing (REST, SOAP, GraphQL).
Step-2 : To create an API manually, it's essential to provide the required information outlined below.
API type
Select REST, SOAP or GraphQL.
Name
The name of your API script.
Description
A description of your script.
Context Path
The path to your specific API.
Protocol
Defines a set of rules for communication( http/https).
Endpoint
URL where a service or resource can be accessed.
Port Number
It is network address. For example: 8080.
Verbs
The type of API call. GET, POST, PUT, DELETE or PATCH.
Timeout
Timeouts are used to avoid waiting APIs response.
URL in code Enabled
Encoding special characters within the URL.
Step-1 : Click on Run Button.
Step-2 : Select number of threads where it is for mimicking concurrent users or processes to evaluate system behavior under varying levels of load.
Step-3 : Select Thresold response time,where it is maximum acceptable time for a system to respond
Step-4 : Select the Environment name.
Step-5 : Then again Click on the Run button.
Step-6 : It will be navigated to reports page.
The Performance Report presents a comprehensive overview, featuring graphs depicting response time outcomes and status code results
The Response Time Results graph showcases the relationship between the number of threads (simulated users) and the corresponding response times of the API requests. This graph helps in understanding how the system's performance behaves as the load increases.
The Status Code Results graph illustrates the distribution of HTTP status codes returned by the API requests at different levels of thread concurrency. This graph provides insights into how the system handles requests under various loads.
Advanced Reports in Performance testing offer additional insights into the API executions conducted under stress, including summary reports, response latencies over time, active threads over time, hits per second graph and transactions per second.
The Report Actions encompass user-specific functionalities including sending emails, downloading reports, test retries, ticket management, and user profile interactions.
Performance testing in API testing refers to the process of evaluating the speed, responsiveness, stability, and overall scalability of an under different load conditions. It uses parameters like thread count and analyzes responses, providing insights into response times and status codes. Advanced reports go beyond metrics, offering a deeper understanding of performance over time. They include summary reports, response latency trends, active threads data, and graphical representations of hits and transactions per second. These reports provide a holistic perspective, enabling informed decisions on optimization and scalability. Performance testing is crucial for delivering dependable APIs that meet real-world demands for speed and responsiveness