-2

I have static domain name (test.com) of site and CSV file with path to different pages like home.html, contacts.html, projects.html and other. How I have to configure Jmeter to receive data from file as variable to "PATH" to "HTTP Request" sampler?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Andrew
  • 29
  • 11

1 Answers1

0
  1. Add CSV Data Set Config to your Test Plan and configure it as follows:

    • Filename: /path/to/your/csv/file
    • Variable Names: anything meaningful, i.e. path

      JMeter CSV Data Set Config

  2. In the HTTP Request Sampler define "Path" element as /${path}

    JMeter CSV Pathh

See Using CSV DATA SET CONFIG article for more detailed explanation of above and other settings.


If your CSV file structure is as simple as "one line - one entry" you can even get rid of the CSV Data Set Config and use __StringFromFile() function instead.

JMeter String From File

Dmitri T
  • 159,985
  • 5
  • 83
  • 133