Test Automation -Selenium



Similar documents
SOFTWARE TESTING TRAINING COURSES CONTENTS

Benefits of Test Automation for Agile Testing

Software Automated Testing

Viewpoint. Choosing the right automation tool and framework is critical to project success. - Harsh Bajaj, Technical Test Lead ECSIVS, Infosys

STUDY AND ANALYSIS OF AUTOMATION TESTING TECHNIQUES

Automation using Selenium

AUTOMATING THE WEB APPLICATIONS USING THE SELENIUM RC

Testing Tools Content (Manual with Selenium) Levels of Testing

Testhouse Training Portfolio

Know the Difference. Unified Functional Testing (UFT) and Lean Functional Testing (LeanFT) from HP

Comparative Study of Automated Testing Tools: Selenium, Quick Test Professional and Testcomplete

Selenium An Effective Weapon In The Open Source Armory

QA Tools (QTP, QC/ALM), Selenium with Java, Mobile with Automation, Unix, SQL, SOAP UI

Software Quality Testing Course Material

Copyrighted , Address :- EH1-Infotech, SCF 69, Top Floor, Phase 3B-2, Sector 60, Mohali (Chandigarh),

QA Classroom and Online training from Yes-M Systems

Test Automation Tool comparison HP UFT/QTP vs. Selenium - Prashant Malhotra

Business Application Services Testing

QEx Whitepaper. Automation Testing Pillar: Selenium. Naveen Saxena. AuthOr:

Federal Secure Cloud Testing as a Service - TaaS Center of Excellence (CoE) Robert L. Linton

Quality Assurance - Karthik

QA Tools (QTP, QC/ALM), ETL Testing, Selenium, Mobile, Unix, SQL, SOAP UI

GLOBAL JOURNAL OF ENGINEERING SCIENCE AND RESEARCHES

Continuous Integration

Automated testing for Mobility New age applications require New age Mobility solutions

Certified Selenium Professional VS-1083

Latest Trends in Testing. Ajay K Chhokra

ACE 2011 International

SharePoint Training. Yes-M Systems LLC. Length: Hours Course

Adaptive Automated GUI Testing Producing Test Frameworks to Withstand Change

Business Assurance & Testing QEx Automation Platform

Web based Automation Testing and Tools

Regression & Load Testing BI EE 11g

"Selecting Mobile Application Automation Tools"

DESIGN OF AUTOMATION SCRIPTS EXECUTION APPLICATION FOR SELENIUM WEBDRIVER AND TestNG FRAMEWORK

Job Oriented Instructor Led Face2Face True Live Online I.T. Training for Everyone Worldwide

A Comprehensive Review of Web-based Automation Testing Tools

Automation Guide for SAP Regression Testing. Author: Bhavana Pande

What s new in the HP Functional Testing 11.5 suite Ronit Soen, product marketing John Jeremiah, product marketing

Exploring Web Testing Tools For Use In A Classroom

Automating Testing and Configuration Data Migration in OTM/GTM Projects using Open Source Tools By Rakesh Raveendran Oracle Consulting

International Journal of Advanced Engineering Research and Science (IJAERS) Vol-2, Issue-11, Nov- 2015] ISSN:

Automated Testing Best Practices

Table of contents. Enterprise Resource Planning (ERP) functional testing best practices: Ten steps to ERP systems reliability

SOFTWARE SERVICES. Enterprise QA Solutions. Technology Powered Industry Diversified Excellence Driven

View Point. Developing a successful Point-of-Sale (POS) test automation strategy. Abstract. - Sujith George

Regression & Load Testing BI EE 11g

SAP RAPID DEPLOYMENT FOR APPLICATION LIFECYCLE MANAGEMENT WAVE TEST MANAGEMENT INFORMATION SHEET FOR SERVICE DELIVERY

What is the best automation testing approach?

Scriptless Test Automation. Next generation technique for improvement in software testing. Version 1.0 February, 2011 WHITE PAPER

WEB APPLICATION TESTING SOLUTIONS WITH SELENIUM

ASSURING SOFTWARE QUALITY USING VISUAL STUDIO 2010

