Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run test cases for multiple activities #17

Open
Gaurav-sengar opened this issue Dec 11, 2018 · 2 comments
Open

How to run test cases for multiple activities #17

Gaurav-sengar opened this issue Dec 11, 2018 · 2 comments

Comments

@Gaurav-sengar
Copy link

Hello Guys,

I am new to espresso and i am able to run single test cases for an activity successfully what if i have multiple activities to test.
The espresso is unable to find the view getting below mentioned error:

androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with id: com.fourtek.phonebook:id/llListItem

@nikhil-dabhade
Copy link
Contributor

@Gaurav-sengar
Thank you for reporting this issue. Have you tried out "custom environment" feature? We believe this might solve your problem. Feel free to read more about it here: https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html

Likewise, can you provide a run URL for your failed run? We can debug it further if you provide this.

@nikhil-dabhade
Copy link
Contributor

@Gaurav-sengar
Also, at times some tests fail because they could not find the view which seems to be the case here.
Have you tried experimenting with adding delays or making sure that the tests wait for the element to be rendered before performing an action on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants