tdc2016sp - automação de testes funcionais com python e mechanize

13
Automação de testes funcionais com Python e Mechanize R o b s o n A g ap i t o

Upload: tdc-globalcode

Post on 20-Mar-2017

179 views

Category:

Education


7 download

TRANSCRIPT

Page 1: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Automação de testes funcionais comPython e Mechanize

Ro

bso

n A

gap

ito

Page 2: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Robson AgapitoI like to work with QA

Twitter: @[email protected] Share: http://www.slideshare.net/robsonagapito/Linkedin: https://br.linkedin.com/in/robsonagapito

Page 3: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Testes Funcionais

Automação

Page 4: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Atores Principais

Page 5: TDC2016SP - Automação de testes funcionais com Python e Mechanize

MechanizeBeautiful Soup

lxml

Page 6: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Page Object

Page 7: TDC2016SP - Automação de testes funcionais com Python e Mechanize

“The basic rule of thumb for a page object is that itshould allow a software client to do anything andsee anything that a human can..."

...the page object should encapsulate themechanics required to find and manipulate thedata in the gui control itself...

Martin Fowler (2013)

Page 8: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Page Test

Page Class

X

Page ObjectPage Object

Page 9: TDC2016SP - Automação de testes funcionais com Python e Mechanize

HA

ND

S O

N

HA

ND

S O

N

Page 10: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Vantagens

– velocidade- não depende de browser- fácil manutenção

Page 11: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Desvantagens

- não testa javascript (nem executa)- pouca documentação (bastante, mas muito do mesmo)

Page 12: TDC2016SP - Automação de testes funcionais com Python e Mechanize

DÚVIDASMuito obrigado!

Twitter: @[email protected] Share: http://www.slideshare.net/robsonagapito/Linkedin: https://br.linkedin.com/in/robsonagapitoGithub:https://github.com/robsonagapito/python_mechanize

Page 13: TDC2016SP - Automação de testes funcionais com Python e Mechanize

Automação de testes funcionais comPython e Mechanize

Ro

bso

n A

gap

ito