BDD FOR AUTOMATING WEB APPLICATION TESTING. Stephen de Vries

White Paper: 5GL RAD Development

Cognos TM1-10 Course Curriculum

LR120 Load Runner 12.0 Essentials Instructor-Led Training Version 12.0

Security and Your SAP System When Working with Winshuttle Products

ON-DEMAND TRAINING FOR PROFESSIONALS

Automation and Virtualization, the pillars of Continuous Testing

LoadRunner and Performance Center v11.52 Technical Awareness Webinar Training

On the Edge of Mobility Building a Bridge to Quality October 22, 2013

We Transform IDEA into Business with Right Blend of Talent, Technology & Techniques

Fundamentals of LoadRunner 9.0 (2 Days)

Basics of Automation and Overview of QTP. By, Anver Sathic Abdul Subhan

COMMON All Day Lab 10/16/2007 Hands on VB.net and ASP.Net for iseries Developers

Compare versions with Maximizer CRM 12: Summer 2013

Mobile Test Automation Framework

Internet Engineering: Web Application Architecture. Ali Kamandi Sharif University of Technology Fall 2007

How to Maximise ROI and drive IT Governance with Visual Studio Team System

Work Experience HP ALM (Quality Center), Bugzilla

Sonata s Product Quality Assurance Services

Best Practice Manual Testing of E2E processes using SAP Solution Manager Test Option 1. Marcus Wefers, ALM Solution Management, AGS, SAP AG

CATALOG OF CLASSES IT and Technical Courses

Testing Lifecycle: Don t be a fool, use a proper tool.

Microsoft Visual Basic Scripting Edition and Microsoft Windows Script Host Essentials

Better Software Though Expertise, Collaboration & Automation. BDD, DevOps and Testing

Human Resources Department.

Selecting the Right Mobile Test Automation Strategy: Challenges and Principles

8913, Applications in Microsoft Dynamics CRM 4.0

Software Testing Automation

Implementing a Data Warehouse with Microsoft SQL Server

Web Cloud Architecture

1... Overview of Project Portfolio Management with SAP Requirements Scenario for Project Portfolio Management

