How do I increase the java heap size when using webtest?

 

Here's the error msg.

 

BUILD FAILED

C:\DOCUME~1\U999L8T\MYDOCU~1\Tests\webtestRoutines\webtestRoutines\finan
alysis.x

ml:15: Canoo Webtest: R_1581.

Test failed.

Exception raised: java.lang.OutOfMemoryError: Java heap
spacejava.lang.OutOfMemo

ryError: Java heap space

        at
org.mozilla.javascript.Interpreter.initFrame(Interpreter.java:3780)

        at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:304

1)

        at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)

        at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.j

ava:175)

        at
org.mozilla.javascript.Context.evaluateString(Context.java:1132)

        at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(Jav

aScriptEngine.java:255)

        at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFil

e(HtmlPage.java:775)

        at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(H

tmlScript.java:229)

        at
com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.

java:1409)

        at
com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:6

03)

        at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.star

tElement(HTMLParser.java:406)

        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour

ce)

        at
org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.j

ava:179)

        at
org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBind

er.java:286)

        at
org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.j

ava:1009)

        at
org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:

639)

        at
org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLSc

anner.java:2407)

        at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1

881)

        at
org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)

        at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478

)

        at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431

)

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.pars

e(HTMLParser.java:346)

        at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:2

29)

        at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(Defau

ltPageCreator.java:112)

        at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPa

geCreator.java:85)

        at
com.canoo.webtest.engine.Configuration$1.createPage(Configuration.jav

a:490)

        at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient

..java:441)

        at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)

        at
com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:877

)

        at
com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_open

(Window.java:242)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 




-----------------------------------------
**************************************************
This e-mail and any of its attachments may contain Exelon
Corporation proprietary information, which is privileged,
confidential, or subject to copyright belonging to the Exelon
Corporation family of Companies.
This e-mail is intended solely for the use of the individual or
entity to which it is addressed.  If you are not the intended
recipient of this e-mail, you are hereby notified that any
dissemination, distribution, copying, or action taken in relation
to the contents of and attachments to this e-mail is strictly
prohibited and may be unlawful.  If you have received this e-mail
in error, please notify the sender immediately and permanently
delete the original and any copy of this e-mail and any printout.
Thank You.
**************************************************

Reply via email to