You can not use a != for matching, and actually I just checked the code.
Regular expressions are only valid for requests not responses.
You can add a label named "_unexp.main" and then exit on any unexpected
message. For example, this could go at the end of your scenario.
<nop next="end" />
<label id="_unexp.main" />
<nop>
<action>
<error message="Got something aside from a 200" />
</action>
</nop>
<label id="end" />
Charles
"Evgeny Miloslavsky" <[EMAIL PROTECTED]>
06/17/2008 02:57 AM
To
Charles P Wright/Watson/[EMAIL PROTECTED]
cc
Subject
RE: [Sipp-users] How to set behavior for any received response except of
200 OK
HI and thanks for your response.
I need the following functionality:
if received response != 200 Ok
then exit.
I need my SIPp instance exit the scenario in case received response is not
200 OK. My intuition says that it should be something like
<recv response !="200">
<action>
<exec int_cmd="stop_now"/>
but I?m not sure that this kind of syntax is applicable for SIPp
Regards,
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9712355 / 7320
-----Original Message-----
From: Charles P Wright [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2008 6:54 PM
To: Dhananjaya Reddy Eadala
Cc: Evgeny Miloslavsky; [email protected];
[EMAIL PROTECTED]
Subject: Re: [Sipp-users] How to set behavior for any received response
except of 200 OK
SIPp won't exit but the call will fail.
If you want SIPp to exit, you'll need to do a regular expression match and
an action that includes something like <error message="Got something other
than 200" />.
Charles
"Dhananjaya Reddy Eadala" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
06/16/2008 11:12 AM
To
"Evgeny Miloslavsky" <[EMAIL PROTECTED]>
cc
[email protected]
Subject
Re: [Sipp-users] How to set behavior for any received response except of
200 OK
in scenario, set the following:
<recv response="200">
</recv>
If sipp receives other than 200, then it will exit automatically.
Dhana
On 6/16/08, Evgeny Miloslavsky <[EMAIL PROTECTED]> wrote:
Hi All
How do I cause my SIPP instance to exit the scenario for every received
response except of 200 OK.
Regards,
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9712355 / 7320
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users