[Tsung] Using tsung for out of the box testing

Nicolas Niclausse nicolas at niclux.org
Thu May 29 09:11:44 CEST 2008


Eric Cestari ecrivait le 27.05.2008 09:18:
> Hi,
> 
> I'd like to use tsung to test websites functionnally.
> One would record a scenario and would configure it with 1 client.
> I need the following features :
> - have a log file with all failing URLs (404, 500)
> - matching response as in 
> http://tsung.erlang-projects.org/user_manual.html#htoc45, and in case of 
> a non-match have a trace in the log.
> 
> Is there a way of doing that by tweaking the tsung.xml file ?

No

> Or should I write some code ? In that case, would any of you have any 
> pointers of where to start looking ?

take a look at ts_http_common:parse

this behaviour should be disable/enable in the config file, something like:

<http log_bad_status='true' ...>

> I was thinking of adding a "log" action like this :
> 
> <match do="log" when="nomatch">Welcome !</match>

ts_search:match should be modified. The URL is not available in the 
arguments currently, this must be modified.

I think it should be easy to add these features, but i can't give you any 
date, since i'm very busy currently.

-- 
Nicolas


More information about the Tsung-users mailing list