2
我在iPhone 5上進行自動測試時遇到問題。我以前可以在iOS 6.1上開始測試iPad,但現在我想在iPhone 5上執行iOS 8.1Iphone 5 Appium和jUnit - 應用程序沒有元素
在eclipse中我得到消息無法創建新的會話。從appium
日誌:
error: Failed to start an Appium session, err was: Error: App did not have elements
info: [debug] Error: App did not have elements
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ ios.js:459:30
at Object.cb [as callback] (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios /ios-controller.js:247:7)
at next (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:801:43)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:32:16
at exports.respond (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:28:9)
at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1449:18)
at getResultAndSendNext (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/lib/command-proxy.js:146:20)
at Socket.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/lib/command-proxy.js:88:7)
at Socket.emit (events.js:117:20)
at _stream_readable.js:944:16
信息:響應客戶端錯誤[調試]:{ 「狀態」:33, 「值」:{ 「消息」:「一個新的會話無法建立(原始錯誤:應用程序沒有元素)「,」origValue「:」應用程序沒有元素「},」sessionId「:null} info:< - POST/wd/hub/session 500 29025.843 ms - 172
功能:
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("platformVersion", "8.1");
capabilities.setCapability("deviceName", "iPhone 5 iOS 8.1");
capabilities.setCapability("udid","104ce995950282f9dfaf371bf05ee6b00e7c0027);
任何人都可以幫助我嗎?
是的。在我的情況下,我從iPhone模擬器顯示選項啓用日誌,這是錯誤的原因。 – kiedysktos 2016-04-11 11:42:07