1. 程式人生 > >用FireFox的webdriver做自動化測試時,FireFox版本不宜過高

用FireFox的webdriver做自動化測試時,FireFox版本不宜過高

start Firefox browser......
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
4209DeferredSave.extensions.jsonDEBUGStarting write
1425258174226addons.managerDEBUGshutdown
1425258174226addons.managerDEBUGCalling shutdown blocker for XPIProvider
1425258174227addons.xpiDEBUGshutdown
1425258174227addons.xpi-utilsDEBUGshutdown
1425258174227addons.managerDEBUGCalling shutdown blocker for LightweightThemeManager
1425258174228addons.managerDEBUGCalling shutdown blocker for OpenH264Provider
1425258174229addons.managerDEBUGCalling shutdown blocker for PluginProvider
1425258174350DeferredSave.extensions.jsonDEBUGWrite succeeded
1425258174350addons.xpi-utilsDEBUGXPI Database saved, setting schema version preference to 16
1425258174351addons.xpiDEBUGNotifying XPI shutdown observers
1425258174354addons.managerDEBUGAsync provider shutdown done
1425258175093addons.managerDEBUGLoaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1425258175095addons.managerDEBUGLoaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1425258175098addons.xpiDEBUGstartup
1425258175099addons.xpiINFOMapping
[email protected]
to D:\Users\yxi\AppData\Local\Temp\anonymous8889703980862471950webdriver-profile\extensions\[email protected]
1425258175100addons.xpiDEBUGIgnoring file entry whose name is not a valid add-on ID: D:\Users\yxi\AppData\Local\Temp\anonymous8889703980862471950webdriver-profile\extensions\webdriver-staging
1425258175101addons.xpiINFOMapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1425258175101addons.xpiDEBUGSkipping unavailable install location app-system-share
1425258175101addons.xpiDEBUGSkipping unavailable install location app-system-local
1425258175102addons.xpiDEBUGcheckForChanges
1425258175102addons.xpiDEBUGLoaded add-on state from prefs: {"app-profile":{"
[email protected]
":{"d":"D:\\Users\\yxi\\AppData\\Local\\Temp\\anonymous8889703980862471950webdriver-profile\\extensions\\[email protected]","e":true,"v":"2.43.1","st":1425258173418,"mt":1425258173152}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1425258038947,"mt":1424683016000}}}
1425258175103addons.xpiDEBUGgetModTime: Recursive scan of
[email protected]

1425258175111addons.xpiDEBUGgetModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1425258175112addons.xpiDEBUGgetInstallState changed: false, state: {"app-profile":{"[email protected]":{"d":"D:\\Users\\yxi\\AppData\\Local\\Temp\\anonymous8889703980862471950webdriver-profile\\extensions\\[email protected]","e":true,"v":"2.43.1","st":1425258173418,"mt":1425258173152}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1425258038947,"mt":1424683016000}}}
1425258175114addons.xpiDEBUGNo changes found
1425258175117addons.managerDEBUGRegistering shutdown blocker for XPIProvider
1425258175118addons.managerDEBUGRegistering shutdown blocker for LightweightThemeManager
1425258175119addons.managerDEBUGRegistering shutdown blocker for OpenH264Provider
1425258175119addons.managerDEBUGRegistering shutdown blocker for PluginProvider
JavaScript error: file:///D:/Users/yxi/AppData/Local/Temp/anonymous8889703980862471950webdriver-profile/extensions/[email protected]/components/driver-component.js, line 11464: TypeError: this.server_ is undefined
JavaScript error: chrome://fxdriver/content/server.js, line 38: NS_ERROR_XPC_CI_RETURNED_FAILURE: Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1425258176134addons.managerDEBUGRegistering shutdown blocker for <unnamed-provider>


at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
at com.cisco.webex.uiframework.keywords.webdriver.impl.SeleniumKeywordImpl.getWebDriver(SeleniumKeywordImpl.java:93)
at com.cisco.webex.uiframework.keywords.webdriver.impl.SeleniumKeywordImpl.getDriver(SeleniumKeywordImpl.java:75)
at com.cisco.webex.uiframework.keywords.webdriver.impl.SeleniumKeywordImpl.deleteAllCookie(SeleniumKeywordImpl.java:327)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.cisco.webex.uiframework.WebexWebDriver.executeKeyword(WebexWebDriver.java:458)
at com.cisco.webex.uiframework.WebexWebDriver.deleteAllCookie(WebexWebDriver.java:332)
at com.cisco.webex.testcase.train.login.pages.LoginPage.doLogin(LoginPage.java:39)
at com.cisco.webex.testcase.train.login.pages.LoginPage.doLoginAsHost(LoginPage.java:51)
at com.cisco.webex.testcase.train.mc.testcase.hostmeeting.MCStartNormalMeetingByQuickScheduler.startNormalMeeting(MCStartNormalMeetingByQuickScheduler.java:47)
at com.cisco.webex.testcase.train.mc.testcase.hostmeeting.MCStartNormalMeetingByQuickScheduler.testStartWithWebExAudio(MCStartNormalMeetingByQuickScheduler.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

相關推薦

FireFox的webdriver自動化測試FireFox版本不宜

start Firefox browser...... org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox con

Selenium自動化測試讓ChromeDriver中不顯示“正受到自動測試軟體控制”

背景: 在用Selenium做自動化測試的時候,預設ChromeDriver是會提示“Chrom正受到自動測試軟體控制”的。如下圖這樣。但我們有些場景下,不希望這個提示出現。本文探索了幾種語言去掉這個提示條的方法,希望對小夥伴有幫助。    1. Java ChromeOptions

Postman自動化測試的功能

剛才 解析 測試的 工具 art rom http 例如 但是 自動化測試應該在桌面應用有該功能,在chrome的插件不知道有沒有,我也沒裝chrome版的Postman Postman工具介紹圖 上面這張就是Postman的操作界面。一開始我就是這樣做簡單的數據請求,查

pythonselenium自動化測試(一)

python 用selenium做自動化測試: 在w3school裡搜尋css python3 test_w3school_search.py XPath路徑表示式: http://www.ruanyifeng.com/blog/2009/07/xpath_pa

PythonSelenium自動化測試(三):Page Object專題

Page Object專題 頁面物件模型的設計優勢: 創造可以被多個測試用例共享的可重用程式碼。 減少大量重複的程式碼。 如果使用者介面發生改變,則修改只用在一處進行。 圖片來源: 目的:測試程式碼與被測頁面物件程式碼分離,後期如果有頁面元素髮生了更改,

多執行緒--單元測試使用執行緒池發現並沒有執行指定程式碼,直接跳

案例 今天做單元測試除錯介面,發現介面呼叫成功但是並沒有執行執行緒池執行的方法,而是直接跳過執行程式碼 ExecutorService pool = Executors.newFixedThre

python自動化測試--Andriod App 的自動化-Appium的那些坑

第一個坑, UiSelector.text裡面的字元必須是雙引號括起來,在Python裡面字元可以單引號,也可以雙引號。但UiSelector 是Andriod SDK 裡面的函式,Andriod SDK 是JAVA實現的,字元只能雙引號括起來。 driver.find

httpclient壓力測試Too many open files的解決辦法

轉載自:http://keben1983.blog.163.com/blog/static/14363808120111252021798/ 在工作過程中,用httpclient去壓測一個web api,發現壓一小段時間就出現了Too many open files。

python自動化測試--實現高效能測試工具(1)--序

做過幾年開發或者測試開發的人員,時常會覺得很迷茫,新功能的開發或者老功能的維護,基本是在堆程式碼了, 做過幾年測試的朋友也會有類似的想法。效能調優或者效能測試的確很考驗人分析問題、解決問題的能力,知識是否全面。本人也是第一次實現高效能的測試工具, 記錄下這次diameter

自動化測試到File類的相關程式碼

String pathString="/sdcard/autotest/screenRecord"+File.separator 建立檔案路徑: File recordFolder=new File(pathString);if (!recordFolder.exists()) {rec

關於Appium自動化測試手機自帶計算器例項出現的A new session could not be created.問題 shell “ps ‘uiautomator’

這幾天想看一下關於appium自動化測試,但是按照教程做了一下之後,發現自己的根本執行不起來,經過反覆排查了自己的開關項、環境配置等問題後,網上查閱了大量的資料,其中中文和外文的都有,但都沒有相同的問題(原因可能是複製的錯誤碼太長,搜尋的時候重要的資訊沒有查到),最後終於通過

Spring註解程式設計junit測試顯示jdK版本低問題,更改版本後仍然不行的解決方法

Spring註解程式設計時,用Junit測試時報錯JDK版本過低,更換JDK版本後, 會報錯不支援本JDK版本的解決方法;;;; 弄了好長時間沒弄好 原來先把JDK版本換到JDK6或者JDK7的版本   並且配置好環境變數 和 eclipse執行JDK版本  使他們和你安

LR介面壓力測試後臺列印日誌的異常資訊

一、環境:tomcat         應用:web service 介面(java) 二、LR 11、Cent Os 三、併發人數5人,不做遞度設定,不設定 思考時間 ,設定PACING 為隨機1秒至2秒 四、TOMCAT日誌列印的資訊: 警告: Intercepto

自動化測試之前需要了解的

java 程序 產品 接口 記錄 首先理清自動化測試的概念,什麽是自動化測試?廣義上來講,自動化包括一切通過工具(程序)的方式來代替或輔助手工測試的行為都可以看做是自動化,包括性能測試工具(Loadrunner、Jmeter),或自己所寫的一段程序,用於生成1到100個測試數據。狹義上來講

nohup執行python程序print無法輸出

知識庫 ase str 輸出 bsp word 啟用 python test nohup Python test.py > nohup.out 2>&1 & 發現nohup.out中顯示不出來python程序中print的東西。 這是因為pyt

技術選型要註意些什麽?

相關 zookeepe 閑聊 基本 新語言 tpi ear 工作態度 復制 FROM https://36kr.com/p/5097526.html 編者按:本文來自微信公眾號"InfoQ"(ID: infoqchina),作者:周明耀,浙江大學工學碩士,13 年軟件研

什麽樣的項目適合自動化測試

自動化測試一般具有如下幾個特征的項目,就被叫適合做自動化。 1)任務測試明確,不會頻繁變動2)每日構建後的測試驗證3)比較頻繁的回歸測試4)軟件系統界面穩定,變動少5)需要在平臺上運行相同的測試案例、組合遍歷型的測試,大量的重復測試任務6)軟件的維護周期長7)項目的進度壓力不大8)被測系統開發較為規範,能保證

自動化測試測試數據如何管理?

Once 綜合 選擇 word 基礎 體系 調用 ui自動化 結果 今晚在某個測試群,看到有人問了一個問題:把測試數據放配置文件讀取和放文件通過函數調用讀取有什麽區別? 當時我下意識的這麽回答:數據量越大,配置文件越臃腫,放在專門的數據文件(比如excel,csv),方便針

故事營銷或管理相關的8本書

ima 經濟 gtm 的人 sta .cn 技術分享 get image 今年新出的經管類暢銷書中,有不少涉及到用故事做營銷或管理的話題。以下是我讀過的其中8本。沒發現特別好的。點擊名稱或圖片可以看到詳細的點評與摘抄。 3星|《你的顧客需要

怎樣JMeter介面測試

本文介紹JMeter如何做web service測試,一般來說web服務,一般指的是HTTP請求相關的內容。這裡就介紹一下如何利用JMeter做基於HTTP的web介面測試。介面也叫API(Application Programming Interface),很多我們使用的各種APP,上面的內容顯示大部分都呼