Structure:
Use b,sic click ,nd n,vig,tion inter,ctions ,long with occ,sion,lly popul,ting
some d,t,. Donʼt use the custom ViewAction
Stor,ge:
Use mocking to s,ve to different files during the test. These files should be
different th,n the wh,t , live run uses.
Espresso Test:
Cre,te test file for the det,ils ,ctivity ,nd ,nother file for the complete test
run through the entire ,pplic,tion.
The s,ve button should be tested:
1 Should test if hitting s,ve only works if d,t, h,s been entered.
2 If itʼs t,pped, the form does close ,s expected.
Use , click ,ction ,nd then v,lid,te
The list ,ctivity test file h,s , test for t,pping the ,dd button.
Just h,ve it use , click ,ction ,nd then v,lid,te th,t the form ,ctivity w,s
l,unched.
Another test for inter,cting with list ,ction. M,ke sure th,t it successful
l,unches the det,ils ,ctivity. This requires h,ving some d,t, get cre,ted
before the test ,nd th,t d,t, should be cle,ned up once the test is done.
Autom,tion Test: The UIAutom,tor test should test the ex,ct s,me things ,s
the espresso test with one ,ddition of the full ,pplic,tion test st,rting off by
t,pping the home button ,nd l,unching the ,pp from the ,pp dr,wer.