jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chaitanya bhatt <bhatt.chaita...@gmail.com>
Subject Re: Exception handling in Jmeter
Date Tue, 27 Nov 2012 19:13:42 GMT
Thanks a ton Flavio Cysne for taking time and replying. I will try what you
suggested and let the group know about the outcome.

Regards,
Chaitanya Bhatt

On Mon, Nov 26, 2012 at 4:27 AM, Flavio Cysne <flaviocysne@gmail.com> wrote:

> Regular Expression Post-Processor could be added as first element of your
> script's threads group (outside of any sampler), this will assure that it
> will be evaluated for every sampler inside this threads group. Second
> element could be an If Controller with "Evaluate for all children?" field
> checked and inside this controller include all your samplers. This will
> avoid wasted time adding an If Controller for every sampler.
>
> Hope it helps.
>
>
> 2012/11/25 chaitanya bhatt <bhatt.chaitanya@gmail.com>
>
> > Group,
> >
> > I have a peculiar requirement. During a server session migration
> > event(between primary and failover units), the server sends a
> notification
> > to the client, the client acknowledges the message, and sends a migration
> > command to the server. Note that unless the client sends the migration
> > command(via http) the server won't start the session migration process.
> > This migration event can occur at random intervals. The end user is
> > completely oblivious  about the migration event until he sees the
> message.
> > This migration event is an exception condition.
> >
> > Is there a way I can create a Jmeter script which can handle this
> exception
> > condition, especially when it occurs at random intervals?
> >
> > My test plan
> > Test Plan
> > |
> > Thread
> > --|
> >   Step-1 (HTTP request)
> > --|
> >   Step-2(HTTP request)
> > .
> > .
> > .
> >
> > --|
> >   Step-N(HTTP request)
> >
> >
> > The migration event can occur anywhere between Step-1 and Step-N.
> >
> > The only way I could think of getting this job done is by regexing the
> > migration event and placing an IF condition and an associated migration
> > trigger HTTP request as a child of each and every HTTP sample in my test
> > plan. But I have hundreds of Steps which makes this task extremely
> tedious.
> > (Note: Search and replace in the JMX is not reliable at times)
> >
> >
> > Any ideas?
> >
> > Thanks in advance.
> > Chaitanya M Bhatt
> >
>

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