How to use Android Test Orchestrator in command line?(如何在命令行中使用Android测试协调器?)
问题描述
我在从CI运行测试时看到崩溃。请阅读本文(https://developer.android.com/training/testing/junit-runner#ato-gradle),了解如何使用Android测试协调器。我使用ADB从CI运行我的测试。我想知道如何安装Orchestrator。是否在命令行中使用APK?
推荐答案
如果使用Orchestrator,您还需要测试服务APK。
从Web repo或您的本地计算机获取apk:s。本地路径类似于:
<your cache dir>.gradlecachesmodules-2files-2.1androidx.testorchestrator1.4.0-alpha05ffa651bbb898f0f2bc93c8e9f1296ed5e77768f5orchestrator-1.4.0-alpha05.apk
<your cache dir>.gradlecachesmodules-2files-2.1androidx.test.services est-services1.4.0-alpha052a8f8a5c3f033d0c33e0faf35c6151713a9b0f9d est-services-1.4.0-alpha05.apk
将它们放在cmd线路可访问的位置。
从该位置运行以下行:
adb install -g -r --force-queryable orchestrator-1.4.0-alpha05.apk
adb install -g -r --force-queryable test-services-1.4.0-alpha05.apk
这篇关于如何在命令行中使用Android测试协调器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在命令行中使用Android测试协调器?


基础教程推荐
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01