| Page 1 of 1 | [ 2 posts ] |
|
Hi all,
So I am trying to use the YUITest Selenium Driver to run with YUITest Coverage for CI. However I cannot seem to find how to run all my tests using the driver, and I can't find the answer in the documentation at http://yuilibrary.com/yuitest/ Here's what I have. I have all my tests separated into the modules they test, like: Code: build.xml module1 - js - test - mod1_test1.js - mod1_test2.js module2 - js - test - mod2_test1.js - mod2_test2.js ... I have used the yuitest-coverage.jar to create the instrumented js code under coverage/ from the parent directory above. This seems to work fine. I have copied the selenium-java-client-driver.jar under lib/ext/ of my JRE ok and have added an Ant task to start the Selenium Server (selenium-server-standalone-2.20.0.jar) using the defaults, so connecting a browser to http://localhost:4444/wd/hub brings me to the Sessions hub. My problem comes when I try to run the yuitest-selenium-driver.jar. I can't seem to figure out how to run the tests (now under the coverage/ dir). The command I have been playing about with, trying to execute just one of the example tests is: Code: java -jar yuitest-selenium-driver.jar --verbose --browsers *firefox,*chrome --resultsdir results/ --coveragedir coverage/ file://yahoo/example/test/basic-usage-example.htm When I run this task, I get the following problem: Code: [java] [ERROR] Selenium failed with message: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMLocation.href]. Check the test URL file://yahoo/example/test/basic-usage-example.htm to ensure it is valid. [java] java.lang.Exception: Selenium failed with message: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMLocation.href]. Check the test URL file://yahoo/example/test/basic-usage-example.htm to ensure it is valid. [java] at com.yahoo.platform.yuitest.selenium.SeleniumDriver.runTestPage(SeleniumDriver.java:423) [java] at com.yahoo.platform.yuitest.selenium.SeleniumDriver.runTestGroupUnopt(SeleniumDriver.java:260) [java] at com.yahoo.platform.yuitest.selenium.SeleniumDriver.runTestGroup(SeleniumDriver.java:210) [java] at com.yahoo.platform.yuitest.selenium.SeleniumDriver.runTests(SeleniumDriver.java:184) [java] at com.yahoo.platform.yuitest.selenium.YUITestSeleniumDriver.main(YUITestSeleniumDriver.java:183) [java] Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMLocation.href] [java] at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97) [java] at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91) [java] at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:335) [java] at com.yahoo.platform.yuitest.selenium.SeleniumDriver.runTestPage(SeleniumDriver.java:345) [java] ... 4 more I know that I am probably doing something stupid, but any help would be greatly appreciated. Any other info I can provide I'll be happy to. |
Evan CulverYUI Contributor
|
Hi,
I Think you're just missing a slash in your URL. file://yahoo/example/test/basic-usage-example.htm should be: file:///yahoo/example/test/basic-usage-example.htm You can test its validity by putting it in a browser and seeing if it resolves. |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group