SlideShare a Scribd company logo
Test Automation Framework
Overview and Strategy
Presented By
Quontra Solutions
IT Courses Online Training With
Placement Support. Attend Free
Demo
Email: info@quontrasolutions.co.uk
Contact: 20 - 3734 -1498
Web: www.quontrasolutions.co.uk
Contents

Software Framework

The Easy Way

The Better Way
- Introduction
- PageObject Pattern

Automation Framework Approaches
- Data/Table Driven Framework
- Keyword Driven Framework
- Hybrid Framework
- Generic Architecture

Guidelines and Lessons Learnt
- Test Organization
- Test Writing Style
- Browser Updates
2
Software Framework
What is a software framework?
3
Software Framework
The definition and key components
 A software framework is a universal, reusable software platform used to develop
applications, products and solutions.
 Software Frameworks include,
 Support Programs
 Compilers
 Code Libraries
 APIs
 A tool set to integrate different components
4
Software Framework
Framework properties
 A Software framework contain key distinguishing features that separate them from
normal libraries.
 They are,
 Inversion of Control (IOC) the overall program's flow of control is not
dictated by the caller, but by the framework.
 Default behaviour must actually be some useful behavior and not a
series of instructions.
 Extensibility can be extended by the user usually by selective overriding
or specialized by user code providing specific functionality.
 Non modifiable framework code is not allowed to be modified.
5
The Easy Way
What is the easy way to automate?
6
The easy way - Records all user
activities and play back
 Typically a software testing suite will allow the
tester to use the SUT as a user would, through the
browser.
 In the background the testing suite records all of
the clicks and key presses and discards any context.
 Later, the recorded events are played back and
various assertions are made to ensure the output
matches that which is expected.
7
The easy way Pros and Cons
Pros
Easy and does not required highly skilled software developers
Large portions of the application can be covered quickly
Cons
Small changes to the SUT cause massive disruption in the tests
Entire suites of tests can be rendered useless resulting in reduce
testing coverage for extended periods of time
Test maintenance becomes hard
 Tests begin to stagnate
 Team confidence, in the tests, is reduced.
8
The Better Way
What could be a better way of
automating?
9
The better way
Introduction
 Treat automated testing as software development.
 Tests should be created with the same concern for software
design principles such as,
 Reduced coupling
 High cohesion
 Proper separation of concerns
 Maintainability
 Reusability
10
The better way
PageObject class
11
The better way
Dos and Don’ts
 In PageObjects,
 The public methods represent the services that the page offers
 Try not to expose the internals of the page
 Generally don't make assertions
 Methods return other PageObjects
 Need not represent an entire page
 Different results for the same action are modeled as different
methods
12
The better way
Pros and Cons
Pros
 Selenium WebDriver supports
 Increased maintainability
 Increase test stability
 Readable tests
 Tests are easy to author
Cons
 Larger up-front cost for creating PageObjects
 More skill is required to create PageObjects
13
Automation Framework Approaches
What are the available automation
frameworks?
14
Automation FrameworkApproaches
Data/Table Driven Framework
 Data driven is the design of possible inputs what may given by the end user. This would cover maximum
probabilities of an input data. It can be a spread sheet or a DB. We have to connect and pass the values
to the respective field or element.
 Take advantage of tester’s familiarity with test case creation using tables and matrices
 Accommodate localization projects
 Recognize the importance of patterns in test cases
 Enable testers to catalog test cases with Excel spreadsheets
 Enable testers to specify expected results in spreadsheets
15
Automation Framework Approaches
Data/Table Driven Framework
16
Automation FrameworkApproaches
Keyword Driven Framework
 Keyword driven framework is an action based test method used in planning and implementation of
automation.
17
Automation FrameworkApproaches
Hybrid Framework
 A mix of Data driven and Keyword driven frameworks.
18
Automation FrameworkApproaches
Generic Architecture
 A Test Automation Framework should have a multi-tiered
architecture. It should consists of the following tiers.
 Engine Components in this tier are completely
responsible for interacting with the WebDriver
interfaces.
 Domain This tier is meant to contain only page
objects that work against the engine.
 Utils This tier is meant to contain very generic,
reusable functionality across all the other tiers.
 Functional Tests This tier will contain tests that are
