This repository contains a JMeter project for performance testing of the DemoQA website.
The sample test plan includes the following components:
-
Thread Group:
- Thread Count: 10
- Ramp-Up Time: 1 second
- Explanation:
- Thread Count: Represents the number of virtual users (threads) executing the test concurrently.
- Ramp-Up Time: Represents the time taken for all threads to start executing.
-
HTTP Proxy Server:
- Used for recording the script of sample pages.
-
Logic Controllers:
- Loop Controller:
- Loop Count: 5
- ForEach Controller:
- Start and end index specified.
- Loop Controller:
-
Config Elements:
- CSV Data Set Config:
- Reads login name and password from a CSV file.
- CSV Data Set Config:
-
Listeners:
- View Results Tree
- Simple Data Writer: Writes results to a JTL file.
- Aggregate Graph
- Aggregate Report
- Summary Report
-
Timers:
- Constant Timer
- Uniform Random Timer
-
Assertions:
- Size Assertion
- Duration Assertion
- Response Assertion
- HTML Assertion
- Compare Assertion
-
Save and Run the Test Plan.
-
Sequential Execution:
- Run Thread Group of steps 1 and 9 in a sequential manner by changing properties in the Test Plan.
-
Point to Explore:
- Running through CMD (Non GUI mode).
-
Clone the repository to your local machine:
git clone https://github.com/vrun545/JMeter_Demo.git
-
Open JMeter and load the test plan named "DemoQA.jmx".
-
Configure the necessary settings and parameters in the test plan.
-
Run the test plan.
To run the test plan through CMD (Non GUI mode), use the following command:
jmeter -n -t DemoQA.jmx -l test_results.jtl
This command runs JMeter in non-GUI mode (-n
), specifies the test plan file (-t
), and writes the results to a JTL file (-l
).
Feel free to customize the README file further based on your project requirements and additional details.