Системное тестирование приложений на Ruby on Rails с применением Rspec и Capybara
Migrating from webrat to Capybara
-
Upload
resultadosdigitaisdev -
Category
Technology
-
view
178 -
download
4
Transcript of Migrating from webrat to Capybara
![Page 1: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/1.jpg)
Capybara
![Page 2: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/2.jpg)
WEBRAT
![Page 3: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/3.jpg)
WEBRAT•PRs older than 3 years
![Page 4: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/4.jpg)
WEBRAT•PRs older than 3 years•selectors are kinda funky
![Page 5: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/5.jpg)
WEBRAT•PRs older than 3 years•selectors are kinda funky
IT DOES NOT RUN JAVASCRIPT
![Page 6: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/6.jpg)
![Page 7: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/7.jpg)
![Page 8: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/8.jpg)
![Page 9: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/9.jpg)
Request specs
rack-test webrat matchers
![Page 10: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/10.jpg)
josevalim dchelimsky alindeman
![Page 11: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/11.jpg)
Feature specs
![Page 12: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/12.jpg)
![Page 13: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/13.jpg)
![Page 14: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/14.jpg)
Recap
![Page 15: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/15.jpg)
Recap
•Request specs:
![Page 16: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/16.jpg)
Recap
•Request specs:•inner working of your application
![Page 17: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/17.jpg)
Recap
•Request specs:•inner working of your application•Is it returning the proper http headers?
![Page 18: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/18.jpg)
Recap
•Request specs:•inner working of your application•Is it returning the proper http headers?•Is this route streaming the correct JSON response?
![Page 19: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/19.jpg)
Recap
•Request specs:•inner working of your application•Is it returning the proper http headers?•Is this route streaming the correct JSON response?
•Feature specs:
![Page 20: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/20.jpg)
Recap
•Request specs:•inner working of your application•Is it returning the proper http headers?•Is this route streaming the correct JSON response?
•Feature specs:•user/browser perspective
![Page 21: Migrating from webrat to Capybara](https://reader034.fdocuments.net/reader034/viewer/2022052600/557cb3c4d8b42abf328b4ddd/html5/thumbnails/21.jpg)
Thanks!