I downloaded selenium source code based on the doc
http://code.google.com/p/selenium/wiki/BuildingWebDriver
When I run build at windows XP with 'go' command, the test failed with
the messages:
.
.
Testing: //javascript/atoms:test
Testing: //javascript/webdriver-atoms:test
Testing: //javascript/selenium-atoms:test
Testing: //javascript/selenium-core:test
Testing: //java/client/test/org/openqa/selenium/atoms:test
Testing: //java/client/test/org/openqa/selenium/support:test
Compiling: //java/client/src/org/openqa/selenium/internal/
seleniumemulation:seleniumemulation as build\java\client\src\o
rg\openqa\selenium\internal\seleniumemulation\seleniumemulation.jar
Compiling: //java/client/test/org/openqa/selenium:tests as build\java
\client\test\org\openqa\selenium\tests.jar
Compiling: //java/client/test/org/openqa/selenium/htmlunit:test as
build\java\client\test\org\openqa\selenium\htmlunit\t
est.jar
Testing: //java/client/test/org/openqa/selenium/htmlunit:test
go aborted!
org.apache.tools.ant.BuildException: Test
org.openqa.selenium.htmlunit.JavascriptEnabledHtmlUnitDriverTestSuite
failed
(See full trace by running task with --trace)
At the TEST-
org.openqa.selenium.htmlunit.JavascriptEnabledHtmlUnitDriverTestSuite.txt
log file has following error messages at bottom:
Testcase: testPac took 0 sec
Testcase: testShouldPickUpStyleOfAnElement took 0.032 sec
Testcase: testShouldHandleNonIntegerPositionAndSize took 0.016 sec
Testcase: testShouldAllowInheritedStylesToBeUsed took 0.047 sec
Testcase: testShouldCorrectlyIdentifyThatAnElementHasWidth took 0.281
sec
Testcase: testCorrectlyDetectMapElementsAreShown took 0.031 sec
Testcase: testCanClickOnSuckerFishMenuItem took 0.062 sec
FAILED
null
junit.framework.AssertionFailedError: null
at
org.openqa.selenium.RenderedWebElementTest.testCanClickOnSuckerFishMenuItem(RenderedWebElementTest.java:
161)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
------------------------------------------------------------------------------------------------------------------------------
I do see several javascript loading error messages also:
4765 [main] ERROR com.gargoylesoftware.htmlunit.html.HtmlPage - Error
loading JavaScript from [
http://localhost:27993/common/javascripts/
prototype.js].
java.io.IOException: Unable to download JavaScript from 'http://
localhost:27993/common/javascripts/prototype.js' (status 404).
at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:
1013)
at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:
959
Any ideas about these errors? Anyway to skip this test if it can not
be fixed easily?
Thanks
Tom Shi