2 messages in com.canoo.lists.webtestRE: [Webtest] hidden fields and httpu...
FromSent OnAttachments
Janno Kusman27 Jan 2004 08:33 
Dierk Koenig27 Jan 2004 09:01 
Subject:RE: [Webtest] hidden fields and httpunit options
From:Dierk Koenig (dier@canoo.com)
Date:01/27/2004 09:01:28 AM
List:com.canoo.lists.webtest

you could make a custom step that subclasses ClickButtonStep and deals with httpunit specialities directly.

(I assume you have a form where the hidden field is changed by a js handler - [no comment])

cheers Mittie

P.S. sometimes, when tests are hard to write, it's not the test you should change but the application.

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Janno Kusman Sent: Dienstag, 27. Januar 2004 17:34 To: webt@lists.canoo.com Subject: [Webtest] hidden fields and httpunit options

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