There are no actions that compare two variables. Charles
"Sumeet Bhardwaj" <[EMAIL PROTECTED]> wrote on 10/29/2007 09:14:14 AM: > Thanks for your reply :) > > Sorry for disturbing you again > But I still have problem. I am sending you those xml which I am using. > Just check it out. > I am extracting "from" header field value from INVITE request and storing it > into $1 and extracting > "from" header field from response INVITE and storing it into $2 and I am > trying to compare those value and > Trying to store its status into $3 but its not showing the status of result. > I have to compare all the headers field from request and response..... > These are the command of sipp 2.0.1 on windows platform. > For uac I m using this command: > Sipp -sf myuac.xml -r 1 -rp 5s <ip> -trace_logs > And for uas I am using this command: > Sipp -sf myuas.xml -r 1 -rp 5s <ip> -trace_logs > > > Xml scenario files: > Myuac.xml > <?xml version="1.0" encoding="ISO-8859-1" ?> > <!DOCTYPE scenario SYSTEM "sipp.dtd"> > <scenario name="Basic Sipstone UAC"> > <send retrans="500"> > <![CDATA[ > > INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0 > Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] > From: sipp <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number] > To: sut <sip:[EMAIL PROTECTED]:[remote_port]> > Call-ID: [call_id] > CSeq: 1 INVITE > Contact: sip:[EMAIL PROTECTED]:[local_port] > Max-Forwards: 70 > Subject: Performance Test > Content-Type: application/sdp > Content-Length: [len] > v=0 > o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] > s=- > c=IN IP[media_ip_type] [media_ip] > t=0 0 > m=audio [media_port] RTP/AVP 0 > a=rtpmap:0 PCMU/8000 > ]]> > <action> > > <ereg regexp=".*" > search_in="hdr" > header="From:" > check_it="true" > assignstr assign_to="1" /> > <assignstr assign_to="1" /> > > <log message="[$1]"/> > > </action> > </send> > > > <!-- recieve request. --> > > <recv request="INVITE" optional="false" > <action> > <ereg regexp=".*" > search_in="hdr" > header="From:" > check_it="true" > assignstr assign_to="2" /> > <assignstr assign_to="2" /> > > > <strcmp assign_to= "3" variable="1" compare="equal" variable="2" > /> > <log message="[$2]" /> > <log message = "[$3]"/> > </action> > <recv/> > > <recv response="100" > optional="true"> > </recv> > > <recv response="100" > optional="true"> > </recv> > > <recv response="180" > optional="true"> > </recv> > > <recv response="200" > optional="false"> > </recv> > </scenario> > Myuas.xml > <?xml version="1.0" encoding="ISO-8859-1" ?> > <!DOCTYPE scenario SYSTEM "sipp.dtd"> > > > <scenario name="Basic Sipstone UAC"> > > <recv request="INVITE" optional="false" /> > > <send retrans="500"> > <![CDATA[ > > INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0 > Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] > From: sipp <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number] > To: sut <sip:[EMAIL PROTECTED]:[remote_port]> > Call-ID: [call_id] > CSeq: 1 INVITE > Contact: sip:[EMAIL PROTECTED]:[local_port] > Max-Forwards: 70 > Subject: Performance Test > Content-Type: application/sdp > Content-Length: [len] > > v=0 > o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] > s=- > c=IN IP[media_ip_type] [media_ip] > t=0 0 > m=audio [media_port] RTP/AVP 0 > a=rtpmap:0 PCMU/8000 > > ]]> > </send> > > <recv response="100" > optional="true"> > </recv> > > <recv response="407" > optional="false" auth="true"> > </recv> > > > > <send retrans="500"> > <![CDATA[ > > INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0 > Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] > From: sipp <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number] > To: sut <sip:[EMAIL PROTECTED]:[remote_port]> > Call-ID: [call_id] > CSeq: 1 INVITE > Contact: sip:[EMAIL PROTECTED]:[local_port] > Max-Forwards: 70 > Subject: Performance Test > Content-Type: application/sdp > [authentication username=042201 password=password] > Content-Length: [len] > > v=0 > o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] > s=- > c=IN IP[media_ip_type] [media_ip] > t=0 0 > m=audio [media_port] RTP/AVP 0 > a=rtpmap:0 PCMU/8000 > > ]]> > </send> > > <recv response="100" > optional="true"> > </recv> > > <recv response="180" > optional="true"> > </recv> > > <recv response="200" > optional="false"> > </recv> > </scenario> > > Please help me out...... > > Thanks and Regards > > SUMEET BHARDWAJ > > | Mob: +919970159464 | > > -----Original Message----- > From: Charles P Wright [mailto:[EMAIL PROTECTED] > Sent: Sunday, October 28, 2007 1:41 AM > To: Sumeet Bhardwaj > Cc: [email protected]; > [EMAIL PROTECTED] > Subject: Re: [Sipp-users] FW: problem with XML scenario > > Presently, you can not compare two variables you can only compare a > variable and a value. Also for strings, you need to use the strcmp > primitive instead of the test primitive. > > Charles > > > > > "Sumeet Bhardwaj" <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 10/27/2007 07:52 AM > > To > <[email protected]> > cc > > Subject > [Sipp-users] FW: problem with XML scenario > > > > > > > Hi, > I am using windows SIPp tool to load xml scenario file > But getting some problem with my XML code. > I am trying to compare two string stored into $1 and $2 and trying to > store its status into $3 and trying to log the 3rd variable but > Its not storing its status whether it has pass or fail in log file and the > variable which I am comparing gets stored into log file but not 3rd one. > And I am also using ?trace_logs in command line > plzzzzzz help me out. > > Thanks and Regards > > SUMEET BHARDWAJ > > | Mob: +919970159464 | > > > <action> > <test assign_to="2" variable="1" compare="equal" variable="3" /> > <log message="[$2]"/> > </action> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Sipp-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sipp-users > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