built on top of MSTest to create actual test
scenarios by using page objects in the Domain.
19
Test Automation FrameworkTest Automation Framework
(MSTest) Test Execution Engine(MSTest) Test Execution Engine
Functional TestsFunctional Tests
Domain
Engine
UtilsUtils
Selenium Web Driver APISelenium Web Driver API
Guidelines and Lessons Learnt
Some important points to keep in
mind
20
Automation Framework Approaches
Guidelines for Automation framework design
• Selection of a framework
• Don’t reinvent the wheel - Make use of Selenium WebDriver functionalities
• Reusability
• Support of different application versions
• Support of script versioning
• Different environment for development and production
• Externally Configurable
• Minimal changes required for any object changes
• Execution - Individual, batch, only failed etc
• Status monitoring , Reporting
• Minimum dependency on Automation tool for changes
21
Automation Framework
ApproachesGuidelines for Automation
framework design
• Easy debugging
• Logging - Errors, warnings, etc
• Easy to Use
• Flexible - Should not impact existing test if changes are required
• Performance impacts
• Coding Standards
22
Functional test organization
Physical file organization
 Test script files (.cs files) are organized into a
folder structure much similar to the web
application’s page structure.
 Reasons to select this approach:
 Easy access to tests
 Testing a section of the application is easy
23
Functional test organization
Test class naming convention
 Test class name should start with the containing
folder name.
 Reasons to select this approach:
 Easy to group tests based on test class
 Testing a section of the application is easy
24
Functional test writing style Behavior
Driven Development Style Tests
 It is important to be able to break down a test
scenario into the components of a behavior
driven test to ensure clarity. Very concisely the
test writer should be able to dictate a test
scenario as:
 Given <a precondition>
 When <an action takes place>
 Then <expected outcome should be present>
25
Functional test writing style
Behavior Driven Development Style
Tests
26
Functional test writing style
Behavior Driven Development Style Tests
 Reasons for selecting this approach:
 This style of test writing allows for a test case to
be easily verbalized and comparable to the
system requirements being validated.
 Since this effort is heavily focused on UI
automation, it makes sense to capture test cases
dictating every behavior of the system and the
user.
27
Browser Upgrades What if the browser
upgrades automatically?
− Have a portable version of the browser
− Package it with your framework
− Starts when the test suite starts
28
Summary
− Automation should be considered as
a development project and not just
record and playback of events.
Starting automated testing with a
good framework ensures low
maintenance. Guidelines discussed in
this paper can be used as input for
developing requirements for a
framework.
29
Thank You
30

More Related Content

What's hot

Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
KMS Technology
 
Test Automation Framework Development Introduction
Test Automation Framework Development IntroductionTest Automation Framework Development Introduction
Test Automation Framework Development Introduction
Ganuka Yashantha
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
Sauce Labs
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test Automation
BabuDevanandam
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planningSivaprasanthRentala1975
 
Framework for Web Automation Testing
Framework for Web Automation TestingFramework for Web Automation Testing
Framework for Web Automation Testing
Taras Lytvyn
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)
Leonard Fingerman
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 
Centralized test automation framework implementation
Centralized test automation framework implementationCentralized test automation framework implementation
Centralized test automation framework implementation
Bharathi Krishnamurthi
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
Moataz Nabil
 
Mobile Test Automation Framework : Presented By Shankar Garg
Mobile Test Automation Framework : Presented By Shankar GargMobile Test Automation Framework : Presented By Shankar Garg
Mobile Test Automation Framework : Presented By Shankar Garg
oGuild .
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automation
aimshigh7
 
Laws of test automation framework
Laws of test automation frameworkLaws of test automation framework
Laws of test automation framework
vodqancr
 
Continuous test automation
Continuous test automationContinuous test automation
Continuous test automation
Macharla Pradeep
 
Regression Test Automation Framework
Regression Test Automation Framework Regression Test Automation Framework
Regression Test Automation Framework
Infosys
 
Software Test Patterns: Successes and Challenges
Software Test Patterns: Successes and ChallengesSoftware Test Patterns: Successes and Challenges
Software Test Patterns: Successes and Challenges
Bob Binder
 
Software test automation_overview
Software test automation_overviewSoftware test automation_overview
Software test automation_overview
Rohan Bhattarai
 
Developing a test automation strategy by Brian Bayer
Developing a test automation strategy by Brian BayerDeveloping a test automation strategy by Brian Bayer
Developing a test automation strategy by Brian Bayer
QA or the Highway
 

