Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Natural Language UI Testing                   Using        Behavior-Driven Development                          With Pavlo...
What is BehaviorDriven Development?       (BDD)
“BDD is a second-generation, outside-in, pull-based, multiple-stakeholder,multiple-scale, high-automation, agilemethodolog...
What is Pavlov?
Behavioral API over QUnit       by Michael Monteleonehttp://github.com/mmonteleone/pavlov
The Goal:The login form   should progressively enhance a form by id.   should hide a field label when the field has focus.  ...
Let’s Write Some Code!
Demo
Other Features• Custom Assertions• Expected Exceptions• Doesn’t Pollute the Global Scope• Run from Command Line or CI Server
Future of Pavlov• Testing-framework-neutral refactor in-progress
Materials  • Source on GitHub:  • Slides on SlideShare:Questions/Comments  • Twitter: @edelabar  • Email: emd@trifecta.com...
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit
Upcoming SlideShare
Loading in …5
×

Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit

5,824 views

Published on

Slides from my talk at jQuery Conference: San Francisco Bay Area 2011 (http://spkr8.com/t/7239)

Published in: Technology
  • Be the first to comment

Natural Language UI Testing using Behavior Driven Development with Pavlov and QUnit

  1. 1. Natural Language UI Testing Using Behavior-Driven Development With Pavlov and QUnitEric DeLabarSolutions Architect at Trifecta Technologieshttp://www.trifecta.com/
  2. 2. What is BehaviorDriven Development? (BDD)
  3. 3. “BDD is a second-generation, outside-in, pull-based, multiple-stakeholder,multiple-scale, high-automation, agilemethodology. It describes a cycle ofinteractions with well-defined outputs,resulting in the delivery of working,tested software that matters.”
  4. 4. What is Pavlov?
  5. 5. Behavioral API over QUnit by Michael Monteleonehttp://github.com/mmonteleone/pavlov
  6. 6. The Goal:The login form should progressively enhance a form by id. should hide a field label when the field has focus. should show a field label when the field is empty when the cursor leaves. should keep a field label hidden when the field is not empty when the cursor leaves. should validate that the email field is valid when the cursor leaves. should submit the form when the user clicks the Join button. should submit to the action URL of the form with an AJAX POST. should hide the form if the user credentials are ok.
  7. 7. Let’s Write Some Code!
  8. 8. Demo
  9. 9. Other Features• Custom Assertions• Expected Exceptions• Doesn’t Pollute the Global Scope• Run from Command Line or CI Server
  10. 10. Future of Pavlov• Testing-framework-neutral refactor in-progress
  11. 11. Materials • Source on GitHub: • Slides on SlideShare:Questions/Comments • Twitter: @edelabar • Email: emd@trifecta.com • SpeakerRate: http://spkr8.com/s/11957

×