As I'm new to Webtest I have a couple of basic questions please: 1) Is Groovy an integral part of Webtest (i.e. is it bundled in or do I need to include one or more additional jar files from some place) ? 2) The Groovy syntax you specified - whereabouts in my XML build file do I place that step ?
Marc Guillemot <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 12/11/2007 06:56 AM Please respond to [email protected] To [email protected] cc Subject Re: [Webtest] Specifying WaitingRefreshHandler or ThreadedRefreshHandler ... Adrian Porter wrote: > > My build file generates the OutOfMemory error shown below, at run time. > How can I specify usage of WaitingRefreshHandler or > ThreadedRefreshHandler instead of ImmediateRefreshHandler, as suggested > below ? > > > [clickButton] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo > Webtest: R_1217. > [clickButton] INFO (com.canoo.webtest.steps.Step) - Exception thrown > from this class: com.canoo.webtest.engine.StepExecutionException > [clickButton] INFO (com.canoo.webtest.steps.Step) - Message was: > Unexpected exception caught: java.lang.RuntimeException: Refresh Aborted > by HtmlUnit: Attempted to refresh a page using an > ImmediateRefreshHandler which could have caused an OutOfMemoryError > Please use WaitingRefreshHandler or ThreadedRefreshHandler instead. > > BUILD FAILED > com.canoo.webtest.engine.StepExecutionException: Unexpected exception > caught: java.lang.RuntimeException: Refresh Aborted by HtmlUnit: > Attempted to refresh a page using an ImmediateRefreshHandler which could > have caused an OutOfMemoryError Please use WaitingRefreshHandler or > ThreadedRefreshHandler instead., Step: ClickButton at > H:\ADRIAN\PUBLIC\webtest\XBLIST_Filter_Bottom.xml:159: with > (saveResponse="true", description="Open the XBLIST page", > label="Retrieve Data", stepType="clickButton", savePrefix="xblist1.5") > at > com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:607) Hi, the question is: how do you want the refresh to be handled on this page? You can change the refresh handler used with something like: <groovy> step.context.webClient.refreshHandler = new XXX // <- what you want here </groovy> Marc. -- Blog: http://mguillem.wordpress.com _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

