Stress Test

Stress Test aims to identify the system’s limitations and potential performance bottlenecks, ensuring that the application performs optimally even under extreme conditions.Let’s walkthrough how to do it

Summary

  • Stress testing is a critical component of quality assurance and performance optimization. It helps organizations identify weaknesses and vulnerabilities in their systems, ensuring that they can withstand extreme conditions while also defining specific criteria or thresholds that determine when the system is considered to have failed and deliver a reliable and responsive user experience even under heavy loads.
  • The primary goal of Stress testing is to identify the breaking point or maximum capacity of the system, ensuring it can handle heavy user traffic or extreme usage scenarios without crashing or experiencing performance degradation.

What is Stress Test?

  1. A Stress Test with a Failure Threshold is a type of performance testing methodology used to evaluate how a system or application behaves under extreme conditions while also defining specific criteria or thresholds that determine when the system is considered to have failed. This type of testing helps identify the system’s breaking point or its limits, beyond which it is no longer able to function acceptably.
  2. It aims to identify the system’s limitations and potential performance bottlenecks, ensuring that the application performs optimally even under extreme conditions.

Why to use Stress Test?

Here’s how a Stress Test with a Failure Threshold typically works:

  1. Defining the Threshold: Before conducting the Stress Test, you establish specific criteria or thresholds that the system must meet to be considered successful. These criteria can be related to performance, stability, or other key factors.
  2. Intense Workload Simulation: Stress testing involves simulating extreme conditions, such as a significantly higher number of concurrent users and Failure Threshold than the system is typically expected to handle.
  3. Identifying Breaking Points: The main objective is to determine the system’s breaking point, which is the point at which it starts to exhibit performance issues, errors, or crashes.
  4. Performance Bottlenecks Discovery: Stress testing helps in identifying performance bottlenecks, weaknesses, or limitations in the application or infrastructure. This information is valuable for optimizing the system.
  5. Security Implications: In some cases, Stress testing can also help uncover security vulnerabilities that may become exploitable under high-stress conditions.
  6. Threshold Validation: If the system meets all the defined criteria throughout the test, it is considered to have passed the Stress Test. However, if it fails to meet one or more of the criteria, it is considered to have reached its Failure Threshold.

Benefits

The benefits of Stress testing in aiTest include:

  1. Identifies Maximum Capacity: Stress testing helps you identify the maximum capacity of your application, enabling you to scale resources appropriately.
  2. Highlights Performance Bottlenecks: Stress tests pinpoint performance bottlenecks, allowing you to optimize critical areas of the application and enhance overall performance.

How to Create Testrun in Stress Test?

  1. Sign up using your E-mail or Google account.
  2. Go to Stress Test Create Stress Test
  3. Hit the Create Test button.
  4. Configure your test
    • a)Name the testrun: Give the name of testrun whatever you want or which is related to your application, So that it will be easy to get that particular testrun details whenever you want. i.e. test-example.com, test-demo.com, etc.
    • b)Project: Select a project in which you want to run your test or you can create a project by clicking on the red colored plus sign(+) button.
    • c)Test Description: Write some testrun description to make your testrun more informative.
    • d)AUT URL: Application Under Test URL. e.g. https://example.com
  5. Select language from language option. Select Language
  6. Now here you can choose Repo Details or Automation Code.
    • Repo Details: Provide the Repo Details User’s Git Repository URL, User’s Git Username, User’s Git Token or Password,Branch Name, Report File Location and Testrun Command. Repo Details
  7. Automation Code: If you select Automation Code in the previous step, you will need to upload your zip file and enter Report File Location and Testrun Command. Upload File
  8. On the right-hand side you can configure the Run Configurations such as
    • Threshold Users: The total number of users you want to test for.
    • Initial users: The initial number of users.
    • Ramp up time: The time after which you want to add more users.
    • Ramp up users: The number of users to add after the ramp.
    • Failure Threshold: The failure threshold is typically defined based on specific metrics, such as response time, error rate, throughput, resource utilization. Run Test
  9. Once you are done with the above steps you can do either of the following:
    • a)Run It Now: Immediately run the automation code to test the browser compatibility of your apps with across mobile devices, browsers and versions.
    • b)Save: Save the configuration for later run as draft testrun.
    • c)Cancel: Reset and go back to previous page.
    • d)Update: Update the configurations of the saved draft testrun. Update Test

Run Analysis

After the testrun is completed, you can access the Run Analysis to review the results. Here’s how:

  1. Go to the Stress Test dashboard to see an overview of the testrun results. Stress Test Dashboard
    • Failure threshold against step : This graph shows the failure threshold percentage against each step with respect to users.
    • Passed / Failed testcases per step : This graph shows number of passed / failed testcases per step with respect to users
    • Failure threshold in each step : This graph shows the failure threshold percentage in each step with respect to users.
  2. Once you have reached the Stress Test dashboard page of aiTest, For more detailed information, click on the Menu Option associated with the completed testrun. You’ll find options to view Download SVG, Download PNG and Download CSV.
  3. These files contain comprehensive information about the test results, including the URLs tested, their status, and any errors encountered.

Questions answered

  • What is Stress Test?
  • How to use aiTest for Stress Testing?

- Series

×

Subscribe

The latest tutorials sent straight to your inbox.