testing-samples
testing-samples copied to clipboard
A collection of samples demonstrating different frameworks and techniques for automated testing
`getLauncherPackagename()` returns `com.android.settings`. So `mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT);` doesn't really wait for the launcher package. I believe this is due to the package visibility changes on Android 11. Our test setup consisted...
JUnit3 based test classes like ActivityInstrumentationTestCase2 have been deprecated for a long time. Remove references to them and modernize the tests. Also add a gradle managed device config.
Toolchains created by `rbe_autoconfig` use images from RBE. This PR updates to use `rbe_preconfig` to use toolchains which use images from Bazel CI. The toolchains are generated with `rbe_configs_gen`. Fix...
I can't run tests in project ui/BasicSample on device with Android 9 works on device with Android10
I can install the app it works perfect on both OS. The tests work on the real device with android 10. But when I launch tests on the real device...
I am currently using androidx test espresso version 3.2.0. After updating androidx's navigation version to 2.1.0, Espresso has become flaky when performing ViewActions.click() on page that was navigated to through...
In DialerActivityTest class, it is used IntentsTestRule that is a deprecated class. I corrected it using ActivityScenarioRule and Intents.init() and Intents.release() instead.