Hi everybody,
I'm trying to use the ereg action but in my case I have the regexp pattern on a
csv file. I have a series of fields and depending on the input (which is also a
field) then I want sipp to check a specific regex pattern coming from a field
too.
I have successfully modified the sipp source code so that ereg now accepts a
regexpvar attribute (while googling I read that support for regex in variables
was not there in case variable syntax caused issues with the regex syntax, so I
used a different attribute).
This works fine for reading regex from a variable, but I'm missing the part
that reads from fields.
Currently I have to do this:
<recv response="100" optional="true">
<action>
<assignstr assign_to="1" value="[field0]" />
<ereg regexpvar="1" search_in="hdr" header="Server:"
check_it="true" assign_to="2" />
<log message="[$1]" />
<log message="[$2]" />
<log message="[field0]" />
</action>
</recv>
as I said this seems to be working and this is what I need, but I want the
value coming from a field in the csv file, not really from a variable.
Can somebody please point me in the right direction?
Also please let me know if what I'm trying to do has already been implemented
in some other way, I don't want to reinvent the wheel.
thanks,
H
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users