Background Information
1) I am working in an activity with 3 Fragments
2) I am using Espresso to iterate between the fragments in a very specific order and enter data into the fragments which should end up in the database 3) Each fragment is using an AsyncTaskLoader to write data to the database on a separate thread
The Problem
If I only entered one entry into every activity there would be no problem but the problem occurs when the test loops around and enters data into the previous activity for the 2nd time (remember that I have 3 activities)
Tried Solutions
I thought obviously this problem is caused by the tests running too fast and quitting before data is entered, so I made a method that would sort 100's of random numbers just to waste time after every click but this didn't work.
And I have since learned that Espresso waits for any AsyncTasks to complete before going on to the next task therefore implementing an IdlingResource is not necessary.
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire