testando sua app android na nuvem

29
Íntel Software and Services Group Testando sua App na Nuvem v2.0 Eduardo Carrara Developer Evangelist – Intel Developers Relations Division

Upload: eduardo-carrara-de-araujo

Post on 12-Aug-2015

330 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Testando Sua App Android na Nuvem

Íntel Software and Services Group

Testando sua App na Nuvem v2.0Eduardo CarraraDeveloper Evangelist – Intel Developers Relations Division

Page 2: Testando Sua App 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 Sua App Android na Nuvem

Intel Software and Services Group 3

Page 4: Testando Sua App Android na Nuvem

Intel Software and Services Group 4

“Testers don’t break software,

software is already broken”

– Amir Ghahrai

Page 5: Testando Sua App Android na Nuvem

Intel Software and Services Group

Fragmentação e Testes

Automação de Testes

5

Problemas?

Page 6: Testando Sua App Android na Nuvem

Intel Software and Services Group 6

Page 7: Testando Sua App Android na Nuvem

Intel Software and Services Group 7

Fragmentação

Variedade de tamanhos de tela

Arquiteturas Diferentes

Versões diferentes de OS

Page 8: Testando Sua App Android na Nuvem

Intel Software and Services Group

Como a nuvem pode te ajudar?

• $$$

• Devices de Difícil acesso• Escala

Page 9: Testando Sua App Android na Nuvem

Intel Software and Services Group 9

Page 10: Testando Sua App Android na Nuvem

Intel Software and Services Group 10

Page 11: Testando Sua App Android na Nuvem

Intel Software and Services Group 11

Page 12: Testando Sua App Android na Nuvem

Intel Software and Services Group 12

Page 13: Testando Sua App Android na Nuvem

Intel Software and Services Group 13

Page 14: Testando Sua App Android na Nuvem

Intel Software and Services Group 14

O que posso usar com ele?

JUnit UI Automator

Calabash

Page 15: Testando Sua App Android na Nuvem

Intel Software and Services Group 15

Outros serviços?

AWS Device Farm

Google Cloud Test Lab

Open STF

Test Cloud

Page 16: Testando Sua App 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

16

Image by Karla Vidal @ http://www.flickr.com/photos/63721650@N00/3661526274Creative Commons cc-by-2.0

Page 17: Testando Sua App Android na Nuvem

Intel Software and Services Group 17

Acceptance Testing

System Testing

Integration Testing

Unit Testing JUnit

JUnit

JUnit UI Automator

Page 18: Testando Sua App Android na Nuvem

Intel Software and Services Group 18

JUnit

Page 19: Testando Sua App Android na Nuvem

Intel Software and Services Group

Espresso

19

• Simplifies the UI Test Process within your App

• Methods for:

• View matching

• Checks

• UI Events

Page 20: Testando Sua App Android na Nuvem

Intel Software and Services Group 20

Espresso – Caso Vilibra

• Bibliotecário Virtual

• Ajudar a lembrar os livros emprestados.

• Nesta caso como automatizar o teste da visualização de detalhes de um empréstimo?

• Classe: TestViewLendedBookDetailFlow

Page 21: Testando Sua App Android na Nuvem

Intel Software and Services Group

UI Automator

21

• Testes Cross App

• Baseado em Instrumentação

• Interage com elementos visíveis utilizando descritores convenientes (como texto).

Page 22: Testando Sua App Android na Nuvem

Intel Software and Services Group 22

UIAutomator – Caso Vilibra

• Novo caso: automatizando o registro de um empréstimo.

• Classe: TestLendBookFlow

Page 23: Testando Sua App Android na Nuvem

Intel Software and Services Group 23

“If you don’t like testing your product, most likely your customers won’t like

to test it either.” - Anonymous

Page 24: Testando Sua App Android na Nuvem

Intel Information Technology

What is next?

24

• Experimente automatizar os testes de sua app!

• Como fazer Integração e Entrega Contínua com Android?

• Cobertura de Código

• Mocking

Page 25: Testando Sua App Android na Nuvem

Intel Software and Services Group 25

Intel Developer Zone

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

Page 26: Testando Sua App Android na Nuvem

Intel Software and Services Group 26

Nos Avalie!

http://bit.ly/IntelPesquisa

Page 27: Testando Sua App Android na Nuvem

Intel Software and Services Group

Thanks!

27

+EduardoCarraraDeAraujo

https://www.facebook.com/ducarrara

@DuCarrara

br.linkedin.com/in/eduardocarrara/

ecarrara-araujo/vilibra

Page 28: Testando Sua App Android na Nuvem

Intel Software and Services Group 28

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 29: Testando Sua App Android na Nuvem

Placeholder Footer Copy / BU Logo or Name Goes Here