introduction to holmium

14
Introduction to Holmium Sajnikanth Suriyanarayanan Presented at Vistaprint on 14th May 2014

Upload: sajnikanth-suriyanarayanan

Post on 13-May-2015

866 views

Category:

Technology


2 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Introduction to holmium

Introduction to HolmiumSajnikanth Suriyanarayanan

Presented at Vistaprint on 14th May 2014

Page 2: Introduction to holmium

10+ years in Software Quality Assurance and Functional TestingLead Quality Assurance at Vistaprint SingaporeContributor to Holmiumhttp://sajnikanth.com

About Me

Page 3: Introduction to holmium

ContentsSample scriptnosetestsChallengesPage ObjectsUsing HolmiumQuestions

Page 4: Introduction to holmium

Testing Login

Page 5: Introduction to holmium

nosetestsOrganize tests betterRun selected testsPlugin ArchitectureList all testsTest Runner (less boilerplate code)

Holmium is a nose plugin

Page 6: Introduction to holmium

Some Challenges

Page 7: Introduction to holmium

Page ObjectsRemove elements from testsActions implemented as methodsEasy maintenanceCleaner testshttp://pragprog.com/magazines/2010-08/page-objects-in-python

Page 8: Introduction to holmium

Holmium - Page Objects made easy

Page 9: Introduction to holmium

Holmium - Test Script

Page 10: Introduction to holmium

Uses holmium page objectsBrowsers supported - chrome, firefox, opera, safari, ie, phantomjs

Run with nosetests

Page 11: Introduction to holmium

Other Options

Environment and login credentials can be a dictionaryUser-Agents supported - iphone, ipad, android...

Page 12: Introduction to holmium

ConclusionEasier than vanilla page objectsMore options during run timeNo-BS test codehttp://holmiumcore.readthedocs.org

Page 13: Introduction to holmium

Resourceshttps://github.com/sajnikanth/holmium-demoView this presentation from http://sajnikanth.com

Page 14: Introduction to holmium

Questions?