wood burning stoves*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
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!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMeter - refering User Defined Variable in Http POST body