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