tdc2016sp - automação de testes funcionais com python e mechanize
TRANSCRIPT
![Page 1: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/1.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/2.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/3.jpg)
Testes Funcionais
Automação
![Page 4: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/4.jpg)
Atores Principais
![Page 5: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/5.jpg)
MechanizeBeautiful Soup
lxml
![Page 6: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/6.jpg)
Page Object
![Page 7: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/7.jpg)
“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](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/8.jpg)
Page Test
Page Class
X
Page ObjectPage Object
![Page 9: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/9.jpg)
HA
ND
S O
N
HA
ND
S O
N
![Page 10: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/10.jpg)
Vantagens
– velocidade- não depende de browser- fácil manutenção
![Page 11: TDC2016SP - Automação de testes funcionais com Python e Mechanize](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/11.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/12.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022020119/58cfd5251a28ab13238b4c99/html5/thumbnails/13.jpg)
Automação de testes funcionais comPython e Mechanize
Ro
bso
n A
gap
ito