SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Hybrid Framework
Sudhakar.Mangi
)
2
Hybrid Framework
The most successful automation frameworks generally
accommodate both keyword driven testing as well as data driven
scripts.
Hybrid is a combination of Functional Decomposition and Data
Driven Framework.
Modularity can be achieved by nesting the test scripts and using
library files to implement reusable components (Reusable Actions
and Functions).
Hybrid = Modularity + Data Driven
Hybrid Framework
3
Frame work Features
 Better ROI
 Internalization support
 Support multiple projects/Test Suites/Test cases
 24/7 Automatic Regression Test Running Facility
 Generates Email Reports
 Generates Test Logs
 Easy to Maintain
 Screen Capturing Files
 Easy to build automation for the project
 No scripting skills required for End user
4
ARCHITECTURE OF A HYBRID FRAME WORK
Scenario Driver
Script Driver
Test
Scenarios
Test cases
Screens
Application Scripts
Core Framework
AUT
Repositories &
Recovery
Lib
File
Config
file HTML and CSV Report
xec
N
Scenario Sheet
xec
Test Script Sheets
5
Core Framework Layer
 The Core Framework Layer Is independent to any application and can be reused for
automation of every web based application. Core Framework Layer Consists of the
following components that cab be reused across all Applications
Scenario Driver
Script Driver
Keyword Functions
Report Library
6
Application Layer
 The Application Layer consists of the following components that have to be filled with
Keywords and Test Data based on the test cases to be automated for given
application.
Object Repository Files
Scenario File
Script Files
Config File
Recovery Files
7
Framework-Flow
 Framework starts its execution by calling the scenario driver. Scenario Driver loads
Library File like Report Library and Keyword functions Library. This also loads Config
file which contains information path of the repositories, Path of the script files
etc.Apart from this Scenario driver also loads scenario file which contains the list of
scenarios and scripts to be executed
 From the Loaded scenario file each scenario will be consider one after the other for
execution if execution is ‘Y’, then scripts under scenario will be executed. Else
Scenario Driver goes to the next scenario
8
Framework-Flow
 The best part in our frame work is you can even control which test script to be
executes by defining the execution status as Y or N..If script execution status is Y
then corresponding script sheet will be loaded into automation tool and run each step
in the Test Script File. In Test Script File we will find many columns like Step, Object
Name, Object Type,Operation,TD_1,TD_2,TD_3 etc.Columns TD_1,TD_2 represent
the test data to be used in the Test Script. One more excellent feature about our
frame work is we can even control the test data to be used while script is executing.
User can specify the Test data Columns to be used in scenario file against the Test
Script in the column Test Data. User can specify each test data column to be used or
he can also specify the range of columns to be used
9
Framework-Flow
 Corresponding to each keyword written in the test script we can find the Keyword
functions in Library File WEBkeywords.Script driver calls there Keyword Functions
and perform the operations on the object. Before we perform operation on the object
of any page we will set the page to be used with function setBrowserPage. This
function also loads the repository corresponding to the page since Page name is
same as object repository name. Other words we maintain one repository for each
page
 While framework is executing status of each script execution will logged to the HTML
file which is stored in the results folder.Our results file is very detailed which contains
Scenario name, test cases executed for each scenario, description of test step
executed, Results of the test step PASS/FAIL. Results summary will also be stored
in CSV file along with detailed HTML report
10
Folder Structure
Application Name
Main
Scenario
Scripts
Recovery
Repositories
Results
11
FLOW DIAGRAM
 Below is the Flow Diagram of frame work Execution
