write new preprocessor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

write new preprocessor

Galya Andonova
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

Reply | Threaded
Open this post in threaded view
|

Probabalistic disribution of requests

Dave McGuinness
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Probabalistic disribution of requests

sebb-2-2
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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: write new preprocessor

sebb-2-2
In reply to this post by Galya Andonova
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 <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: write new preprocessor

Galya Andonova
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" <[hidden email]>
To: "JMeter Users List" <[hidden email]>
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 <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Probabalistic disribution of requests

Michael Stover
In reply to this post by sebb-2-2
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 <[hidden email]> 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: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: write new preprocessor

sebb-2-2
In reply to this post by Galya Andonova
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 <[hidden email]> 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" <[hidden email]>
> To: "JMeter Users List" <[hidden email]>
> 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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]