Tarek,

This looks like a nice patch, which will make the scenario language much 
more extensible.

I just have two suggestions:
1.  Would it be possible to compile the regular expression when reading 
the XML file?  This would eliminate some per-message overhead, and improve 
performance at high loads.  I am not sure if this would be difficult to 
implement or not.
2.  This could also make sense for the reply codes as well as requests. 
For example, instead of using <recv reply="100" /> to match a 100 reply, 
the regular expression <recv reply="1.." /> could match any provisional 
response.  Conversely, reply="[2-6].." would match any final reply.  I am 
not 100% sure what I would use this for yet, but it seems like a logical 
extension.

Charles

[EMAIL PROTECTED] wrote on 01/09/2007 11:41:58 AM:

> 
> Here's a diff against 2007-01-08 snapshot that adds an optional 
> 'regexp_match' argument to the receive command which allows regexp 
> style patterns to be supplied for matching.
> 
> This allows a scenario to act as a 'universal' catcher.  Meaning it 
> can receive multiple message types and respond to them all with the 
> same 200 OK.  Particularly for presence testing, this would be 
> useful for simulating a UAS that OKs incoming publishes, subscribes, and 
IMs.
> 
> Example:
> 
>   <recv request="MESSAGE|PUBLISH|SUBSCRIBE" crlf="true" 
regexp_match="true">
>   </recv>
> 
> If regexp_match is not supplied, the old behavior persists.
> 
> t
> 
> [attachment "diff.txt" deleted by Charles P Wright/Watson/IBM] 
> 
-------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to