What's hot (20)

Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
 
Test Automation Framework Development Introduction
Test Automation Framework Development IntroductionTest Automation Framework Development Introduction
Test Automation Framework Development Introduction
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
Automation test scripting guidelines
Automation test scripting guidelines Automation test scripting guidelines
Automation test scripting guidelines
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test Automation
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
Framework for Web Automation Testing
Framework for Web Automation TestingFramework for Web Automation Testing
Framework for Web Automation Testing
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 
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
 
Mobile Test Automation Framework : Presented By Shankar Garg
Mobile Test Automation Framework : Presented By Shankar GargMobile Test Automation Framework : Presented By Shankar Garg
Mobile Test Automation Framework : Presented By Shankar Garg
 
Automation_testing
Automation_testingAutomation_testing
Automation_testing
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automation
 
Laws of test automation framework
Laws of test automation frameworkLaws of test automation framework
Laws of test automation framework
 
Continuous test automation
Continuous test automationContinuous test automation
Continuous test automation
 
Regression Test Automation Framework
Regression Test Automation Framework Regression Test Automation Framework
Regression Test Automation Framework
 
Software Test Patterns: Successes and Challenges
Software Test Patterns: Successes and ChallengesSoftware Test Patterns: Successes and Challenges
Software Test Patterns: Successes and Challenges
 
Software test automation_overview
Software test automation_overviewSoftware test automation_overview
Software test automation_overview
 
Developing a test automation strategy by Brian Bayer
Developing a test automation strategy by Brian BayerDeveloping a test automation strategy by Brian Bayer
Developing a test automation strategy by Brian Bayer
 

Viewers also liked

Catalogo claudia 09 2014
Catalogo claudia 09 2014Catalogo claudia 09 2014
Catalogo claudia 09 2014
Guishe Vega
 
BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...
BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...
BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...
atwork
 
Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...
Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...
Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...
New Nature Paradigm Tech Analysis: Green, Sustainable, Collaborative
 
5 avances tegnologicos que marcaran tendencia en 2014
5 avances tegnologicos que marcaran tendencia en 20145 avances tegnologicos que marcaran tendencia en 2014
5 avances tegnologicos que marcaran tendencia en 2014Nico D-bla K
 
Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]
Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]
Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]IAB uruguay
 
ProfitBricks Cloud Computing IaaS An Introduction
ProfitBricks Cloud Computing IaaS An IntroductionProfitBricks Cloud Computing IaaS An Introduction
ProfitBricks Cloud Computing IaaS An Introduction
ProfitBricks
 
Automation Framework
Automation FrameworkAutomation Framework
Automation Frameworkmehramit
 
The tech. behind RoboBlastPlanet
The tech. behind RoboBlastPlanetThe tech. behind RoboBlastPlanet
The tech. behind RoboBlastPlanet
Javier Abud
 
Mobile Trends and Innovations
Mobile Trends and InnovationsMobile Trends and Innovations
Mobile Trends and Innovations
Marta Rauch
 
Client proposal letter sample
Client proposal letter sampleClient proposal letter sample
Client proposal letter sample
zeus bautista
 
Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York)
 Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York) Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York)
Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York)
Jean Bézivin
 
Los Peic Y Los Pa
Los Peic Y Los PaLos Peic Y Los Pa
Los Peic Y Los Pa
Loiceli Manrique
 
User Powershell for Task Automation
User Powershell for Task AutomationUser Powershell for Task Automation
User Powershell for Task Automation
Aman Dhally
 
Modern Software Architecture Styles and Patterns
Modern Software Architecture Styles and PatternsModern Software Architecture Styles and Patterns
Modern Software Architecture Styles and Patterns
Ganesh Samarthyam
 
Morfología Urbana
Morfología UrbanaMorfología Urbana
Morfología UrbanaSira Sancho
 
Nutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRM
Nutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRMNutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRM
Nutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRM
Custemotion Unternehmensberatung UG (haftungsbeschränkt)
 

Viewers also liked (17)

Buscadores
BuscadoresBuscadores
Buscadores
 
Catalogo claudia 09 2014
Catalogo claudia 09 2014Catalogo claudia 09 2014
Catalogo claudia 09 2014
 
BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...
BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...
BI-System with OData and SharePoint Online App (SharePoint Konferenz ppEDV Er...
 
Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...
Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...
Kold Fusion, Tesla, Torsion Felter, Skalar Bølger, »Gratis« Energi.. = Alle J...
 
5 avances tegnologicos que marcaran tendencia en 2014
5 avances tegnologicos que marcaran tendencia en 20145 avances tegnologicos que marcaran tendencia en 2014
5 avances tegnologicos que marcaran tendencia en 2014
 
Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]
Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]
Banco Galicia (Caso) - Victoria Pertiné [IAB Forum Uruguay - 2013]
 
ProfitBricks Cloud Computing IaaS An Introduction
ProfitBricks Cloud Computing IaaS An IntroductionProfitBricks Cloud Computing IaaS An Introduction
ProfitBricks Cloud Computing IaaS An Introduction
 
Automation Framework
Automation FrameworkAutomation Framework
Automation Framework
 
The tech. behind RoboBlastPlanet
The tech. behind RoboBlastPlanetThe tech. behind RoboBlastPlanet
The tech. behind RoboBlastPlanet
 
Mobile Trends and Innovations
Mobile Trends and InnovationsMobile Trends and Innovations
Mobile Trends and Innovations
 
Client proposal letter sample
Client proposal letter sampleClient proposal letter sample
Client proposal letter sample
 
Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York)
 Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York) Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York)
Software Modeling and the Future of Engineering (ICMT/STAF Keynote at York)
 
Los Peic Y Los Pa
Los Peic Y Los PaLos Peic Y Los Pa
Los Peic Y Los Pa
 
User Powershell for Task Automation
User Powershell for Task AutomationUser Powershell for Task Automation
User Powershell for Task Automation
 
Modern Software Architecture Styles and Patterns
Modern Software Architecture Styles and PatternsModern Software Architecture Styles and Patterns
Modern Software Architecture Styles and Patterns
 
Morfología Urbana
Morfología UrbanaMorfología Urbana
Morfología Urbana
 
Nutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRM
Nutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRMNutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRM
Nutzen Sie die Cloud Power für Ihr Microsoft Dynamics CRM
 

Similar to Test Automation Framework Online Training by QuontraSolutions

Test automation wipro
Test automation   wiproTest automation   wipro
Test automation wipro
ambreprasad77
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdf
kalichargn70th171
 
Automation Best Practices.pptx
Automation Best Practices.pptxAutomation Best Practices.pptx
Automation Best Practices.pptx
pavelpopov43
 
SUMMIT 09 - Startegic Choice Of Test Automation Framework
SUMMIT 09 - Startegic Choice Of Test Automation FrameworkSUMMIT 09 - Startegic Choice Of Test Automation Framework
SUMMIT 09 - Startegic Choice Of Test Automation FrameworkLavanya Lakshman
 
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdf
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdfTest Automation Framework An Insight into Some Popular Automation Frameworks.pdf
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdf
Serena Gray
 
What is a Test Automation framework.pdf
What is a Test Automation framework.pdfWhat is a Test Automation framework.pdf
What is a Test Automation framework.pdf
AnanthReddy38
 
Choosing right-automation-tool
Choosing right-automation-toolChoosing right-automation-tool
Choosing right-automation-tool
BabuDevanandam
 
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
kalichargn70th171
 
Fitnesse, Watir and Ruby Based Test Automation System
Fitnesse, Watir and Ruby Based Test Automation SystemFitnesse, Watir and Ruby Based Test Automation System
Fitnesse, Watir and Ruby Based Test Automation System
Harbinger Systems - HRTech Builder of Choice
 
Unit Testing Essay
Unit Testing EssayUnit Testing Essay
Unit Testing Essay
Dani Cox
 
The Need for an Automation Testing Framework_ A Comprehensive Guide.pdf
The Need for an Automation Testing Framework_ A Comprehensive Guide.pdfThe Need for an Automation Testing Framework_ A Comprehensive Guide.pdf
The Need for an Automation Testing Framework_ A Comprehensive Guide.pdf
kalichargn70th171
 
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
kalichargn70th171
 
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)
IRJET Journal
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
Ducat
 
Testing frameworks
Testing frameworksTesting frameworks
Testing frameworks
Sakthi K
 
An Automation Framework That Really Works
An Automation Framework That Really WorksAn Automation Framework That Really Works
An Automation Framework That Really WorksBasivi Reddy Junna
 
Test automation
Test automationTest automation
Test automation
Jitendra Malviya
 
Web and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateWeb and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 Ultimate
Abhimanyu Singhal
 

