[Webtest] hidden fields and httpunit options
Dierk Koenig
webtest@lists.canoo.com
Tue, 27 Jan 2004 18:01:50 +0100
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: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Janno Kusman
> Sent: Dienstag, 27. Januar 2004 17:34
> To: webtest@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
>
>
>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>