como trazer sua banda        favorita para oSaturday, June 4, 2011
ou...Saturday, June 4, 2011
Testando aplicações                      web com SplinterSaturday, June 4, 2011
Andrews Medina                              #cobrateam founder                         djangobrasil.org / python.org.br   ...
Francisco Souza                            #cobrateam member                               djangobrasil.org               ...
Proprietary software is the disease.                           Meet the cure.Saturday, June 4, 2011
Testes?Saturday, June 4, 2011
Show me the codeSaturday, June 4, 2011
Interfaces web?Saturday, June 4, 2011
Ferramentas                     •   Afajor           •   twill                     •   HTMLUnit         •   Windmill      ...
Splinter é uma APISaturday, June 4, 2011
browser = Browser(‘webdriver.firefox’)       browser.visit(‘http://cobrateam.info’)       assert browser.is_text_present(‘...
show me the codeSaturday, June 4, 2011
browser                     • visit(‘url’)                     • reload()                     • quit()                    ...
procurando por                             elementos                     • find_by_css(‘.classe’)                     • find...
formulários                     • fill(‘name’, ‘value’)                     • attach_file(‘name’, ‘/path/to/file.txt’)       ...
e mais...                     • alert                     • iframe                     • status_codeSaturday, June 4, 2011
futuro do projeto                     • mais browsers/drivers                      • ie                      • zombie.js  ...
como trazer sua banda        favorita para oSaturday, June 4, 2011
Obrigado!                             splinter.cobrateam.info                         github.com/cobrateam/splinter Andrew...
Upcoming SlideShare
Loading in...5
×

Testando interfaces web com Splinter

1,773

Published on

Palestra apresentada no III Fórum de Software Livre de Duque de Caxias, no dia 04 de Junho de 2011, por Andrews Medina e Francisco Souza, da Globo.com.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,773
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Testando interfaces web com Splinter

  1. 1. como trazer sua banda favorita para oSaturday, June 4, 2011
  2. 2. ou...Saturday, June 4, 2011
  3. 3. Testando aplicações web com SplinterSaturday, June 4, 2011
  4. 4. Andrews Medina #cobrateam founder djangobrasil.org / python.org.br desenvolvedor @ globo.comSaturday, June 4, 2011
  5. 5. Francisco Souza #cobrateam member djangobrasil.org desenvolvedor @ globo.comSaturday, June 4, 2011
  6. 6. Proprietary software is the disease. Meet the cure.Saturday, June 4, 2011
  7. 7. Testes?Saturday, June 4, 2011
  8. 8. Show me the codeSaturday, June 4, 2011
  9. 9. Interfaces web?Saturday, June 4, 2011
  10. 10. Ferramentas • Afajor • twill • HTMLUnit • Windmill • Mechanize • zope.testbrowser • PhantomJS • zombie.js • SeleniumSaturday, June 4, 2011
  11. 11. Splinter é uma APISaturday, June 4, 2011
  12. 12. browser = Browser(‘webdriver.firefox’) browser.visit(‘http://cobrateam.info’) assert browser.is_text_present(‘Projects’) browser = Browser(‘zope.testbrowser’) browser.visit(‘http://cobrateam.info’) assert browser.is_text_present(‘Projects’) browser = Browser(‘phantomjs’) browser.visit(‘http://cobrateam.info’) assert browser.is_text_present(‘Projects’)Saturday, June 4, 2011
  13. 13. show me the codeSaturday, June 4, 2011
  14. 14. browser • visit(‘url’) • reload() • quit() • html • url • titleSaturday, June 4, 2011
  15. 15. procurando por elementos • find_by_css(‘.classe’) • find_by_id(‘meuid’) • find_by_xpath(‘//body’) • find_by_tag(‘a’) • find_by_name(‘search’)Saturday, June 4, 2011
  16. 16. formulários • fill(‘name’, ‘value’) • attach_file(‘name’, ‘/path/to/file.txt’) • check(‘name’) #checkbox • choose(‘name’) #radio button • select(‘name’, ‘option’)Saturday, June 4, 2011
  17. 17. e mais... • alert • iframe • status_codeSaturday, June 4, 2011
  18. 18. futuro do projeto • mais browsers/drivers • ie • zombie.js • phantom.js • mouse eventsSaturday, June 4, 2011
  19. 19. como trazer sua banda favorita para oSaturday, June 4, 2011
  20. 20. Obrigado! splinter.cobrateam.info github.com/cobrateam/splinter Andrews Medina Francisco Souza andrewsmedina.com franciscosouza.com @andrewsmedina @franciscosouza andrewsmedina@gmail.com francisco@franciscosouza.netSaturday, June 4, 2011
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×