Start Scenario Driver Script Driver
Keyword
FunctionsReport ResultsStart
12
Automation Work Flow
Refactoring
Manual Test
Cases
Refactoring
Manual Test
Cases
Feasibility
Analysis
Feasibility
Analysis
Identification of
Reusable
Components
Identification of
Reusable
Components
Run The
Automation
Scripts from QC
Run The
Automation
Scripts from QC
Create
Automation
Scripts
Create
Automation
Scripts
Debug
Automation
Scripts
Debug
Automation
Scripts
Upload Scripts &
Mapped To QC
Upload Scripts &
Mapped To QC
Test Report
Analysis
Test Report
Analysis
Create Reusable
Actions or User
Defined Functions
Create Reusable
Actions or User
Defined Functions
Create Recovery
Scenarios
Create Recovery
Scenarios
Create Test DataCreate Test Data
Create Shared
Object Repository
Level1
Level2
Level3
13
Feasibility Analysis
 Formal selection of manual test cases for automation:
 Decision will be been taken on what can be automated and what cannot be automated.
 Selection of the test cases to be automated will be based on the business risk attached to each
test
 Tests that need to run once and those that need frequent human intervention are usually not
worth the investment to automate and need not be considered for automation
 Avoiding business scenarios where complex hardware is involved
 Sample feasibility analysis report.
14
Feasibility Analysis
 Sample_Feasibility_Report.xls
Feasibility
Report for a
Test Case
15
Accessing Test Data
Test Data is defined in separate excel files for each application in Move
Test Scripts written in QTP will access the Test Data using QTP’s Data
Table feature.
Test data defined in separate excel files will be imported into QTP’s Data
Table.
Importing Test Data from external excel files will be done using an import
statement.
Following syntax used to import a sheet from test data.xls file to a sheet
in data table
Syntax : Datatable.ImportSheet “Location of TestData.xls file”,
“sheet ID in
Testdata.xls file” , “Sheet id/sheet name in data table"
Example: Datatable.ImportSheet “C:Testdata.xls”,3, “Login"
16
Reusable Components
There are two types of Reusable Components
 Reusable Action
 User Defined Functions
 Generic Functions
 Business Functions
Reusable Actions and User Defined Functions are maintained in separate folders
for entire application.
The advantage of using Reusable Actions is that it can be easily debugged and
can use the intelligence feature of QTP IDE.
All common scenarios will be captured using Reusable actions.
Functions will be used for performing generic tasks e.g. like splitting a string, etc.
These tasks are application independent.
17
Environment File
Environment files are also called as initialization files or configuration files.
Environment files are created in external files with .xml format
Create Environment variables to access information like Server Name,
Application URL,
username, password, library files and Test Data.
This file can be used across all the called Actions and in all the Test Scripts.
Throughout the test the value of an Environment Variable remains the same.
18
Environment File Contd.
19
Main Test Runner Structure
Test Components
of each Module Test ResultsTest Results
Main Test RunnerEnvironment File /
Initialization file
Test Scripts
Object Repository
Test Data
Reusable Actions
User defined functions
Generic Functions
Generic Functions
Test Suite1
(Ex. FH)
20
Test Execution
New Change Request
Update Test
Cases as per
CR
Quality Center
New / Modify
QTP Test
Scripts
New / Modify Master
Scripts
Test ResultsTest Results
Test Data for the
CR
Object Repository
Reusable ActionsReusable Actions
User defined Functions
Recovery Scenarios
21
Exception Handling: Recovery Scenario
Exceptions are conditions which stops test script execution
 Exceptions might occur at any time during script execution
 Exceptions in QTP can be handled by using any one of the
following two methods
i) Recovery Scenarios
ii) On Error Resume Next statement
 Recover Scenarios will be implemented on all the modules.
 Recovery Scenarios can be defined using Recovery Scenario
Manager in QTP.
 Application specific Recovery Scenarios like recovery from
security warning, unknown pop-ups etc will be defined using
Recovery Scenario Manager
22
Reporting Test Result
Results of the Automation Scripts will be reported using Reporter Utility object
Results are reported at test case level and at every important state of the application.
Syntax: Reporter.ReportEvent <status>,"Scenario/Case Name“ ,“Scenario/Case
description”
Status can be either micpass or micfail or micdone or micwarning
Example: Reporter.ReportEvent micPass,"Login Scenario","Auditee Logged In
Successfully”
Sample results snapshot that is reported using Reporter.ReportEvent statement is
shown
23
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

