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?
A pre-launch report is automatically generated when you publish an app to internal, closed, or open testing. It helps to identify issues proactively before your app reaches users. It includes tests for: Stability issues. Android compatibility issues.
Once your app has been submitted to the Google Play Store it will be reviewed by a mix of Human and Automated auditors. This review process usually takes between 24 and 48 hours. A few hours after approval your app will appear on the Google Play Store.
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);
}
See: https://firebase.google.com/docs/test-lab/android/android-studio#modify_instrumented_test_behavior_for
In case anyone gets here looking for how to do this with React Native, check out the react-native-firebase package utils().isRunningInTestLab
: https://rnfirebase.io/app/utils#test-lab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With