1 Getting Started with Browser Based Testing Thursday August 6th 2015 2 Outline Intro Overview of BDDBehat Getting started writing our first test Pitfalls Conclusion 3 Intro Who am I 4 Overview What is BDD How Why 5 The Dream 6 What is Behat PHP BDD Gerkins Selenium 7 What is Behat Converts English to Automated browser tests 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 How does it work Lets look at the code! Hint: Regular expressions 10 Getting started Live Demo Running a script Layout of a test Writing a test 11 Pitfalls Selenium & Firefox versions Do not auto-update FireFox Slow Careful with xpath & hope for 29 Discourages UI changes 12 Conclusion 13 Related links Moodles Acceptance testing docs http:docsmoodleorgdevAcceptance_testing KNP Labs BDDBehat training http:knplabscomtrainingbehat 14 Contact Rex Lorenzo rex@oiduclaedu Twitter: @rlorenzo Github: https:githubcomrlorenzo Workshop slides http:wwwslidesharenetrexlorenzogetting- started-with-browser-based-testing