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、官方常见问题汇总(

相关文章
|
设计模式 开发框架 前端开发
在开发框架中实现事件驱动架构
【9月更文挑战第2天】事件驱动架构(EDA)通过事件机制让组件间解耦交互,适用于动态扩展和高响应性的系统。本文提供一个基于Beego框架实现事件驱动的示例,通过事件管理器注册和触发事件,实现用户注册和登录时的不同处理逻辑,展示了其在Web应用中的灵活性和高效性。
483 5
|
机器学习/深度学习 C语言
乘法口诀表打印进阶篇
乘法口诀表打印进阶篇
|
弹性计算 分布式计算 DataWorks
DataWorks产品使用合集之在脚本离线同步节点如何修改集成资源组
DataWorks作为一站式的数据开发与治理平台,提供了从数据采集、清洗、开发、调度、服务化、质量监控到安全管理的全套解决方案,帮助企业构建高效、规范、安全的大数据处理体系。以下是对DataWorks产品使用合集的概述,涵盖数据处理的各个环节。
249 4
|
数据安全/隐私保护 C++ Python
【Python指南 | 第十篇】以题代练掌握Python初阶编程
【Python指南 | 第十篇】以题代练掌握Python初阶编程
383 0
|
编解码 Android开发
Android精选完整源码之控件指示器视频压缩日历源码!
Android框架+常用控件汇总-侧滑、上下拉加载、tab、各种ui 仿今日头条顶部导航指示器源码 android视频录制 视频压缩的源码 android滑动选择的尺子view源码 文件选择器 单片机和安卓应...
1767 0
|
SQL Java 关系型数据库
《Java EE核心框架实战》—— 2.5 将SQL语句作为字符串变量传入
Java EE核心框架实战 在MyBatis中也支持将SQL语句当成变量传入。 新建名为sqlStringVar的Java项目,映射文件userinfoMapping.xml的内容如下。
1620 0
|
Dubbo Java 应用服务中间件
Great Dubbo(下)
逻辑集群 == Dubbo里两个主要参与实体是provider和consumer,两者都是相对服务而言,前者是服务的具体实现,后者是服务的消费者。 服务在客户端被异化成提供同质的服务的逻辑集群,消费者的服务请求最终都会通过集群select出一个invoker进行远程调用,整个过程对用户是非
4802 0
|
3天前
|
人工智能 API 内存技术
刚刚 DeepSeek V4.1 Flash 开启内测,1 分钟教你用上!
刚刚 DeepSeek 内测群发布了 DeepSeek V4.1 Flash 中间版本内测的消息,这次的模型采用了新的结构,原生支持多模态、能力更强、速度更快、且成本更低。
1602 4
|
7天前
|
人工智能 运维 BI
阿里云千问办公QwenWork深度解析:基于Qwen3.8,六大核心能力重构企业全自动化工作流与计费选型指南
传统AI办公工具大多停留在对话问答、文档摘要、简单文案生成层面,只能完成单点碎片化任务,无法自主拆解复杂业务流程,很难串联多工具、多文档、外部业务系统完成端到端完整工作交付。很多企业在落地AI办公的时候,需要组合多款不同工具,来回切换界面,手动复制粘贴中间结果,智能化改造落地门槛居高不下。千问办公QwenWork是整合多款智能体产品能力打造的一体化企业办公智能体平台,底层基座依托Qwen3.8大模型,打通桌面端Agent、云端Agent、企业协同Agent三种运行形态,不再局限简单问答,接收业务目标之后自主拆解任务步骤,调用各类工具,处理文档、表格、浏览器自动化、数据查询,直接输出可交付的办公
1592 0