Load Test Automation

Modified on Thu, 27 Nov at 2:06 PM

TABLE OF CONTENTS

1. Overview

2. Prerequisites

3. Performing the Load Testing 

3.1 Creating a Project Page and Configuring the Spreadsheet 

3.2 Limitation

1. Overview

Load testing is a type of performance testing used to evaluate how a system or application behaves under a specified load.

2. Prerequisites

Java-JMETER is a performance testing framework that uses Java. It supports only Java version 1.8 To Install Java, click here.

3. Performing the Load Testing 

3.1 Creating a Project Page and Configuring the Spreadsheet 

  1. In algoQA, Navigate to the Projects and click on '+' icon to create a project.
  2. In the Create Project Page, enter the Project Name, select the Automation type as Load Test Automation and click Create Project button. 
  3. Let us configure the spreadsheet which will serve as an input file. 
  4. For Configuring a spreadsheet, use the parameters defined in the following table:

    Parameter
    Description 
    Name Load Testing
    Type API 
    URL HTTPS://staging.algoshack.net
    Thread Count 5
    Loop Count 1
    Ramp Up 5
    Set Duration 6
    Infinite Loop FALSE
    End Point User/Login
    Method POST
    Request Body  {"user":{"email":"eipgctzmvsfivtnkkx@tmmcv.com","
    password":"eyJhbGciOiJIUzI1NiJ9.UkBqZXNoMTIz._pUSOKQleRDRgb0XzNT1cY3UVFBVdMzYjB_0iZb7NAM"}}
    Headers content-type:application/json
    Authorization  NA
    Store Variable accessToken 

  5. The name of the spreadsheet file should be Node name_Project name format.
  6. Navigate back to your project and in canvas click on more dropdown and select Configuration File 
  7. Click on Upload to navigate and select the configured file. Upload the configured spreadsheet.
  8. Https need to pass only first time for accessing applications  and if user pass https thread count will not be accepted.
  9. From second time users to pass without protocol like https or http. 
  10. File uploaded successfully pop-up appears.
  11. In the Script Generation Settings set the framework as Java-JMETER.
  12. Next, let us generate test cases.
  13. In Canvas, click Generate Testcase button to generate test cases.
  14. Test Cases are generated successfully pop-up appears and in same pop-up you click on view test cases to view the test cases and click on generate script for the script to be generated. 
  15. You can also view test cases from Test Cases Tab and generate script from there.
  16. After generating the script you can download and execute them.
  17. execute the script in command prompt using mvn test.

 

 3.2 Limitation

Ensure that the spreadsheet is configured exactly as shown in the attached sample spreadsheet. Any deviations from this configuration may lead to inaccurate results or issues during the process. Refer to the sample spreadsheet for appropriate configuration.  

























Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article