First Look at New Technology (#2): Testing With Selenium

1,835 views
1,748 views

Published on

Regression bugs creeping into production? Upset customers? Lost revenue? A better testing regimen can help in these situations. There are many types of testing techniques, but functional testing with Selenium can give you peace of mind that that your application works just as the user expects it to work, in the browsers they use every day.

Published in: Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,835
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
65
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

First Look at New Technology (#2): Testing With Selenium

  1. 1. How to Test Salesforce Apps with Selenium<br />Developers<br />Jason Huggins: Sauce Labs, Inc.<br />Cheryl Porro: salesforce.com<br />Yudi Nagata: salesforce.com<br />
  2. 2. Safe Harbor<br />Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.<br />The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year ended January 31, 2010. This documents and others are available on the SEC Filings section of the Investor Information section of our Web site. <br />Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.<br />
  3. 3. The Problem – So Many Platforms to test!<br />
  4. 4. The Solution – Needs to Be Automated…<br />Source: - F.O.X.: http://www.flickr.com/photos/kv/499219/<br />
  5. 5. …And Can Deal with Ajax…<br />
  6. 6. …And Verify End-to-End Workflows.<br />
  7. 7. Selenium<br />
  8. 8. Selenium IDE for Firefox<br />
  9. 9. “Selenese”<br />
  10. 10. Remote Control<br />
  11. 11. Example Selenium RC Test – Java<br />
  12. 12. Selenium Remote Control Architecture<br />
  13. 13. Unit of Work<br />Servers<br />Time<br />
  14. 14. Unit of Work<br />Servers<br />Time<br />
  15. 15. Selenium Grid<br />
  16. 16. Sauce Labs<br />
  17. 17. Sauce Labs<br /><ul><li>Cloud-hosted Selenium for:
  18. 18. Speed—run tests in parallel
  19. 19. Pain-free infrastructure (test infrastructure is notoriously fussy, fiddly due to accelerating Browser numbers and version pace, security patches etc.)
  20. 20. Higher availability, repeatability
  21. 21. Commercial Support for Selenium</li></li></ul><li>Sauce OnDemand(just like Se Grid)<br />
  22. 22. Demo!<br />
  23. 23. How to Avoid Selenium Poisoning<br />
  24. 24. Intent Action<br />
  25. 25. Action<br />open 'www.example.com'<br />clickAndWait 'link=Log in'<br />type 'User Id', 'hugs@saucelabs.com'<br />type 'password', '12345678'<br />clickAndWait 'Log In'<br />
  26. 26. Intent<br />Log in<br />Change password<br />Modify profile<br />Log out <br />
  27. 27. The Really Good “Stack”<br />Hudson<br />Ant/NAnt<br />xUnit<br />Selenium<br />
  28. 28. The Ideal “Stack”<br />Hudson<br />Ant/NAnt<br />xUnit<br /> Business Specific Library<br />Selenium<br />
  29. 29. Page Object Model<br />
  30. 30. Start Small<br />
  31. 31. It’ll Get Big Anyway<br />
  32. 32. What to Start With?<br />Smoke tests<br />“Money path”<br />New features<br />
  33. 33. Benefits of Short Tests<br />Easier to read<br />Easier to write<br />Easier to debug/maintain<br />Easier to parallelize<br />
  34. 34. Find Out More!<br />http://sauceforce-developer-edition.na1.force.com/<br />http://code.google.com/p/apexselenese/<br />http://code.google.com/p/sauceforce/<br />http://code.google.com/p/testcloudconfigurator/<br />http://seleniumhq.org<br />http://saucelabs.com<br />
  35. 35. How Could Dreamforce Be Better? Tell Us!<br />Log in to the Dreamforce app to submit<br />surveys for the sessions you attended<br />Use the Dreamforce Mobile app to submit surveys<br />OR<br />Every session survey you submit is a chance to win an iPod nano!<br />

×