-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?

0

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.