Upload
shona-mcdonald
View
230
Download
0
Embed Size (px)
Citation preview
© Copyright IBM Corporation 2010IBM 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
© 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
© Copyright IBM Corporation 20104
Factors For Automation Testing
4
Test AutomationTest Automation
Automation Selection CriteriaAutomation Selection Criteria
© Copyright IBM Corporation 20105
Benefits of Automation
AS ALPS | Apr 21, 2023 | IBM Confidential5
Automation Testing BenifitsAutomation Testing Benifits
© 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
© Copyright IBM Corporation 2010IBM Confidential
Structured Robust Test Automation Framework Approach
7
© 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
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
10 © Copyright IBM Corporation 201010
Architecture of Hybrid Automation Framework
10
11 © Copyright IBM Corporation 2010
Structured Robust Automation Framework Components Function Library Object Repository Database Global Variables
12 © Copyright IBM Corporation 2010
Structured Robust Automation Framework Components – Contd..
Application Scenario Files
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.
14 © Copyright IBM Corporation 2010
Sequence File
Structured Robust Automation Framework Components – Contd..
15 © Copyright IBM Corporation 2010
Driver Script
Test Case List File Reporting
Structured Robust Automation Framework Components – Contd..
16 © Copyright IBM Corporation 2010
Directory Structure for Framework Components
17 © Copyright IBM Corporation 201017
Framework - Work Flow Design
17
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
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
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..
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
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
23 © Copyright IBM Corporation 2010
Questions and Answers