appium问题

1. WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

找到wda工程路径,将里面的所有target都配置上证书,编译测试通过就可以。

wda路径可能是 /usr/local/lib/node_modules/appium/node_modules/.2.23.1@appium-xcuitest-driver/WebDriverAgent  或 /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/

安装的时候需要在手机通用设置中信任开发证书

2. python 包 mac 路径

/Library/Python/2.7/site-packages

3.HTMLTestRunner网页加载不完,卡主。

原因是jquery.js的路径是google地址,国内不行,替换 /Library/Python/2.7/site-packages/HtmlTestRunner/template/report_template.html里面jquery.js的地址为https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js

4. ios真机卡在Using Xcode9.0, so fixing WDA codebase 不启动,半天错误 BadStatusLine: ' '

好吧,弄了N久都不行,最后重启电脑好了,不行在重启手机,好像是端口冲突了。

看这个文档https://github.com/appium/appium-xcuitest-driver

你可能感兴趣的:(appium问题)