Download presentation
Presentation is loading. Please wait.
1
Getting Started with Browser Based Testing
Thursday, August 6th, 2015
2
Outline Intro Overview of BDD/Behat Getting started (writing our first test) Pitfalls Conclusion
3
Intro Who am I? Rex Lorenzo CCLE Lead Developer at UCLA
Size of team. Moodle developer since 2011.
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? Let’s look at the code! Hint: Regular expressions
10
Getting started Live Demo Running a script Layout of a test
Writing a test
12
Pitfalls Selenium & Firefox versions Slow Discourages UI changes
Do not auto-update FireFox Slow Careful with xpath & hope for 2.9 Discourages UI changes Selenium % slower: FireFox 38 not working with Selenium
13
Conclusion
14
Related links Moodle’s Acceptance testing docs KNP Labs BDD/Behat training
15
Contact Rex Lorenzo Github: Workshop slides
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.