URL testing

81 views
Skip to first unread message

Sumedh D

unread,
Apr 15, 2024, 2:54:16 AMApr 15
to JMeter Forum
Scenario:
I have 100 different URLs and only one user credentials. The scenarios are verifying that the user is able to login into the application

I want to test those 100 different URLs in a single test plan.

Questions:
How can I provide the JMeter 100 differents url on one go. Because by adding HHT request sampler for 100 urls its time consuming

Please help

DT

unread,
Apr 15, 2024, 2:57:53 AMApr 15
to JMeter Forum
Normally people do the following:
  1. Put 100 URLs into a CSV file
  2. Add CSV Data Set Config and setup it to read the URLs from the file into. a JMeter Variable
  3. Use the variable in "Path" field of the HTTP Request sampler
Then you can configure Thread Group to loop 100 times and that would be it.

Sumedh D

unread,
Apr 15, 2024, 3:07:38 AMApr 15
to JMeter Forum
Yes. I added CSV data config element
1.png
Then, use variable in path
2.png

But getting this error message in response
3.png

What Can I do now? Please help

DT

unread,
Apr 15, 2024, 3:18:19 AMApr 15
to JMeter Forum
You either need to set "Variable Names" to url_path instead of \n or leave it blank if 1st line of the CSV file is url_path

There is no need to set delimiter as line break as each thread will read next line on each iteration with default Sharing Mode

More information with examples: Using Test Data in JMeter Performance Tests

Sumedh D

unread,
Apr 15, 2024, 3:37:31 AMApr 15
to JMeter Forum
Change the variable name to   url_path instead of \n. now getting this error message
4.png

DT

unread,
Apr 15, 2024, 3:39:28 AMApr 15
to JMeter Forum
You cannot use binary Excel file (which is a zip archive) , you need to export it as CSV

Sumedh D

unread,
Apr 15, 2024, 3:41:21 AMApr 15
to JMeter Forum
Yes. I am using csv file.

Sumedh D

unread,
Apr 15, 2024, 4:50:48 AMApr 15
to JMeter Forum
Using csv file, I am getting this error message
5.png

DT

unread,
Apr 15, 2024, 5:05:56 AMApr 15
to JMeter Forum
You need to use ${url_path} in HTTP Request sampler

Sumedh D

unread,
Apr 15, 2024, 5:30:12 AMApr 15
to JMeter Forum
Can we connect sir??

Rahul Kumar

unread,
May 6, 2024, 11:28:51 PMMay 6
to JMeter Forum

You are using XL file, Convert it to CSV and Try
Reply all
Reply to author
Forward
0 new messages