Hi there I am new to Android Junit testing:
I have written some test code in MainActivityFunctionalTest.java file
MainActivityFunctionalTest.java:
When you test many functions in the same activity, it is recommended to put in this code:
SystemClock.sleep(800);
at the beginning of every function. You can customize it but the idea is to wait a certain number of times before processing.