Chúng ta có Jenkins chạy không đầu trên một vm centOS và truy cập nó thông qua một cuộc gọi http trên một máy tính khác.centOS, Jenkins, Firefox & Selenium GRID - CannotToCreateProfileException
Tôi có một dự án để chạy Kiểm tra giao diện người dùng Selenium, tất cả đều hoạt động tốt ngoại trừ các firefox. nó là phàn nàn về hồ sơ không được trên vm CentOS để nó có thể chuyển tiếp nó vào cửa sổ VM để thử nghiệm. Có ai biết làm thế nào để có được firefox mới nhất và lớn nhất trên centOS như yum chỉ có 17 (không đầu CentOS VM)? Ngoài ra, hồ sơ firefox được lưu trữ trên hệ điều hành CentOS nếu tôi chỉ muốn quét một hồ sơ firefox hiện tại trên máy ảo đó? Bất kỳ giải pháp khác mà tôi đã không nghĩ đến Hãy cho tôi biết nếu biết thêm là cần thiết, Jenkins lỗi dưới đây:
org.openqa.selenium.firefox.UnableToCreateProfileException: Given model profile directory does not exist: C:\Users\Selenium\FirefoxDriver Build info: version: '2.31.0', revision: '1bd294d', time: '2013-02-27 20:52:59' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-358.6.1.el6.x86_64', java.version: '1.7.0' Driver info: driver.version: unknown org.openqa.selenium.firefox.FirefoxProfile.verifyModel(FirefoxProfile.java:154) org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:92) org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:79) com.igt.sqes.automation.selenium.factories.WebDriverFactory.createWebDriver(Unknown Source) com.igt.sqes.automation.arcus.setup.ArcusTestSuiteSetup.setUp(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.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.runSuitesLocally(TestNG.java:1123) org.testng.TestNG.run(TestNG.java:1031) org.testng.TestNG.privateMain(TestNG.java:1338) org.testng.TestNG.main(TestNG.java:1307)
nó hoạt động tốt khi chạy từ một ô cửa sổ làm cho lái xe là ở vị trí đó và có thể chuyển tiếp để kiểm tra vm.
sẽ xem xét sớm nhất có thể! –