Issue
I have an android app. I am doing automated testing of this app using uiautomator. Before doing any processing I need to login the app. But at first time it store the data in cache and login automatically every time when I launch.
I want application should be logged in every time with filled credential.
Is there any way to stop this caching by using uiautomator api.
Solution
You can give below command before you start your tests, this would clear you application data. Then start your tests !
adb shell pm clear yourPackageName
Answered By - Anvesh Yalamarthy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.