5

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?

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90
tdihp
  • 2,329
  • 2
  • 23
  • 40
  • 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. – Marko Bonaci Jan 10 '12 at 11:32

1 Answers1

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

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90
  • 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. – Pooja Apr 19 '13 at 12:08
  • 1
    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](http://jmeter.apache.org/usermanual/component_reference.html#Debug_Sampler) / [Debug PostProcessor](http://jmeter.apache.org/usermanual/component_reference.html#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? – Aliaksandr Belik Apr 22 '13 at 09:50
  • I will check and reply.Thanks – Pooja Apr 23 '13 at 09:05