SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
What is Test Automation Framework?
Suppose you are given a task where you have to automate some test cases for an
application. When you are finished automating the application, what would be your
expectations from the scripts you have created? Wouldn’t you want that –
ü the scripts should run as intended without any issues.
ü the code and the flows should be easy to understand.
ü the scripts should be easy to maintain in case of any changes.
All the above points can be achieved by using a proper Automation Framework.
An Automation Framework is a set of guidelines that you can follow during test case
scripting to achieve the above mentioned results. This set of guidelines can be anything
such as –
ü Specifying the folder structure that will be used for storing test cases, function
libraries, object repositories and data sheets.
ü Deciding the format of the data sheets i.e., how the data sheets would be
grouped and how the scripts will access these data sheets.
ü Following proper coding standards and using comments so that the code can
be understood easily by anyone.
ü Using reusable functions wherever possible so that lesser amount of rework
is needed in case of any changes
NOTE: These are just a set of guidelines and not some rules that should compulsorily be followed. Even if
you don’t follow any of these guidelines, you would be able to come up with test scripts that would run
perfectly fine. But you might not have the additional advantages like readability of code, ease of
maintenance etc.
Data Driven Framework in QTP
In Data Driven Framework, the data is NOT hard-coded in the test scripts. Instead, it is
stored in some external files. The test script first connects to the external data source
and then extracts the data from that source. Most of the times, excel sheets are used to
store the data. Other external data sources that are frequently used are –
ü Text files.
ü XML files.
ü Databases.
ü Combination of more than one external file.
Components and Workflow of Data Driven Framework
Advantages of Data Driven Framework
ü Since the data is kept separate from the test script, the same script can be run
multiple times for different sets of data (which can be kept in multiple rows in the data
sheet).
ü Changes made in the test data don’t affect the test scripts in any way and vice versa.
Disadvantages of Data Driven Framework
ü Additional effort and good technical expertise is required to create functions that
connect to the external data sources to retrieve the data.
ü Additional amount of time is required in identifying which external data source to
use and deciding how the data should be stored or grouped in that external data source.
Keyword Driven Framework in QTP
In Keyword Driven framework, you can create various keywords and associate a different
action or function with each of these keywords. Then you create a Function Library that
contains the logic to read the keywords and call the associated action.
Keyword driven frameworks come in many different flavors. One of them is explained
below.
Components in Keyword Driven Framework
ü Data Table or Excel Sheets which contains the keywords and the steps needed to
execute a particular flow or action.
ü A Function Library which contains various functions that read each line from the
excel sheet, convert it into “QTP readable” format and finally execute it. For example, the
function library would read the first line from the excel and convert it as –
Browser(“Title”).Page(“Title”).WebEdit(“UserName”).Set “user1”
ü Object Repository may or may not be used in this framework. You can use
descriptive programming approach if you want to avoid using the object repository.
Workflow in Keyword Driven Framework
Advantages of Keyword Driven Framework
ü The keyword and function libraries are completely generic and thus can be reused
easily for different applications.
ü All the complexity is added in the function libraries. Once the libraries are ready, it
becomes very easy to write the actual test script steps in excel sheets.
Disadvantages of Keyword Driven Framework
ü Lot of time and effort needs to be spent initially to create the function libraries. The
benefits of the keyword driven framework are realized only after it has been used for
longer periods of time.
ü Very high programming skills are needed to create the complex keyword library
functions.
ü It’s not easy for new people to understand the framework quickly.
Hybrid Framework in QTP
Hybrid Framework is a framework that is created by combining different features of any
of the frameworks mentioned above. Based upon your requirements, you can combine
the features of any of the above frameworks to come up with your own version of Hybrid
Framework.
There are many different ways to create a Hybrid Framework. Let’s see the structure and
workflow for one of these types of Hybrid Framework.
Components in Keyword Driven Framework
ü Driver Script: It is a VBScript file that acts as the starting point for running your test
scripts.
ü Batch Sheet: Batch Sheet contains the list of all the test cases that you have
automated. It also contains a column named “Execute” which contains values ‘Yes’ and
‘No’. The Driver Script reads this sheet and executes those test cases that are marked as
‘Yes’.
Components in Keyword Driven Framework
ü Driver Script: It is a VBScript file that acts as the starting point for running your test
scripts.
ü Batch Sheet: Batch Sheet contains the list of all the test cases that you have
automated. It also contains a column named “Execute” which contains values ‘Yes’ and
‘No’. The Driver Script reads this sheet and executes those test cases that are marked as
‘Yes’.
ü Test Case Flow Sheet: Each test case is divided into different business flows. So a test
case will be completely executed only when all its flows have been executed.
ü These are the main components that constitute a Hybrid Framework. Other common
components like Function Libraries, Data Sheets, Object Repositories, Configuration files
etc are also a part of Hybrid Framework.
Workflow in Hybrid Framework
Advantages of Hybrid Framework
ü The main advantage of this approach is that you can use the best features from all
the types of frameworks to create your own.
Disadvantages of Hybrid Framework
ü The framework is highly complex and needs very good programming expertise and
experience to build a Hybrid Framework from scratch.

