introduction to holmium

Post on 13-May-2015

866 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Introduction to HolmiumSajnikanth Suriyanarayanan

Presented at Vistaprint on 14th May 2014

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

About Me

ContentsSample scriptnosetestsChallengesPage ObjectsUsing HolmiumQuestions

Testing Login

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

Holmium is a nose plugin

Some Challenges

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

Holmium - Page Objects made easy

Holmium - Test Script

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

Run with nosetests

Other Options

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

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

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

Questions?

top related