I want to see if the values of two variables are equal, and evaluate
pass/fail based on that. I want to use the return value of the 'sipp'
command to track the test result.

For example, from ETSI conformance tests, for basic call, "ensure that IUT
sends an INVITE request with a Request-URI set to the same URI value of the
To header". I can capture the URIs using regexp, but cannot compare the
values. What would be really convenient for comparison is to reuse the
variable within the same regexp action. Following is a trivial example of
what I *want* to do (I know the syntax can't be used like this to 'insert'
the variable into the regexp - perhaps there is a way someone knows about?):

       <recv request="INVITE" crlf="true">
        <action>
          <ereg regexp=".*" search_in="hdr" header="Via: " check_it="true"
assign_to="1" />
          <ereg regexp="[$1]" search_in="hdr" header="Via: " check_it="true"
assign_to="2" />
        </action>
      </recv>

Since the "check_it" parameter will allow me to get a pass/fail, and the
scenario will still complete, something like this is my preferred way.

I don't know how or if the variable can be used this way. Are there any
other methods of comparison that anyone can suggest? I thought about
external commands, but I don't know if I can use variables that way (judging
from the mailing list, no), and if I can, how I would cause SIPp to finish
with a particular exit value to decide pass/fail for the test?


Scott
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to