Weitere ähnliche Inhalte

Andere mochten auch

The Last Poets-JAZZOETRY & MADE IN AMERIKKKA
The Last Poets-JAZZOETRY & MADE IN AMERIKKKAThe Last Poets-JAZZOETRY & MADE IN AMERIKKKA
The Last Poets-JAZZOETRY & MADE IN AMERIKKKARBG Communiversity
 
How to make sure your money lasts as long as you do…
How to make sure your money lasts as long as you do…How to make sure your money lasts as long as you do…
How to make sure your money lasts as long as you do…sanlamuk
 
Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01Magaly Costa
 
SNHHUG November 2015 Meet-up Presentation
SNHHUG November 2015 Meet-up PresentationSNHHUG November 2015 Meet-up Presentation
SNHHUG November 2015 Meet-up PresentationStephanie McLaughlin
 
Capturing Science: Doing Lecture Capture Differently
Capturing Science: Doing Lecture Capture DifferentlyCapturing Science: Doing Lecture Capture Differently
Capturing Science: Doing Lecture Capture DifferentlyGemma Witton
 
Eye Catching Photos
Eye Catching PhotosEye Catching Photos
Eye Catching PhotosYee Seng Gan
 
Supply Chain Management Workshop
Supply Chain Management WorkshopSupply Chain Management Workshop
Supply Chain Management WorkshopTom Sauder, P.Eng.
 
Ethompson unit 30 lo1 powerpoint
Ethompson unit 30   lo1 powerpointEthompson unit 30   lo1 powerpoint
Ethompson unit 30 lo1 powerpointNick Crafts
 
Ashtavakra Gita Chapter 18 - Wonders of Patience
Ashtavakra Gita Chapter 18 - Wonders of PatienceAshtavakra Gita Chapter 18 - Wonders of Patience
Ashtavakra Gita Chapter 18 - Wonders of PatienceVinod Kad
 
Physician, the finest flower of civilization
Physician, the finest flower of civilizationPhysician, the finest flower of civilization
Physician, the finest flower of civilizationShehan Silva
 
Al Fazl International 21st October 2016 - Weekly
Al Fazl International 21st October  2016 - WeeklyAl Fazl International 21st October  2016 - Weekly
Al Fazl International 21st October 2016 - Weeklymuzaffertahir9
 
Annualreport slideshow 2015_v12_reducedsize
Annualreport slideshow 2015_v12_reducedsizeAnnualreport slideshow 2015_v12_reducedsize
Annualreport slideshow 2015_v12_reducedsizemyheroproject
 

Andere mochten auch (20)

