jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Seillier <stie...@gmail.com>
Subject Re: Change datasource during test
Date Thu, 01 Dec 2011 18:33:21 GMT
Thanks sebb !
In fact, I created a beanshell preprocessor where I split the string that I
get from the variable that was initialized with the StringFromFile function.
It works fine.
Thanks again

2011/12/1 sebb <sebbaz@gmail.com>

> On 1 December 2011 16:01, Mathieu Seillier <stieuma@gmail.com> wrote:
> > Thanx for your reply.
> > I read the doc for the StringFromFile function and indeed, it looks like
> > what I want.
> > But currently, I get data from csv files, so each line of my datasources
> > contains multiple values that I get with a CSV Data Source Config (to
> have
> > a different dataset for each SOAP request).
> > And, after reading StringFromFile doc, I feel that I can't get multiple
> > data for each line of the file. I feel that the
> > StringFromFile function considers each line of the file as a single
> > variable, and this is not what I want, I need to get multiple data in
> each
> > line.
> > Does the StringFromFile function allow to get each line of the files as a
> > csv datasource ?
>
> http://jmeter.apache.org/usermanual/functions.html#__split
>
> > stieuma
> >
> > 2011/12/1 sebb <sebbaz@gmail.com>
> >
> >> On 1 December 2011 14:22, Mathieu Seillier <stieuma@gmail.com> wrote:
> >> > Hi all,
> >> > I have currently a test plan that simulates 1000 SOAP requests to a
> web
> >> > service (with 100 users each doing 10 iterations).
> >> > Each request contains binary data that I get in a datasource with 1000
> >> > lines. This works properly.
> >> > Now, I'd like to run the test plan indefinitely (100 users, infinite
> >> number
> >> > of iterations), using multiple datasources successively.
> >> > I have enough datasources to simulate such 500,000 requests (I have
> 500
> >> > files with 1000 lines).
> >> > What I want is to launch once the test plan, it runs using the
> datasource
> >> > file1, then when the 1000 lines are used, it moves on the datasource
> >> file2,
> >> > and so on until the datasource file500, and then the test plan stops
> when
> >> > there is no more available datasource.
> >> > Is that such behavior possible? If so, how
> >>
> >> The StringFromFile function was developed for exactly such a scenario.
> >>
> >> http://jmeter.apache.org/usermanual/functions.html#__StringFromFile
> >>
> >> > ? otherwise, do you have an idea
> >> > to try to behave approaching?
> >> >
> >> > My first idea was to concatenate all datasources but each file weighs
> >> > 150Mb, so it would result in a 75 Gb file ... :(
> >> >
> >> > Thank you in advance
> >> > stieuma
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> >> For additional commands, e-mail: user-help@jmeter.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

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