[Webtest] Problem with ajax content update

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Mon, 21 Jul 2008 15:05:29 +0200


at the very beginning of your test.
http://webtest.canoo.com/webtest/manual/config.html

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Steve Chikwaya wrote:
> Hi Marc,
> 
> Where would I set <config easyajax="true"/> if my js libs don't make
> intensive use of setInterval?
> 
> Thanks
> 
> 
> 
> On Tue, Jul 15, 2008 at 2:32 AM, Marc Guillemot <mguillemot@yahoo.fr
> <mailto:mguillemot@yahoo.fr>> 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..."
>     string
>     > 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
>     around
>     > 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.
> 
>     Cheers,
>     Marc.
>     --
>     Blog: http://mguillem.wordpress.com
> 
>     _______________________________________________
>     WebTest mailing list
>     WebTest@lists.canoo.com <mailto:WebTest@lists.canoo.com>
>     http://lists.canoo.com/mailman/listinfo/webtest
> 
> 
> 
> 
> -- 
> I'm not the person your mother warned you about... her imagination isn't
> that good!