The Last Poets-JAZZOETRY & MADE IN AMERIKKKA
The Last Poets-JAZZOETRY & MADE IN AMERIKKKAThe Last Poets-JAZZOETRY & MADE IN AMERIKKKA
The Last Poets-JAZZOETRY & MADE IN AMERIKKKA
 
Oak Pit Scales Integrated Pest Management
Oak Pit Scales Integrated Pest ManagementOak Pit Scales Integrated Pest Management
Oak Pit Scales Integrated Pest Management
 
How to make sure your money lasts as long as you do…
How to make sure your money lasts as long as you do…How to make sure your money lasts as long as you do…
How to make sure your money lasts as long as you do…
 
Daaaaaa
DaaaaaaDaaaaaa
Daaaaaa
 
Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01
 
The Beauty Of The Sea
The Beauty Of The SeaThe Beauty Of The Sea
The Beauty Of The Sea
 
SNHHUG November 2015 Meet-up Presentation
SNHHUG November 2015 Meet-up PresentationSNHHUG November 2015 Meet-up Presentation
SNHHUG November 2015 Meet-up Presentation
 
Capturing Science: Doing Lecture Capture Differently
Capturing Science: Doing Lecture Capture DifferentlyCapturing Science: Doing Lecture Capture Differently
Capturing Science: Doing Lecture Capture Differently
 
Eye Catching Photos
Eye Catching PhotosEye Catching Photos
Eye Catching Photos
 
Supply Chain Management Workshop
Supply Chain Management WorkshopSupply Chain Management Workshop
Supply Chain Management Workshop
 
Ethompson unit 30 lo1 powerpoint
Ethompson unit 30   lo1 powerpointEthompson unit 30   lo1 powerpoint
Ethompson unit 30 lo1 powerpoint
 
#VisitCool DMA West Best Idea presentation
#VisitCool DMA West Best Idea presentation#VisitCool DMA West Best Idea presentation
#VisitCool DMA West Best Idea presentation
 
Ashtavakra Gita Chapter 18 - Wonders of Patience
Ashtavakra Gita Chapter 18 - Wonders of PatienceAshtavakra Gita Chapter 18 - Wonders of Patience
Ashtavakra Gita Chapter 18 - Wonders of Patience
 
Physician, the finest flower of civilization
Physician, the finest flower of civilizationPhysician, the finest flower of civilization
Physician, the finest flower of civilization
 
Al Fazl International 21st October 2016 - Weekly
Al Fazl International 21st October  2016 - WeeklyAl Fazl International 21st October  2016 - Weekly
Al Fazl International 21st October 2016 - Weekly
 
Rom - Ruby Object Mapper
Rom - Ruby Object MapperRom - Ruby Object Mapper
Rom - Ruby Object Mapper
 
Leitourgua
LeitourguaLeitourgua
Leitourgua
 
Versos
VersosVersos
Versos
 
Annualreport slideshow 2015_v12_reducedsize
Annualreport slideshow 2015_v12_reducedsizeAnnualreport slideshow 2015_v12_reducedsize
Annualreport slideshow 2015_v12_reducedsize
 
DGAE
DGAEDGAE
DGAE
 

Ähnlich wie What is a Test Automation Framework

Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 
UiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxUiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxApurbaSamanta9
 
Choosing right-automation-tool
Choosing right-automation-toolChoosing right-automation-tool
Choosing right-automation-toolBabuDevanandam
 
Pros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdfPros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdfkalichargn70th171
 
Test automation framework
Test automation frameworkTest automation framework
Test automation frameworkQACampus
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing FrameworksMoataz Nabil
 
Automation test scripting techniques
Automation test scripting techniquesAutomation test scripting techniques
Automation test scripting techniquesZhu Zhong
 
Bealls florida automation overview
Bealls florida automation overviewBealls florida automation overview
Bealls florida automation overviewVijay Rangaiah
 
Struts 2-overview2
Struts 2-overview2Struts 2-overview2
Struts 2-overview2divzi1913
 
