[Webtest] posting forms with Spring
Marc Guillemot <email@example.com>
Wed, 6 Jun 2007 04:18:52 -0700 (PDT)
I understand a bit better... but still need some explainations.
How is the step=2 parameter set? Is it done on the server side or with some
script on the client side?
In fact I'm quite surprised because if submitted parameters are not computed
correctly, then you would surely not be the first to complain.
Last question: which WebTest build (with which htmlunit version) do you use?
Lisa Crispin-2 wrote:
> Hi Marc,
> It works in a normal browser (IE6). What I am told by the developer is
> Spring saves the parameter from the get, for example, 'step=1'. Then when
> you click the submit button, it remembers the parameter, adds 1 to it, and
> appends 'step=2' to the URL that results when you submit. That takes you
> the next page. When the WebTest script clicks the button, the step number
> isn't changed, so you stay on the same page. As far as I understand, they
> did this in order to use one Spring controller for several different pages
> that make up a UI wizard.
> The developer added hidden fields that allow WebTest to work, but since a
> lot of people do use Spring, I was hoping someone else was doing something
> similar and maybe there is a way for WebTest to handle this without having
> to use the hidden fields.
> On 6/5/07, Marc Guillemot <firstname.lastname@example.org> wrote:
>> Hi Lisa,
>> I'm not sure to understand. You want to use WebTest here to do something
>> that wouldn't be possible with a "normal" browser. Is this correct?
>> Lisa Crispin-2 wrote:
>> > When using Spring for UI development, it uses the same controller for
>> > get and the post of a form (eg, SimpleFormController). When the form
>> > posted, Spring reattaches the parameters from the get to the posted
>> > request. Is there any way to simulate this behavior in WebTest? I.E.,
>> > when
>> > a submit button is clicked, specify additional parameters for the
>> > request.
>> > thanks
>> > Lisa
>> View this message in context:
>> Sent from the WebTest mailing list archive at Nabble.com.
>> WebTest mailing list
> Lisa Crispin
> Testing Extreme Programming
View this message in context: http://www.nabble.com/posting-forms-with-Spring-tf3867639.html#a10986570
Sent from the WebTest mailing list archive at Nabble.com.