jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nino Wael" <>
Subject SV: jmeter loading variables from a file
Date Mon, 05 Mar 2007 11:19:42 GMT
Hi Matt
Seems that I did not success in explaining myself:(
I do not need specific ID's per user basis. Some of our items on our pages changes ID's, for
Toy A's Id was 1000 when I recorded the http request. But now the our database has been regenerated
and the id are 1200. No toy exist with the ID 1000 so this will give an exception.
So in order to make our test work I need to load the current values into the http request
that's being run. These ID's has nothing to do with user id's. Hope I've explained my self
a bit clearer.
What I need is a function that uses to parameters:
${__StringFromFile(IDs.txt,int line)}  
This would work for me, where can I read more about these functions?
regards Nino


Fra: Matt []
Sendt: ma 05-03-2007 11:39
Til: JMeter Users List
Emne: Re: jmeter loading variables from a file

Hi Nino,

If you use ${__StringFromFile(IDs.txt)}  each thread (user) will pick up a
unique ID from that file.

If you are using multiple JMeter servers, you will need a IDs.txt file for
each JMeter server with different unique IDs.

Hope this helps,



On 05/03/07, Nino Wael <> wrote:
> Hi
> I need to load variables from a file. The reason for this are that some of
> the items id's that can be selected on our pages, changes id's on update of
> the database. So in order for the performance test to be valid after an
> update I need to have the correct ID's loaded or the HTTP request will be
> invalid.
> I've looked at the wiki
> But this is not quite what I need, since it will not be different on a per
> users basis, it's just general id's.
> Any information on how-to load variables from any source external(could
> also be the jmeter properties file?) would be greatly appreciated.
> If I somehow failed to explain myself, please say so and I elaborate in
> another way.
> Regards Nino
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message