Issue 1360 in selenium: selenium webdriver, parallel execution, htmlunit

12 views
Skip to first unread message

sele...@googlecode.com

unread,
Mar 4, 2011, 5:26:19 AM3/4/11
to selenium-deve...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1360 by phil.kem...@googlemail.com: selenium webdriver, parallel
execution, htmlunit
http://code.google.com/p/selenium/issues/detail?id=1360

What steps will reproduce the problem?
1. Start selenium-server-standalone-2.0b2.jar on remote server
2. Connect with remote client API to this server using 10 simultane exact
same test:
start_test1 & start_test1 & start_test1 & start_test1 & start_test1 &
start_test1 & start_test1 & start_test1 & start_test1 & start_test1


What is the expected output? What do you see instead?
I expected to get 10 times the same result. Instead, i get a lot of errors
in using htmlunit:

java.lang.reflect.UndeclaredThrowableException
at $Proxy3.submit(Unknown Source)
at
org.openqa.selenium.remote.server.handler.SubmitElement.call(SubmitElement.java:30)
at
org.openqa.selenium.remote.server.handler.SubmitElement.call(SubmitElement.java:1)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.openqa.selenium.remote.server.KnownElements$1.invoke(KnownElements.java:59)
... 8 more
Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot
read property "first" from undefined (script in
http://www.google.de/search?hl=de&source=hp&q=hallo&btnG=Google-Suche&aq=f&aqi=g10&aql=&oq=
from (8, 35417) to (14, 406)#9)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:601)
at
net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:499)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:474)
at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:880)
at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:312)
at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:379)
at
com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225)
at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:245)
at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:578)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:536)
at
org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
at
org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
at
org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
at
org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
at
org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:765)
at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:211)
at
com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:165)
at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:225)
at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:108)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:429)
at
com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2127)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:627)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:705)
at
com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1265)
at
com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1214)
at
com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1177)
at
org.openqa.selenium.htmlunit.HtmlUnitWebElement.submitForm(HtmlUnitWebElement.java:158)
at
org.openqa.selenium.htmlunit.HtmlUnitWebElement.submit(HtmlUnitWebElement.java:113)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement$1.invoke(EventFiringWebDriver.java:298)
at $Proxy5.submit(Unknown Source)
at
org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.submit(EventFiringWebDriver.java:316)
... 12 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError:
Cannot read property "first" from undefined (script in
http://www.google.de/search?hl=de&source=hp&q=hallo&btnG=Google-Suche&aq=f&aqi=g10&aql=&oq=
from (8, 35417) to (14, 406)#9)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3750)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3778)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3797)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3810)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1490)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1399)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:269)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3162)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:490)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:595)
... 54 more


What version of the product are you using? On what operating system?

Selenium Server 2.02b on linux.

Please provide any additional information below.

sele...@googlecode.com

unread,
Apr 13, 2011, 5:52:34 PM4/13/11
to selenium-deve...@googlegroups.com

Comment #1 on issue 1360 by kristian...@gmail.com: selenium webdriver,

Are you able to run the same tests concurrently on firefox ? The
selenium-server/firefox combination is known to work well in parallel and
it would be really nice if you could verify that this works as expected to
rule out any thread safety issues in your own test suite.

sele...@googlecode.com

unread,
Apr 14, 2011, 2:06:33 AM4/14/11
to selenium-deve...@googlegroups.com

Comment #2 on issue 1360 by phil.kem...@googlemail.com: selenium webdriver,

Hi, yeah, Firefox works fine.

sele...@googlecode.com

unread,
Apr 15, 2011, 3:12:18 AM4/15/11
to selenium-deve...@googlegroups.com

Comment #3 on issue 1360 by mguille...@yahoo.fr: selenium webdriver,

Can you provide the code you are running?

sele...@googlecode.com

unread,
Apr 21, 2011, 2:30:04 AM4/21/11
to selenium-deve...@googlegroups.com

Comment #4 on issue 1360 by phil.kem...@googlemail.com: selenium webdriver,

Yes, it's attached.

Attachments:
test.php 916 bytes

sele...@googlecode.com

unread,
Sep 2, 2011, 2:59:59 PM9/2/11
to selenium-deve...@googlegroups.com
Updates:
Status: WontFix

Comment #5 on issue 1360 by david.bu...@theautomatedtester.co.uk: selenium

webdriver, parallel execution, htmlunit
http://code.google.com/p/selenium/issues/detail?id=1360

This appears to be an issue with HTMLUnit, please can you raise it with
them at http://htmlunit.sourceforge.net/

sele...@googlecode.com

unread,
Dec 14, 2011, 3:07:34 AM12/14/11
to selenium-deve...@googlegroups.com

Comment #6 on issue 1360 by pedrou.r...@gmail.com: selenium webdriver,

I'm experiencing the same problem:

net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot
read property "top" from null

Reply all
Reply to author
Forward
0 new messages