ui automation - Android runtime permissions - how to test UI -
can use robolectric test runtime permissions in android ? talking when system pops window asking user permission - how know ? suspect can use uiautomator gain access system screens can used robolectric ? recommended way ? need way interact system window run time permissions. see class called uidevice
do need robolectric
?
i haven't used framework yet kind of purpose, don't tell if possible. moreover, think best way making automated ui tests using along 2 google's frameworks: espresso
, uiatomator
.
here find why: espresso & uiautomator - perfect tandem
check also: https://google.github.io/android-testing-support-library/
for android system ui elements, notifications, screen lock or highlighted in topic runtime permissions, uiatomator
enough.
especially there article how handle uiatomator
: handling android runtime permissions in ui tests
hope help. happy testing!
Comments
Post a Comment