Presentation is loading. Please wait.

Presentation is loading. Please wait.

Getting Started with Browser Based Testing

Similar presentations


Presentation on theme: "Getting Started with Browser Based Testing"— Presentation transcript:

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

11

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


Download ppt "Getting Started with Browser Based Testing"

Similar presentations


Ads by Google