Testando Apps Android na Nuvem

Post on 14-Jan-2017

352 views 0 download

Transcript of Testando Apps Android na Nuvem

Íntel Software and Services Group

Testing Your APP in the cloud Eduardo 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

Automation Fragmentation

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 12

Intel Software and Services Group 13

Intel Software and Services Group 14

Intel Software and Services Group 15

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