Hi Marc,
Effectively, you are right.
I made a test with a Javascript Bibliotheque called "overLIB", from Eric
Bosrup ("http://www.bosrup.com/web/overlib/").
I commented it and my tests are now working.
Merci beaucoup et meilleures Salutation de Kempten!
Pascal Lagassé
Projektentwicklung, Druckvorstufe
Kösel GmbH & Co. KG - Über 400 Jahre Bücher mit System
Am Buchweg 1
87452 Altusried-Krugzell
http://www.koeselbuch.de mailto:[EMAIL PROTECTED]
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Marc Guillemot
Gesendet: Dienstag, 14. November 2006 13:21
An: [EMAIL PROTECTED]
Betreff: Re: [Webtest] java.util.ConcurrentModificationException
Hi,
the application server doesn't matter, WebTest just sees a web server.
It seems that some javascript code in the page you invoke causes this
problem in htmlunit.
Can you reduce the page to the smallest one generating this error?
Marc.
Pascal Lagasse wrote:
Allo,
I tried successfully Canoo Webtest with various Server/Web sites.
I was able to test various Web Applications on Tomcat.
However, when testing a Web Application based on Jetspeed 1.6, I
received the following Exception:
Unexpected exception caught:
java.util.ConcurrentModificationException
Here is the content of result.xml
<?xml version="1.0" encoding="UTF-8"?> <summary
Implementation-Title="Canoo Webtest"
Implementation-Version="R_1393">
<testresult endtime="Tue Nov 14 13:01:26 CET 2006"
location="C:\ant\vru.xml:8: "
starttime="Tue Nov 14 13:01:25 CET 2006" successful="no"
testspecname="testVRU">
<config>
<parameter name="protocol" value="http"/>
<parameter name="summary" value="yes"/>
<parameter name="saveresponse" value="yes"/>
<parameter name="timeout" value="5000"/>
<parameter name="haltonerror" value="yes"/>
<parameter name="port" value="8080"/>
<parameter name="resultfile" value="results.xml"/>
<parameter name="showhtmlparseroutput" value="yes"/>
<parameter name="resultpath" value="C:\ant\webtest-results"/>
<parameter name="host" value="localhost"/>
<parameter name="haltonfailure" value="yes"/>
<parameter name="basepath" value="VRU"/>
<parameter name="saveprefix" value="response"/>
</config>
<results>
<step>
<parameter name="description" value="get"/>
<parameter name="method" value="GET"/>
<parameter name="taskName" value="invoke"/>
<parameter name="url"
value="http://localhost:8080/VRU/portal"/>
<result>
<failed duration="1253"/>
</result>
<htmlparser>
<error col="45" line="62"
url="http://localhost:8080/VRU/portal">Missing attribute name.</error>
</htmlparser>
</step>
<error
exception="com.canoo.webtest.engine.StepExecutionException"
message="Unexpected exception caught:
java.util.ConcurrentModificationException"><![CDATA[com.canoo.webtest.
engine
.StepExecutionException: Unexpected exception caught:
java.util.ConcurrentModificationException, Step: InvokePage at
C:\ant\vru.xml:31: with (description="get", method="GET",
taskName="invoke", url="http://localhost:8080/VRU/portal") at
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:463)
at
com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedException(Abst
ractBrowserAction.java:120) at
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java
:114) at
com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractTarg
etAction.java:106) at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTarge
tAction.java:78) at
com.canoo.webtest.steps.Step.execute(Step.java:132) at
org.apache.tools.ant.Task.perform(Task.java:364) at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:58
) at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39)
at com.canoo.webtest.steps.Step.execute(Step.java:132) at
org.apache.tools.ant.Task.perform(Task.java:364) at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:155) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j
ava:40) at
org.apache.tools.ant.Project.executeTargets(Project.java:1068) at
org.apache.tools.ant.Main.runBuild(Main.java:668) at
org.apache.tools.ant.Main.startAnt(Main.java:187) at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Caused by:
java.util.ConcurrentModificationException at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
at java.util.AbstractList$Itr.next(AbstractList.java:420) at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeOnLoadHandlersIfNeeded(Ht
mlPage.java:962) at
com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:1
45)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:4
40) at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:335)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
at
com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:6
9) at
com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTar
getAction.java:68) at
com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:
134)
at
com.canoo.webtest.steps.request.AbstractTargetAction$1.call(AbstractTargetAc
tion.java:108) at
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java
:88) ... 21 more ]]></error>
</results>
</testresult>
</summary>
Can someone help me?
Thank you very much,
Pascal Lagassé
Projektentwicklung, Druckvorstufe
Kösel GmbH & Co. KG - Über 400 Jahre Bücher mit System Am Buchweg 1
87452 Altusried-Krugzell
http://www.koeselbuch.de
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest