[JIRA] Created: (SEL-722) Java exception occurs when running testrunner and using Firefox3 as your browser

1 view
Skip to first unread message

Franco DeAmicis (JIRA)

unread,
Nov 5, 2009, 10:32:26 AM11/5/09
to selenium-deve...@googlegroups.com
Java exception occurs when running testrunner and using Firefox3 as your browser
--------------------------------------------------------------------------------

Key: SEL-722
URL: http://jira.openqa.org/browse/SEL-722
Project: Selenium
Issue Type: Bug
Components: TestRunner GUI/Suite Loader
Affects Versions: 1.0.1
Environment: WIndows Vista
Firefox 3.0
Selenium 1.01
Testrunner
Reporter: Franco DeAmicis
Priority: Critical
Attachments: 64bitexception.txt, javaerror.txt, javscreen.jpg

I've created an automated test script. I am running this script with testrunner using firefox3.0 as the browser.

1.) I've opened a DOS box

2.) The directory I'm running the script from is
c:\Program files (x86)\java\jre6\bin

3.) My command line is
java -jar "C:\RC1\selenium-remote-control-1.0.1\selenium-server-1.0.1\selenium-server.jar" -timeout 100 -singlewindow -userExtensions
user-extensions.js -htmlsuite "*firefox3" "http://webfx/" "G:\Development\QA\SeleniumTests\Publishing\WebfxSuite" "G:\Development\QA\SeleniumTests\Publishing\WebfxResults.html"

4.) I'm using firefox as the browser (as noted by the *firefox parameter)

5.) When I hit enter, the script performs successfully. However the script does not terminate successfully

6.) An HTML suite exception is thrown:
HTML suite exception seen:
org.openqa.selenium.server.SeleniumCommandTimedOutException
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL
auncher.java:138)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL
auncher.java:174)
at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer
.java:524)
at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:23
2)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:18
8)

7.) Because of this exception, the results of the test are not logged to the results.html file

8.) This exception only occurs when I use the *Firefox3 browser parameter. IT does not occur when I use *iehta

As well, I can only use *firefox3 as a parameter in the c:\Program files (x86)\java\jre6\bin directory. If I try to use *firefox3 in the 64 bit directory, I get the following exception:
C:\Program Files\Java\jre6\bin>java -jar "C:\RC1\selenium-remote-control-1.0.1\s
elenium-server-1.0.1\selenium-server.jar" -timeout 100 -singlewindow -userExtens
ions user-extensions.js -htmlsuite "*firefox3" "http://webfx/" "G:\Development\Q
A\SeleniumTests\Publishing\WebfxSuite" "G:\Development\QA\SeleniumTests\Publishi
ng\WebfxResults.html"
10:28:43.164 INFO - Java: Sun Microsystems Inc. 11.3-b02
10:28:43.179 INFO - OS: Windows Vista 6.0 amd64
10:28:43.179 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
10:28:43.242 INFO - Version Jetty/5.1.x
10:28:43.242 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
10:28:43.242 INFO - Started HttpContext[/selenium-server,/selenium-server]
10:28:43.242 INFO - Started HttpContext[/,/]
10:28:43.257 INFO - Started SocketListener on 0.0.0.0:4444
10:28:43.257 INFO - Started org.mortbay.jetty.Server@2e0ece65
HTML suite exception seen:
java.lang.RuntimeException: java.lang.RuntimeException: Firefox 3 could not be f
ound in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.cr
eateBrowserLauncher(BrowserLauncherFactory.java:153)
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.ge
tBrowserLauncher(BrowserLauncherFactory.java:98)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.getBrowserLauncher
(HTMLLauncher.java:66)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL
auncher.java:122)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL
auncher.java:174)
at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer
.java:524)
at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:23
2)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:18
8)
Caused by: java.lang.RuntimeException: Firefox 3 could not be found in the path!

Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
at org.openqa.selenium.server.browserlaunchers.locators.SingleBrowserLoc
ator.findBrowserLocationOrFail(SingleBrowserLocator.java:21)
at org.openqa.selenium.server.browserlaunchers.BrowserInstallationCache.
locateBrowserInstallation(BrowserInstallationCache.java:26)
at org.openqa.selenium.server.browserlaunchers.Firefox3Launcher.<init>(F
irefox3Launcher.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.cr
eateBrowserLauncher(BrowserLauncherFactory.java:146)
... 7 more

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply all
Reply to author
Forward
0 new messages