Hi ,
Thank you for the suggestion. I removed -bg option. I have two xml files for
test Pass and fail scenarios.
In my script i am checking the exit code condition as either 0 or non zero.
So with this simple check my test results are fine for pass/fail xml files.
But when i actually check the $? variable i see: 0 for Pass and 11 for Fail.
But for failure, exit code should have been either -1, 99 , 97, or 1.
so please let me know how to obtain the correct exit code. BTW i am using
Linux OS
Cheers,
Venki
On 5/10/07, Olivier Jacques <[EMAIL PROTECTED]> wrote:
Try to remove "-bg". SIPp will return immediately if you do so - so the
exit code will be wrong.
Also, you might want to use tethereal or tshark (Wireshark) - better than
the Ethereal UI.
Olivier.
On 5/10/07, venki l <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I am trying to automate my testing using SIPp and Ethereal. My
> requirement is that both Sipp and ethereal have to run in parallel.
> I use PERL to do this. I have attached a piece of pseudo code herewith.
>
> In my attachement $tc.xml is an XML file involving a sip scenario and
> sipfield.txt contains the necessary ip address and user id.
>
> Problem: The $? exit code that obtain in the code is wrong.
>
> Please let me know what the problem could be. Also how to obtain the
> correct exit code of SIPp in this case.
>
> Thanks in advance,
> Venki
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Sipp-users mailing list
> Sipp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
>
--
HP OpenCall Software
http://www.hp.com/go/opencall/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users