-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add UI Testing #9
Comments
To open the menu - as described in one of the test cases - it was necessary to check for the string instead of the id of the menu. |
Need to check on Espresso Idling Resources. |
Also check this essay on how to properly test apps - hint using dependency injection. |
Some more progress on the task, but a lot of new challenges are coming up. I started by trying to solve the idling resource issue mentioned previously. This blog entry served as guide pointing me to use Jake Wharton's OkHttp Idling Resource lib as the solution. After struggling a bit trying to solve the proposed approach - two issues took me some time along the way: Now, the issue is still open because I'm unable to get a reference to my Application class - so I can have a reference to OkHttp member - from my espresso test class. |
Follow these suggestions
http://blog.greenhouseci.com/greenhouse/update/android-testing-with-kotlin/
https://github.com/pot8os/Kotlin-Espresso-sample/blob/master/app/src/androidTest/kotlin/net/pot8os/kotlintestsample/ApplicationTest.kt
To test the following paths in the application:
1.
Given that the app is open
Click on the about menu
Open the dialog and check the displayed information
Given that the app is open
Click on a project
Check the project name is displayed on the action bar
Given an open project
Select a developer under the list
Check that the browser opens with the correct url
The text was updated successfully, but these errors were encountered: