Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Selenium and Sauce Labs

on

  • 6,155 views

An overview of Selenium, including Selenium IDE, Selenium RC, Selenium Grid, and Sauce OnDemand (A cloud-hosted Selenium test infrastructure service). Also covers an overview of upcoming features in ...

An overview of Selenium, including Selenium IDE, Selenium RC, Selenium Grid, and Sauce OnDemand (A cloud-hosted Selenium test infrastructure service). Also covers an overview of upcoming features in Selenium 2, and how to best use Selenium: use of the Page Object patter, and how to use with continuous integration.

Statistics

Views

Total Views
6,155
Views on SlideShare
6,143
Embed Views
12

Actions

Likes
1
Downloads
139
Comments
0

3 Embeds 12

https://twimg0-a.akamaihd.net 9
http://a0.twimg.com 2
http://staging29.local.twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Selenium and Sauce Labs Presentation Transcript

  • 1. Selenium and Sauce Labs Jason Huggins twitter: @hugs email: hugs@saucelabs.com
  • 2. Agenda • Overview of Selenium • Selenium IDE, RC, Grid • Sauce Labs and Sauce OnDemand • Demo • Selenium IDE, Sauce OnDemand • Tips and Tricks • Selenium 2 • Q&A
  • 3. The Problem
  • 4. Automated Source: - F.O.X.: http://www.flickr.com/photos/kv/499219/
  • 5. Ajax
  • 6. Workflows
  • 7. What is Selenium?
  • 8. Selenium IDE for Firefox
  • 9. “Selenese”
  • 10. !"#$%"&'$(%)$* 10 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=:
  • 11. Example Selenium RC Test - Java
  • 12. Example Selenium RC Test - C#
  • 13. Selenium Remote Control Selenium RC Server Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script
  • 14. Servers Time Unit of Work
  • 15. Servers Time Unit of Work
  • 16. !"#$ Selenium Grid %&&'())***+,-#./"+.01)'%0&02)$345)678
  • 17. Sauce Labs
  • 18. What Sauce Labs Does • Cloud-hosted Selenium for: • Speed—run tests in parallel • Pain-free infrastructure (test infrastructure is notoriously fussy, fiddly due to accelerating Browser numbers and version pace, security patches etc.) • Higher availability, repeatability • Value-added (enhanced, certified) distros: • Sauce RC (Selenium RC (remote control)) • Sauce IDE (Selenium IDE) • Commercial Support for Selenium
  • 19. !"#$ OnDemand (just like Grid) Sauce %&&'())***+,-#./"+.01)'%0&02)$345)678
  • 20. Demo!
  • 21. How to Avoid Selenium Poisoning
  • 22. Intent Action
  • 23. Action • open 'www.example.com' • clickAndWait 'link=Log in' • type 'User Id', 'hugs@saucelabs.com' • type 'password', '12345678' • clickAndWait 'Log In'
  • 24. Intent • Log in • Change password • Modify profile • Log out
  • 25. 1. Write intent. 2. Map to actions.
  • 26. Seek higher level abstractions
  • 27. Hudson Ant/NAnt xUnit Selenium
  • 28. Hudson Ant/NAnt xUnit Business Specific Library Selenium
  • 29. Page Object Model
  • 30. Google: “Selenium Page Objects”
  • 31. Start small
  • 32. It’ll get big anyway
  • 33. What to start with? • Smoke tests • “Money path” • New features
  • 34. Benefits of Short Tests • Easier to read • Easier to write • Easier to debug/maintain • Easier to parallelize
  • 35. Selenium 2?
  • 36. Better Control • Native Keyboard & Mouse Events • Same Origin Policy / XSS / HTTP(S) • Pop-ups, dialogs – Basic Authentication – Self-signed certificates – File upload/download
  • 37. Cleaner API • WebDriver Object • WebElement Objects
  • 38. Selenium Remote Control Selenium RC Server Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script
  • 39. Selenium 2 Selenium RC Server Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script
  • 40. Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP Web App Test Script
  • 41. Python, Ruby, Your Awesome Java, C#, or Perl C/C++ HTTP Web App Test Script
  • 42. But... Java... Is... Still... In... There... Selenium Grid Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script
  • 43. But... Java... Is... Still... In... There... Selenium Remote Server Python, Ruby, Ye Ol' Internet Java, C#, or Perl HTTP (Sauce Labs) HTTP HTTP Test Script ... but now only when you need it.
  • 44. Q&A