Two Laptop Bag
The moose likes Performance and the fly likes JMeter - refering User Defined Variable in Http POST body Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "JMeter - refering User Defined Variable in Http POST body" Watch "JMeter - refering User Defined Variable in Http POST body" New topic
Author

JMeter - refering User Defined Variable in Http POST body

Ravi Challapalli
Greenhorn

Joined: Jun 02, 2009
Posts: 5
Can someone tell me how to access user defined variable inside an attached file of the Http Sampler?

What I did: created an Http req. sampler; method POST; created a variable myvar which is a JMeter 'Random Variable'.

Problem: When I refer ${myvar} to populate an Http header it works but when I use it inside the file I am sending as the POST body it is not replaced but sent as it is ${myvar}.

Please help!

Thanks in advance!!
 
 
subject: JMeter - refering User Defined Variable in Http POST body
 
Threads others viewed
how comws varaible in the tag
Variable declaration inside loops - what happens?
Passing variables
JMeter problem
Testing JBoss Queue
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture