Forum OpenACS Q&A: tclwebtest... form find hangs

Collapse
Posted by tammy m on
Hi,

Does anyone know anything particular that might cause form find to just not return? I call it like so and it just does not return. "back from form find" never prints though "back from assert" does.

    ::twt::do_request "http://my.site.com:8000/where/my-form"
    ::tclwebtest::assert text {my form}
    puts "----------------- back from assert "

    ::tclwebtest::form find ~a {/where/my-form}
    puts "----------------- back from form find "

I have checked the form and though it is a long form with lots of fields and comments in it (as well as table layout of checkbox options), it is closed properly and the form tag is set up properly. I tested this by taking a small portion of the exact form and calling form find on it. It worked fine. Is there something known that breaks a regexp in form find or what would cause this proc to not return at all?

tia

Collapse
Posted by Tilmann Singer on
I don't know why it happens but I've seen the same thing with a long form too 😟. I think that some regexps in tclwebtest take a very long time to process certain kinds of data - maybe there is a simple fix, but I don't know.

I hope one day to be able to rewrite it using html::parse to avoid all these efficiency issues.

Could you email me the html of your long form?