Different Types of Test Automation Frameworks .pptx
Different Types of Test Automation Frameworks .pptxDifferent Types of Test Automation Frameworks .pptx
Different Types of Test Automation Frameworks .pptxHeadspin INC
 
Selenium Tutorial for Beginners | Automation framework Basics
Selenium Tutorial for Beginners | Automation framework BasicsSelenium Tutorial for Beginners | Automation framework Basics
Selenium Tutorial for Beginners | Automation framework BasicsTechcanvass
 
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
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation FrameworkYu Tao Zhang
 
Cucumber jvm best practices v3
Cucumber jvm best practices v3Cucumber jvm best practices v3
Cucumber jvm best practices v3Ahmed Misbah
 
Best practice adoption (and lack there of)
Best practice adoption (and lack there of)Best practice adoption (and lack there of)
Best practice adoption (and lack there of)John Pape
 

Ähnlich wie What is a Test Automation Framework (20)

Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 
Test automation process
Test automation processTest automation process
Test automation process
 
Test automation process _ QTP
Test automation process _ QTPTest automation process _ QTP
Test automation process _ QTP
 
UiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxUiPath Development Best Practices.pptx
UiPath Development Best Practices.pptx
 
Choosing right-automation-tool
Choosing right-automation-toolChoosing right-automation-tool
Choosing right-automation-tool
 
Pros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdfPros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdf
 
Test automation framework
Test automation frameworkTest automation framework
Test automation framework
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Automation test scripting techniques
Automation test scripting techniquesAutomation test scripting techniques
Automation test scripting techniques
 
Bealls florida automation overview
Bealls florida automation overviewBealls florida automation overview
Bealls florida automation overview
 
Struts 2-overview2
Struts 2-overview2Struts 2-overview2
Struts 2-overview2
 
Different Types of Test Automation Frameworks .pptx
Different Types of Test Automation Frameworks .pptxDifferent Types of Test Automation Frameworks .pptx
Different Types of Test Automation Frameworks .pptx
 
Selenium Tutorial for Beginners | Automation framework Basics
Selenium Tutorial for Beginners | Automation framework BasicsSelenium Tutorial for Beginners | Automation framework Basics
Selenium Tutorial for Beginners | Automation framework Basics
 
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
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation Framework
 
Test automation
Test automationTest automation
Test automation
 
Cucumber jvm best practices v3
Cucumber jvm best practices v3Cucumber jvm best practices v3
Cucumber jvm best practices v3
 
Hybrid framework
Hybrid frameworkHybrid framework
Hybrid framework
 
Best practice adoption (and lack there of)
Best practice adoption (and lack there of)Best practice adoption (and lack there of)
Best practice adoption (and lack there of)
 
Robot framework
Robot frameworkRobot framework
Robot framework
 

