Test specification questions

Nicolas Niclausse nicolas at niclux.org
Mon Dec 5 21:30:58 CET 2005


Mark Smith a écrit :
> Nicolas Niclausse wrote:
> 
>> The syntax is:
>> <match do="continue|abort|loop|restart"
>> when="match|nomatch">regexp</match>
>>
>> for ex:
>> <request>
>>       <match do="continue" when="nomatch">Welcome|Bienvenue</match>
>>       <match do="abort" when="match">Login Incorrect</match>
>>       <match do="loop" when="match" sleep_loop="2"
>> max_loop="5">Retry</match>
>>       <http url= .../>
>> </request>
> 
> 
> Two more questions:
> - It looks from your example that you've made the sleep time and the
> maximum number of loops to be parameters.  Thank you!  (I guess this
> isn't really a question.  :)

The number of restarts is also tunable (max_restart="")

> - Is there any guarantee on the order in which these matches will be
> performed?  That will affect the logic used while building the config
> files.

It's the same order as in the XML file (well, it is supposed to ... :).


-- 
Nicolas



More information about the Tsung-users mailing list