我正在尝试将 Jenkins 与 Selenium 集成。我准备了以下命令:
java -jar <Full Path of the Selenium RC Jar, including jar file name> \
-htmlSuite *firefox "<Application URL>" \
"<Test Suite Path Including test suite name>" "<Results file name>"
当我在命令行中执行命令时,它工作正常。然后我通过 Jenkins 调用了相同的命令,我得到了以下错误:
INFO - Preparing Firefox profile...
HTML suite exception seen:
java.lang.RuntimeException: Timed out waiting for profile to be created!
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:360)
at
然后我们为 Firefox 创建了一个配置文件并使用该配置文件运行。现在我收到以下错误:
516 [main] INFO org.openqa.jetty.util.Container - Started org.openqa.jetty.jetty.Server@13f3045
HTML suite exception seen:
java.lang.NullPointerException
at org.openqa.selenium.io.FileHandler.copyDir(FileHandler.java:229)
at org.openqa.selenium.io.FileHandler.copy(FileHandler.java:213)
at org.openqa.selenium.io.FileHandler.copy(FileHandler.java:200)
at org.openqa.selenium.browserlaunchers.LauncherUtils.copyDirectory(LauncherUtils.java:223)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.copyDirectory(FirefoxChromeLauncher.java:147)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.initProfileTemplate(FirefoxChromeLauncher.java:174)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.makeCustomProfile(FirefoxChromeLauncher.java:221)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:89)
at
我有詹金斯 1.452 和 seleniumHQ2.0
在这方面的任何帮助将不胜感激。