How to detect if the app is running on Google Play Pre-Launch report devices?(如何检测应用程序是否在 Google Play 发布前报告设备上运行?)
问题描述
当我将我的应用的新版本上传到 Google Play 时,我得到了一份发布前测试报告,该报告非常好,但问题是大多数时间 AI 只是在设置中徘徊,并没有测试实际的用户界面.我想快速、随机地为这些设备预先完成设置.
As I upload a new version of my app to Google Play I get a Pre-Launch testing report that's pretty nice and fine, but the issue is that most of the time the AI just wanders around the setup and does not test the actual UI. I'd like to pre-complete the setup quickly and randomly for those devices.
所以我的问题是,有没有办法检测它在那些测试设备上运行?
So my question is, is there a way to detect that it's running on those test devices?
推荐答案
您可以通过以下方式检测预发布测试设备:
You can detect a pre-launch test device with the following:
private boolean isTestDevice() {
String testLabSetting = Settings.System.getString(getContentResolver(), "firebase.test.lab");
return "true".equals(testLabSetting);
}
见:https://firebase.google.com/docs/test-lab/android/android-studio#modify_instrumented_test_behavior_for
这篇关于如何检测应用程序是否在 Google Play 发布前报告设备上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何检测应用程序是否在 Google Play 发布前报告设备上运行?
基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
