Pankaj - Wipro

26
Wipro confidential © Copyright 2007 Wipro Ltd 1 Test Automation – Tools and Frameworks

description

sdd

Transcript of Pankaj - Wipro

Wipro confidential © Copyright 2007 Wipro Ltd 1

Test Automation – Tools and Frameworks

2

Test Automation Introduction Test Automation – Learning Opportunities Test Automation Practice - Overview Test Automation – An understanding Test Automation Framework Test Automation Framework Types Test Automation Strategy Guideline

Topics Covered

3

Test Automation: Introduction

Automation: Facts Manual scripts needed Ideal for regression testing Benefits come from discipline in analysis and planning Causes significant schedule impact at introduction Require more programming and design skills from testers Require continuous maintenance

Automation: Myths High immediate ROI from automation One tool that fits perfectly Need to substitute skilled manual testers Preclude manual testing 100% Automation of all existing manual tests

4

Maturity of Automation Testing

Wipro confidential © Copyright 2007 Wipro Ltd 5

Test Automation Tools – Market Trends

6

Vendor Based Tools

Source :

7

Freeware Tools

FEATURES/Tools Selenium Sahi Watij/r/n

Open Source Yes Yes Yes

OS Supported Windows, Linux or Mac

OS Independent. Needs Java 1.4+ windows

Ease of Use Good Good Very good

Scripting language Java/.net/Ruby Java Java/.net/Ruby

Documentation Average Average Average

Support User Group User Group User Group

Wipro confidential © Copyright 2007 Wipro Ltd 8

Building a Test Automation Framework

9

Environment independent Modularized scripts/test data to increase robustness Reusable generic functions and applications specific

functions libraries. Defined folder structure Scripting guidelines and review checklists Error handling and recovery techniques Defined maintenance process Collection and analysis of the metrics

Basics for a successful framework

10

Test Automation Framework: Approach

11

Automation Test Strategy Guidelines In order to make the most of our test strategy, we need to make

it reusable and manageable. To that end, there are some essential guiding principles we should follow when developing our overall test strategy: Test automation is a fulltime effort, not a sideline. The test design and the test framework are totally separate

entities. The test framework should be application-independent. The test framework must be easy to expand, maintain, and

perpetuate. The test strategy/design vocabulary should be framework

independent. The test strategy/design should remove most testers from

the complexities of the test framework.

12

Test Automation Framework: Components

13

A Sample Framework Model

14

Test Automation

15

Environment independent – implemented through global data table

Modularized scripts/test data to increase robustness Reusable generic functions and applications specific functions

libraries. Defined folder structure Scripting guidelines and review checklists Error handling and recovery techniques Defined maintenance process Collection and analysis of the metrics Test Result Report Generation Criteria Naming Convention and Standard

Successful Automation framework - Pointers

16

Automation Framework Types

Test automation framework is a set of assumptions, concepts, and practices that provide support for Automated Software Testing.

Basic Test automation frameworks specifically are following: Test Script Modularity Test Library Architecture keyword-Driven/Table-Driven Testing Data-Driven Testing Hybrid Test Automation.

17

Test Script Modularity Framework

The test script modularity framework requires the creation of small, independent scripts that represent Modules Sections Functions

18

Test Library Architecture Framework

The Test Library Architecture framework is very similar to the test script modularity framework and offers the same advantages, but it divides the application-under-test into two part Procedures Functions

These library function from the library files are then called directly to the test case script.

19

Keyword-Driven Testing Framework

Keyword-driven tests look very similar to manual test cases. In a keyword-driven test, the functionality of the application-under-test is documented in a table as well as in step-by-step instructions for each test.

In Keyword driven testing user input data entered by Keyboard to execute the number of test.

20

Data-Driven Testing Framework

Data-Driven Testing is a framework where test input and output values are read from data files (Data pools, ODBC sources, CVS files, Excel files, DAO objects, ADO objects, and such) and are loaded into variables in captured or manually coded scripts.

In this framework, variables are used for both input values and output verification values.

21

Hybrid Test Automation Framework In this framework all types of framework is used. Following is the

standard of Hybrid Test Automation Framework. Test library Data driven Library function GUI library/Object Repository Test script management Configuration management (Test script modification records) Naming convention

22

Hybrid Test Automation Framework

23

Summary: Critical factors for Automation success

Treated as a critical process and supported by senior management

Robust and extendable automation framework Clear ownership and integration of test technology

and process Rigorous measurement program to capture progress Skilled test engineering professionals deployed with

the right tools

24

Automation Testing Risks

Frequent changes in the Application and Regression test suite.

Major technology changes impacting the scripts Absence of process/implementation/continuous

improvement. Resource knowledge on applications Lack of Knowledge of Automation Programming Implementation of the Framework

25

Question?

26

URL: www.wipro.com/testingContact us at: [email protected]

Thank You