Forum OpenACS Q&A: Re: How do I speedup tclwebtest ?

Collapse
Posted by Dave Bauer on
You might want to look at Selenium, which is a javascript browser based test platform.

https://openacs.org/xowiki/pages/en/Testing+with+Selenium

Collapse
Posted by Åsmund Realfsen on
Thanks for the tips Dave.

I kind of like tclwebtest, because it integrates well into the openacs framework, and it run on the serverside. But the thing about performance is annoying ..

Åsmund

Collapse
Posted by Gustaf Neumann on
can it be that you are experiencing timeouts? is tclwebtest running http/1.0 or /1.1? i would recommend 1.0. i doubt that this is a performance issue with regexp...
Collapse
Posted by Åsmund Realfsen on
Yes, maybe it has to to with timeouts, but I don't think so.
I have tried to look into this, and it seems to me that all the loading of data happens either from the do_request or link follow method.

The form find simply parse the received information.

I don't know if tclwebtest runs http 1.0 or 1.1, and as far as I know you can't configure this either.

Sometimes the do_request and link follow methods takes a long time to (but not every time) and this could probably have something to do with timeouts etc.

I think the form find method use so longe time because of several nested regexp. Some of them use up to 1 or 2 seconds to complete but most of them are quite quick. But many small in total add up to a quite long time in the end.