I am trying to use the Android P preview on a Pixel device and am currently experiencing a problem with instrumental tests written using the UiAutomator framework.
Whenever a button click is modeled using UiAutomator, following the code:
onView(withId(R.id.button_activity_login)).perform(click())
I meet AlertDialog with a message
Detected problems with API compatibility (visit g.co/dev/appcompat for more info)
which leads to this link:
https://developer.android.com/preview/restrictions-non-sdk-interfaces.html#differentiating_between_sdk_and_non-sdk_interfaces
This violates the UiAutomator tests, as my tests currently do not account for the extra AlertDialog between each action.
UiAutomator, Espresso. , UiAutomator , ( ), Espresso , .
, UiAutomator - , Google (https://developer.android.com/training/testing/ui-automator.html#ui-automator-apis). - ?
:
Source: https://habr.com/ru/post/1695392/More articles:Я хочу, чтобы текст отображался последовательно - javascriptHtml5 / Js canvas capturing mouse coordinates when it moves fast - javascriptUnable to change Content-Type in xmlHttpRequest - javascriptpart of the lambda expression that needs to be explained - functionCreating JNI header files for class files in JDK 10 - javaReplacing Kotlin with Java - javaAggregation over aggregated values in pandas returns incorrect result - pythonIs it faster to declare variables for loop criteria outside the loop condition? - c #Python Unittests OOM? - pythonHow to compile ES6 + ES6 code using webpack? - javascriptAll Articles