×
Maintenance Notice: labkey.org will be offline for maintenance tonight @ 7pm Pacific Time. The estimated downtime will be approximately one hour. Sorry for any inconvenience this may cause.
drt problem wnels2  2009-01-08 11:02
Status: Closed
 
I'm trying to run the drt targets from the command prompt, from the LABKEY_HOME/server/test/build.xml, in release 8.3 and I'm getting and error.
...
[junit] Loading scripts from seleniumHelpers.js

[junit] testSteps(org.labkey.test.drt.XTandemTest)
[junit] com.thoughtworks.selenium.SeleniumException: ERROR Server Exception: sessionId should not be null; has this session been started yet?
[junit] at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73)
[junit] at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:154)
[junit] at com.thoughtworks.selenium.DefaultSelenium.getEval(DefaultSelenium.java:334)
[junit] at org.labkey.test.BaseSeleniumWebTest.setUp(BaseSeleniumWebTest.java:102)
....

Josh sent me to http://blog.taragana.com/index.php/archive/9-important-tips-for-selenium-remote-control-java-client-test-tool/ for some trouble shooting tips. At this site they said that the error was caused by firefox not being on the path. I added it to the path and confirmed that it will open from the command line but same error. I updated from firefox 3.0.4 to 3.0.5 but still same error. The tests have been working previously. I have installed chrome since my last successful test? Has anybobody seen this error before?
Thanks,
Bill
 
 
jeckels responded:  2009-01-08 11:08
Hi Bill,

Sorry I didn't think of this before, but the version of Selenium we're using doesn't work with Firefox 3. Try installing Firefox 2 in a different directory (they can coexist without problems), put it first on your path, and see if that helps.

Thanks,
Josh
 
kevink responded:  2009-01-08 13:27
The more recent builds of selenium will work with Firefox 3, but they haven't made an official build yet. I've been running some old version for a while now without any problems except for the Study BVT running slowly.

You can find the nightly builds of selenium here:

http://nexus.openqa.org/content/repositories/snapshots/org/openqa/selenium/selenium-remote-control/1.0-SNAPSHOT/

Dig around in one of the selenium-remote-control-1.0-XXXXX-dist.zip files to find selenium-server.jar and selenium-java-client-driver.jar and replace your local versions in <labkey-root>/server/test/lib. Before replacing the jars, run "ant stopSeleniumServer" from the server/test directory.

Kevin