screenshots test spoon + espresso
TRANSCRIPT
- 1. Screenshots Test Spoon + Espresso shibuya.apk #2
- 2. About Me Shinobu Okano @operandoOS Mercari, Inc. Android Engineer SHIROBAKO iOS(
- 3.
- 4.
- 5.
- 6. 21?
- 7.
- 8. ?
- 9. Unit Test ()
- 10. UI Test ()
- 11.
- 12. Screenshots Test
- 13. Spoon + Espresso
- 14. Spoon?? Using the application APK and instrumentation APK, Spoon runs the tests on multiple devices simultaneously. https://github.com/square/spoon
- 15. Spoon?? Once all tests have completed a static HTML summary is generated with detailed information about each device and test. https://github.com/square/spoon
- 16. Spoon?? Spoon.screenshot(activity, "after_login"); https://github.com/square/spoon
- 17. Spoon??
- 18. Spoon??
- 19. Espresso?? UI testing framework https://code.google.com/p/android-test-kit/wiki/Espresso
- 20. Spoon Gradle Plugin?? https://github.com/stanfy/spoon-gradle-plugin Gradle plugin for Spoon. Allows you to run spoon with almost no eort under new Android build system.
- 21. Spoon Gradle Plugin?? https://github.com/stanfy/spoon-gradle-plugin gradle spoon
- 22. DEMO https://github.com/operando/EspressoSpoonSample
- 23. Best Practice
- 24. Espresso OK
- 25. Espresso
- 26. Activity Intent createIntent public class LoginSuccessActivity extends AppCompatActivity { private static final String EMAIL = "email"; public static Intent createIntent(Context context, String email) { Intent i = new Intent(context, LoginSuccessActivity.class); i.putExtra(EMAIL, email); return i; } }
- 27.
- 28.
- 29.
- 30.
- 31. =
- 32. Best Practice OK Espresso createIntent
- 33. Spoon Gradle Plugin Tips?? Debuge Message Disable animated gif generation spoon{ debug = true noAnimations = true }
- 34.
- 35.
- 36. Thank you