© Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test...

23
© Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi

Transcript of © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test...

Page 1: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 2010IBM Confidential

Test Automation & Structured Robust Test Automation

Framework Implementation using QTP

Suresh Thamberi

Page 2: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 20102

Agenda

2

What is Test Automation? Automation Selection Criteria Benefits of automation Testing Components of Automation testing What is Automation Framework? Types of Test Automation Framework Structured Robust Automation Framework Architecture and Components Directory Structure For Framework Components Structured Robust Automation Framework Flow Diagram Structured Robust Automation Framework Approach Structured Robust Automation Framework Features and Benefits

Page 3: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 20103

“Testing the Application or Web sites by using Automation Tool is called Test Automation or Automation Test”

Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions.

Test automation involves automating a manual process already in place that uses a formalized testing process.

Automation Testing

Page 4: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 20104

Factors For Automation Testing

4

Test AutomationTest Automation

Automation Selection CriteriaAutomation Selection Criteria

Page 5: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 20105

Benefits of Automation

AS ALPS | Apr 21, 2023 | IBM Confidential5

Automation Testing BenifitsAutomation Testing Benifits

Page 6: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 20106

Components of Automation Testing

6

Automation Frame Work :

Automation Framework is a process of

Structuring and Organizing Scripts to increase

the level of reusability and readability of

scripts.

Tool :

Is a mechanism used to simplify and speed the

effort required for testing.

Regression Suite :

A collection of Regression scenarios in the form

of automated build

Automation Testing ComponentsAutomation Testing Components

Page 7: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 2010IBM Confidential

Structured Robust Test Automation Framework Approach

7

Page 8: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

© Copyright IBM Corporation 20108

Introduction to Automation Framework

Test Automation Framework is defined as a set

of assumptions, concepts, and practices that

constitute a work platform or support for

automated testing.

Automation Framework is a process of

Structuring and Organizing Scripts to increase

the level of reusability and readability of

scripts.

A framework defines the organization's way of

doing things - a 'Single Standard'.

8

Automation FrameworkAutomation Framework

Page 9: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

9 © Copyright IBM Corporation 20109

Types of Test Automation Framework

Data Driven Automation Framework

StructuredRobust

Automation Framework Modular

Automation Framework

Hybrid Automation Framework

Test Automation Framework

Types of Automation FrameworksTypes of Automation Frameworks

Page 10: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

10 © Copyright IBM Corporation 201010

Architecture of Hybrid Automation Framework

10

Page 11: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

11 © Copyright IBM Corporation 2010

Structured Robust Automation Framework Components    Function Library Object Repository    Database Global Variables

Page 12: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

12 © Copyright IBM Corporation 2010

Structured Robust Automation Framework Components – Contd..

   Application Scenario Files

Page 13: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

13 © Copyright IBM Corporation 2010

Structured Robust Automation Framework Components – Contd..

   Initialization VB Script

Set Work Area based on user input. Set the Application Scenario File for the current run. Set Object Repository. Set Global Variables Set Function Libraries. Set Data Source. Set the Test Case List.

Page 14: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

14 © Copyright IBM Corporation 2010

   Sequence File

Structured Robust Automation Framework Components – Contd..

Page 15: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

15 © Copyright IBM Corporation 2010

  Driver Script

  Test Case List File Reporting

Structured Robust Automation Framework Components – Contd..

Page 16: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

16 © Copyright IBM Corporation 2010

Directory Structure for Framework Components

Page 17: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

17 © Copyright IBM Corporation 201017

Framework - Work Flow Design

17

Page 18: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

18 © Copyright IBM Corporation 2010

Structured Robust Automation Framework Approach

1:Create a folder structure for Structured Robust Automation framework

2:Develop all required files(Lib files,OR files etc) for framework and store them in to respective directory

3:Create Driver Script in QTP Expert view and store it to root directory

Page 19: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

19 © Copyright IBM Corporation 2010

4:Call Driver script from Expert view to execute the test scenarios

Structured Robust Automation Framework Approach – Contd..

Call to Driver Script from Expert View. It internally calls ScriptExecutionFile from the Library.

ScriptExecutionFile uses Scenariofile’s keywords and perform actions on the AUT respectively.

Calling Driver Script From QTP Expert ViewCalling Driver Script From QTP Expert View

Page 20: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

20 © Copyright IBM Corporation 2010

Test Result summary

Test Execution Result can be viewed and analyzed as soon as run session ends.

To access the Test Result ,choose Automation->Results menu item

Store them to respective folder for future reference

5:Analize Test result and store them for future reference

Structured Robust Automation Framework Approach – Contd..

Page 21: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

21 © Copyright IBM Corporation 2010

Use of variables Conditional checking Data-driven testing Reports Calling functions and reusable actions Keyboard inputs Date/time functions Exception handling Handling object (Web or windows)

Structured Robust Automation Framework Features

Page 22: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

22 © Copyright IBM Corporation 2010

Reusability Optimum utilization of the tool Less effort Increased quality Greater productivity Maintenance No scripting skills required by the end user Return on investment is high

Structured Robust Automation Framework Benifits

Page 23: © Copyright IBM Corporation 2010 IBM Confidential Test Automation & Structured Robust Test Automation Framework Implementation using QTP Suresh Thamberi.

23 © Copyright IBM Corporation 2010

Questions and Answers