Hi, the suggested solution works so far if I run the test as follow:
Y:\..\webtest\TSCM>ant -f test_build.xml But when I run it as follows it does't work: Y:\..\webtest\TSCM>webtest -f test_build.xml Now I'm trying to run all tests with ant instead of webtest, but i have a new issue: If i run a simple test without including Entities, it works. But if some Entities are included in the test I get the following error message: BUILD FAILED Y:\..\webtest\webtest.xml:234: The following error occurred while executing this line: Error reading project file Y:\..\webtest\TSCM\tests\m_test.xml: no protocol: ../modules/config.xml The config file is inluded in test file as an Entitty. The error occurs by using any other entity Does any body know how to handle webtest entities with ANT A code snip: <?xml version="1.0"?> <!DOCTYPE project [ <!ENTITY login SYSTEM "../modules/login.xml"> <!ENTITY logout SYSTEM "../modules/logout.xml"> <!ENTITY config SYSTEM "../modules/config.xml"> <!ENTITY init SYSTEM "../modules/init.xml"> .... ...... ]> Or otherwise: Why is webtest failing regarding the Ajax-Issue!? Kind regards Alhousseine Evival Alhousseine/Extern/059/DCAG/DCX 31.10.2008 10:30 An [email protected] Kopie Thema Antwort: Re: [Webtest] Ajax and oncomplete Hi, thanks Marc. The groovy step works with the latest build. Kind regards Alhousseine [EMAIL PROTECTED] Gesendet von: [EMAIL PROTECTED] 29.10.2008 17:25 Bitte antworten an [email protected] An [email protected] Kopie Thema Re: [Webtest] Ajax and oncomplete Hi, you can try <config easyajax="true".../> or <groovy> import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController as NRAC step.context.webClient.ajaxController = new NRAC(); </groovy> Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com [EMAIL PROTECTED] wrote: > > Hello, > > I have an issue regarding Ajax calls and its completion. > ... > <h:outputText id="ajaxOutput" value="#{ajaxAction.counter}" /> > ... > <a4j:commandLink id="ajaxAction" value="ajaxAction!" > action="#{ajaxAction.ajaxAction}" > reRender="ajaxPanel" /> > > The action just increases the counter each second up to five > > for (int i=0;i<5;i++){ > counter++; > Thread.sleep(1000); > } > > But the following webtest returns immediatly, so that I read a 0 instead > of a 5: > > <invoke description="Start page" > url="_http://../ajaxAction.seam_ <http:/>"/> > > <!--value should be 0--> > <storeXPath description="ajax start count" > xpath="//[EMAIL PROTECTED]'ajaxOutput']" > property="count_start" /> > > > <clickLink description="Action" > htmlid="ajaxActionForm:ajaxAction"/> > > <sleep seconds="10"/> > > <!-- value should be 5--> > <storeXPath description="ajax end count" > xpath="//[EMAIL PROTECTED]'ajaxOutput']" > property="count_End" /> > > > Are there any parameters in clickLink which let it wait for the > "oncomplete"? > > Kind regards, > Alhousseine > > > > > If you are not the intended addressee, please inform us immediately that > you have received this e-mail in error, and delete it. We thank you for > your cooperation. > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.

