Issue
We are using aws device farm
for running all our android espresso tests. In each test, the user is supposed to login into the app but I want to clear all the device's data(login info) once the test is finished, since the login credentials are getting saved in the device which is affecting our other test's flow. All our tests are independent and should be run in parallel. It seems to me that device farm
is not clearing the previous data after each run.
Could anyone tell me how can I delete the device's data after each test run? I will highly appreciate your help.
Solution
Device Farm uninstalls your package after every test run, which should also clean the data for your package. Device Farm also clean the local/external storage.
Device Farm doesn't clean data during test run between test cases. And Device Farm will run the same test cross all selected devices instead of splitting test cases and run different pieces on different devices.
Do you have some system wide data store somewhere out side of your package?
Answered By - Hongda Zhao
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.