Data Driven Framework in Selenium
Data Driven Framework in SeleniumData Driven Framework in Selenium
Data Driven Framework in SeleniumKnoldus Inc.
 
Hybrid framework for test automation
Hybrid framework for test automationHybrid framework for test automation
Hybrid framework for test automationsrivinayak
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework DesignsSauce Labs
 
UFT Automation Framework Introduction
UFT Automation Framework IntroductionUFT Automation Framework Introduction
UFT Automation Framework IntroductionHimal Bandara
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionAmr E. Mohamed
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.pptAna Sarbescu
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Edureka!
 
Setting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation FrameworkSetting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation Frameworkvaluebound
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsSteven Li
 
Test automation framework
Test automation frameworkTest automation framework
Test automation frameworkQACampus
 

Was ist angesagt? (20)

testng
testngtestng
testng
 
Data Driven Framework in Selenium
Data Driven Framework in SeleniumData Driven Framework in Selenium
Data Driven Framework in Selenium
 
Hybrid framework for test automation
Hybrid framework for test automationHybrid framework for test automation
Hybrid framework for test automation
 
Selenium
SeleniumSelenium
Selenium
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
UFT Automation Framework Introduction
UFT Automation Framework IntroductionUFT Automation Framework Introduction
UFT Automation Framework Introduction
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
Selenium IDE LOCATORS
Selenium IDE LOCATORSSelenium IDE LOCATORS
Selenium IDE LOCATORS
 
Selenium with java
Selenium with javaSelenium with java
Selenium with java
 
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
 
Selenium
SeleniumSelenium
Selenium
 
Setting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation FrameworkSetting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation Framework
 
Selenium-Locators
Selenium-LocatorsSelenium-Locators
Selenium-Locators
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Test automation framework
Test automation frameworkTest automation framework
Test automation framework
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Test Automation - Keytorc Approach
Test Automation - Keytorc Approach Test Automation - Keytorc Approach
Test Automation - Keytorc Approach
 

Andere mochten auch

Designing keyword and Data Driven Automation framework with Selenium
Designing keyword and Data Driven Automation framework with SeleniumDesigning keyword and Data Driven Automation framework with Selenium
Designing keyword and Data Driven Automation framework with SeleniumEdureka!
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test AutomationBabuDevanandam
 
Data Driven Testing
Data Driven TestingData Driven Testing
Data Driven TestingMaveryx
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comIdexcel Technologies
 
Hybrid framework for a hybrid world
Hybrid framework for a hybrid worldHybrid framework for a hybrid world
Hybrid framework for a hybrid worldstimson
 
Fusion Middleware 11g How To Part 1
Fusion Middleware 11g How To Part 1Fusion Middleware 11g How To Part 1
Fusion Middleware 11g How To Part 1Dirk Nachbar
 
Automation with bpt methodology
Automation with bpt methodologyAutomation with bpt methodology
Automation with bpt methodologyGopi Nath
 
Hybrid Automation Framework
Hybrid Automation FrameworkHybrid Automation Framework
Hybrid Automation FrameworkASHIRVAD MISHRA
 
Selenium conference, 2016
Selenium conference, 2016Selenium conference, 2016
Selenium conference, 2016Pooja Shah
 
Automation framework
Automation framework Automation framework
Automation framework ITeLearn
 
Automation test scripting techniques
Automation test scripting techniquesAutomation test scripting techniques
Automation test scripting techniquesZhu Zhong
 
Design patterns in web testing automation with WebDriver
Design patterns in web testing automation with WebDriverDesign patterns in web testing automation with WebDriver
Design patterns in web testing automation with WebDriverMikalai Alimenkou
 
Enterprise 2.0. How Iron Man would work...
Enterprise 2.0. How Iron Man would work...Enterprise 2.0. How Iron Man would work...
Enterprise 2.0. How Iron Man would work...Emiliano Pecis
 

