Íntel Software and Services Group
TestingYourAPPinthecloudEduardo Carrara
Developer Evangelist – Intel Developers Relations Division
Intel Software and Services Group
#AndroidOnIntel
2
+EduardoCarraraDeAraujo
https://www.facebook.com/ducarrara
@DuCarrara
br.linkedin.com/in/eduardocarrara/
ecarrara-araujo
Intel Software and Services Group 3
Intel Software and Services Group 4
“Testers don’t
break software,
software is
already broken”
– Amir Ghahrai
Intel Software and Services Group 5
Challenges
AutomationFragmentation
Intel Software and Services Group 6
Intel Software and Services Group 7
Fragmentation
Screen size/density variety
Different Processor
Many OS versions
Intel Software and Services Group
How can the cloud help?
• $$$
• Devices that are hard to find
• Scale
Intel Software and Services Group 9
Intel Software and Services Group 10
Intel Software and Services Group 11
Intel Software and Services Group 16
What can I use with it?
JUnit UI Automator
Calabash
Intel Software and Services Group 17
Other services?
AWS Device Farm
Google Cloud Test Lab
Open STF
Test Cloud
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
Intel Software and Services Group 19
JUnit UI Automator
Android Testing Support Library
Intel Software and Services Group 20
JUnit
Intel Software and Services Group
Espresso
21
• Simplifies the UI Test
Process within your App
• Methods for:
• View matching
• Checks
• UI Events
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
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
Intel Software and Services Group
UI Automator
24
• Cross App Testing
• Instrumentation Based
• Interact with visible
elements using
descriptors (like text).
Intel Software and Services Group 25
UIAutomator – Vilibra Case
• New case: automate the entire
lend process test.
• Class: TestLendBookFlow
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
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
Intel Software and Services Group 28
Intel Developer Zone
https://software.intel.com/en-us/android/app-testing
Intel Software and Services Group
Thanks!
29
+EduardoCarraraDeAraujo
https://www.facebook.com/ducarrara
@DuCarrara
br.linkedin.com/in/eduardocarrara/
ecarrara-araujo/vilibra
Intel Software and Services Group 30
References
• Android Testing: https://developer.android.com/tools/testing/testing_android.html
• Android Unit Testing Support: http://tools.android.com/tech-docs/unit-testing-support
• UI Testing: https://developer.android.com/training/testing/ui-testing/index.html
• Android Testing Support Library: https://developer.android.com/tools/testing-support-
library
• Android Instrumentation:
http://developer.android.com/tools/testing/testing_android.html#Instrumentation
• Junit: http://junit.org
• Testdroid: http://testdroid.com
• Intel App Testing Page: https://software.intel.com/en-us/android/app-testing
Placeholder Footer Copy / BU Logo or Name Goes Here

Testando Sua App Android na Nuvem

  • 1.
    Íntel Software andServices Group TestingYourAPPinthecloudEduardo Carrara Developer Evangelist – Intel Developers Relations Division
  • 2.
    Intel Software andServices Group #AndroidOnIntel 2 +EduardoCarraraDeAraujo https://www.facebook.com/ducarrara @DuCarrara br.linkedin.com/in/eduardocarrara/ ecarrara-araujo
  • 3.
    Intel Software andServices Group 3
  • 4.
    Intel Software andServices Group 4 “Testers don’t break software, software is already broken” – Amir Ghahrai
  • 5.
    Intel Software andServices Group 5 Challenges AutomationFragmentation
  • 6.
    Intel Software andServices Group 6
  • 7.
    Intel Software andServices Group 7 Fragmentation Screen size/density variety Different Processor Many OS versions
  • 8.
    Intel Software andServices Group How can the cloud help? • $$$ • Devices that are hard to find • Scale
  • 9.
    Intel Software andServices Group 9
  • 10.
    Intel Software andServices Group 10
  • 11.
    Intel Software andServices Group 11
  • 12.
    Intel Software andServices Group 16 What can I use with it? JUnit UI Automator Calabash
  • 13.
    Intel Software andServices Group 17 Other services? AWS Device Farm Google Cloud Test Lab Open STF Test Cloud
  • 14.
    Intel Information Technology “Ichoose 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 andServices Group 19 JUnit UI Automator Android Testing Support Library
  • 16.
    Intel Software andServices Group 20 JUnit
  • 17.
    Intel Software andServices Group Espresso 21 • Simplifies the UI Test Process within your App • Methods for: • View matching • Checks • UI Events
  • 18.
    Intel Software andServices 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 andServices Group 23 Check the code! Instrumented Test Package: vilibra/app/src/main/androidTest/java/ecarrara/eng/vilibra/ Test Class: TestViewLendedBookDetailFlow.java
  • 20.
    Intel Software andServices Group UI Automator 24 • Cross App Testing • Instrumentation Based • Interact with visible elements using descriptors (like text).
  • 21.
    Intel Software andServices Group 25 UIAutomator – Vilibra Case • New case: automate the entire lend process test. • Class: TestLendBookFlow
  • 22.
    Intel Software andServices 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 Whatis 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 andServices Group 28 Intel Developer Zone https://software.intel.com/en-us/android/app-testing
  • 25.
    Intel Software andServices Group Thanks! 29 +EduardoCarraraDeAraujo https://www.facebook.com/ducarrara @DuCarrara br.linkedin.com/in/eduardocarrara/ ecarrara-araujo/vilibra
  • 26.
    Intel Software andServices Group 30 References • Android Testing: https://developer.android.com/tools/testing/testing_android.html • Android Unit Testing Support: http://tools.android.com/tech-docs/unit-testing-support • UI Testing: https://developer.android.com/training/testing/ui-testing/index.html • Android Testing Support Library: https://developer.android.com/tools/testing-support- library • Android Instrumentation: http://developer.android.com/tools/testing/testing_android.html#Instrumentation • Junit: http://junit.org • Testdroid: http://testdroid.com • Intel App Testing Page: https://software.intel.com/en-us/android/app-testing
  • 27.
    Placeholder Footer Copy/ BU Logo or Name Goes Here