Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
UINT TEST AND UI
TESTING WITH CUCUMBER
andyang@Android Taipei
ABOUT ME
▸
▸
▸
▸
OUTLINE
▸
▸
OUTLINE
▸
▸
▸
SAMPLE CODE
GITHUB LINK
▸ Live Demo
▸ https://github.com/bng86/UnitTestDemo
RESOURCES
▸
▸ 

OVERVIEW
Unit Test
Integration Test
UI Test
androidTest
unit test
10%
20%
70%
UNIT TEST
FIRST
▸ Fast
▸ Independent
▸ Repeatable
▸ Self Validating
▸ Timely
UNIT TEST
▸
UNIT TEST
▸
UNIT TEST
▸
UNIT TEST
▸
UNIT TEST
TIPS
▸
▸ ( Assertion)
▸
UINT TEST
TIPS 3A
▸ Arrange
▸ Act
▸ Assert
3A PRACTICE
UNIT TEST
JUNIT 4
▸ @Test
▸ @Setup
▸ @Before
▸ @After
▸ @BeforeClass
▸ @AfterClass
UNIT TEST
JUNIT 4
BeforeClass
AfterClass
Before
After
Test A
Test B
1
2
3
4
5
6
7
8
UNIT TEST
ANDROID STUDIO SET UP JUNIT 4
Unit Test
Live Demo
UI TESTING
▸ UI Testing -> Do the right thing
▸ Unit Testing -> Do the thing Right
▸
▸ UI Testing
▸
▸
CUCUMBER
CHERKIN
▸ a business readable, domain specific language
▸ used for documentation and automated testing
CUCUMBER
CHERKIN
CUCUMBER
CHERKIN
▸ Feature -
▸ Scenario -
▸ Given - arrange
▸ When - act
▸ Then - assert
CUCUMBER
CHERKIN
▸ And
CUCUMBER
CHERKIN
▸ Background
CUCUMBER
CHERKIN
▸ Scenario Outline
UI TESTING
ANDROID STUDIO CUCUMBER PLUGIN
▸ preferences -> plugins -> search 

Cucumber for Java
UI TESTING
ANDROID STUDIO CUCUMBER PLUGIN
▸
▸
▸ auto formater
▸
▸ step test method
UI TESTING
ANDROID STUDIO SET UP ESPRESSO WITH CUCUMBER
UI Test With
Cucumber 

Live Demo
Refactoring

Live Demo
RECAP
▸ FIRST
▸
▸ 3A
▸ JUNIT4
▸ Cucumber
TDD

Live Demo
▸ TDD ( C#)
▸ Joey Chen 91
▸
▸ 70 45
▸
▸ 91
▸
▸ 19:00 ~ 22:00
▸ @
▸
▸ 7/30( ) Workshop: Firebase app
▸ 30 TDD
▸ https://cucumber.io/docs/reference
▸ https://github.com/cucumber/cucumber-jvm/tree/master/
android
▸ https://go...
Q&A
THANKS
Prochain SlideShare
Chargement dans…5
×

Unit test and ui testing with cucumber

Unit test and ui testing with cucumber

  • Identifiez-vous pour voir les commentaires

Unit test and ui testing with cucumber

  1. 1. UINT TEST AND UI TESTING WITH CUCUMBER andyang@Android Taipei
  2. 2. ABOUT ME ▸ ▸ ▸ ▸
  3. 3. OUTLINE ▸ ▸
  4. 4. OUTLINE ▸ ▸ ▸
  5. 5. SAMPLE CODE GITHUB LINK ▸ Live Demo ▸ https://github.com/bng86/UnitTestDemo
  6. 6. RESOURCES ▸ ▸ 

  7. 7. OVERVIEW Unit Test Integration Test UI Test androidTest unit test 10% 20% 70%
  8. 8. UNIT TEST FIRST ▸ Fast ▸ Independent ▸ Repeatable ▸ Self Validating ▸ Timely
  9. 9. UNIT TEST ▸
  10. 10. UNIT TEST ▸
  11. 11. UNIT TEST ▸
  12. 12. UNIT TEST ▸
  13. 13. UNIT TEST TIPS ▸ ▸ ( Assertion) ▸
  14. 14. UINT TEST TIPS 3A ▸ Arrange ▸ Act ▸ Assert
  15. 15. 3A PRACTICE
  16. 16. UNIT TEST JUNIT 4 ▸ @Test ▸ @Setup ▸ @Before ▸ @After ▸ @BeforeClass ▸ @AfterClass
  17. 17. UNIT TEST JUNIT 4 BeforeClass AfterClass Before After Test A Test B 1 2 3 4 5 6 7 8
  18. 18. UNIT TEST ANDROID STUDIO SET UP JUNIT 4
  19. 19. Unit Test Live Demo
  20. 20. UI TESTING ▸ UI Testing -> Do the right thing ▸ Unit Testing -> Do the thing Right ▸ ▸ UI Testing ▸ ▸
  21. 21. CUCUMBER CHERKIN ▸ a business readable, domain specific language ▸ used for documentation and automated testing
  22. 22. CUCUMBER CHERKIN
  23. 23. CUCUMBER CHERKIN ▸ Feature - ▸ Scenario - ▸ Given - arrange ▸ When - act ▸ Then - assert
  24. 24. CUCUMBER CHERKIN ▸ And
  25. 25. CUCUMBER CHERKIN ▸ Background
  26. 26. CUCUMBER CHERKIN ▸ Scenario Outline
  27. 27. UI TESTING ANDROID STUDIO CUCUMBER PLUGIN ▸ preferences -> plugins -> search 
 Cucumber for Java
  28. 28. UI TESTING ANDROID STUDIO CUCUMBER PLUGIN ▸ ▸ ▸ auto formater ▸ ▸ step test method
  29. 29. UI TESTING ANDROID STUDIO SET UP ESPRESSO WITH CUCUMBER
  30. 30. UI Test With Cucumber 
 Live Demo
  31. 31. Refactoring
 Live Demo
  32. 32. RECAP ▸ FIRST ▸ ▸ 3A ▸ JUNIT4 ▸ Cucumber
  33. 33. TDD
 Live Demo
  34. 34. ▸ TDD ( C#) ▸ Joey Chen 91 ▸ ▸ 70 45 ▸ ▸ 91
  35. 35. ▸ ▸ 19:00 ~ 22:00 ▸ @ ▸ ▸ 7/30( ) Workshop: Firebase app
  36. 36. ▸ 30 TDD ▸ https://cucumber.io/docs/reference ▸ https://github.com/cucumber/cucumber-jvm/tree/master/ android ▸ https://google.github.io/android-testing-support-library/ docs/espresso/
  37. 37. Q&A
  38. 38. THANKS

×