IIRC, the test will only be evaluated after you send the ACK. Does the log actually have the correct values of $1? Also, for string comparison you should try using strcmp. If you know that the field5 is always 0 or 1 you can use todouble after the assignstr: <todouble assign_to="1" variable="1" />
Charles [EMAIL PROTECTED] wrote on 02/26/2008 08:35:34 AM: > Hello, > I am using test to check a variable 1 and set variable 2 if the > condition is satisfied as follows... > <nop> > <action> > <!-- Assign the value in field5 of the CSV file to a $1 --> > <assignstr assign_to="1" value="[field5]"/> > <log message="value of variable 1 is : [$1]"/> > </actions> > </nop> > > <nop> > <action> > <test assign_to="2" variable="1" compare="equal" value="0"/> > <log message="value of variable 1 is : [$1]"/> > <log message="value of variable 2 is : [$2]"/> > </actions> > </nop> > > And in the next line of the scenario checks on this variable 2 > > <send next="1" test="2"> > <![CDATA[ > ACK sip:[EMAIL PROTECTED]:[field4] SIP/2.0 > Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] > From: [field1] <sip:[EMAIL PROTECTED]:[local_port]>; > tag=[pid]SIPpTag09[call_number] > To: sut <sip:[EMAIL PROTECTED]:[field4]>[peer_tag_param] > Call-ID: [call_id] > CSeq: 1 ACK > Contact: sip:[EMAIL PROTECTED]:[local_port] > Max-Forwards: 70 > Subject: Performance Test > Content-Length: 0 > ]]> > </send> > When the value of the variable $1 is "0" or "1" , the variable $2 is > always set to TRUE and it is going to Label 1 always. > > Can somebody let me know if there is something wrong with my scenario. > > Thanks in advance, > Kind regards, > Pratima. > > > > > > > > > > > <nop> > <action> > <!-- Assign the value in field0 of the CSV file to a $1. --> > <assignstr assign_to="1" value="[field5]" /> > </action> > </nop> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Sipp-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sipp-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
