Home > Education > Getting Started with Browser Based Testing

Getting Started with Browser Based Testing

Date post: 18-Aug-2015
Category:
Author: rex-lorenzo
View: 18 times
Download: 0 times
Share this document with a friend
Embed Size (px)
Popular Tags:
of 15 /15
Getting Started with Browser Based Testing Thursday, August 6 th , 2015
Transcript
  1. 1. Getting Started with Browser Based Testing Thursday, August 6th, 2015
  2. 2. Outline Intro Overview of BDD/Behat Getting started (writing our first test) Pitfalls Conclusion
  3. 3. Intro Who am I?
  4. 4. Overview What is BDD How? Why
  5. 5. The Dream
  6. 6. What is Behat? PHP BDD Gerkins Selenium
  7. 7. What is Behat? Converts English to Automated browser tests
  8. 8. How do you use it? Scenario: Seeing a welcome message Given I log in as teacher When I follow My Course Then I should see Welcome to My Course
  9. 9. How does it work? Lets look at the code! Hint: Regular expressions
  10. 10. Getting started Live Demo Running a script Layout of a test Writing a test
  11. 11. Pitfalls Selenium & Firefox versions Do not auto-update FireFox Slow Careful with xpath & hope for 2.9 Discourages UI changes
  12. 12. Conclusion
  13. 13. Related links Moodles Acceptance testing docs http://docs.moodle.org/dev/Acceptance_testing KNP Labs BDD/Behat training http://knplabs.com/training/behat
  14. 14. Contact Rex Lorenzo ([email protected]) Twitter: @rlorenzo Github: https://github.com/rlorenzo Workshop slides http://www.slideshare.net/rexlorenzo/getting- started-with-browser-based-testing

Recommended