File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
JMeter problem
how comws varaible in the tag
Passing variables
Variable declaration inside loops - what happens?
Testing JBoss Queue