当我在Jenkins上运行selenium IDE脚本时,我遇到了HTML套件异常

当我在Jenkins上运行selenium IDE脚本时,我遇到了HTML套件异常,jenkins,selenium-ide,Jenkins,Selenium Ide,Firefox安装在-C:\Program Files\Mozilla Firefox中 我在环境变量*firefox C:\Program Files x86\Mozilla firefox\中添加了路径,不带引号 使用的Selenium版本-Selenium-server-standalone-2.39.0.jar Mozilla Firefox版本-30.0 操作系统-Windows 8.1不需要*firefox部分。只要确保路径在路径的定义中就可以了。您可以使用echo%PATH%Rem

Firefox安装在-C:\Program Files\Mozilla Firefox中 我在环境变量*firefox C:\Program Files x86\Mozilla firefox\中添加了路径,不带引号

使用的Selenium版本-Selenium-server-standalone-2.39.0.jar Mozilla Firefox版本-30.0
操作系统-Windows 8.1

不需要*firefox部分。只要确保路径在路径的定义中就可以了。您可以使用echo%PATH%Removed*firefox签入cmd窗口,当前路径为C:\Program Files\Mozilla firefox\t仍然不走运错误持续出现,Windows 8专家会插话。如果是Linux,您可以运行哪个firefox来查找可执行文件的实际路径。
HTML suite exception seen:
java.lang.RuntimeException: 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:
*firefox3 c:\blah\firefox.exe
    at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:195)
    at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.getBrowserLauncher(BrowserLauncherFactory.java:109)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.getBrowserLauncher(HTMLLauncher.java:79)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:139)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:198)
    at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:640)
    at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:305)
    at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:245)
    at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:96)
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:
*firefox3 c:\blah\firefox.exe
    at org.openqa.selenium.browserlaunchers.locators.CombinedFirefoxLocator.findBrowserLocationOrFail(CombinedFirefoxLocator.java:49)
    at org.openqa.selenium.server.browserlaunchers.BrowserInstallationCache.locateBrowserInstallation(BrowserInstallationCache.java:46)
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.<init>(FirefoxChromeLauncher.java:53)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:184)
    ... 8 more
Publishing Selenium report...
ERROR: Publisher org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher aborted due to exception
java.lang.NullPointerException
    at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:79)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
    at hudson.model.Build$BuildExecution.post2(Build.java:183)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
    at hudson.model.Run.execute(Run.java:1757)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:234)
Finished: FAILURE