问题描述
我正在尝试构建一个在集成测试中失败的Maven项目。我试图以无头模式运行Firefox,但出现错误。
Aug 14,2020 1:46:20 PM org.openqa.selenium.firefox.FirefoxOptions toCapabilities
INFO: Preferring the firefox binary in these options (C:\Program Files\Mozilla Firefox\firefox.exe rather than C:/Program Files/Mozilla Firefox/firefox.exe)
Aug 14,2020 1:46:20 PM org.openqa.selenium.firefox.FirefoxOptions toCapabilities
INFO: Preferring the firefox binary in these options (C:\Program Files\Mozilla Firefox\firefox.exe rather than C:/Program Files/Mozilla Firefox/firefox.exe)
1597392981367 geckodriver INFO Listening on 127.0.0.1:28995
1597392983107 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--headless" "-foreground" "-no-remote" "-profile" "C:\\Users\\SUNNYK~1\\AppData\\Local\\Temp\\rust_mozprofile7Zg6vz"
*** You are running in headless mode.
[Parent 12372,Gecko_IOThread] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc,line 166
console.error: SearchCache: "_readCacheFile: Error reading cache file:" (new Error("","(unkNown module)"))
Aug 14,2020 1:47:27 PM org.openqa.selenium.remote.ErrorCodes toStatus
INFO: HTTP Status: '500' -> incorrect JSON status mapping for 'timeout' (408 expected)
Running devops.ilp1.LoginFunctionalTest
Tests run: 2,Failures: 0,Errors: 2,Skipped: 0,Time elapsed: 0.117 sec <<< FAILURE! - in devops.ilp1.LoginFunctionalTest
devops.ilp1.LoginFunctionalTest Time elapsed: 0.115 sec <<< ERROR!
org.openqa.selenium.TimeoutException:
No connection Could be made because the target machine actively refused it. (os error 10061)
Build info: version: '3.5.2',revision: '10229a9',time: '2017-08-21T17:29:55.15Z'
System info: host: 'HP-SUNNY',ip: '192.168.56.1',os.name: 'Windows 10',os.arch: 'amd64',os.version: '10.0',java.version: '1.8.0_191'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
at devops.ilp1.LoginFunctionalTest.setup(LoginFunctionalTest.java:38)
devops.ilp1.LoginFunctionalTest Time elapsed: 0.117 sec <<< ERROR!
java.lang.NullPointerException
at devops.ilp1.LoginFunctionalTest.cleanUp(LoginFunctionalTest.java:43)
Results :
Tests in error:
devops.ilp1.LoginFunctionalTest.devops.ilp1.LoginFunctionalTest
Run 1: LoginFunctionalTest.setup:38 » Timeout No connection Could be made because the...
Run 2: LoginFunctionalTest.cleanUp:43 NullPointer
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)