jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toni Menendez Lopez <tonime...@gmail.com>
Subject Re: generate variable from file
Date Tue, 25 Oct 2011 11:44:01 GMT
Solved with __StringFromFile().

Now I need to do the same for a long number of files and inputs in a file. I
donĀ“t know if reading from file each request can download dramatically the
performance of Jmeter, this is why I want to load all values in memory.

For each request I am going to read the URL from a file.

Toni.

2011/10/25 sebb <sebbaz@gmail.com>

> On 25 October 2011 11:43, Toni Menendez Lopez <tonimenen@gmail.com> wrote:
> > The thing is that I want to execute a loop in the same thread with all
> > values inside this file ( same as if I have done a regex ), with "CSV
> Data
> > Set Config" the varaible it is not modified until I restart a new thread.
>
> So why mention file I/O as being the problem?
> That is a completely different matter.
>
> > This is my scenario
> >
> > -ThreadGroup
> > -While not end of file
> > -- request with url inside the file
> >
> > I tried "CSV Data Set Config" and all requests inside the WHILE are the
> > same, and only modifyied when the next thread is restarted.
>
> Where did you place the CSV Data Set?
>
> You can use the __StringFromFile() function if you don't require the
> data to be in memory.
>
> > Toni.
> >
> > 2011/10/25 sebb <sebbaz@gmail.com>
> >
> >> On 25 October 2011 10:55, Toni Menendez Lopez <tonimenen@gmail.com>
> wrote:
> >> > Hello all,
> >> >
> >> > I send this just to know if someone has done something similar to the
> >> next,
> >> >
> >> > I have 3  files with 20 inputs, and these inputs are used in my jmeter
> >> > Scenario, and in order to avoid I/O with high Load I want to save all
> >> input
> >> > in a variable in memory to use later in a foreach.
> >>
> >> Are you sure you need to load the files into memory?
> >> Have you tried using CSV Data Set Config?
> >>
> >> > Do you know how to generate a on memory variable based in a File (
> >> similar
> >> > to variables generated with regex extractors ? )
> >>
> >> The function
> >>
> >> http://jakarta.apache.org/jmeter/usermanual/functions.html#__CSVRead
> >>
> >> reads the file into memory.
> >> > Thanks,
> >> >
> >> > Toni.
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message