Similar to Test Automation Framework Online Training by QuontraSolutions (20)

Test automation wipro
Test automation   wiproTest automation   wipro
Test automation wipro
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdf
 
Automation Best Practices.pptx
Automation Best Practices.pptxAutomation Best Practices.pptx
Automation Best Practices.pptx
 
SUMMIT 09 - Startegic Choice Of Test Automation Framework
SUMMIT 09 - Startegic Choice Of Test Automation FrameworkSUMMIT 09 - Startegic Choice Of Test Automation Framework
SUMMIT 09 - Startegic Choice Of Test Automation Framework
 
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdf
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdfTest Automation Framework An Insight into Some Popular Automation Frameworks.pdf
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdf
 
What is a Test Automation framework.pdf
What is a Test Automation framework.pdfWhat is a Test Automation framework.pdf
What is a Test Automation framework.pdf
 
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
 
Fitnesse, Watir and Ruby Based Test Automation System
Fitnesse, Watir and Ruby Based Test Automation SystemFitnesse, Watir and Ruby Based Test Automation System
Fitnesse, Watir and Ruby Based Test Automation System
 
Unit Testing Essay
Unit Testing EssayUnit Testing Essay
Unit Testing Essay
 
The Need for an Automation Testing Framework_ A Comprehensive Guide.pdf
The Need for an Automation Testing Framework_ A Comprehensive Guide.pdfThe Need for an Automation Testing Framework_ A Comprehensive Guide.pdf
The Need for an Automation Testing Framework_ A Comprehensive Guide.pdf
 
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 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)
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
 
Ch17
Ch17Ch17
Ch17
 
Testing frameworks
Testing frameworksTesting frameworks
Testing frameworks
 
An Automation Framework That Really Works
An Automation Framework That Really WorksAn Automation Framework That Really Works
An Automation Framework That Really Works
 
Ijetcas14 413
Ijetcas14 413Ijetcas14 413
Ijetcas14 413
 
Test automation
Test automationTest automation
Test automation
 
Web and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateWeb and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 Ultimate
 

More from Quontra Solutions

Java Constructors with examples - Quontra Solutions
Java Constructors with examples  - Quontra SolutionsJava Constructors with examples  - Quontra Solutions
Java Constructors with examples - Quontra Solutions
Quontra Solutions
 
Oracle-12c Online Training by Quontra Solutions
 Oracle-12c Online Training by Quontra Solutions Oracle-12c Online Training by Quontra Solutions
Oracle-12c Online Training by Quontra Solutions
Quontra Solutions
 
Enterprise java beans
Enterprise java beansEnterprise java beans
Enterprise java beans
Quontra Solutions
 
Automation with Selenium Presented by Quontra Solutions
Automation with Selenium Presented by Quontra SolutionsAutomation with Selenium Presented by Quontra Solutions
Automation with Selenium Presented by Quontra Solutions
Quontra Solutions
 
Automated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra SolutionsAutomated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra Solutions
Quontra Solutions
 
DataMining and OLAP Technology Concepts Presented By Quontra Solutions
DataMining and OLAP Technology Concepts Presented By Quontra SolutionsDataMining and OLAP Technology Concepts Presented By Quontra Solutions
DataMining and OLAP Technology Concepts Presented By Quontra Solutions
Quontra Solutions
 
Network security by quontra solutions uk
Network security by quontra solutions ukNetwork security by quontra solutions uk
Network security by quontra solutions ukQuontra Solutions
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
Quontra Solutions
 
Informatica Metadata Exchange Frequently Asked Questions by Quontra Solutions
Informatica Metadata Exchange Frequently Asked Questions by Quontra SolutionsInformatica Metadata Exchange Frequently Asked Questions by Quontra Solutions
Informatica Metadata Exchange Frequently Asked Questions by Quontra SolutionsQuontra Solutions
 
Informatica metadata exchange frequently asked questions by quontra solutions
Informatica metadata exchange frequently asked questions by quontra solutionsInformatica metadata exchange frequently asked questions by quontra solutions
Informatica metadata exchange frequently asked questions by quontra solutionsQuontra Solutions
 
Dataware house Introduction By Quontra Solutions
Dataware house Introduction By Quontra SolutionsDataware house Introduction By Quontra Solutions
Dataware house Introduction By Quontra Solutions
Quontra Solutions
 
Selenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutionsSelenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutions
Quontra Solutions
 

More from Quontra Solutions (12)

Java Constructors with examples - Quontra Solutions
Java Constructors with examples  - Quontra SolutionsJava Constructors with examples  - Quontra Solutions
Java Constructors with examples - Quontra Solutions
 
Oracle-12c Online Training by Quontra Solutions
 Oracle-12c Online Training by Quontra Solutions Oracle-12c Online Training by Quontra Solutions
Oracle-12c Online Training by Quontra Solutions
 
Enterprise java beans
Enterprise java beansEnterprise java beans
Enterprise java beans
 
Automation with Selenium Presented by Quontra Solutions
Automation with Selenium Presented by Quontra SolutionsAutomation with Selenium Presented by Quontra Solutions
Automation with Selenium Presented by Quontra Solutions
 
Automated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra SolutionsAutomated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra Solutions
 
DataMining and OLAP Technology Concepts Presented By Quontra Solutions
DataMining and OLAP Technology Concepts Presented By Quontra SolutionsDataMining and OLAP Technology Concepts Presented By Quontra Solutions
DataMining and OLAP Technology Concepts Presented By Quontra Solutions
 
Network security by quontra solutions uk
Network security by quontra solutions ukNetwork security by quontra solutions uk
Network security by quontra solutions uk
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
 
Informatica Metadata Exchange Frequently Asked Questions by Quontra Solutions
Informatica Metadata Exchange Frequently Asked Questions by Quontra SolutionsInformatica Metadata Exchange Frequently Asked Questions by Quontra Solutions
Informatica Metadata Exchange Frequently Asked Questions by Quontra Solutions
 
Informatica metadata exchange frequently asked questions by quontra solutions
Informatica metadata exchange frequently asked questions by quontra solutionsInformatica metadata exchange frequently asked questions by quontra solutions
Informatica metadata exchange frequently asked questions by quontra solutions
 
Dataware house Introduction By Quontra Solutions
Dataware house Introduction By Quontra SolutionsDataware house Introduction By Quontra Solutions
Dataware house Introduction By Quontra Solutions
 
Selenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutionsSelenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutions
 

Recently uploaded

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 

Recently uploaded (20)

June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 

