Testing Any Site With Cucumber and Selenium

10,449 views
10,152 views

Published on

Do you have a website? Do you have any tests for that site? Even if you have unit tests integration tests can help you target workflows such as a checkout process. In this presentation I will talk about testing any site with Cucumber and Selenium. I will show what the tests look like, and explain the different ways to run these tests, from running them locally, building your own selenium grid to using Sauce labs as your testing infrastructure.

Published in: Technology
1 Comment
2 Likes
Statistics
Notes
  • Selenium-cucumber is a behavior driven development (BDD) approach to write automation test script to test web applications.

    http://seleniumcucumber.wordpress.com/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
10,449
On SlideShare
0
From Embeds
0
Number of Embeds
88
Actions
Shares
0
Downloads
48
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide
  • You only have access to locally installed browsers System Resources You can see the spot tests are failing and inspect
  • Requires Many Machines / VMS Not Hard to setup Maintenance is a nightmare
  • Testing Any Site With Cucumber and Selenium

    1. 1. Introduction to Testing Any Site With Cucumber and Selenium <ul><li>Chris Johnson </li></ul><ul><li>@johnsonch / [email_address] </li></ul><ul><li>http://spkr8.com/t/6993 </li></ul>
    2. 2. Zombies
    3. 3. Survival Plan <ul><li>Cardio </li></ul><ul><li>The Double Tap </li></ul><ul><li>Weapons </li></ul><ul><li>Helga </li></ul><ul><li>Costco / Sam’s Club </li></ul>
    4. 4. Helga
    5. 5. Meet Here
    6. 6. Why Automate Testing? <ul><li>Saves Time and Money </li></ul><ul><li>Improves Accuracy </li></ul><ul><li>Increases Test Coverage </li></ul><ul><li>Does What Manual Testing Cannot </li></ul><ul><li>Helps Developers and Testers </li></ul><ul><li>Improves Team Morale </li></ul>
    7. 7. Behavior Driven Development <ul><li>BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters. </li></ul>
    8. 8. <ul><li>Cucumber lets software development teams describe how software should behave in plain text. </li></ul><ul><li>Cucumber works with Ruby, Java, .NET, Flex or web applications written in any language. Stories can been written in over 30 spoken languages. </li></ul>
    9. 9. <ul><li>The Cucumber testing process can be broken down into six steps </li></ul><ul><li>DESCRIBE A BEHAVIOR IN ENGLISHWRITE A STEP DEFINITION IN RUBYWATCH IT RUN AND FAILWRITE THE CODE TO MAKE THE STEP PASSWATCH IT RUN AND PASSREPEAT STEPS 2-5 UNTIL ALL STEPS ARE IMPLEMENTED </li></ul><ul><li>DESCRIBE A BEHAVIOR IN ENGLISHWRITE A STEP DEFINITION IN RUBYWATCH IT RUN AND FAILWRITE THE CODE TO MAKE THE STEP PASSWATCH IT RUN AND PASSREPEAT STEPS 2-5 UNTIL ALL STEPS ARE IMPLEMENTED </li></ul>
    10. 10. Selenium <ul><li>Selenium is a suite of tools for specifically testing web applications. </li></ul><ul><li>Allows you to automate browser testing </li></ul><ul><li>http://seleniumhq.org </li></ul>
    11. 11. Ways to run Selenium <ul><li>Locally </li></ul><ul><li>Your own farm </li></ul><ul><li>Sauce Labs </li></ul>
    12. 13. Running Locally
    13. 14. Examples To The Code!
    14. 15. Selenium Farm
    15. 16. Sauce Labs <ul><li>Cloud based Selenium Testing </li></ul><ul><li>Parallel Cross Browser Testing </li></ul><ul><li>Sauce TV </li></ul><ul><li>Screen Shots </li></ul><ul><li>Sauce Connect </li></ul>
    16. 17. Sauce Labs
    17. 18. Examples To The Code!
    18. 19. Sauce Connect <ul><li>Allows you to test internal applications </li></ul><ul><li>Creates a tunnel with hosts names and ports specified </li></ul>
    19. 20. Tangent <ul><li>BDD From wireframe to completion </li></ul><ul><li>Based on using a UI Pattern Library </li></ul><ul><li>Think about it </li></ul>
    20. 21. Thank You <ul><li>Speaker Rate: http://spkr8.com/t/6993 </li></ul><ul><li>@johnsonch on Twitter </li></ul><ul><li>[email_address] </li></ul>

    ×