Web Application Testing
   With Selenium
        Kerry Buckley
What’s Selenium?




Created by Thoughtworks
Uses AJAX & magic
What’s Selenium?

                  • Web testing framework




Created by Thoughtworks
Uses AJAX & magic
What’s Selenium?

                  • Web testing framework
                  • Runs in a browser




Created by Thoughtwo...
What’s Selenium?

                  • Web testing framework
                  • Runs in a browser
                  • HTML...
What’s Selenium?

                  • Web testing framework
                  • Runs in a browser
                  • HTML...
What’s Selenium?

                  • Web testing framework
                  • Runs in a browser
                  • HTML...
Four Flavours
Four Flavours

• Selenium Core
Four Flavours

• Selenium Core
• Selenium IDE
Four Flavours

• Selenium Core
• Selenium IDE
• Selenium Remote Control (RC)
Four Flavours

• Selenium Core
• Selenium IDE
• Selenium Remote Control (RC)
• Selenium on Rails
Selenium Core

                                                     Browser




                                          ...
Selenium Core

                                                     Browser




                                          ...
Selenium Core

                                                     Browser




                                          ...
Selenium RC

                                                    Browser




                                             ...
Selenium RC

                                                    Browser




                                             ...
Selenium RC

                                                    Browser




                                             ...
Selenium RC

                                                    Browser




                                             ...
Selenium RC

                                                    Browser




                                             ...
Selenium IDE

                                                   Browser



                                              ...
Selenium IDE

                                                                         Browser
                           ...
Selenium IDE

                                                                         Browser
                           ...
Selenium on Rails

                                                   Browser



                                         ...
Selenium on Rails

                                                   Browser


                                          ...
Pros and Cons
Pros and Cons

• Runs using a real browser
Pros and Cons

• Runs using a real browser
• Cross-platform & cross-browser
Pros and Cons

• Runs using a real browser
• Cross-platform & cross-browser
• Language-agnostic
Pros and Cons

• Runs using a real browser
• Cross-platform & cross-browser
• Language-agnostic
• Hard to test across host...
Pros and Cons

• Runs using a real browser
• Cross-platform & cross-browser
• Language-agnostic
• Hard to test across host...
Demo
Upcoming SlideShare
Loading in...5
×

Web application testing with Selenium

14,413

Published on

Slides from presentation at BarcampBrighton in November 2007.

Published in: Technology
2 Comments
8 Likes
Statistics
Notes
No Downloads
Views
Total Views
14,413
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
844
Comments
2
Likes
8
Embeds 0
No embeds

No notes for slide

Web application testing with Selenium

  1. 1. Web Application Testing With Selenium Kerry Buckley
  2. 2. What’s Selenium? Created by Thoughtworks Uses AJAX & magic
  3. 3. What’s Selenium? • Web testing framework Created by Thoughtworks Uses AJAX & magic
  4. 4. What’s Selenium? • Web testing framework • Runs in a browser Created by Thoughtworks Uses AJAX & magic
  5. 5. What’s Selenium? • Web testing framework • Runs in a browser • HTML & Javascript Created by Thoughtworks Uses AJAX & magic
  6. 6. What’s Selenium? • Web testing framework • Runs in a browser • HTML & Javascript • Open source Created by Thoughtworks Uses AJAX & magic
  7. 7. What’s Selenium? • Web testing framework • Runs in a browser • HTML & Javascript • Open source • http://openqa.org/ Created by Thoughtworks Uses AJAX & magic
  8. 8. Four Flavours
  9. 9. Four Flavours • Selenium Core
  10. 10. Four Flavours • Selenium Core • Selenium IDE
  11. 11. Four Flavours • Selenium Core • Selenium IDE • Selenium Remote Control (RC)
  12. 12. Four Flavours • Selenium Core • Selenium IDE • Selenium Remote Control (RC) • Selenium on Rails
  13. 13. Selenium Core Browser Application Just HTML and Javascript, so can be installed in any web/app server. Install at any convenient path, as long as it’s onthe same server (host & port). Don’t deploy to live!
  14. 14. Selenium Core Browser Application Selenium Just HTML and Javascript, so can be installed in any web/app server. Install at any convenient path, as long as it’s onthe same server (host & port). Don’t deploy to live!
  15. 15. Selenium Core Browser Application Selenium Just HTML and Javascript, so can be installed in any web/app server. Install at any convenient path, as long as it’s onthe same server (host & port). Don’t deploy to live!
  16. 16. Selenium RC Browser Application No need to change application. Server launches, drives and kills browser(s). Acts as proxy to get round same-source policy.
  17. 17. Selenium RC Browser Selenium Application Server No need to change application. Server launches, drives and kills browser(s). Acts as proxy to get round same-source policy.
  18. 18. Selenium RC Browser Selenium Tests Application Server No need to change application. Server launches, drives and kills browser(s). Acts as proxy to get round same-source policy.
  19. 19. Selenium RC Browser Selenium Tests Application Server No need to change application. Server launches, drives and kills browser(s). Acts as proxy to get round same-source policy.
  20. 20. Selenium RC Browser Selenium Tests Application Server No need to change application. Server launches, drives and kills browser(s). Acts as proxy to get round same-source policy.
  21. 21. Selenium IDE Browser Application Firefox plugin. Single browser, but cross-platform. Record, edit and playback. Import/export various formats (HTML tables is default, like Selenium).
  22. 22. Selenium IDE Browser Selenium Application Firefox plugin. Single browser, but cross-platform. Record, edit and playback. Import/export various formats (HTML tables is default, like Selenium).
  23. 23. Selenium IDE Browser Selenium Application Firefox plugin. Single browser, but cross-platform. Record, edit and playback. Import/export various formats (HTML tables is default, like Selenium).
  24. 24. Selenium on Rails Browser Application Selenium Only runs in test mode, so you don’t need to remove it to deploy.
  25. 25. Selenium on Rails Browser ails Rc agi M Application Selenium Only runs in test mode, so you don’t need to remove it to deploy.
  26. 26. Pros and Cons
  27. 27. Pros and Cons • Runs using a real browser
  28. 28. Pros and Cons • Runs using a real browser • Cross-platform & cross-browser
  29. 29. Pros and Cons • Runs using a real browser • Cross-platform & cross-browser • Language-agnostic
  30. 30. Pros and Cons • Runs using a real browser • Cross-platform & cross-browser • Language-agnostic • Hard to test across hosts or ports
  31. 31. Pros and Cons • Runs using a real browser • Cross-platform & cross-browser • Language-agnostic • Hard to test across hosts or ports • including SSL/non-SSL
  32. 32. Demo
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×