Macaca问题篇

简介:

1、xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001

>> xctestwd start with port: 8001
>> xctest-client.js:224:14 [master] pid:23473 xcode version: 8.3.3
>> XCTestWD version: 1.1.3
>> xctest-client.js:172:14 [master] pid:23473 2017-09-06 13:25:53.829 xcodebuild[23972:1511642] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/iwm/Library/Developer/Xcode/DerivedData/XCTestWD-efsibylwwbocoagvfhextzqaiznx/Logs/Test/83B29A51-3E20-40D5-9FC5-8AF3FF9E65B7/Session-XCTestWDUITests-2017-09-06_132553-0OzQOm.log

>> xctest-client.js:173:14 [master] pid:23473 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.1.3@xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:172:14 [master] pid:23473 2017-09-06 13:25:53.829 xcodebuild[23972:1511554] [MT] IDETestOperationsObserverDebug: (D95D65A7-8E60-4C4A-99F9-8625E6865131) Beginning test session XCTestWDUITests-D95D65A7-8E60-4C4A-99F9-8625E6865131 at 2017-09-06 13:25:53.829 with Xcode 8E3004b on target {
SimDevice: SimDevice : iPhone 6 (916D2F3F-4FB9-4645-976B-0AE22822073B) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6 } runtime={ SimRuntime : 10.3.1 (14E8301) - com.apple.CoreSimulator.SimRuntime.iOS-10-3 }
} (10.3.1 (14E8301))

>> xctest-client.js:173:14 [master] pid:23473 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.1.3@xctestwd/XCTestWD/XCTestWD.xcodeproj
>> proxy.js:55:14 [master] pid:23473 Proxy: /wd/hub/session:POST to http://localhost:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bu...
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: socket hang up
>> xctest-client.js:172:14 [master] pid:23473 2017-09-06 13:26:15.954 xcodebuild[23972:1511565] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/iwm/Library/Developer/Xcode/DerivedData/XCTestWD-efsibylwwbocoagvfhextzqaiznx/Logs/Test/83B29A51-3E20-40D5-9FC5-8AF3FF9E65B7/Session-XCTestWDUITests-2017-09-06_132615-86y4Ws.log

>> xctest-client.js:173:14 [master] pid:23473 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.1.3@xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:172:14 [master] pid:23473 2017-09-06 13:26:15.954 xcodebuild[23972:1511554] [MT] IDETestOperationsObserverDebug: (FC34FA0B-C27D-4C22-B1C4-603C0CD416F7) Beginning test session XCTestWDUITests-FC34FA0B-C27D-4C22-B1C4-603C0CD416F7 at 2017-09-06 13:26:15.954 with Xcode 8E3004b on target {
SimDevice: SimDevice : iPhone 6 (916D2F3F-4FB9-4645-976B-0AE22822073B) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6 } runtime={ SimRuntime : 10.3.1 (14E8301) - com.apple.CoreSimulator.SimRuntime.iOS-10-3 }
} (10.3.1 (14E8301))

>> xctest-client.js:173:14 [master] pid:23473 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.1.3@xctestwd/XCTestWD/XCTestWD.xcodeproj
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:172:14 [master] pid:23473 Failing tests:

>> xctest-client.js:173:14 [master] pid:23473 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.1.3@xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:172:14 [master] pid:23473 -[XCTextWDRunner testRunner()]
** TEST FAILED **


>> xctest-client.js:173:14 [master] pid:23473 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.1.3@xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:255:14 [master] pid:23473 killing deviceLogProc pid: 23973
>> xctest-client.js:260:14 [master] pid:23473 killing runnerProc pid: 23972
>> xctest-client.js:183:14 [master] pid:23473 xctest client exit with code: 65, signal: null
>> xctest-client.js:108:18 [master] pid:23473 simulator log process exit with code: null, signal: SIGKILL
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> proxy.js:61:22 [master] pid:23473 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:247:14 [master] pid:23473 Fail to start xctest: Error: connect ECONNREFUSED 127.0.0.1:8001

解决方法:

对于iOS平台,在模拟器上跑用例时 app的安装包需要基于.app包压缩后的zip包(这个.app包可以找对应的iOS开发同学提供,在XCode工程目录下Products目录下),而不能用.ipa包进行压缩

对于真机,可以直接使用.ipa文件,不过需要涉及证书签名等问题,关于这个,可参考https://testerhome.com/topics/6503
另外,对于配置参数,iOS与安卓有各自特有的参数,具体配置信息可参考:desired-caps


2、官方常见问题汇总(

相关文章
|
7月前
|
JSON 数据格式
appium driver install uiautomator2 安装失败
appium driver install uiautomator2 安装失败
201 6
|
7月前
|
Shell iOS开发 MacOS
mac安装Npm
mac安装Npm
npm安装淘宝镜像cnpm报错:npm ERR! Windows_NT 10.0.19045
npm安装淘宝镜像cnpm报错:npm ERR! Windows_NT 10.0.19045
413 0
|
JavaScript
MAC升级nodejs和npm到最新版
第一步,先查看本机node.js版本: node -v 第二步,清除node.js的cache: sudo npm cache clean -f 第三步,安装 n 工具,这个工具是专门用来管理node.
3986 0
|
JavaScript
nodejs关于安装npm images依赖不能使用直接闪退的问题
nodejs关于安装npm images依赖不能使用直接闪退的问题
296 0
|
JavaScript
mac电脑上安装appium报错:Failed at the appium-chromedriver@4.25.1 postinstall script.
mac电脑安装appium,装好node.js后,使用命令:npm install appium@1.18.0,安装appium,报如下错误
|
开发工具 git iOS开发
玩转CocoaPods
>> 作者:阿里-移动云-大前端 CocoaPods作为iOS的依赖管理工具,已然成为iOS开发的标准工具(官方给出的数据,超过42W个库和300W个App使用了CocoaPods)。 本篇文章,非讲述CocoaPods的教学文章,而是围绕使用CocoaPods的两个主题:`依赖管理`和`Pod库发布`,讲述些易忽略、混淆的关键点和不为熟知的用法。
6420 0
|
Web App开发 JavaScript macaca
Macaca 极简教程
macaca.jpg Macaca 介绍 教程 image.png 源码空间:https://github.com/macacajs 模块拆分讲解: Macaca 1.
2374 0
|
Perl iOS开发 开发工具
CocoaPods
iOS依赖管理管理工具(CocoaPods) 安装cocoapods gem为ruby的包管理工具 sudo gem update --system # 更新gem gem source --remove https://rubygems.
1184 0
|
测试技术 macaca Web App开发