Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jmeter - testing multiple urls

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

like image 424
L P Avatar asked May 31 '13 10:05

L P


People also ask

How many threads can JMeter handle?

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.

How many concurrent users can JMeter handle?

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.

What is sampler result in JMeter?

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.


1 Answers

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.

enter image description here

I have named the Thread Group as Demo Test Group.

Step 2: Create a While Controller

enter image description here

A While Controller is created under the Demo Test Group.

Step 3: Create a new variable named path in the condition section.

enter image description here

Step 4: Create a CSV Data Set Config

enter image description here

The CSV Data Set config is created inside the While Controller.

Step 5: Configuring the CSV Data Set.

enter image description here

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.

enter image description here

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

enter image description here

Inside the While Controller create the HTTP Request.

Step 7: Configuring the HTTP Request

enter image description here

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

enter image description here

You need to add the Listener under HTTP Request. Its purpose to listen to the responses.

Step 9: Run Test

enter image description here

The last step is to run the test.

You can see that the responses is been collected inside the View Results Tree.

like image 157
Rito Avatar answered Sep 19 '22 23:09

Rito