testando apps android na nuvem

31
Íntel Software and Services Group Testing Your APP in the cloud Eduardo Carrara Developer Evangelist – Intel Developers Relations Division

Upload: tdc-globalcode

Post on 14-Jan-2017

353 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Testando Apps Android na Nuvem

Íntel Software and Services Group

Testing Your APP in the cloud Eduardo Carrara Developer Evangelist – Intel Developers Relations Division

Page 2: Testando Apps Android na Nuvem

Intel Software and Services Group

#AndroidOnIntel

2

+EduardoCarraraDeAraujo

https://www.facebook.com/ducarrara

@DuCarrara

br.linkedin.com/in/eduardocarrara/

ecarrara-araujo

Page 3: Testando Apps Android na Nuvem

Intel Software and Services Group 3

Page 4: Testando Apps Android na Nuvem

Intel Software and Services Group 4

“Testers don’t break software,

software is already broken”

– Amir Ghahrai

Page 5: Testando Apps Android na Nuvem

Intel Software and Services Group 5

Challenges

Automation Fragmentation

Page 6: Testando Apps Android na Nuvem

Intel Software and Services Group 6

Page 7: Testando Apps Android na Nuvem

Intel Software and Services Group 7

Fragmentation

Screen size/density variety Different Processor Many OS versions

Page 8: Testando Apps Android na Nuvem

Intel Software and Services Group

How can the cloud help? •  $$$ •  Devices that are hard to find •  Scale

Page 9: Testando Apps Android na Nuvem

Intel Software and Services Group 9

Page 10: Testando Apps Android na Nuvem

Intel Software and Services Group 10

Page 11: Testando Apps Android na Nuvem

Intel Software and Services Group 11

Page 12: Testando Apps Android na Nuvem

Intel Software and Services Group 12

Page 13: Testando Apps Android na Nuvem

Intel Software and Services Group 13

Page 14: Testando Apps Android na Nuvem

Intel Software and Services Group 14

Page 15: Testando Apps Android na Nuvem

Intel Software and Services Group 15

Page 16: Testando Apps Android na Nuvem

Intel Software and Services Group 16

What can I use with it?

JUnit UI Automator

Calabash

Page 17: Testando Apps Android na Nuvem

Intel Software and Services Group 17

Other services?

AWS Device Farm

Google Cloud Test Lab Open STF

Test Cloud

Page 18: Testando Apps Android na Nuvem

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

Page 19: Testando Apps Android na Nuvem

Intel Software and Services Group 19

JUnit UI Automator

Android Testing Support Library

Page 20: Testando Apps Android na Nuvem

Intel Software and Services Group 20

JUnit

Page 21: Testando Apps Android na Nuvem

Intel Software and Services Group

Espresso

21

•  Simplifies the UI Test Process within your App

•  Methods for:

•  View matching

•  Checks

•  UI Events

Page 22: Testando Apps Android na Nuvem

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

Page 23: Testando Apps Android na Nuvem

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

Page 24: Testando Apps Android na Nuvem

Intel Software and Services Group

UI Automator

24

•  Cross App Testing

•  Instrumentation Based

•  Interact with visible elements using descriptors (like text).

Page 25: Testando Apps Android na Nuvem

Intel Software and Services Group 25

UIAutomator – Vilibra Case

•  New case: automate the entire lend process test.

•  Class: TestLendBookFlow

Page 26: Testando Apps Android na Nuvem

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

Page 27: Testando Apps Android na Nuvem

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

Page 28: Testando Apps Android na Nuvem

Intel Software and Services Group 28

Intel Developer Zone

https://software.intel.com/en-us/android/app-testing

Page 29: Testando Apps Android na Nuvem

Intel Software and Services Group

Thanks!

29

+EduardoCarraraDeAraujo

https://www.facebook.com/ducarrara

@DuCarrara

br.linkedin.com/in/eduardocarrara/

ecarrara-araujo/vilibra

Page 30: Testando Apps Android na Nuvem

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

Page 31: Testando Apps Android na Nuvem

Placeholder Footer Copy / BU Logo or Name Goes Here