我正在尝试将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
我有jenkins 1.452和seleniumHQ2.0
如有帮助将不胜感激。