SlideShare a Scribd company logo
1 of 29
AUTOMATION FRAMEWORK
AGENDA
 What is Automation Framework
 Why we need
 Advantages
 Types of Framework
 Framework Architecture
 How to Design (Practical..)
WHAT ?
Automation Framework is not a single
tool or process but it’s collection of
tools and processes working together to
support automated testing of an
application
WHAT ?
It integrates function libraries, test
data, object details and various
reusable modules
WHAT ?
Is an integrated environment that sets
the rules, assumptions, standards,
concepts, guidelines and tools to aid
automated testing
WHY ?
 To maintain the defined approach across the test suites
 To fasten the work progress
 To easy maintain the test code
 To eliminate the human error
 To test the application effectively
 To achieve CT and CD
ADVANTAGES
Defined approach to be followed by everyone across
the test suite
Understandable code
Low cost maintenance
Reusability of code
ADVANTAGES
Maximum coverage
Minimal manual intervention
Easy Execution & Reporting
Automation Frameworks
Module Driven
Framework
Data Driven
Framework
Keyword Driven
Framework
Hybrid
Framework`
TYPES :
MODULE DRIVEN
FRAMEWORK
MODULE DRIVEN FRAMEWORK
Module Driven Framework is based on one of
the OOPs concept – Abstraction
The framework divides the entire “Application
Under Test” into number of logical and isolated
modules
MODULE DRIVEN FRAMEWORK
For each module, we create a separate and
independent test suite
These modules are separated by an abstraction
layer in such a way that the changes made in
one module doesn’t affects other module scripts
MODULE DRIVEN FRAMEWORK
Integrating all the individual modules together
builds a larger test suite representing entire
application under test
PROS’ OF MDF
Easier and cost efficient maintenance due high level of
modularization
The framework is pretty much scalable
If the changes are implemented in one part of the
application, only the test script representing that part
of the application needs to be fixed leaving all the
CONS’ OF MDF
While designing the test scripts for each module, we
embed the test data into the test scripts.Whenever we
want to test with a different set of test data, it requires the
manipulations of test scripts
CONS’ OF MDF
Need to modify the script if sanity or regression based
testing to be performed other parts untouched.
DATA DRIVEN FRAMEWORK
DATA DRIVEN FRAMEWORK
This framework is mainly centralized with Test Data
Test Script will not be embedded with test data
Test Data will be stored in external databases like
xml, csv, excel, odbc repository with key-value map.
Ex :Validating Gmail login functionality

User Name Password HomePage Message
Shruthi Superman Welcome Shruthi
1234 (@)(&) Welcome 1234
Test123 Test456 WelcomeTest123
Key Value
Username_Shruthi Shruthi
Password_Shruthi Superman
WelcomeMessage_Shruthi Welcome Shruthi
PROS’ OF DATA DRIVEN FRAMEWORK
 Pros
 Single test script can be executed with all various Test Data, so more
coverage
 Increases flexibility and maintainability of test data because one place to
modify
 Cons
 The process is bit complex
 Requires proficiency in a programming language that is being used to
develop test data sources and reading mechanisms
PROS’ OF DATA DRIVEN FRAMEWORK
 Pros
 Single test script can be executed with all various Test Data, so more
coverage
 Increases flexibility and maintainability of test data because one place to
modify
 Cons
 The process is bit complex
 Requires proficiency in a programming language that is being used to
develop test data sources and reading mechanisms
3) KEYWORD DRIVEN FRAMEWORK
 As the Name suggests, it enables Keyword Driven Testing or Table Driven
Testing
 Data & Keyword Tables being Independent of the Automation Tool
 Enables documentation of the functionality of the Application under Test
(AUT) in A tabular format
PROS’ & CONS’
 Pros
 Easy to use since the approach is keyword based
 Easy to modify the execution layer
 Cons
 Requires proficiency in a programming language that is being used to
develop keyword based functional library
4) HYBRID FRAMEWORK
 Hybrid Testing Framework is a combination of more than one above
mentioned frameworks. The best thing about such a setup is that it
leverages the benefits of all kinds of associated frameworks
HOWTO DESIGN :
 Identify the Scope of Testing
 Company Oriented, Application Oriented, Project Oriented
 Identification of the Needs of Testing
 Identify Types of testing e.g. Functional Testing, Web Services etc. and
application / modules to be tested
 Evaluation of the Test Automation Tool
 Preparation of Evaluation Checklist, Identification of the Candidate Tools
Available, Sample Run, Rate & Select the Tool, Implementation &
Training
POM DESIGN PATTERN
 Test scripts will be written on page wise
 Ex: Home Page has features like header, footer, menus and carousal
Images.
 All the home page features validation script is written in one class file
 Advantages:
 Script maintenance is easy since its in page level.
 Since its page level, stitching of scripts to make entire test suite is
easy
 Disadvantage's:
 Classifying the scripts into Sanity, Functional and Integration is not
easy
 Partial execution is not possible
HYBRID DESIGN PATTERN
 Hybrid Module
 It’s the combination of multiple framework design pattern like data
driver, keyword driven, module driver etc.
 We can achieve maximum benefit since we are clubbing multiple
frameworks pattern
FRAMEWORK ARCHITECTURE
FRAMEWORK COMPONENT
 Object Repository
 Object Repository is consist of set of locators types associated with web
elements in the application
 Test Data
 Input data with which the test scenario would be tested and it can be the
expected values with which the actual results would be compared.
 Configuration File
 The file stores the information regarding the application URL, browser
specific information, server IP, device ID’s etc.
 Generics/ Readers
 These are the utility classes that store the functions which can be commonly
used across the entire framework.
 Build tools and Continuous Integration
 These are the tools/API’s used to build, deploy the application, generate test
reports, email notifications and logging information.
FRAMEWORK COMPONENT (CONT..
 Logging:
 Logging mechanism generates the log file, which writes the entire stack
information of the application during run
 Reporting
 Reporting is the key point in success of any automation framework
 Since Selenium doesn’t have inbuilt reporting mechanism we can rely on
TestNg / ReportNg report, Extent Report, html based customized report
etc.
 Execution:
 Execution can be initiated by using Eclipse, ANT Build, TestNg , Jenkins
and Email based triggering using outlook
 Scheduling can be done using Windows scheduler and Jenkins

More Related Content

What's hot

Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
priya_trivedi
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
SivaprasanthRentala1975
 
Hybrid framework for test automation
Hybrid framework for test automationHybrid framework for test automation
Hybrid framework for test automation
srivinayak
 
Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
HeyDay Software Solutions
 
Automation Framework Design
Automation Framework DesignAutomation Framework Design
Automation Framework Design
Kunal Saxena
 

What's hot (20)

Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation 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 Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
A Test Automation Framework
A Test Automation FrameworkA Test Automation Framework
A Test Automation Framework
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation Framework
 
Test Automation Framework Development Introduction
Test Automation Framework Development IntroductionTest Automation Framework Development Introduction
Test Automation Framework Development Introduction
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
Hybrid framework for test automation
Hybrid framework for test automationHybrid framework for test automation
Hybrid framework for test automation
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automation
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introduction
 
Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
 
Software Automation Testing Introduction
Software Automation Testing IntroductionSoftware Automation Testing Introduction
Software Automation Testing Introduction
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologies
 
Centralized test automation framework implementation
Centralized test automation framework implementationCentralized test automation framework implementation
Centralized test automation framework implementation
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Automation Framework Design
Automation Framework DesignAutomation Framework Design
Automation Framework Design
 
Automated Testing with Agile
Automated Testing with AgileAutomated Testing with Agile
Automated Testing with Agile
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNet
 

Similar to Selenium Tutorial for Beginners | Automation framework Basics

XML2Selenium Technical Presentation
XML2Selenium Technical PresentationXML2Selenium Technical Presentation
XML2Selenium Technical Presentation
jazzteam
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation Framework
Yu Tao Zhang
 

Similar to Selenium Tutorial for Beginners | Automation framework Basics (20)

Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworks
 
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
 
Choosing right-automation-tool
Choosing right-automation-toolChoosing right-automation-tool
Choosing right-automation-tool
 
Test automation wipro
Test automation   wiproTest automation   wipro
Test automation wipro
 
Test automation process _ QTP
Test automation process _ QTPTest automation process _ QTP
Test automation process _ QTP
 
Test automation process
Test automation processTest automation process
Test automation process
 
The Magic Of Application Lifecycle Management In Vs Public
The Magic Of Application Lifecycle Management In Vs PublicThe Magic Of Application Lifecycle Management In Vs Public
The Magic Of Application Lifecycle Management In Vs Public
 
Best Selenium Framework for Testing Web Application - A Mindtree Article
Best Selenium Framework for Testing Web Application - A Mindtree ArticleBest Selenium Framework for Testing Web Application - A Mindtree Article
Best Selenium Framework for Testing Web Application - A Mindtree Article
 
Selenium Framework for Testing Web Application - Mindtree
Selenium Framework for Testing Web Application - MindtreeSelenium Framework for Testing Web Application - Mindtree
Selenium Framework for Testing Web Application - Mindtree
 
Whats New In 2010 (Msdn & Visual Studio)
Whats New In 2010 (Msdn & Visual Studio)Whats New In 2010 (Msdn & Visual Studio)
Whats New In 2010 (Msdn & Visual Studio)
 
Automation Best Practices.pptx
Automation Best Practices.pptxAutomation Best Practices.pptx
Automation Best Practices.pptx
 
Netserv Software Testing
Netserv Software TestingNetserv Software Testing
Netserv Software Testing
 
Popular Test Automation Frameworks
Popular Test Automation FrameworksPopular Test Automation Frameworks
Popular Test Automation Frameworks
 
Automation Testing of Web based Application with Selenium and HP UFT (QTP)
Automation Testing of Web based Application with Selenium and HP UFT (QTP)Automation Testing of Web based Application with Selenium and HP UFT (QTP)
Automation Testing of Web based Application with Selenium and HP UFT (QTP)
 
Automation Framework Presentation
Automation Framework PresentationAutomation Framework Presentation
Automation Framework Presentation
 
XML2Selenium Technical Presentation
XML2Selenium Technical PresentationXML2Selenium Technical Presentation
XML2Selenium Technical Presentation
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation Framework
 
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
 

More from Techcanvass

More from Techcanvass (20)

ECBA Exam Questions PDF | ECBA Sample Questions PDF | Techcanvass
ECBA Exam Questions PDF | ECBA Sample Questions PDF | TechcanvassECBA Exam Questions PDF | ECBA Sample Questions PDF | Techcanvass
ECBA Exam Questions PDF | ECBA Sample Questions PDF | Techcanvass
 
Free CCBA exam questions PDF
Free CCBA exam questions PDFFree CCBA exam questions PDF
Free CCBA exam questions PDF
 
Selenium web element commands cheat sheet
Selenium web element commands   cheat sheetSelenium web element commands   cheat sheet
Selenium web element commands cheat sheet
 
CBAP Certification Overview
CBAP Certification OverviewCBAP Certification Overview
CBAP Certification Overview
 
CCBA Certification Overview
CCBA Certification OverviewCCBA Certification Overview
CCBA Certification Overview
 
5 things to do to become a Business Analyst
5 things to do to become a Business Analyst5 things to do to become a Business Analyst
5 things to do to become a Business Analyst
 
Business analysis Fundamentals | Fundamentals of business analysis
Business analysis Fundamentals | Fundamentals of business analysisBusiness analysis Fundamentals | Fundamentals of business analysis
Business analysis Fundamentals | Fundamentals of business analysis
 
What is Data Dictionary - BABOK technique
What is Data Dictionary - BABOK techniqueWhat is Data Dictionary - BABOK technique
What is Data Dictionary - BABOK technique
 
SQL Quick Reference Card
SQL Quick Reference CardSQL Quick Reference Card
SQL Quick Reference Card
 
Selenium Interview Questions & Answers
Selenium Interview Questions & AnswersSelenium Interview Questions & Answers
Selenium Interview Questions & Answers
 
IIBA ECBA Certification Exam preparation Strategy
IIBA ECBA Certification Exam preparation StrategyIIBA ECBA Certification Exam preparation Strategy
IIBA ECBA Certification Exam preparation Strategy
 
User stories basics
User stories basicsUser stories basics
User stories basics
 
Business analyst certifications
Business analyst certificationsBusiness analyst certifications
Business analyst certifications
 
CBAP sample questions
CBAP sample questionsCBAP sample questions
CBAP sample questions
 
Agile business analyst
Agile business analystAgile business analyst
Agile business analyst
 
Agile Scrum Quick Reference Card
Agile Scrum Quick Reference CardAgile Scrum Quick Reference Card
Agile Scrum Quick Reference Card
 
CBAP Certification Basics
CBAP Certification BasicsCBAP Certification Basics
CBAP Certification Basics
 
IIBA BABOK version 3 - What's inside
IIBA BABOK version 3 - What's insideIIBA BABOK version 3 - What's inside
IIBA BABOK version 3 - What's inside
 
Business Analysis Core Concepts Model (BACCM)
Business Analysis Core Concepts Model (BACCM)Business Analysis Core Concepts Model (BACCM)
Business Analysis Core Concepts Model (BACCM)
 
Function point analysis introduction
Function point analysis introductionFunction point analysis introduction
Function point analysis introduction
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

Selenium Tutorial for Beginners | Automation framework Basics

  • 2. AGENDA  What is Automation Framework  Why we need  Advantages  Types of Framework  Framework Architecture  How to Design (Practical..)
  • 3. WHAT ? Automation Framework is not a single tool or process but it’s collection of tools and processes working together to support automated testing of an application
  • 4. WHAT ? It integrates function libraries, test data, object details and various reusable modules
  • 5. WHAT ? Is an integrated environment that sets the rules, assumptions, standards, concepts, guidelines and tools to aid automated testing
  • 6. WHY ?  To maintain the defined approach across the test suites  To fasten the work progress  To easy maintain the test code  To eliminate the human error  To test the application effectively  To achieve CT and CD
  • 7. ADVANTAGES Defined approach to be followed by everyone across the test suite Understandable code Low cost maintenance Reusability of code
  • 8. ADVANTAGES Maximum coverage Minimal manual intervention Easy Execution & Reporting
  • 9. Automation Frameworks Module Driven Framework Data Driven Framework Keyword Driven Framework Hybrid Framework` TYPES :
  • 11. MODULE DRIVEN FRAMEWORK Module Driven Framework is based on one of the OOPs concept – Abstraction The framework divides the entire “Application Under Test” into number of logical and isolated modules
  • 12. MODULE DRIVEN FRAMEWORK For each module, we create a separate and independent test suite These modules are separated by an abstraction layer in such a way that the changes made in one module doesn’t affects other module scripts
  • 13. MODULE DRIVEN FRAMEWORK Integrating all the individual modules together builds a larger test suite representing entire application under test
  • 14. PROS’ OF MDF Easier and cost efficient maintenance due high level of modularization The framework is pretty much scalable If the changes are implemented in one part of the application, only the test script representing that part of the application needs to be fixed leaving all the
  • 15. CONS’ OF MDF While designing the test scripts for each module, we embed the test data into the test scripts.Whenever we want to test with a different set of test data, it requires the manipulations of test scripts
  • 16. CONS’ OF MDF Need to modify the script if sanity or regression based testing to be performed other parts untouched.
  • 18. DATA DRIVEN FRAMEWORK This framework is mainly centralized with Test Data Test Script will not be embedded with test data Test Data will be stored in external databases like xml, csv, excel, odbc repository with key-value map. Ex :Validating Gmail login functionality  User Name Password HomePage Message Shruthi Superman Welcome Shruthi 1234 (@)(&) Welcome 1234 Test123 Test456 WelcomeTest123 Key Value Username_Shruthi Shruthi Password_Shruthi Superman WelcomeMessage_Shruthi Welcome Shruthi
  • 19. PROS’ OF DATA DRIVEN FRAMEWORK  Pros  Single test script can be executed with all various Test Data, so more coverage  Increases flexibility and maintainability of test data because one place to modify  Cons  The process is bit complex  Requires proficiency in a programming language that is being used to develop test data sources and reading mechanisms
  • 20. PROS’ OF DATA DRIVEN FRAMEWORK  Pros  Single test script can be executed with all various Test Data, so more coverage  Increases flexibility and maintainability of test data because one place to modify  Cons  The process is bit complex  Requires proficiency in a programming language that is being used to develop test data sources and reading mechanisms
  • 21. 3) KEYWORD DRIVEN FRAMEWORK  As the Name suggests, it enables Keyword Driven Testing or Table Driven Testing  Data & Keyword Tables being Independent of the Automation Tool  Enables documentation of the functionality of the Application under Test (AUT) in A tabular format
  • 22. PROS’ & CONS’  Pros  Easy to use since the approach is keyword based  Easy to modify the execution layer  Cons  Requires proficiency in a programming language that is being used to develop keyword based functional library
  • 23. 4) HYBRID FRAMEWORK  Hybrid Testing Framework is a combination of more than one above mentioned frameworks. The best thing about such a setup is that it leverages the benefits of all kinds of associated frameworks
  • 24. HOWTO DESIGN :  Identify the Scope of Testing  Company Oriented, Application Oriented, Project Oriented  Identification of the Needs of Testing  Identify Types of testing e.g. Functional Testing, Web Services etc. and application / modules to be tested  Evaluation of the Test Automation Tool  Preparation of Evaluation Checklist, Identification of the Candidate Tools Available, Sample Run, Rate & Select the Tool, Implementation & Training
  • 25. POM DESIGN PATTERN  Test scripts will be written on page wise  Ex: Home Page has features like header, footer, menus and carousal Images.  All the home page features validation script is written in one class file  Advantages:  Script maintenance is easy since its in page level.  Since its page level, stitching of scripts to make entire test suite is easy  Disadvantage's:  Classifying the scripts into Sanity, Functional and Integration is not easy  Partial execution is not possible
  • 26. HYBRID DESIGN PATTERN  Hybrid Module  It’s the combination of multiple framework design pattern like data driver, keyword driven, module driver etc.  We can achieve maximum benefit since we are clubbing multiple frameworks pattern
  • 28. FRAMEWORK COMPONENT  Object Repository  Object Repository is consist of set of locators types associated with web elements in the application  Test Data  Input data with which the test scenario would be tested and it can be the expected values with which the actual results would be compared.  Configuration File  The file stores the information regarding the application URL, browser specific information, server IP, device ID’s etc.  Generics/ Readers  These are the utility classes that store the functions which can be commonly used across the entire framework.  Build tools and Continuous Integration  These are the tools/API’s used to build, deploy the application, generate test reports, email notifications and logging information.
  • 29. FRAMEWORK COMPONENT (CONT..  Logging:  Logging mechanism generates the log file, which writes the entire stack information of the application during run  Reporting  Reporting is the key point in success of any automation framework  Since Selenium doesn’t have inbuilt reporting mechanism we can rely on TestNg / ReportNg report, Extent Report, html based customized report etc.  Execution:  Execution can be initiated by using Eclipse, ANT Build, TestNg , Jenkins and Email based triggering using outlook  Scheduling can be done using Windows scheduler and Jenkins

Editor's Notes

  1. Team has 5 members, if each one follow there own idea, thought process to write the code. Then it will leads to problems like unstructured code, Full of ambiguity, difficult to sync the code.
  2. Now we have basic idea what , why and when Automation framework. Now will see what are various types of automation framework.