2 messages in com.canoo.lists.webtest[Webtest] hidden fields and httpunit ...
FromSent OnAttachments
Janno Kusman27 Jan 2004 08:33 
Dierk Koenig27 Jan 2004 09:01 
Subject:[Webtest] hidden fields and httpunit options
From:Janno Kusman (jann@hot.ee)
Date:01/27/2004 08:33:45 AM
List:com.canoo.lists.webtest

Hi,

I want to set hidden input fields in html form. Although I have modified Setup.java and changed line

HttpUnitOptions.setParameterValuesValidated(true);

to

HttpUnitOptions.setParameterValuesValidated(false); System.out.println(HttpUnitOptions.getParameterValuesValidated());

I still get following error message

ant -buildfile EEK_makse.xml

Buildfile: EEK_makse.xml

main: [testSpec] false

BUILD FAILED file:D:/!projects/Sampo/monitoring/test_engine/src/EEK_makse.xml:73: Test failed Test step submitform named "<unknown>" failed with message "Illegal parameter ke y in form [, post, login, , , _top, , POST request for (https://www.sss.ee:443 /cgi-bin/login?lang=est&user0=66742) login] with message <Parameter 'key' must h ave the value ''. Attempted to set it to: { XXXX }> "

Why are form parameters still validated ('false' in ant output shows that my newly built webtest.jar is used)? Or what is the easiest way to implement custom step that makes POST requests?

Janno, WebtTest build 385