Andere mochten auch (18)

Designing keyword and Data Driven Automation framework with Selenium
Designing keyword and Data Driven Automation framework with SeleniumDesigning keyword and Data Driven Automation framework with Selenium
Designing keyword and Data Driven Automation framework with Selenium
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test Automation
 
Data Driven Testing
Data Driven TestingData Driven Testing
Data Driven Testing
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Test automation process
Test automation processTest automation process
Test automation process
 
CCI Europe Rethink Brochure
CCI Europe Rethink BrochureCCI Europe Rethink Brochure
CCI Europe Rethink Brochure
 
Tahir_Resume_Selenium
Tahir_Resume_SeleniumTahir_Resume_Selenium
Tahir_Resume_Selenium
 
Hybrid framework for a hybrid world
Hybrid framework for a hybrid worldHybrid framework for a hybrid world
Hybrid framework for a hybrid world
 
Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
 
Fusion Middleware 11g How To Part 1
Fusion Middleware 11g How To Part 1Fusion Middleware 11g How To Part 1
Fusion Middleware 11g How To Part 1
 
Automation with bpt methodology
Automation with bpt methodologyAutomation with bpt methodology
Automation with bpt methodology
 
Hybrid Automation Framework
Hybrid Automation FrameworkHybrid Automation Framework
Hybrid Automation Framework
 
Selenium conference, 2016
Selenium conference, 2016Selenium conference, 2016
Selenium conference, 2016
 
Automation framework
Automation framework Automation framework
Automation framework
 
Automation test scripting techniques
Automation test scripting techniquesAutomation test scripting techniques
Automation test scripting techniques
 
Beyond Page Objects
Beyond Page ObjectsBeyond Page Objects
Beyond Page Objects
 
Design patterns in web testing automation with WebDriver
Design patterns in web testing automation with WebDriverDesign patterns in web testing automation with WebDriver
Design patterns in web testing automation with WebDriver
 
Enterprise 2.0. How Iron Man would work...
Enterprise 2.0. How Iron Man would work...Enterprise 2.0. How Iron Man would work...
Enterprise 2.0. How Iron Man would work...
 

Ähnlich wie Hybrid framework

Automation Framework 042009 V2
Automation Framework   042009  V2Automation Framework   042009  V2
Automation Framework 042009 V2Devukjs
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 
Qtp Training
Qtp TrainingQtp Training
Qtp Trainingmehramit
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentationtechgajanan
 
Bealls florida automation overview
Bealls florida automation overviewBealls florida automation overview
Bealls florida automation overviewVijay Rangaiah
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Saurabh Singh
 
Automation Framework 042009 V2
Automation Framework   042009  V2Automation Framework   042009  V2
Automation Framework 042009 V2guestb66d91
 
qLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test AutomationqLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test Automationguest221c8e
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation FrameworkYu Tao Zhang
 
New features in qtp11
New features in qtp11New features in qtp11
New features in qtp11Ramu Palanki
 
Qtp 11 new enhacements in
Qtp 11 new enhacements inQtp 11 new enhacements in
Qtp 11 new enhacements inRamu Palanki
 

Ähnlich wie Hybrid framework (20)

Automation Framework 042009 V2
Automation Framework   042009  V2Automation Framework   042009  V2
Automation Framework 042009 V2
 
Test automation process _ QTP
Test automation process _ QTPTest automation process _ QTP
Test automation process _ QTP
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
 
Bealls florida automation overview
Bealls florida automation overviewBealls florida automation overview
Bealls florida automation overview
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
QTP Online Training
QTP Online TrainingQTP Online Training
QTP Online Training
 
Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1
 
ssssssssss
ssssssssssssssssssss
ssssssssss
 
Automation Framework 042009 V2
Automation Framework   042009  V2Automation Framework   042009  V2
Automation Framework 042009 V2
 
