Summary: | allow passing of jmeter variables in post data | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Chris Cooper <ccooper> |
Component: | HTTP | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | CC: | p.mouawad |
Priority: | P2 | ||
Version: | 2.5.1 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Chris Cooper
2007-11-13 07:55:22 UTC
Variable substitution already works for POST arguments in JMeter 2.3. If it is not working for you, please attach a test case to this issue. I am using JMeter 2.5.1 and using the 'Random Variable' - the variable substitution does not work for POST data. I did: 1. Create a random variable 'myVar' 2. Created a http request - method POST 3. Added a file in the 'Send Files With the Request' (Note: 'Use multipart/form-data...' is un checked) 4. Used the above created random variable place holder ${myVar} in the file added above step Tried with JMeter 2.3.4 version which also did not work. (In reply to comment #2) > I am using JMeter 2.5.1 and using the 'Random Variable' - the variable > substitution does not work for POST data. > I did: > 1. Create a random variable 'myVar' > 2. Created a http request - method POST > 3. Added a file in the 'Send Files With the Request' (Note: 'Use > multipart/form-data...' is un checked) > 4. Used the above created random variable place holder ${myVar} in the file > added above step JMeter has never supported variable substitution in external files, only in fields on the Gui screen. > Tried with JMeter 2.3.4 version which also did not work. See BUG 15468 to check that you're in the same scenario. I think it's a duplicate. *** This bug has been marked as a duplicate of bug 15468 *** This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2045 |