You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Real test troubleshooting program summary, if you tried all the programs there are issues you can reply here.
1 Check xctestwd
Confirm with Xcode installed correctly what xctestwd to the real machine in, XCTextWDRunner test normal operation
Screenshot 2019-10-18 at 2 02 31 PM copy
As shown, confirm:
xctestwd path information is given in the xctestwd that your test script uses. If you install macaca locally in your project or use sample-nodejs, it should be inside sample-nodejs/node_modules. If you install macaca globally (npm i -g macaca-ios), it should be in the global npm folder)
XCTestWDSetup-> http: // localhost: 8001 <-XCTestWDSetup appear in the log in
2 sample test run through-flow provided by macaca-sample
Ios-app-bootstrap mounted to the real machine https://github.com/app-bootstrap/ios-app-bootstrap (bundleId need to manually change)
Installation sample-nodejs https://github.com/macaca-sample/sample-nodejs
The change inside the mobile-app-sample.test.js configuration: var iOSOpts = { platformName: 'iOS', udid: 'abc', // your real machine udid bundleId: 'xudafeng.ios-app-bootstrapabc', // you install the corresponding real machine bundleId }; Then run the testnpm run test: native see whether the normal connection to run the test.
Note just began Error: read ECONNRESET is normal, there is need to re several times, wait a minute like:
Screenshot 2019-10-18 at 2 26 55 PM copy
3 Reinstall old depedencies
Global dependency:
npm uninstall -g macaca-ios
npm uninstall -g ...
npm i -g macaca-ios
npm i -g ...
Local dependency:
npm uninstall macaca-ios
npm uninstall ...
npm i macaca-ios
npm i ...
Pay special attention to whether xctestwd is built and installed successfully. If not, please create new issue with relevant information.
The text was updated successfully, but these errors were encountered:
真机测试问题排查方案汇总,如果试了所有方案还有问题可以在这里回复。
已知问题和解决方法参见 #929
1 检查xctestwd
用Xcode确认一下xctestwd正确安装到了真机里,
XCTextWDRunner
测试能正常运行如图,确认:
xctestwd
的路径是报错信息里的xctestwd
,这里必须是你运行Macaca时用的xctestwd
。如果你是项目里安装的Macaca(sample-nodejs
里面的模式),就需要时项目目录sample-nodejs/node_modules
里的xctestwd
,如果你是全局安装的Macaca(npm i -g macaca-ios
),就需要是全局目录 node_modules 里的xctestwd
。XCTestWDSetup->http://localhost:8001<-XCTestWDSetup
出现在log里2 用macaca-sample提供的sample测试跑通流程
安装 ios-app-bootstrap 到真机 https://github.com/app-bootstrap/ios-app-bootstrap (bundleId需要手动改)
安装 sample-nodejs https://github.com/macaca-sample/sample-nodejs
改一下里面的
mobile-app-sample.test.js
配置:然后跑测试一下
npm run test:native
看是否能正常连接运行测试。注意一下刚开始出现
Error: read ECONNRESET
是正常的,这里需要重新几次,等一会就好了:3 删除老的,旧的依赖,重新安装
全局依赖:
当前目录的本地依赖:
注意看一下
xctestwd
是否成功编译安装,如果不成功请创建新的 issue 反馈。English version
Known issues and solutions: #929
Real test troubleshooting program summary, if you tried all the programs there are issues you can reply here.
1 Check xctestwd
Confirm with Xcode installed correctly what xctestwd to the real machine in, XCTextWDRunner test normal operation
Screenshot 2019-10-18 at 2 02 31 PM copy
As shown, confirm:
xctestwd
that your test script uses. If you install macaca locally in your project or usesample-nodejs
, it should be insidesample-nodejs/node_modules
. If you install macaca globally (npm i -g macaca-ios
), it should be in the global npm folder)2 sample test run through-flow provided by macaca-sample
Ios-app-bootstrap mounted to the real machine https://github.com/app-bootstrap/ios-app-bootstrap (bundleId need to manually change)
Installation sample-nodejs https://github.com/macaca-sample/sample-nodejs
The change inside the mobile-app-sample.test.js configuration:
var iOSOpts = { platformName: 'iOS', udid: 'abc', // your real machine udid bundleId: 'xudafeng.ios-app-bootstrapabc', // you install the corresponding real machine bundleId }; Then run the testnpm run test: native
see whether the normal connection to run the test.Note just began Error: read ECONNRESET is normal, there is need to re several times, wait a minute like:
Screenshot 2019-10-18 at 2 26 55 PM copy
3 Reinstall old depedencies
Global dependency:
npm uninstall -g macaca-ios
npm uninstall -g ...
npm i -g macaca-ios
npm i -g ...
Local dependency:
npm uninstall macaca-ios
npm uninstall ...
npm i macaca-ios
npm i ...
Pay special attention to whether xctestwd is built and installed successfully. If not, please create new issue with relevant information.
The text was updated successfully, but these errors were encountered: