Java 用Maven进行硒RC测试

Java 用Maven进行硒RC测试,java,maven-2,selenium-rc,Java,Maven 2,Selenium Rc,我正在尝试使用maven运行一系列selenium测试,但出现以下错误: Running com.myapp.web.selenium.MySeleniumTest WARN [SocketListener0-1] HttpConnection - POST /selenium-server/driver/ HTTP/1.1 java.lang.RuntimeException: Firefox refused shutdown while preparing a profile

我正在尝试使用maven运行一系列selenium测试,但出现以下错误:

Running com.myapp.web.selenium.MySeleniumTest
WARN  [SocketListener0-1] HttpConnection - POST /selenium-server/driver/ HTTP/1.1
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:27
7)
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:147)
        at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchRemoteSession(AbstractBrowserLauncher.java:24)
        at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:587)
        .............
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! C:\DOCUME~1\Fl
orin\LOCALS~1\Temp\customProfileDir894171\parent.lock
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:235)
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:27
我使用的是Firefox 3.6.8、selenium java客户端驱动程序0.9.2和selenium服务器0.9.2。 我通过以下测试启动selenium服务器:

private static void initServer() throws Exception {
    String[] args = new String[]{"-port", String.valueOf(4444)};
    SeleniumServer.main(args);
}

selenium配置文件似乎已被锁定且未发布,以便后续测试可以使用它。

无法说明具体内容,但我可以说明我在Firefox 3.6上的selenium测试中遇到了一些问题。(忘记版本)。当我回到上一个3.5版本时,它照常工作。如果回到老版本的firefox不是什么大不了的事,那可能值得一试。否则,我不确定

无法谈论具体细节,但我可以说我在Firefox 3.6上的Selenium测试中遇到了一些问题。(忘记版本)。当我回到上一个3.5版本时,它照常工作。如果回到老版本的firefox不是什么大不了的事,那可能值得一试。否则,我不确定

我对mvn selenium:selenese maven的进球有问题

我放弃使用它,因为我认为selenium maven插件附带了selenium RC的旧版本


我的解决方案是使用在maven之外运行的上一个Selenium RC版本作为独立服务器,我将Selenium测试作为集成测试运行

我对mvn Selenium:selenese maven目标有问题

我放弃使用它,因为我认为selenium maven插件附带了selenium RC的旧版本


我的解决方案是使用在maven之外运行的上一个Selenium RC版本作为独立服务器,我将Selenium测试作为集成测试运行

您使用的Selenium版本实际上已经很旧了。你试过使用Selenium Maven插件吗?根据我的经验,Selenium经常需要升级以适应新版本的浏览器。

您使用的Selenium版本实际上已经很旧了。你试过使用Selenium Maven插件吗?根据我的经验,Selenium经常需要升级以适应新版本的浏览器。

我返回到Firefox 3.5.11,但仍然出现相同的错误。我返回到Firefox 3.5.11,但仍然出现相同的错误。