Independente de metodologia, framework ou ferramenta os testes são uma etapa essencial no desenvolvimento de qualquer aplicação ou solução de software para atingir níveis de qualidade minimamente aceitáveis pelos usuários. No entanto, com as frequentes ondas de novos devices esta tarefa tem se tornado cada vez mais árdua. Com diferentes configurações de resolução, densidade de tela, arquitetura de processador, componentes, famílias e versões de sistemas operacionais entre outras características, garantir a qualidade das apps pode se tornar uma experiência quase cataclísmica para qualquer time. Nesta palestra serão apresentadas abordagens para a utilização de automação de testes, debugging e diferentes ferramentas em Cloud que se propõem a facilitar o processo de desenvolvimento e ajudam a lidar com o fantasma da fragmentação.
16. Intel Software and Services Group 16
What can I use with it?
JUnit UI Automator
Calabash
17. Intel Software and Services Group 17
Other services?
AWS Device Farm
Google Cloud Test Lab
Open STF
Test Cloud
18. 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
19. Intel Software and Services Group 19
JUnit UI Automator
Android Testing Support Library
21. Intel Software and Services Group
Espresso
21
• Simplifies the UI Test
Process within your App
• Methods for:
• View matching
• Checks
• UI Events
22. 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
23. 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
24. Intel Software and Services Group
UI Automator
24
• Cross App Testing
• Instrumentation Based
• Interact with visible
elements using descriptors
(like text).
25. Intel Software and Services Group 25
UIAutomator – Vilibra Case
• New case: automate the entire
lend process test.
• Class: TestLendBookFlow
26. 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
27. 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
28. Intel Software and Services Group 28
Intel Developer Zone
https://software.intel.com/en-us/android/app-testing
29. Intel Software and Services Group
Thanks!
29
+EduardoCarraraDeAraujo
https://www.facebook.com/ducarrara
@DuCarrara
br.linkedin.com/in/eduardocarrara/
ecarrara-araujo/vilibra