Automation using ibm rft
Automation using ibm rftAutomation using ibm rft
Automation using ibm rft
 
qLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test AutomationqLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test Automation
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation Framework
 
New features in qtp11
New features in qtp11New features in qtp11
New features in qtp11
 
Qtp 11 new enhacements in
Qtp 11 new enhacements inQtp 11 new enhacements in
Qtp 11 new enhacements in
 

Kürzlich hochgeladen

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Kürzlich hochgeladen (20)

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Hybrid framework

  • 2. 2 Hybrid Framework The most successful automation frameworks generally accommodate both keyword driven testing as well as data driven scripts. Hybrid is a combination of Functional Decomposition and Data Driven Framework. Modularity can be achieved by nesting the test scripts and using library files to implement reusable components (Reusable Actions and Functions). Hybrid = Modularity + Data Driven Hybrid Framework
  • 3. 3 Frame work Features  Better ROI  Internalization support  Support multiple projects/Test Suites/Test cases  24/7 Automatic Regression Test Running Facility  Generates Email Reports  Generates Test Logs  Easy to Maintain  Screen Capturing Files  Easy to build automation for the project  No scripting skills required for End user
  • 4. 4 ARCHITECTURE OF A HYBRID FRAME WORK Scenario Driver Script Driver Test Scenarios Test cases Screens Application Scripts Core Framework AUT Repositories & Recovery Lib File Config file HTML and CSV Report xec N Scenario Sheet xec Test Script Sheets
  • 5. 5 Core Framework Layer  The Core Framework Layer Is independent to any application and can be reused for automation of every web based application. Core Framework Layer Consists of the following components that cab be reused across all Applications Scenario Driver Script Driver Keyword Functions Report Library
  • 6. 6 Application Layer  The Application Layer consists of the following components that have to be filled with Keywords and Test Data based on the test cases to be automated for given application. Object Repository Files Scenario File Script Files Config File Recovery Files
  • 7. 7 Framework-Flow  Framework starts its execution by calling the scenario driver. Scenario Driver loads Library File like Report Library and Keyword functions Library. This also loads Config file which contains information path of the repositories, Path of the script files etc.Apart from this Scenario driver also loads scenario file which contains the list of scenarios and scripts to be executed  From the Loaded scenario file each scenario will be consider one after the other for execution if execution is ‘Y’, then scripts under scenario will be executed. Else Scenario Driver goes to the next scenario
  • 8. 8 Framework-Flow  The best part in our frame work is you can even control which test script to be executes by defining the execution status as Y or N..If script execution status is Y then corresponding script sheet will be loaded into automation tool and run each step in the Test Script File. In Test Script File we will find many columns like Step, Object Name, Object Type,Operation,TD_1,TD_2,TD_3 etc.Columns TD_1,TD_2 represent the test data to be used in the Test Script. One more excellent feature about our frame work is we can even control the test data to be used while script is executing. User can specify the Test data Columns to be used in scenario file against the Test Script in the column Test Data. User can specify each test data column to be used or he can also specify the range of columns to be used
  • 9. 9 Framework-Flow  Corresponding to each keyword written in the test script we can find the Keyword functions in Library File WEBkeywords.Script driver calls there Keyword Functions and perform the operations on the object. Before we perform operation on the object of any page we will set the page to be used with function setBrowserPage. This function also loads the repository corresponding to the page since Page name is same as object repository name. Other words we maintain one repository for each page  While framework is executing status of each script execution will logged to the HTML file which is stored in the results folder.Our results file is very detailed which contains Scenario name, test cases executed for each scenario, description of test step executed, Results of the test step PASS/FAIL. Results summary will also be stored in CSV file along with detailed HTML report
  • 11. 11 FLOW DIAGRAM  Below is the Flow Diagram of frame work Execution Start Scenario Driver Script Driver Keyword FunctionsReport ResultsStart
  • 12. 12 Automation Work Flow Refactoring Manual Test Cases Refactoring Manual Test Cases Feasibility Analysis Feasibility Analysis Identification of Reusable Components Identification of Reusable Components Run The Automation Scripts from QC Run The Automation Scripts from QC Create Automation Scripts Create Automation Scripts Debug Automation Scripts Debug Automation Scripts Upload Scripts & Mapped To QC Upload Scripts & Mapped To QC Test Report Analysis Test Report Analysis Create Reusable Actions or User Defined Functions Create Reusable Actions or User Defined Functions Create Recovery Scenarios Create Recovery Scenarios Create Test DataCreate Test Data Create Shared Object Repository Level1 Level2 Level3
  • 13. 13 Feasibility Analysis  Formal selection of manual test cases for automation:  Decision will be been taken on what can be automated and what cannot be automated.  Selection of the test cases to be automated will be based on the business risk attached to each test  Tests that need to run once and those that need frequent human intervention are usually not worth the investment to automate and need not be considered for automation  Avoiding business scenarios where complex hardware is involved  Sample feasibility analysis report.
  • 15. 15 Accessing Test Data Test Data is defined in separate excel files for each application in Move Test Scripts written in QTP will access the Test Data using QTP’s Data Table feature. Test data defined in separate excel files will be imported into QTP’s Data Table. Importing Test Data from external excel files will be done using an import statement. Following syntax used to import a sheet from test data.xls file to a sheet in data table Syntax : Datatable.ImportSheet “Location of TestData.xls file”, “sheet ID in Testdata.xls file” , “Sheet id/sheet name in data table" Example: Datatable.ImportSheet “C:Testdata.xls”,3, “Login"
  • 16. 16 Reusable Components There are two types of Reusable Components  Reusable Action  User Defined Functions  Generic Functions  Business Functions Reusable Actions and User Defined Functions are maintained in separate folders for entire application. The advantage of using Reusable Actions is that it can be easily debugged and can use the intelligence feature of QTP IDE. All common scenarios will be captured using Reusable actions. Functions will be used for performing generic tasks e.g. like splitting a string, etc. These tasks are application independent.
  • 17. 17 Environment File Environment files are also called as initialization files or configuration files. Environment files are created in external files with .xml format Create Environment variables to access information like Server Name, Application URL, username, password, library files and Test Data. This file can be used across all the called Actions and in all the Test Scripts. Throughout the test the value of an Environment Variable remains the same.
  • 19. 19 Main Test Runner Structure Test Components of each Module Test ResultsTest Results Main Test RunnerEnvironment File / Initialization file Test Scripts Object Repository Test Data Reusable Actions User defined functions Generic Functions Generic Functions Test Suite1 (Ex. FH)
  • 20. 20 Test Execution New Change Request Update Test Cases as per CR Quality Center New / Modify QTP Test Scripts New / Modify Master Scripts Test ResultsTest Results Test Data for the CR Object Repository Reusable ActionsReusable Actions User defined Functions Recovery Scenarios
  • 21. 21 Exception Handling: Recovery Scenario Exceptions are conditions which stops test script execution  Exceptions might occur at any time during script execution  Exceptions in QTP can be handled by using any one of the following two methods i) Recovery Scenarios ii) On Error Resume Next statement  Recover Scenarios will be implemented on all the modules.  Recovery Scenarios can be defined using Recovery Scenario Manager in QTP.  Application specific Recovery Scenarios like recovery from security warning, unknown pop-ups etc will be defined using Recovery Scenario Manager
  • 22. 22 Reporting Test Result Results of the Automation Scripts will be reported using Reporter Utility object Results are reported at test case level and at every important state of the application. Syntax: Reporter.ReportEvent <status>,"Scenario/Case Name“ ,“Scenario/Case description” Status can be either micpass or micfail or micdone or micwarning Example: Reporter.ReportEvent micPass,"Login Scenario","Auditee Logged In Successfully” Sample results snapshot that is reported using Reporter.ReportEvent statement is shown