This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Testing and the fly likes Jmeter - input should change for each hit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Jmeter - input should change for each hit" Watch "Jmeter - input should change for each hit" New topic
Author

Jmeter - input should change for each hit

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi,

When one is running a test ; is it possible that one of the input form parameters can be dynamically given

My requiremetn is that one of the input parameters value should come from a file and it shoud be different for each request...

Does Jmeter provide such a feature..???


Regards
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Worked out with the

User_Parameters and used the function

__StringFromFile for it to work..

Thanks

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30352
    
150

Thanks for sharing the solution for others who encounter this question in the future!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
My two cents:

To generate unique data you can use "Random Variable" Thread Group->Add->Config Element -> Random Variable

To read from a CSV file you can use Add->Config->CSV Data Set Config

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jmeter - input should change for each hit