Hi,

I have been playing around with gradle and I am now trying to create a new
task which will run our selenium tests.  As I understand it, because we are
trying to call the selenium API from within our build scripts we need to add
selenium to the build classpath.  For example:

--- createTask('startSeleniumServer') {
   new org.openqa.selenium.server.SeleniumServer()
}
--- 

I have tried adding the following in my settings.gradle:

--- 
addMavenRepo()
addMavenRepo('http://nexus.openqa.org/content/repositories/releases') // for
Selenium
dependencies('org.seleniumhq.selenium.server:selenium-server-coreless:1.0-beta-2')
---

but that fails with a ClassNotFoundException for
org.mortbay.http.HttpHandler.  If I add a dependency on the embedded jetty
which seems to contain that class (settings.gradle):

---
dependencies('jetty:jetty-embedded:6.0.2')
---

then I get the following error:

--- 
sealing violation: package org.mortbay.util is sealed
---

I have tried researching how to configure selenium with gradle but just
cannot find any clear, definitive guides (or even ambiguous and loose guides
;)).  Has anybody here done it, and can anybody give any hints?

It would be *excellent* if there was a sample web application which included
a selenium test - it is pretty populate and if people get this "out of the
box" so to speak, wow!

Many thanks,

Col
-- 
View this message in context: 
http://www.nabble.com/Any-examples-of-running-selenium--tp23099964p23099964.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to