6

I want to use CSV Data Set Config to modify the path of a HTTP Request.

  • My CSV file:
    120,120
    121,121
    
  • My CSV variable names: paraa, parab.
  • My http request path: /my/path/with/?{paraa}/?{parab}/.

I tried and I failed.

Is there anyway to work this around?

1
  • 2
    Can I ask why you haven't accepted answers to any of your previous questions? That's very important here on SE, both for building knowledge base and your credibility. Commented Jan 10, 2012 at 11:32

1 Answer 1

20

Seems that you incorrectly refer jmeter variables.
Try

/my/path/with/${paraa}/${parab}/

instead,
where ${paraa}, ${parab} refer corresponding values extracted in CSV Data Set Config:

enter image description here

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

2 Comments

Hi, I have 2 variables in my csv file Username and Password I setup as you mentioned above and put these variable in my login request ${Username} and ${Password}, but when i am running my script it only puts Username but not password.Can you please tell me how to solve this issue? Thanks.
Well, what have you already tried to find the cause of your issue: looked into jmeter.log / Options -> Log Viewer for possible error messages, tried Debug Sampler / Debug PostProcessor to ensure that your variables values are (not) correctly extracted from csv, used any listener to track values sent along with requests and responses received?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.