Alexander,
Two things may help you:
1) Set easyajax="true" in config
=== easy ajax example ====
<webtest name="eye capture regression test on ${domain}${page}" >
<config
haltonerror = "false"
haltonfailure = "false"
easyajax="true"
useInsecureSSL="true"
browser="FF3">
<option name="ThrowExceptionOnFailingStatusCode" value="false"/>
<option name="ThrowExceptionOnScriptError" value="true"/>
<option name="JavaScriptEnabled" value="true" />
</config>
2) Sleep, <sleep seconds="6" /> , after the step that invokes the page and the
step which is looking for a result or taking an action on the page:
=== sleep example ====
<setSelectField name="audience" text="${audience}"/>
<sleep seconds="6" />
<repeat count="${category.countnum}">
<setSelectField name="audcat" text="${category.#{count}}"/>
<verifySelectField name="audcat" description="Verify that text is
contained in the option" text="${category.#{count}}" />
</repeat>
Hope this helps,
Cheers,
Tim Pezarro
Manager, Web Services
Corporate Marketing
[email protected]
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
8555 Baxter Place
Burnaby, BC, Canada
V5A 4V7
-----Original Message-----
From: [email protected] on behalf of Alexander Tabilog
Sent: Fri 10/1/2010 12:51 PM
To: [email protected]
Subject: [Webtest] Problem with Canoo WebTest and Ajax calls
I am having a problem with WebTest not recognizing my updated webpage. I have
a multiple select list field that is being populated dynamically via an Ajax
call. WebTest does not recognize the updated page with populated select list
field. There are other fields on the page too like drop down list boxes that
are being populate dynamically via Ajax. I checked the result of test and
WebTest is still hanging on the old page with the blank fields. Is anyone
having the same problem? Does anyone know if this is a known issue? Does
anyone know if there is a resolution to this kind of issue? I also noticed
that it is not only Ajax but with pages that are dynamically modified even with
JavaScript code. WebTest simply does not recognize the new webpage that was
dynamically modified. Thanks in advance for anyone who can help me with this
issue.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest