[Webtest] Re: AJAX (DWR) webtest Compatability
Marc Guillemot
webtest@lists.canoo.com
Mon, 24 Oct 2005 21:22:19 +0200
Hi Simon,
comments below
Simon Gibson wrote:
> Hi,
>
> Sorry its taken so long for me to get back to you but I had some
> pressing tasks to get done in the meantime. I have managed to find
> some time to look back at this in more detail.
>
> I did an upgrade to the latest and was impressed that things did seem
> to progress further than the original try. However its not fully
> working as I would have hoped.
>
> The script I am using logs in to a screen with a drop down. When a
> drop down value is selected an AJAX call should occur that then
> populates other fields in the form.
is the call synchron or asynchron? If it is asynchron, you probably need
to "wait" after having set the select to give htmlunit and your server
time to process the XMLHttpRequest call.
>
> Running the script it does in fact hit the server side java method for
> AJAX but falls then falls over. The server side returns an array of
> String which holds the fields to be populated. I am saving the
> responses and the most recent response shows the screen without the
> fields populated.
It doesn't say anything: the response saved is the one received from the
server, not the result of some DOM manipulation.
>
> Here is my script, which is followed by the output, both in full.
> Thanks for your help. I really hope we can get this working.
I'm sure it's possible. Can you use htmlunit from htmlunit's CVS instead
of from Webtest distribution? You would get the really last improvements
and it would make easier to test. I would not be surprise if last
htmlunit changes allow you to go one step further.
Marc.