opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jwebunit-users@lists.sourceforge.net 30 September 2009 • 2:48AM -0400

[JWebUnit-users] JWebUnit And Ajax Support
by Robert R

REPLY TO AUTHOR
 
REPLY TO GROUP






I’m a little unclear about the expected behavior of JWebUnit when
working with Ajax.  I followed the instructions for adding
NicelyResynchronizingAjaxController to my own build of JWebUnit (found
here):
http://sourceforge.net/mailarchive/forum.php?thread_name=329488.76625.qm%40web28510.mail.ukl.yahoo.com&forum_name=jwebunit-users

Unfortunately, after making these changes, my Ajax calls still are not
testable.  I am not sure if I configured something incorrectly, or if
I am simply trying the impossible, and I don’t understand what should
be possible using JWebUnit.

NOTE: I am making use of the WebTester class, which may have its own
set of constraints that I am not aware of when it comes to Ajax,
separate from JWebUnit in general.  If that is the case, please
advise.

When I load a page that has Ajax calls to get additional data and
manipulate the page – that data is not appearing in the source.  I am
wondering about the following:
1. Are there certain cases where the Ajax calls will be completed and
others where they will not, depending on how the Ajax calls are
initiated?
2. Can jWebUnit be made to wait until the Ajax calls are complete,
before returning the page source?
3. If I make a call to click on an element which in turn initiates
some Ajax calls and page manipulation, is there any way in JWebUnit to
begin working with the newly manipulated version of the page?

Thank you.

Robert

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@list...
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.