I'm new to Jmeter; I would like to know how to test multiple urls (stored in a txt/csv file) of different sections of a website in a load test ie. is there any way to import that file and run a load test or any alternative solution?
Thanks!
LP
JMeter allows you to run multiple processes in the same box, and it's usually pretty reliable generating up to 200 threads per JMeter instance. If you need more than that, I'd recommend using multiple JMeter instances. A modern machine with some tweaking can easily generate 500 to 1000 threads.
In conclusion, we can say that you can simulate up to 10,000 users on a JMeter load test even on a regular laptop. This depends on following 4 simple rules: Use JMeter listeners for debugging purposes only. Run JMeter performance tests in non-GUI mode.
The Sampler result tab contains the response code, headers, cookies and information about time, latency, response size in bytes - separately for the headers, the body and the error count. The Request tab contains information about headers that the JMeter script added, the URL, the HTTP method and cookie information.
This is how I did it. I have explained it step by step so that any newbie does not have to go through all the documents of Jmeter for figuring it out.
Step 1: Create a Thread Group.
I have named the Thread Group as Demo Test Group.
Step 2: Create a While Controller
A While Controller is created under the Demo Test Group.
Step 3: Create a new variable named path in the condition section.
Step 4: Create a CSV Data Set Config
The CSV Data Set config is created inside the While Controller.
Step 5: Configuring the CSV Data Set.
Make the changes as highlighted in the box. Inside the Filename section enter the csv file location.
The CSV file location should contain only the path. This is how my CSV file looked.
The value inside the Variable Names is same as the name of the variable in While Controller. Which is path.
Step 6: Create HTTP Request
Inside the While Controller create the HTTP Request.
Step 7: Configuring the HTTP Request
I have enter the Domain Name, the Protocol and in the Path section entered the variable {path}, which is picked from the CSV file.
Step 8: Add View Results Tree
You need to add the Listener under HTTP Request. Its purpose to listen to the responses.
Step 9: Run Test
The last step is to run the test.
You can see that the responses is been collected inside the View Results Tree.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With