[Webtest] Problem with ajax content update
Marc Guillemot <email@example.com>
Mon, 21 Jul 2008 15:05:29 +0200
at the very beginning of your test.
Steve Chikwaya wrote:
> Hi Marc,
> Where would I set <config easyajax="true"/> if my js libs don't make
> intensive use of setInterval?
> On Tue, Jul 15, 2008 at 2:32 AM, Marc Guillemot <firstname.lastname@example.org
> <mailto:email@example.com>> wrote:
> Steve Chikwaya wrote:
> > Hi everyone,
> > Our intranet homepage has ajax content that loads independent of other
> > elements on the page. The initial display is that of a string
> > "Loading.." after which the ajax content is retrieved and displayed.
> > Since there is no page refresh, webtest captures the "Loading..."
> > and sticks with that until a link is clicked, essentially voiding any
> > type of text or link verification associated with the ajax
> content. Is
> > there anyway that I can perform the tests after the whole page,
> > including the ajax content, has loaded without having to navigate
> > the page for fresh page hits?
> > Thanks,
> > -STeve Chikwaya.
> there is currently no "perfect" solution for that. If your js libs don't
> make intensive use of setInterval, <config easyajax="true"/> should be
> perfect, otherwise a sleep (or a call to HtmlUnit's API) at the
> problematic places should do the work.
> Blog: http://mguillem.wordpress.com
> WebTest mailing list
> WebTest@lists.canoo.com <mailto:WebTest@lists.canoo.com>
> I'm not the person your mother warned you about... her imagination isn't
> that good!