centOS、Jenkins、Firefox和;Selenium网格--无法创建ProfileException
我们让Jenkins在centOS虚拟机上运行headless,并通过另一台计算机上的http调用访问它 我有一个运行UI Selenium测试的项目,除了firefox测试外,所有测试都运行良好。它抱怨配置文件不在centOS虚拟机上,因此可以将其转发到windows虚拟机进行测试。有人知道如何在centOS上获得最新和最好的firefox吗?因为百胜只有17个firefox(headless centOS虚拟机)?另外,如果我只想在CentOS操作系统上scp当前的firefox配置文件,那么firefox配置文件存储在哪里?我没有想到任何其他解决方案?如果需要更多信息,请告诉我,jenkins错误如下:centOS、Jenkins、Firefox和;Selenium网格--无法创建ProfileException,firefox,selenium,jenkins,centos,selenium-webdriver,Firefox,Selenium,Jenkins,Centos,Selenium Webdriver,我们让Jenkins在centOS虚拟机上运行headless,并通过另一台计算机上的http调用访问它 我有一个运行UI Selenium测试的项目,除了firefox测试外,所有测试都运行良好。它抱怨配置文件不在centOS虚拟机上,因此可以将其转发到windows虚拟机进行测试。有人知道如何在centOS上获得最新和最好的firefox吗?因为百胜只有17个firefox(headless centOS虚拟机)?另外,如果我只想在CentOS操作系统上scp当前的firefox配置文件,那
org.openqa.selenium.firefox.UnableToCreateProfileException:给定的模型配置文件目录不存在:C:\Users\selenium\FirefoxDriver
构建信息:版本:“2.31.0”,修订版:“1bd294d”,时间:“2013-02-27 20:52:59”
系统信息:os.name:'Linux',os.arch:'amd64',os.version:'2.6.32-358.6.1.el6.x86_64',java.version:'1.7.0'
驱动程序信息:驱动程序。版本:未知
org.openqa.selenium.firefox.FirefoxProfile.verifyModel(FirefoxProfile.java:154)
org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:92)
org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:79)
com.igt.sqes.automation.selenium.factories.WebDriverFactory.createWebDriver(未知源)
com.igt.sqes.automation.arcus.setup.ArcusTestSuiteSetup.setup(未知源)
sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
org.testng.SuiteRunner.run(SuiteRunner.java:240)
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
org.testng.testng.runSuitesSequentially(testng.java:1198)
org.testng.testng.runSuitesSequentially(testng.java:1194)
org.testng.testng.runSuitesLocal(testng.java:1123)
org.testng.testng.run(testng.java:1031)
org.testng.testng.privateMain(testng.java:1338)
org.testng.testng.main(testng.java:1307)
从windows机箱运行时,它工作正常,因为驱动程序位于该位置,可以转发到测试vm。1。尝试安装新版本的Firefox 为了做到这一点,您可以使用Remi存储库
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
2。尝试复制现有配置文件并明确指定它
请参阅以下线程:让CentOS VM可以在运行Selnium节点的Windows VM上使用Firefox配置文件的一种方法是在Windows上创建指向Firefox配置文件的共享,然后在CentOS上装载该共享。以下是我用来实现这一目标的步骤:
FirefoxProfile profile=newfirefoxprofile(新文件(“/mnt/windowsShareName”);
DesiredCapabilities=DesiredCapabilities.firefox();
能力。设置能力(FirefoxDriver.PROFILE,PROFILE)
WebDriver driver=新的RemoteWebDriver(新的URL(gridHubURL),功能)代码>
我会尽快看的!