Palestra apresentada na trilha de Testes dos TDCs Floripa, Sampa e Porto Alegre em 2015, discutindo sobre como soluções de nuvem podem ajudar a melhorar os testes de aplicações Android em um mundo fragmentado. Além disso introduzimos formas de automatizar os testes de sua aplicação para possibilidar o uso de device farms na nuvem com as ferramentas Espresso e UIAutomator.
Para vídeos sobre o funcionamento do TestDroid verifique o canal deles no YouTube: https://www.youtube.com/user/BitbarChannel
12. Intel Software and Services Group 16
What can I use with it?
JUnit UI Automator
Calabash
13. Intel Software and Services Group 17
Other services?
AWS Device Farm
Google Cloud Test Lab
Open STF
Test Cloud
14. Intel Information Technology
“I choose a lazy person to do a hard job.
Because a lazy person will find an easy way to do it.”
- Bill Gates
18
Image by Karla Vidal @ http://www.flickr.com/photos/63721650@N00/3661526274
Creative Commons cc-by-2.0
15. Intel Software and Services Group 19
JUnit UI Automator
Android Testing Support Library
17. Intel Software and Services Group
Espresso
21
• Simplifies the UI Test
Process within your App
• Methods for:
• View matching
• Checks
• UI Events
18. Intel Software and Services Group 22
Espresso – Vilibra Case
• Virtual Librarian
• Help to remember the books I
lend
• How to automate the lend
details view?
• Class:
TestViewLendedBookDetailFlow
19. Intel Software and Services Group 23
Check the code!
Instrumented Test Package:
vilibra/app/src/main/androidTest/java/ecarrara/eng/vilibra/
Test Class:
TestViewLendedBookDetailFlow.java
20. Intel Software and Services Group
UI Automator
24
• Cross App Testing
• Instrumentation Based
• Interact with visible
elements using
descriptors (like text).
21. Intel Software and Services Group 25
UIAutomator – Vilibra Case
• New case: automate the entire
lend process test.
• Class: TestLendBookFlow
22. Intel Software and Services Group 26
Check the code!
Instrumented Test Package:
vilibra/app/src/main/androidTest/java/ecarrara/eng/vilibra/
Test Class:
TestLendBookFlow.java
23. Intel Information Technology
What is next?
27
• Go ahead and automate your app testing!
• How to integrate continous integration and delivery with Android?
• Code Coverage
• Mocking
“If you don’t like testing your product, most likely your
customers won’t like to test it either.”
- Anonymous
24. Intel Software and Services Group 28
Intel Developer Zone
https://software.intel.com/en-us/android/app-testing
25. Intel Software and Services Group
Thanks!
29
+EduardoCarraraDeAraujo
https://www.facebook.com/ducarrara
@DuCarrara
br.linkedin.com/in/eduardocarrara/
ecarrara-araujo/vilibra