Test Automation Framework Online Training by QuontraSolutions

  • 1. Test Automation Framework Overview and Strategy Presented By Quontra Solutions IT Courses Online Training With Placement Support. Attend Free Demo Email: info@quontrasolutions.co.uk Contact: 20 - 3734 -1498 Web: www.quontrasolutions.co.uk
  • 2. Contents  Software Framework  The Easy Way  The Better Way - Introduction - PageObject Pattern  Automation Framework Approaches - Data/Table Driven Framework - Keyword Driven Framework - Hybrid Framework - Generic Architecture  Guidelines and Lessons Learnt - Test Organization - Test Writing Style - Browser Updates 2
  • 3. Software Framework What is a software framework? 3
  • 4. Software Framework The definition and key components  A software framework is a universal, reusable software platform used to develop applications, products and solutions.  Software Frameworks include,  Support Programs  Compilers  Code Libraries  APIs  A tool set to integrate different components 4
  • 5. Software Framework Framework properties  A Software framework contain key distinguishing features that separate them from normal libraries.  They are,  Inversion of Control (IOC) the overall program's flow of control is not dictated by the caller, but by the framework.  Default behaviour must actually be some useful behavior and not a series of instructions.  Extensibility can be extended by the user usually by selective overriding or specialized by user code providing specific functionality.  Non modifiable framework code is not allowed to be modified. 5
  • 6. The Easy Way What is the easy way to automate? 6
  • 7. The easy way - Records all user activities and play back  Typically a software testing suite will allow the tester to use the SUT as a user would, through the browser.  In the background the testing suite records all of the clicks and key presses and discards any context.  Later, the recorded events are played back and various assertions are made to ensure the output matches that which is expected. 7
  • 8. The easy way Pros and Cons Pros Easy and does not required highly skilled software developers Large portions of the application can be covered quickly Cons Small changes to the SUT cause massive disruption in the tests Entire suites of tests can be rendered useless resulting in reduce testing coverage for extended periods of time Test maintenance becomes hard  Tests begin to stagnate  Team confidence, in the tests, is reduced. 8
  • 9. The Better Way What could be a better way of automating? 9
  • 10. The better way Introduction  Treat automated testing as software development.  Tests should be created with the same concern for software design principles such as,  Reduced coupling  High cohesion  Proper separation of concerns  Maintainability  Reusability 10
  • 12. The better way Dos and Don’ts  In PageObjects,  The public methods represent the services that the page offers  Try not to expose the internals of the page  Generally don't make assertions  Methods return other PageObjects  Need not represent an entire page  Different results for the same action are modeled as different methods 12
  • 13. The better way Pros and Cons Pros  Selenium WebDriver supports  Increased maintainability  Increase test stability  Readable tests  Tests are easy to author Cons  Larger up-front cost for creating PageObjects  More skill is required to create PageObjects 13
  • 14. Automation Framework Approaches What are the available automation frameworks? 14
  • 15. Automation FrameworkApproaches Data/Table Driven Framework  Data driven is the design of possible inputs what may given by the end user. This would cover maximum probabilities of an input data. It can be a spread sheet or a DB. We have to connect and pass the values to the respective field or element.  Take advantage of tester’s familiarity with test case creation using tables and matrices  Accommodate localization projects  Recognize the importance of patterns in test cases  Enable testers to catalog test cases with Excel spreadsheets  Enable testers to specify expected results in spreadsheets 15
  • 17. Automation FrameworkApproaches Keyword Driven Framework  Keyword driven framework is an action based test method used in planning and implementation of automation. 17
  • 18. Automation FrameworkApproaches Hybrid Framework  A mix of Data driven and Keyword driven frameworks. 18
  • 19. Automation FrameworkApproaches Generic Architecture  A Test Automation Framework should have a multi-tiered architecture. It should consists of the following tiers.  Engine Components in this tier are completely responsible for interacting with the WebDriver interfaces.  Domain This tier is meant to contain only page objects that work against the engine.  Utils This tier is meant to contain very generic, reusable functionality across all the other tiers.  Functional Tests This tier will contain tests that are built on top of MSTest to create actual test scenarios by using page objects in the Domain. 19 Test Automation FrameworkTest Automation Framework (MSTest) Test Execution Engine(MSTest) Test Execution Engine Functional TestsFunctional Tests Domain Engine UtilsUtils Selenium Web Driver APISelenium Web Driver API
  • 20. Guidelines and Lessons Learnt Some important points to keep in mind 20
  • 21. Automation Framework Approaches Guidelines for Automation framework design • Selection of a framework • Don’t reinvent the wheel - Make use of Selenium WebDriver functionalities • Reusability • Support of different application versions • Support of script versioning • Different environment for development and production • Externally Configurable • Minimal changes required for any object changes • Execution - Individual, batch, only failed etc • Status monitoring , Reporting • Minimum dependency on Automation tool for changes 21
  • 22. Automation Framework ApproachesGuidelines for Automation framework design • Easy debugging • Logging - Errors, warnings, etc • Easy to Use • Flexible - Should not impact existing test if changes are required • Performance impacts • Coding Standards 22
  • 23. Functional test organization Physical file organization  Test script files (.cs files) are organized into a folder structure much similar to the web application’s page structure.  Reasons to select this approach:  Easy access to tests  Testing a section of the application is easy 23
  • 24. Functional test organization Test class naming convention  Test class name should start with the containing folder name.  Reasons to select this approach:  Easy to group tests based on test class  Testing a section of the application is easy 24
  • 25. Functional test writing style Behavior Driven Development Style Tests  It is important to be able to break down a test scenario into the components of a behavior driven test to ensure clarity. Very concisely the test writer should be able to dictate a test scenario as:  Given <a precondition>  When <an action takes place>  Then <expected outcome should be present> 25
  • 26. Functional test writing style Behavior Driven Development Style Tests 26
  • 27. Functional test writing style Behavior Driven Development Style Tests  Reasons for selecting this approach:  This style of test writing allows for a test case to be easily verbalized and comparable to the system requirements being validated.  Since this effort is heavily focused on UI automation, it makes sense to capture test cases dictating every behavior of the system and the user. 27
  • 28. Browser Upgrades What if the browser upgrades automatically? − Have a portable version of the browser − Package it with your framework − Starts when the test suite starts 28
  • 29. Summary − Automation should be considered as a development project and not just record and playback of events. Starting automated testing with a good framework ensures low maintenance. Guidelines discussed in this paper can be used as input for developing requirements for a framework. 29