Kürzlich hochgeladen

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Kürzlich hochgeladen (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

What is a Test Automation Framework

  • 1. What is Test Automation Framework? Suppose you are given a task where you have to automate some test cases for an application. When you are finished automating the application, what would be your expectations from the scripts you have created? Wouldn’t you want that – ü the scripts should run as intended without any issues. ü the code and the flows should be easy to understand. ü the scripts should be easy to maintain in case of any changes. All the above points can be achieved by using a proper Automation Framework. An Automation Framework is a set of guidelines that you can follow during test case scripting to achieve the above mentioned results. This set of guidelines can be anything such as – ü Specifying the folder structure that will be used for storing test cases, function libraries, object repositories and data sheets. ü Deciding the format of the data sheets i.e., how the data sheets would be grouped and how the scripts will access these data sheets. ü Following proper coding standards and using comments so that the code can be understood easily by anyone. ü Using reusable functions wherever possible so that lesser amount of rework is needed in case of any changes NOTE: These are just a set of guidelines and not some rules that should compulsorily be followed. Even if you don’t follow any of these guidelines, you would be able to come up with test scripts that would run perfectly fine. But you might not have the additional advantages like readability of code, ease of maintenance etc. Data Driven Framework in QTP In Data Driven Framework, the data is NOT hard-coded in the test scripts. Instead, it is stored in some external files. The test script first connects to the external data source and then extracts the data from that source. Most of the times, excel sheets are used to store the data. Other external data sources that are frequently used are – ü Text files. ü XML files. ü Databases. ü Combination of more than one external file.
  • 2. Components and Workflow of Data Driven Framework Advantages of Data Driven Framework ü Since the data is kept separate from the test script, the same script can be run multiple times for different sets of data (which can be kept in multiple rows in the data sheet). ü Changes made in the test data don’t affect the test scripts in any way and vice versa. Disadvantages of Data Driven Framework ü Additional effort and good technical expertise is required to create functions that connect to the external data sources to retrieve the data. ü Additional amount of time is required in identifying which external data source to use and deciding how the data should be stored or grouped in that external data source. Keyword Driven Framework in QTP In Keyword Driven framework, you can create various keywords and associate a different action or function with each of these keywords. Then you create a Function Library that contains the logic to read the keywords and call the associated action. Keyword driven frameworks come in many different flavors. One of them is explained below. Components in Keyword Driven Framework ü Data Table or Excel Sheets which contains the keywords and the steps needed to execute a particular flow or action.
  • 3. ü A Function Library which contains various functions that read each line from the excel sheet, convert it into “QTP readable” format and finally execute it. For example, the function library would read the first line from the excel and convert it as – Browser(“Title”).Page(“Title”).WebEdit(“UserName”).Set “user1” ü Object Repository may or may not be used in this framework. You can use descriptive programming approach if you want to avoid using the object repository. Workflow in Keyword Driven Framework Advantages of Keyword Driven Framework ü The keyword and function libraries are completely generic and thus can be reused easily for different applications. ü All the complexity is added in the function libraries. Once the libraries are ready, it becomes very easy to write the actual test script steps in excel sheets. Disadvantages of Keyword Driven Framework ü Lot of time and effort needs to be spent initially to create the function libraries. The benefits of the keyword driven framework are realized only after it has been used for longer periods of time. ü Very high programming skills are needed to create the complex keyword library functions. ü It’s not easy for new people to understand the framework quickly.
  • 4. Hybrid Framework in QTP Hybrid Framework is a framework that is created by combining different features of any of the frameworks mentioned above. Based upon your requirements, you can combine the features of any of the above frameworks to come up with your own version of Hybrid Framework. There are many different ways to create a Hybrid Framework. Let’s see the structure and workflow for one of these types of Hybrid Framework. Components in Keyword Driven Framework ü Driver Script: It is a VBScript file that acts as the starting point for running your test scripts. ü Batch Sheet: Batch Sheet contains the list of all the test cases that you have automated. It also contains a column named “Execute” which contains values ‘Yes’ and ‘No’. The Driver Script reads this sheet and executes those test cases that are marked as ‘Yes’. Components in Keyword Driven Framework ü Driver Script: It is a VBScript file that acts as the starting point for running your test scripts. ü Batch Sheet: Batch Sheet contains the list of all the test cases that you have automated. It also contains a column named “Execute” which contains values ‘Yes’ and ‘No’. The Driver Script reads this sheet and executes those test cases that are marked as ‘Yes’. ü Test Case Flow Sheet: Each test case is divided into different business flows. So a test case will be completely executed only when all its flows have been executed.
  • 5. ü These are the main components that constitute a Hybrid Framework. Other common components like Function Libraries, Data Sheets, Object Repositories, Configuration files etc are also a part of Hybrid Framework. Workflow in Hybrid Framework Advantages of Hybrid Framework ü The main advantage of this approach is that you can use the best features from all the types of frameworks to create your own. Disadvantages of Hybrid Framework ü The framework is highly complex and needs very good programming expertise and experience to build a Hybrid Framework from scratch.