screenshots test spoon + espresso

36
Screenshots Test Spoon + Espresso shibuya.apk #2

Upload: shinobu-okano

Post on 13-Aug-2015

1.000 views

Category:

Technology


0 download

TRANSCRIPT

  1. 1. Screenshots Test Spoon + Espresso shibuya.apk #2
  2. 2. About Me Shinobu Okano @operandoOS Mercari, Inc. Android Engineer SHIROBAKO iOS(
  3. 3.
  4. 4.
  5. 5.
  6. 6. 21?
  7. 7.
  8. 8. ?
  9. 9. Unit Test ()
  10. 10. UI Test ()
  11. 11.
  12. 12. Screenshots Test
  13. 13. Spoon + Espresso
  14. 14. Spoon?? Using the application APK and instrumentation APK, Spoon runs the tests on multiple devices simultaneously. https://github.com/square/spoon
  15. 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. 16. Spoon?? Spoon.screenshot(activity, "after_login"); https://github.com/square/spoon
  17. 17. Spoon??
  18. 18. Spoon??
  19. 19. Espresso?? UI testing framework https://code.google.com/p/android-test-kit/wiki/Espresso
  20. 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. 21. Spoon Gradle Plugin?? https://github.com/stanfy/spoon-gradle-plugin gradle spoon
  22. 22. DEMO https://github.com/operando/EspressoSpoonSample
  23. 23. Best Practice
  24. 24. Espresso OK
  25. 25. Espresso
  26. 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. 27.
  28. 28.
  29. 29.
  30. 30.
  31. 31. =
  32. 32. Best Practice OK Espresso createIntent
  33. 33. Spoon Gradle Plugin Tips?? Debuge Message Disable animated gif generation spoon{ debug = true noAnimations = true }
  34. 34.
  35. 35.
  36. 36. Thank you