Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I tell if my Android app is running in Google Cloud Test Lab?

I'd like to be able to skip the login screen and disable analytics tracking in my app when running monkey runner tests on Google Cloud Test Lab.

The Best Practices for Cloud Test Lab page states:

Digital advertising providers can filter ad revenues and all corresponding traffic generated from Cloud Test Lab by filtering traffic originating from the following range of IP addresses: 108.177.6.0.x - 108.177.6.24.x

However when I check the IP address when running on Cloud Test Lab (using this code) I'm returned an IP address in the range 10.10.[193-202].x.

Is there another way of determining if your app is running in Cloud Test Lab?

like image 821
Joe Van der Wee Avatar asked Dec 13 '25 21:12

Joe Van der Wee


1 Answers

A quick update here. Firebase Test Lab now has this feature. It is described at:

https://firebase.google.com/docs/test-lab/android-studio#testlab_support_for_instrumentation_tests

like image 125
Justin Broughton Avatar answered Dec 15 '25 10:12

Justin Broughton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!