Hi,
In general I find tclwebtest a nice tool, however sometimes it has a problem with speed, or can it be that I use it the wrong way ?
Example: I use tclwebtest to create an assessment. The assessment package displays some quite large and complex forms.
I use the tclwebtest command form find ~n {xxx} to locate the form, and then process the elements with field fill yy, field select -index zz etc.
The problem is that the form find ~n {xxx} command takes about 70 seconds to return for the page where I create the assessment. It seems to be the case, that a complex form with e.g. many hidden fields increases the time. The creation of an assessment with one section and 10 questions of different types takes about 30 minutes.
As far as I have tested the other tclwebtest commands do not have this problem.
I tried to find the problem in the tclwebtest library, and I think I have traced it to the procs extract_forms_if_necessary and deal_with_field (The latter is called by the first one.)
I am not 100% sure, but I suspect some extensive use of regexp in these procs to cause the loss of performance.
Is this a known problem, and does anyone know a workaround ?
Does tcl and regexp have a performance issue ?
Thanks.
Åsmund