[ 7 posts ]

Mike Jacobs

  • Username: mnjacobs
  • Joined: Tue Jan 11, 2011 1:36 pm
  • Posts: 11
  • Offline
  • Profile
Tags:

Invoking YUI Test Selenium Driver

Post Posted: Thu Jan 13, 2011 8:04 am
+0-
The documentation for invoking unit tests via the YUI Selenium Driver specifies to use the jar file invocation style. The installation instructions indicate that the selenium-java-client-driver.jar be installed in the JRE /lib/ext/ directory.

Due to our shared (continuous integration) CI environment, it would be preferable not to install the client driver in the extensions directory. I would like to invoke the YUI Selenium Driver through the main class so that my CI ANT build script can control the class path to the client driver jar. I have been able to use the com.yahoo.platform.yuitest.selenium.YUITestSeleniumDriver and class path to invoke the tests (although I still have issues: [ERROR] Selenium failed with message: ERROR: Threw an exception: selenium.browserbot.getCurrentWindow().YUITest.ResultsFormat is undefined. Check the test URL ...).

I was wondering if calling the main class would be an appropriate alternative way to invoke the YUI test Selenium driver. If so, perhaps this could be documented as a supported approach. Could my error above be due to this approach?

Thanks,
Mike

Nicholas C. Zakas

YUI Developer

  • Username: nzakas
  • Joined: Wed Jan 07, 2009 2:01 pm
  • Posts: 30
  • GitHub: nzakas
  • Gists: nzakas
  • YUI Developer
  • Offline
  • Profile

Re: Invoking YUI Test Selenium Driver

Post Posted: Tue Jan 18, 2011 10:50 am
+0-
You should be able to do that. Can you paste in the command that you're using? I'll be happy to include it in the documentation.

The other error you're receiving is unrelated, and I'm looking at it now.

Mike Jacobs

  • Username: mnjacobs
  • Joined: Tue Jan 11, 2011 1:36 pm
  • Posts: 11
  • Offline
  • Profile

Re: Invoking YUI Test Selenium Driver

Post Posted: Tue Jan 18, 2011 12:58 pm
+0-
Code:
java -classpath <absolute path>\selenium-java-client-driver.jar;<absolute path>\yuitest-selenium-driver.jar com.yahoo.platform.yuitest.selenium.YUITestSeleniumDriver <driver options>

Johnny Weng Luu

YUI Contributor

  • Offline
  • Profile

Re: Invoking YUI Test Selenium Driver

Post Posted: Tue May 17, 2011 3:53 am
+0-
"I'll be happy to include it in the documentation."

Where is the documentation for YUITest Selenium Driver and YUITest Code Coverage?

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: Invoking YUI Test Selenium Driver

Post Posted: Tue May 17, 2011 4:03 am
+0-
Hello Johnny.

See http://yuilibrary.com/yuitest/

Examples and full documentation for Standalone YUITest, Code Coverage & the Selenium drivers are all available in the download file [1].

Hope that helps,
IceBox

[1] http://yuilibrary.com/downloads/#yuitest

Paul Brown

  • Username: peeb1907
  • Joined: Thu Mar 15, 2012 9:52 am
  • Posts: 1
  • Offline
  • Profile

Re: Invoking YUI Test Selenium Driver

Post Posted: Thu Mar 15, 2012 9:56 am
+0-
This doesn't appear to have ever been added to the documentation. If I'm wrong please correct me.

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: Invoking YUI Test Selenium Driver

Post Posted: Fri Mar 16, 2012 12:19 am
+0-
Hello Paul.

I confirm my previous post.

I downloaded the file yuitest_1.0.0b2.zip contained in the link suggested and docs and drivers are included.

Regards,
IceBox

P.S.: http://yuilibrary.com/download/yuitest/
  [ 7 posts ]
Display posts from previous:  Sort by  
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