日志捕获没有在合理的时间内启动 – 尝试在远程appium服务器上运行iOS测试时出错 – 附加了appium日志

日志捕获没有在合理的时间内启动 – 尝试在远程appium服务器上运行iOS测试时出错 – 附加了appium日志,第1张

概述我正在尝试使用远程appium服务器在iPhone上运行appium测试. 当我在本地运行测试时,他们通过但是当我发送远程服务器的ip并尝试执行测试时,我在日志中收到以下错误: info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)info: [debug] App is an iOS bundle, will att 我正在尝试使用远程appium服务器在iPhone上运行appium测试.
当我在本地运行测试时,他们通过但是当我发送远程服务器的ip并尝试执行测试时,我在日志中收到以下错误:

info: ClIEnt User-Agent string: Apache-httpClIEnt/4.3.3 (java 1.5)info: [deBUG] App is an iOS bundle,will attempt to run as pre-existinginfo: [deBUG] Creating new appium session 87610d1a-b873-46e5-96b0-b54b412f10a0info: [deBUG] Removing any remaining instruments socketsinfo: [deBUG] Cleaned up instruments socket /tmp/instruments_sockinfo: [deBUG] Setting Xcode folderinfo: [deBUG] Setting Xcode versioninfo: [deBUG] Setting iOS SDK Versioninfo: [deBUG] Getting sdk version from xcrun with a timeoutinfo: [deBUG] iOS SDK Version set to 8.1info: [deBUG] Not checking whether simulator is available since we're on a real deviceinfo: [deBUG] Detecting automation tracetemplateinfo: [deBUG] Not auto-detecting udID,running on siminfo: [deBUG] Could not parse pList file (as binary) at /usr/local/lib/node_modules/appium/com.viber.testing/en.lproj/Localizable.stringsinfo: Will try to parse the pList file as XMLinfo: [deBUG] Could not parse pList file (as XML) at /usr/local/lib/node_modules/appium/com.viber.testing/en.lproj/Localizable.stringswarn: Could not parse app Localizable.strings; assuming it doesn't existinfo: [deBUG] Creating instrumentsinfo: [deBUG] Preparing uiauto bootstrapinfo: [deBUG] Dynamic bootstrap dir: /Users/Desktop-QA/library/Application Support/appium/bootstrapinfo: [deBUG] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClIEntPath":"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-clIEnt.Js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"sendKeyStrategy":"grouped"}...o: [deBUG] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!info: [deBUG] Dynamic bootstrap path: /Users/Desktop-QA/library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.Jsinfo: [deBUG] Reusing dynamic bootstrap: /Users/Desktop-QA/library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.Jsinfo: [deBUG] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1.1","iOSSDKVersion":"8.1","devicename":"none","platformVersion":"8.0.2"}info: [deBUG] fixDevice is oninfo: [deBUG] Final device string is: 'none (8.0.2 Simulator)'info: [deBUG] Not setting device type since we're on a real deviceinfo: [deBUG] Checking whether we need to set app preferencesinfo: [deBUG] Not setting iOS and app preferences since we're on a real deviceinfo: [deBUG] reset not set,not ending sim or cleaning up app stateinfo: [deBUG] Not setting locale because we're using a real deviceinfo: [deBUG] No iOS / app preferences to setinfo: [deBUG] Starting iOS device log capture via deviceconsoleerror: Log capture dID not start in a reasonable amount of timeinfo: [deBUG] Cleaning up appium sessionerror: Failed to start an Appium session,err was: Error: Log capture dID not start in a reasonable amount of timeinfo: [deBUG] Error: Log capture dID not start in a reasonable amount of timeat null.onTimeout (/usr/local/lib/nodemodules/appium/lib/devices/ios/ios-log.Js:139:10)at Timer.ListOnTimeout as ontimeoutinfo: [deBUG] Responding to clIEnt with error: {"status":33,"value":{"message":"A new session Could not be created. (Original error: Log capture dID not start in a reasonable amount of time)","origValue":"Log capture dID not start in a reasonable amount of time"},"sessionID":null}info: <-- POST /wd/hub/session 500 11148.632 ms - 234

我尝试了更新的设备,从设备清理日志并重新启动它,但所有这些都无济于事.

任何帮助都会受到欢迎.

提前致谢!

解决方法 我的临时解决方案是从源代码运行appium,用devicesyslog(前一个)替换Deviceconsole,现在它可以工作,即使我在远程设备的远程appium上运行,我也可以从设备获取日志 总结

以上是内存溢出为你收集整理的日志捕获没有在合理的时间内启动 – 尝试在远程appium服务器上运行iOS测试时出错 – 附加了appium日志全部内容,希望文章能够帮你解决日志捕获没有在合理的时间内启动 – 尝试在远程appium服务器上运行iOS测试时出错 – 附加了appium日志所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1025929.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存