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.

Introduction to holmium

2,017 views

Published on

Introduction to using holmium page-objects to write tests using selenium in python.

Published in: Technology
  • Be the first to comment

Introduction to holmium

  1. 1. Introduction to Holmium Sajnikanth Suriyanarayanan Presented at Vistaprint on 14th May 2014
  2. 2. 10+ years in Software Quality Assurance and Functional Testing Lead Quality Assurance at Vistaprint Singapore Contributor to Holmium http://sajnikanth.com About Me
  3. 3. Contents Sample script nosetests Challenges Page Objects Using Holmium Questions
  4. 4. Testing Login
  5. 5. nosetests Organize tests better Run selected tests Plugin Architecture List all tests Test Runner (less boilerplate code) Holmium is a nose plugin
  6. 6. Some Challenges
  7. 7. Page Objects Remove elements from tests Actions implemented as methods Easy maintenance Cleaner tests http://pragprog.com/magazines/2010-08/page-objects-in-python
  8. 8. Holmium - Page Objects made easy
  9. 9. Holmium - Test Script
  10. 10. Uses holmium page objects Browsers supported - chrome, firefox, opera, safari, ie, phantomjs Run with nosetests
  11. 11. Other Options Environment and login credentials can be a dictionary User-Agents supported - iphone, ipad, android ...
  12. 12. Conclusion Easier than vanilla page objects More options during run time No-BS test code http://holmiumcore.readthedocs.org
  13. 13. Resources https://github.com/sajnikanth/holmium-demo View this presentation from http://sajnikanth.com
  14. 14. Questions?

×