You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Galya Andonova <ga...@activesolutions.bg> on 2005/05/09 08:03:11 UTC
write new preprocessor
Hi all,
Did someone know can I write my own preprocessor for Jakarta - Jmeter - 2.0.3 and use it when testing and how exactly this could happen?
Thanks!
Best wishes:
Galya Andonova
Re: write new preprocessor
Posted by sebb <se...@gmail.com>.
You can use the existing User Parameters Pre-processor to do this.
See for example:
http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-1680863678257fbcb85bd97351860eb0049f19ae
S.
On 5/9/05, Galya Andonova <ga...@activesolutions.bg> wrote:
> Thanks sebb,
> I want to achieve this:
>
> For each execution of an HTTP request, every paramater may have a different
> value, which is defined using a specified pattern. I would like to write a
> Pre-processor, that consists of a form with parameter names and patterns
> defining the parameter values in each execution of the HTTP request. For
> example if I set the paramter "name" with a pattern "NNN-CCCC", where N is a
> digit and C letter, the parameter "name" will have a value matching that
> pattern.
> Can I find somewhere the source code of some written Pre-processors and use
> them?
>
> Thanks
>
> Best wishes:
> Galya Andonova
>
> ----- Original Message -----
> From: "sebb" <se...@gmail.com>
> To: "JMeter Users List" <jm...@jakarta.apache.org>
> Sent: Monday, May 09, 2005 2:14 PM
> Subject: Re: write new preprocessor
>
> Yes you can write your own pre-processor.
> To use it with JMeter, just put it in a jar and put the jar in lib/ext.
>
> What are you trying to achieve with the Pre-processor?
>
> S.
> On 5/9/05, Galya Andonova <ga...@activesolutions.bg> wrote:
> > Hi all,
> > Did someone know can I write my own preprocessor for Jakarta - Jmeter -
> 2.0.3 and use it when testing and how exactly this could happen?
> >
> > Thanks!
> >
> > Best wishes:
> > Galya Andonova
> >
> >
>
> ---------------------------------------------------------------------
> 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
Re: write new preprocessor
Posted by Galya Andonova <ga...@activesolutions.bg>.
Thanks sebb,
I want to achieve this:
For each execution of an HTTP request, every paramater may have a different
value, which is defined using a specified pattern. I would like to write a
Pre-processor, that consists of a form with parameter names and patterns
defining the parameter values in each execution of the HTTP request. For
example if I set the paramter "name" with a pattern "NNN-CCCC", where N is a
digit and C letter, the parameter "name" will have a value matching that
pattern.
Can I find somewhere the source code of some written Pre-processors and use
them?
Thanks
Best wishes:
Galya Andonova
----- Original Message -----
From: "sebb" <se...@gmail.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Monday, May 09, 2005 2:14 PM
Subject: Re: write new preprocessor
Yes you can write your own pre-processor.
To use it with JMeter, just put it in a jar and put the jar in lib/ext.
What are you trying to achieve with the Pre-processor?
S.
On 5/9/05, Galya Andonova <ga...@activesolutions.bg> wrote:
> Hi all,
> Did someone know can I write my own preprocessor for Jakarta - Jmeter -
2.0.3 and use it when testing and how exactly this could happen?
>
> Thanks!
>
> Best wishes:
> Galya Andonova
>
>
---------------------------------------------------------------------
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
Re: write new preprocessor
Posted by sebb <se...@gmail.com>.
Yes you can write your own pre-processor.
To use it with JMeter, just put it in a jar and put the jar in lib/ext.
What are you trying to achieve with the Pre-processor?
S.
On 5/9/05, Galya Andonova <ga...@activesolutions.bg> wrote:
> Hi all,
> Did someone know can I write my own preprocessor for Jakarta - Jmeter - 2.0.3 and use it when testing and how exactly this could happen?
>
> Thanks!
>
> Best wishes:
> Galya Andonova
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Probabalistic disribution of requests
Posted by Michael Stover <ms...@apache.org>.
Or, you could use the Throughput Controller, which is made to do exactly
this sort of thing, though it's a little bit complicated to use. See
the docs at:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Throughput_Controller
-Mike
On Mon, 2005-05-09 at 11:40 +0100, sebb wrote:
> If the only difference between the URLs is the parameter, the easiest
> is probably to pre-generate a file containing a suitable mix of
> values, and read them in using StringFromFile or CSVRead.
>
> Or you could use the Switch Controller or 3 If Controllers.
>
> The Switch Controller needs a number between 0 and 2. Can generate
> this using the JavaScript or BeanShell functions. (Generate random
> number and set it to 0,1,2 depending on the range)
>
> The If Controller needs a JavaScript condition. This could check the
> range of a previously generated random number.
>
> Equally, the numbers required by the Switch or If Controllers could be
> read from a file.
>
> S.
> On 5/9/05, Dave McGuinness <mc...@gmail.com> wrote:
> > Hi guys,
> >
> > Quite new to JMeter. I have managed to set it up to use 3 thread
> > groups to call the same URL with three different parameters,
> > "config1", "config2" and "config3". The users are split 25-20-15
> > between the interactions and therefore at any given time a fixed
> > amount of users is executing (or queuing for) each transaction. What
> > I would like to do is to use just one thread group with 60 threads and
> > have proabilities of 25-20-15 that it would call each of the three
> > transactions (or some other equivalent way of doing this),
> >
> > Any help really appreciated,
> > Thanks a lot,
> > Dave
> >
> > ---------------------------------------------------------------------
> > 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
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Probabalistic disribution of requests
Posted by sebb <se...@gmail.com>.
If the only difference between the URLs is the parameter, the easiest
is probably to pre-generate a file containing a suitable mix of
values, and read them in using StringFromFile or CSVRead.
Or you could use the Switch Controller or 3 If Controllers.
The Switch Controller needs a number between 0 and 2. Can generate
this using the JavaScript or BeanShell functions. (Generate random
number and set it to 0,1,2 depending on the range)
The If Controller needs a JavaScript condition. This could check the
range of a previously generated random number.
Equally, the numbers required by the Switch or If Controllers could be
read from a file.
S.
On 5/9/05, Dave McGuinness <mc...@gmail.com> wrote:
> Hi guys,
>
> Quite new to JMeter. I have managed to set it up to use 3 thread
> groups to call the same URL with three different parameters,
> "config1", "config2" and "config3". The users are split 25-20-15
> between the interactions and therefore at any given time a fixed
> amount of users is executing (or queuing for) each transaction. What
> I would like to do is to use just one thread group with 60 threads and
> have proabilities of 25-20-15 that it would call each of the three
> transactions (or some other equivalent way of doing this),
>
> Any help really appreciated,
> Thanks a lot,
> Dave
>
> ---------------------------------------------------------------------
> 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
Probabalistic disribution of requests
Posted by Dave McGuinness <mc...@gmail.com>.
Hi guys,
Quite new to JMeter. I have managed to set it up to use 3 thread
groups to call the same URL with three different parameters,
"config1", "config2" and "config3". The users are split 25-20-15
between the interactions and therefore at any given time a fixed
amount of users is executing (or queuing for) each transaction. What
I would like to do is to use just one thread group with 60 threads and
have proabilities of 25-20-15 that it would call each of the three
transactions (or some other equivalent way of doing this),
Any help really appreciated,
Thanks a lot,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org