lundi 8 avril 2019

Can you check objects during espresso test

I have got an old android code base that has zero tests in it and now have to try and add tests to it. I have no real experience with testing in Android and have been trying to figure it out.

Our application has a website where people create a large json object which is downloaded and stored in a database in the app. The json determines which activities are shown and what is shown on the screen. When the app moves between activities

I was able to create an espresso test which goes through one particular configuration of the json object. The issue is that I need to be able to check the state of the objects.

I was wondering if there is a way to go through the app and multiple screens and check the state of objects in the application as im going along. For instance there is a screen where the user select a value and it gets added to a total. Am I able to check the total value in the espresso test.

Aucun commentaire:

Enregistrer un commentaire