Programming. Languages & Frameworks. Hans- Pe(er Halvorsen, M.Sc. h(p://home.hit.no/~hansha/?page=sodware_development

Initial Value Proposition (IVP)

MANUAL TESTING. (Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn.?? New Batches Info

Course 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012

Web Pages. Static Web Pages SHTML

QTP Open Source Test Automation Framework Introduction

Implementing a Data Warehouse with Microsoft SQL Server 2012

Course Catalog for QA Software Testing Training

Your Technology Partner Offshore and Onsite. Services Portfolio

Solutions for Quality Management in a Agile and Mobile World

Transcription:

Test Automation -Selenium Presented By: Sachin Kumar 10-Dec-2011

About Corbus Corbus, LLC, a global solutions provider founded in 1994, offers superior services combining years of experience, solid partnerships and adaptability. Corbus solution offering includes Information Technology (IT), Supply Chain Management (SCM) and Project Management (PMO) services. IT portfolio consists of E-Commerce, Business Intelligence, Content Management, Third Party Testing and Custom Solutions. In SCM, Corbus specialize in Source-to-Pay (S2P), Procure-to-Pay (P2P), Spend Management and MRO Management Team: Rajesh (Raj) K. Soin - CEO David P Spencer - COO Jason Evans - Sr. VP Sales & Marketing Dr. Amit Shekhar India Head Stephen - CFO

Corbus IVS Offerings Digital Marketing Mobile Application Testing Functional Testing in Social Media Campaign Management Competitive Intelligence ERP Testing SAP Testing Siebel testing CRM Testing Business Workflow testing role based testing product catalog testing shopping & checkout flow testing Interface testing Manage Full Lifecycle Testing Manage Integrated System Testing Compliance Testing Usability Testing Web Services Testing scope based testing MS BI SUITE INFORMATICA COGNOS MICRO STRAEGY KALEIDO ANDROID iphone BB pad WINDOWS MOBILE 3 E- Commerce (B2B/B2C) Testing BI Testing Web App Testing Specialized Services TaaS Testing as a Service Managed Testing Services Test Advisory Consulting Tools Selenium QTP Load runner Meter Bromine HP Web Inspect Hi Software Accessibility

Agenda Challenges of Test Automation Points to consider while calculating the ROI for automation Can automation suite be used beyond Regression testing? To what extent can you automate? When to start automation? Automation Life Cycle Advantages and disadvantages of using Selenium Selenium Vs other commercial tools Test case template and checklist for writing effective test cases Hybrid framework on Selenium using C#.

Challenges Test Automation Selection of Automation Tool No Defined Process for Executing Automation Project within an organization Availability of Right Resources Commitment from Customer or Management

Overcoming Challenges Using Selenium Selenium is an Open Source Tool developed by ThoughtWorks. It is one of the best tool for web application automation. Some of the Selenium Tool under ThoughtWorks umbrella are: Selenium IDE It is a Firefox add-on that makes it easy to record and playback tests in Firefox 2+. You can even use it to generate code to run the tests with Selenium Remote Control. Selenium Remote Control (RC) It is a client/server system that allows you to control web browsers locally or on other computers, using almost any programming language and testing framework. Selenium Grid It takes Selenium Remote Control to another level by running tests on many servers at the same time and cutting down on the time it takes to test multiple browsers or operating systems. Bromine It is a web-based QA tool of Selenium that enables you to easily run Selenium RC tests and view the results. It scales beautifully, from the single tester who just wants to run some tests without all the hassle; to the corporate solution, with multiple user-groups and hundreds of test cases. Selenium does not have any cost attached to it. The only cost is the effort which will go for designing and developing the script for the application Selenium scripting can be done in a number of programming languages like C#, Perl, PHP, Ruby etc.. One can easily find right resources for the programming language chosen for Selenium Automation

Automation ROI Points for Consideration No.of Test Cases Planned for Automation Number of Test Iteration Planned in a Year Maintenance/Support Cost Effortfor Manually Executing the Test Cases Automation Effort for Automating the Test Cases Net Savings in a Year Automation Execution Effort Automation Cost

Automation ROI Illustration Application Name ABC Number of Test Cases 2000 (Sample Number) Manual Effort (hours) to execute 168 ( Considering 5 Min is required for one Test Case Execution) Automated Effort (hours) 66 (Considering 2 Min for one Test Script) to execute Number of Test Iteration Planned Yearly 10 (10 Iteration are planned in a Year. Each iteration will require execution of 2000 Test Cases). Total Projected Hours Saved (168*10) (66*10) = 1680 660 = 1020 Total Projected FTE Savings Annually ($) 1020 * 60 =61,200 (Considering 60$ per hour is one FTE Rate) Savings % (1020/1680)*100 = 61% Automation Effort Estimate 4000 (Considering 2 hours for Scripting one Test Case) Automated Effort FTE Cost ($) 4000 * 60 = 2,40,000 (Considering 60$ per hour is one FTE Rate) Maintenance/Support Cost ($) 5% of 2,40,000 = 12,000 (Considering 5% of Automation Effort is the maintenance/support Cost) Net Savings Annually (1 st Year) (61,200 2,40,000) - 12,000) = -1,90,800 2 nd Year Savings 61,200 12,000 = 49,200

Automation Beyond Regression Testing Substitute 1 st Round of Manual Testing with Automation Using Progressive Automation Use it for Smoke Testing, Sanity Testing If 50-60% of the test cases do not require Manual Execution even for the first time, then imagine the cost and effort benefit due to automation.

How much Automation? Automation %age Metrics based on Complexity Complexity Target %age for Automation Simple 100% Medium 60 80% Complex 40-60% Simple - The Web based application is a static site with Navigation, Content Rendering, Login Feature, Role wise access, Simple Transaction and a Content Management System with well defined workflow. Medium - The application is dynamic in nature like Online Booking System or Rail Reservation System. Complex - The application built for Banking domain, Ecommerce Domain wherein integration with other enterprise system is involved. The data is coming through various layers and the business logic is complex. Note: The above metrics are prepared based on our organization benchmark and may vary depending on the nature of application and underlying business

When to Start Automation - Progressive

Automation Lifecycle Understand AUT Review the available Test Cases Modify the Test Cases tomake it modular IdentifyAutomation Candidate from existing test cases Design the Framework Start Generating the Script Debug the script and implementrobust error handling Peer Review of Script Unit Test the Script Batch Run the Script Analyze the Result Make Changes based on Result Analysis Handover to Test Execution Team

Selenium Advantages & Disadvantages Advantages Open source tool without any cost. Disadvantages Object scanning feature is not available, so one has to record the application in Selenium IDE and check the Object detail from the generated Selenese code Supports many languages for scripting like You cannot drive your test cases from Test Java, Groovy, C#, Perl, PHP, Python and Ruby Management Tool other than Bromine. You have to manually drive the test cases from the Framework using NUnit Support for multiple browser and platform. You can run the same version of the script on multiple browsers and platform by designing a framework around it. Selenium can only be used for automating Web Based System and cannot be used for Desktop application

Comparison Selenium Vs. QTP Feature Selenium QTP Comments Recording Feature X X Use Selenium IDE for recording Playback Feature X X Use Selenium IDE for Playback Checkpoints X X Use Inbuilt Selenium Checkpoints, function, methods etc. for implementing verification point In Built Report - X Build Report Module in Selenium to get an Excel based Report. Script Customization X X Multiple Browser Support Multiple Language Support for Scripting X X X - Modularity X X You can add conditional logic, loops in Selenium Script when used with language of your choice. Selenium provides inherent capability for running the same script on multiple browsers which is supported in QTP but complex to implement. Selenium scripting can be done in C#, Perl, PHP, Ruby, Groovy etc. while QTP scripting can be done only in VB Script. This 1 feature will provide the Scripter the power of Object Oriented Programming which can be used to design a robust framework even for complex application. QTP does support limited modularity as VB scripting is the core language use for Automation. OOPS X - Selenium choice of language gives the power of OOPS. Extensibility X - Since selenium is an open source tool and its core library file is exposed to user, so you can extend the Library to make amendment as per your requirement. QTP base code cannot be extended being a legacy tool.

Test Case Template Check the Modularity of the test cases. The test cases should be written in a modular way. The reusable test cases such as Login, Navigation etc.. should be marked as Template Test Case which will be referred while writing the test cases for other Business Function. These Reusable Test Cases can be maintained separately to for easy reference while doing automation.

Hybrid Framework in Selenium using C# Pre-requisite Visual Studio 2003 with C# NUnit Tool Selenium.NET Client Driver Selenium IDE in Firefox Selenium RC JRE for Selenium RC Excel Report Module Automation Steps Record the Test Steps for each Scenario in Selenium IDE Insert required validation point while recording the script Convert the Selenese Script into C# Copy the C# Script Open Visual Studio and create a project Add C# File and Paste the copied Script Add Conditional Statement as per Test Case Steps Call the Reporting Module wherever you are checking the Test Condition for Pass & Fail Compile the code and fix any compilation error. Add the Compiles DLLs in NUNIT Unit Test the Test Script Analyze the Result Turnover the Test Script for execution.

Online References http://www.seleniumhq.org http://code.google.com/p/flash-selenium/ http://release.seleniumhq.org/selenium-core/0.8.0/reference.html Selenium Tool Latest Version URL Selenium IDE 1.14 http://release.seleniumhq.org/seleniumide/1.4.1/selenium-ide-1.4.1.xpi Selenium RC 2.14.0 http://selenium.googlecode.com/files/seleniumserver-standalone-2.14.0.jar Selenium Client Drivers Java 2.14.0 http://selenium.googlecode.com/files/selenium-java- 2.14.0.zip C# 2.14.0 http://selenium.googlecode.com/files/seleniumdotnet-2.14.0.zip Ruby 2.14.0 http://rubygems.org/gems/selenium-webdriver Python 2.14.0 http://pypi.python.org/pypi/selenium

Next Steps Get Started Visit - http://seleniumhq.org/docs/ For any query, please drop me an email at sachink@corbus.com Visit us at www.corbus.com

Q&A