[Tsung] backend and fullstats

Pablo Polvorin ppolv at yahoo.com.ar
Mon Apr 21 18:57:58 CEST 2008


Hi Nicolas,
would you consider it usefull to implement this
in a more "structured programming" way?. 

I mean, instead of the goto-like 'loop_back',
introduce a new element, ("repeat" or "for" , i don't
know). 
The previous scenario could be something like this:

<repeat>
  <transaction>
     ...
  <transaction/>
   ...
  <request>
  <dyn_variable name="SomeVar"
                    regexp="exp"/>
  <http url='/myapp/Calibrage?pagelen=8192'
version='1.1' method='GET'></http>
 </request>
  <while var="SomeVar" match="regx"/>
</repeat>

implementation doesn't seems to be too different from
the loop-back one (if "SomeVar" match in the while
element, then jump to the previous repeat). Indeed,
perhaps if we keep a stack of the repeat elements
while parsing, we could even allow nested cycles. 

If we want a fixed number of repetitions:
<repeat times="100">
...
</repeat>

I know... the scenario description language is getting
more and more complex... 
but it's a kind of scripting language anyway, and I
guess than for most users, put a set of
request/transaction inside a <repeat> element would be
more natural than use a loop-back IMHO.

By the way, I volunteer to do this work if you agree.

cheers!



--- Nicolas Niclausse <nicolas at niclux.org> escribió:

> philippe vanderstraeten ecrivait le 21.04.2008
> 16:30:
> > Nicolas,
> > 
> > Thanks for your anwser. Following is my scenario
> file (web site and 
> > application names have been replaced with
> anonymous names).
> 
> OK, I see. The problems comes from the new
> 'loop_back' feature.
> 
> Each beginning and ending tag of a transaction must
> be added in the 
> loop_back calculation.
> 
> In your case, if you want to loop back to the
> beginning of 'trx_dummy1', 
> you must set: loop_back=7
> 
> That's ugly :)
> 
> I think i'll have to add an 'id' attribute to
> 'request' and 'transaction' 
> and use this 'id' in loop_back instead of a counter.
> This will be more user 
> friendly.
> 
> -- 
> Nicolas
> _______________________________________________
> Tsung-users mailing list
> Tsung-users at lists.process-one.net
>
https://lists.process-one.net/mailman/listinfo/tsung-users
> 



      Yahoo! Encuentros.

Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros http://yahoo.cupidovirtual.com/servlet/NewRegistration


More information about the Tsung-users mailing list