tools.jarに問題があったため、jdkをダウンロードして環境変数を変更しました。
これで、HUBとRCをリッスンしています。
しかし、テストスクリプトを実行すると、Firefoxを起動できません
Firefox 3.6をアンインストールして再度インストールし、Firefoxの新しいプロファイルを作成するのに疲れました。
selenium-server.jarに移動し、解凍して、このJAR内のすべての(5つのうちの)「install.rdf」ファイルを見つけます(これらはcustomProfileDirCUSTFFおよびcustomProfileDirCUSTFFCHROMEサブフォルダーの下にあります)。
Changed the line from this <em:maxVersion>3.5.*</em:maxVersion> to this <em:maxVersion>3.6.*</em:maxVersion>
しかし、それでもFirefoxブラウザは起動されません。助けてください。
エラーメッセージは次のとおりです。
C:\selenium\launch>title RC5560
C:\selenium\launch>cd C:\selenium\Grid\selenium-grid-1.0.4
C:\selenium\Grid\selenium-grid-1.0.4>C:\ant\bin\ant -DseleniumArgs="-firefoxProf
ileTemplate C:\Firefoxprofile -userExtensions 'C:\selenium\abilityplayer\Seleniu
m Extension scripts\CORE Extension\user-extensions.js'" -Denvironment="*firefox"
-Dport=5560 launch-remote-control
Buildfile: build.xml
launch-remote-control:
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.RegistrationRequest execute
[java] INFO: Registering to http://localhost:4444/registration-manager/regi
ster
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: Starting selenium server with options:
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: -firefoxProfileTemplate
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: C:\Firefoxprofile
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: -userExtensions
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: C:\selenium\abilityplayer\Selenium Extension scripts\CORE Exte
nsion\user-extensions.js
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: -port
[java] jan 23, 2013 9:58:16 AM com.thoughtworks.selenium.grid.remotecontrol
.SelfRegisteringRemoteControl launch
[java] INFO: 5560
[java] 09:58:16.543 INFO - Java: Oracle Corporation 23.6-b04
[java] 09:58:16.543 INFO - OS: Windows XP 5.1 x86
[java] 09:58:16.543 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
[java] 09:58:16.652 INFO - Version Jetty/5.1.x
[java] 09:58:16.652 INFO - Started HttpContext[/selenium-server/driver,/sel
enium-server/driver]
[java] 09:58:16.652 INFO - Started HttpContext[/selenium-server,/selenium-s
erver]
[java] 09:58:16.652 INFO - Started HttpContext[/,/]
[java] 09:58:16.652 INFO - Started SocketListener on 0.0.0.0:5560
[java] 09:58:16.652 INFO - Started org.mortbay.jetty.Server@1eae15f
[java] 09:58:29.118 INFO - Checking Resource aliases
[java] 09:58:29.118 INFO - Checking Resource aliases
[java] 09:58:29.118 INFO - Command request: getNewBrowserSession[*firefox,
http://ondemand.shl.com/] on session null
[java] 09:58:29.134 INFO - creating new remote session
[java] 09:58:29.321 INFO - Allocated session 3c67617374474d1c98f449a724ecb9
68 for http://ondemand.shl.com/, launching...
[java] 09:58:31.024 INFO - Preparing Firefox profile...
[java] 09:58:54.035 ERROR - Failed to start new browser session, shutdown b
rowser and clear all session data
[java] java.lang.RuntimeException: Firefox refused shutdown while preparing
a profile
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLaun
cher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:311)
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLaun
cher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106)
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLaun
cher.launch(FirefoxChromeLauncher.java:83)
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLaun
cher.launchRemoteSession(FirefoxChromeLauncher.java:350)
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.l
aunchRemoteSession(FirefoxLauncher.java:98)
[java] at org.openqa.selenium.server.BrowserSessionFactory.createNewRem
oteSession(BrowserSessionFactory.java:357)
[java] at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowse
rSession(BrowserSessionFactory.java:122)
[java] at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowse
rSession(BrowserSessionFactory.java:84)
[java] at org.openqa.selenium.server.SeleniumDriverResourceHandler.getN
ewBrowserSession(SeleniumDriverResourceHandler.java:699)
[java] at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCo
mmand(SeleniumDriverResourceHandler.java:393)
[java] at org.openqa.selenium.server.SeleniumDriverResourceHandler.hand
leCommandRequest(SeleniumDriverResourceHandler.java:364)
[java] at org.openqa.selenium.server.SeleniumDriverResourceHandler.hand
le(SeleniumDriverResourceHandler.java:125)
[java] at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
[java] at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
[java] at org.mortbay.http.HttpServer.service(HttpServer.java:909)
[java] at org.mortbay.http.HttpConnection.service(HttpConnection.java:8
20)
[java] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.jav
a:986)
[java] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:83
7)
[java] at org.mortbay.http.SocketListener.handleConnection(SocketListen
er.java:245)
[java] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:35
7)
[java] at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:53
4)
[java] Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChrome
Launcher$FileLockRemainedException: Lock file still present! C:\DOCUME~1\ARTPUS~
1\LOCALS~1\Temp\customProfileDir3c67617374474d1c98f449a724ecb968\parent.lock
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLaun
cher.waitForFileLockToGoAway(FirefoxChromeLauncher.java:269)
[java] at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLaun
cher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:309)
[java] ... 20 more
Firefoxが起動の準備をすると、フォルダが作成されます(たとえば)C:\Documents and Settings\USER\Local Settings\Temp\customProfileDird47599b65f3246a9b14e72e6d7fdda84
Parent.lockファイルが作成されます。これにより、Firefoxの起動が妨げられている可能性があります。