[Webtest] script file too long
Fri, 26 May 2006 06:32:18 +1000
Luiz Fernando Rodrigues wrote:
> I'm using the canoo webtest and my script file is becaming to long.
> Is there a way to break it in modules?
Breaking scripts up can certainly help. If you are using <scriptStep...>
it uses BSF under the covers and BSF provides no support for this directly.
But if your scripting language supports it you can certainly do this.
fragments of other scripts, others (e.g. Groovy) can find other scripts
or Java classes containing shared code from your classpath. If you are
using the <groovy...> step, then the groovy comments apply to that.