You are on page 1of 6

Tavant Selenium Framework Turning Good Selenium into Great

-------------------------------------------------------------------------------------------------------------

White Paper
Tavant Selenium Framework: Turning Good Selenium into Great Sanjeev K Gupta

_____________________________________________________________________________________ www.tavant.com

Tavant Technologies
P-1

Tavant Selenium Framework Turning Good Selenium into Great

-------------------------------------------------------------------------------------------------------------

Introduction
Though commercial testing tools are well-defined and easy to use, they are often accompanied by two major limitations -- cost and license constraints. Many IT organizations have to pay a huge price for commercial automation tools and maintaining their inflexible licenses over long periods of time. This is where open source tools like Selenium add a lot of value to contemporary commercial tools like QTP, SilkTest, etc. However, implementation of Selenium in project automation space is also not devoid of challenges.

Challenges in Selenium Implementation


Selenium, in its existing form, offers great value for automation. However, the tools existing framework cannot scale up to enterprise test automation needs and poses certain challenges, such as: Lack of re-usability and maintainability of code base A user-friendly interface for tester to create test case Backward compatibility Migration of old test scripts in the event of version upgradation of Selenium engine.

Beside these, often there is a complex test case structure based on Selenium API call, which requires decent coding knowledge.

Benefits of Tavant Selenium Framework Easy migration and upgradation of test scripts Easy to use for testers Well-defined user interface for test definition and creation Easy maintainability and reusability of test scripts Complete pre-bundled package Saves time in test case creation/modification Saves testers from the complexities of test frameworks

Tavant Selenium Framework (TSF)


To overcome the challenges associated with implementation of Selenium for project automation, Tavant Technologies has developed a framework the Tavant Selenium Framework (TSF). Tavant carried out a comprehensive market analysis on different selenium-based automation frameworks and found that none of them offered a complete bundled package solution to any of challenges discussed above. Hence, Tavant developed a comprehensive automation framework, which offers an integrated bundled package solution to all challenges associated with implementation of Selenium for automation. Thus, Selenium is good but TSF makes it better.

_____________________________________________________________________________________ www.tavant.com

P-2

Tavant Selenium Framework Turning Good Selenium into Great

------------------------------------------------------------------------------------------------------------Tavant Selenium Framework: Implemention Approach


TSF implementation approach basically involved implementation of function modularization and abstraction layer to all our integrated modules. We developed different modules at abstraction level, which made test case creation an easy task by utilizing reusable functions, utility methods and Selenium APIs. The basic constituent of TSF is a common Function Library, which also has reusable modularized methods with application logic implemented at the abstract level. The chief driving engine of TSF is its integrated module called CORE, which supports Selenium 2.0 and Web Driver technologies. This facilitates migration of test scripts from previous to newer versions of Selenium in the event of Selenium upgradation. TSF maintains a common Object Repository, which makes editing and maintenance of test cases very easy, especially when features of an application under test change during different build releases. TSF provides a user friendly UI for test case creation in domain language of application. Tester can write without a thorough knowledge of coding as TSF presents very simple test case structure.

Basic Architecture OF TSF

_____________________________________________________________________________________ www.tavant.com

P-3

Tavant Selenium Framework Turning Good Selenium into Great

------------------------------------------------------------------------------------------------------------TSF can be easily integrated with different tools like Hudson, TestNG, JUnit, Ant, etc., depending on the project requirements. Besides, test reports can also be easily integrated with test management tools. A representation of the wide services offered by TSF is given below:

TSF

CORE

TSF - Extensibility and Features

Benefits of TSF
1. 2. 3. 4. 5. 6. 7. Easy migration and upgradation of test scripts Easy to use for testers Well-defined user interface for test definition and creation Easy maintainability and reusability of test scripts Complete pre-bundled package Saves time in test case creation/modification Saves testers from the complexities of test frameworks

Proven Real Data Results With TSF Implementation


We implemented TSF in one of the projects at Tavant Technologies and found significant improvement in data results: Before TSF implementation Total test cases: 200 Time to write test cases: 250 hours After TSF implementation Total test cases: 200 Time to write test cases: 100 hours

_____________________________________________________________________________________ www.tavant.com

P-4

Tavant Selenium Framework Turning Good Selenium into Great

------------------------------------------------------------------------------------------------------------Thus, TSF not only cut down the time required to write 200 test cases from 250 to 100 hours (i.e. 40% saving of time) but also helped us achieve significant savings in effort and costs. Migration of Scripts from Selenium 1.2 to 2.0 (Page Object Pattern) Number of tests Time taken for migration without TSF 100 80 hours, because scripts needed many customizations and changes. 20 hours, because changes were required only at the core API layer, so upgradation was 4X faster than traditional methods.

Time taken for migration with TSF

_____________________________________________________________________________________ www.tavant.com

P-5

Tavant Selenium Framework Turning Good Selenium into Great

------------------------------------------------------------------------------------------------------------About Tavant Technologies Tavant Technologies is a specialized IT solutions & services provider that leverages its expertise to provide impactful results to its customers. We have leveraged our unrivaled capabilities and domain insights to create game changing results for leading businesses across chosen industry micro-verticals. We are known for our long-lasting customer relationships, engineering excellence and passionate employees. Founded in 2000, we are headquartered in Santa Clara, California and service customers across North America, Europe, and Asia-Pacific. About the Author Sanjeev K Gupta is working as Sr. SQA Engineer at Tavant Technologies. He has over 4.5 years of industry experience in implementation of open source automation testing frameworks in a wide range of enterprise applications and products. Sanjeevs expertise lies in building frameworks and integration of open source tools.

Tavant Technologies, Inc. 3101 Jay Street, Santa Clara, CA 95054, USA Tel: (866) 9-TAVANT Fax: +1-408-519-5401 For more information, contact: bizdev@tavant.com Tavant Technologies. All rights reserved.
No part of this document may be reproduced, stored in retrieval system, transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without express written permission from Tavant Technologies.

www.tavant.com

_____________________________________________________________________________________ www.tavant.com

P-6

You might also like