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.com
Contact: +1 (404)-900-9988
Web: www.quontrasolutions.com
2
Contents
1. Software Framework
2. The Easy Way
3. The Better Way
Introduction
PageObject Pattern
1. Automation Framework Approaches
Data/Table Driven Framework
Keyword Driven Framework
Hybrid Framework
Generic Architecture
1. Guidelines and Lessons Learnt
Test Organization
Test Writing Style
Browser Updates
3
Software Framework
What is a software framework?
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
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.
6
The Easy Way
What is the easy way to automate?
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.
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.
9
The Better Way
What could be a better way of
automating?
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
11
The better way
PageObject class
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
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
14
Automation Framework Approaches
What are the available automation
frameworks?
15
Automation Framework Approaches
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
16
Automation Framework Approaches
Data/Table Driven Framework
17
Automation Framework Approaches
Keyword Driven Framework
 Keyword driven framework is an action based test method used in planning and implementation
of automation.
18
Automation Framework Approaches
Hybrid Framework
 A mix of Data driven and Keyword driven frameworks.
19
Automation Framework Approaches
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.
20
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
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
22
Automation Framework Approaches
Guidelines 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
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
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
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>
26
Functional test writing style
Behavior Driven Development Style
Tests
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.
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
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.
30
Thank You
31

More Related Content

What's hot (20)

PPTX
Selenium Test Automation
BabuDevanandam
 
PPT
Test Automation Framework Designs
Sauce Labs
 
PPTX
Framework For Automation Testing Practice Sharing
KMS Technology
 
PDF
Key Factors To Ensure Test Automation Framework Success
Ho Chi Minh City Software Testing Club
 
PPTX
A Test Automation Framework
Gregory Solovey
 
PPT
Automation test scripting guidelines
Bharathi Krishnamurthi
 
PDF
Regression Test Automation Framework
Infosys
 
PPT
Test Automation Framework Development Introduction
Ganuka Yashantha
 
PPS
Final Automation Testing
priya_trivedi
 
PPTX
IGT's Intelligent Automation Framework
greyaudrina
 
PPT
Testing Frameworks
Moataz Nabil
 
PPT
Automated Testing with Agile
Ken McCorkell
 
PPT
Guideto Successful Application Test Automation
aimshigh7
 
PPTX
Mobile Test Automation Framework : Presented By Shankar Garg
oGuild .
 
PPT
Automation testing strategy, approach & planning
SivaprasanthRentala1975
 
PPT
Centralized test automation framework implementation
Bharathi Krishnamurthi
 
PDF
Test automation methodologies
Mesut Günes
 
PDF
Developing a test automation strategy by Brian Bayer
QA or the Highway
 
PDF
Test Automation
rockoder
 
PDF
automation framework
ANSHU GOYAL
 
Selenium Test Automation
BabuDevanandam
 
Test Automation Framework Designs
Sauce Labs
 
Framework For Automation Testing Practice Sharing
KMS Technology
 
Key Factors To Ensure Test Automation Framework Success
Ho Chi Minh City Software Testing Club
 
A Test Automation Framework
Gregory Solovey
 
Automation test scripting guidelines
Bharathi Krishnamurthi
 
Regression Test Automation Framework
Infosys
 
Test Automation Framework Development Introduction
Ganuka Yashantha
 
Final Automation Testing
priya_trivedi
 
IGT's Intelligent Automation Framework
greyaudrina
 
Testing Frameworks
Moataz Nabil
 
Automated Testing with Agile
Ken McCorkell
 
Guideto Successful Application Test Automation
aimshigh7
 
Mobile Test Automation Framework : Presented By Shankar Garg
oGuild .
 
Automation testing strategy, approach & planning
SivaprasanthRentala1975
 
Centralized test automation framework implementation
Bharathi Krishnamurthi
 
Test automation methodologies
Mesut Günes
 
Developing a test automation strategy by Brian Bayer
QA or the Highway
 
Test Automation
rockoder
 
automation framework
ANSHU GOYAL
 

Similar to Designing a Test Automation Framework By Quontra solutions (20)

PDF
Test automation wipro
ambreprasad77
 
PPTX
automation_test_framewjdsjhdsjhsdorks.pptx
srikanthusk99
 
PPT
Hybrid Automation Framework Developement
Glasdon Falcao
 
PPSX
Software automation
gokilabrindha
 
PPTX
Test-Automation-Frameworks-and-Types-in-2024.pptx
Clarion Technologies
 
PPTX
Automation Best Practices.pptx
pavelpopov43
 
PDF
Test Automation Frameworks- The Complete Guide.pdf
ronikakashyap1
 
PDF
The Essence of Test Automation Framework Design.pdf
kalichargn70th171
 
PDF
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
leebarnesutopia
 
PDF
The Essence of Test Automation Framework Design.pdf
flufftailshop
 
PDF
Functional and Non-functional Test automation
Dr Ganesh Iyer
 
PPTX
Test Automation Frameworks: Assumptions, Concepts & Tools
Amit Rawat
 
DOC
SUMMIT 09 - Startegic Choice Of Test Automation Framework
Lavanya Lakshman
 
PPTX
Automation Test Framework
Sachin-QA
 
PPTX
Test automation in project management
ambreprasad77
 
PPT
Automated Software Testing Framework Training by Quontra Solutions
Quontra Solutions
 
PPTX
An Automation Framework That Really Works
Basivi Reddy Junna
 
PPTX
Starting Test Automation In Your Project - Webinar by 99X Technology
99X Technology
 
PPTX
unit-5 SPM.pptx
ssuser92282c
 
PPTX
What is an Automation Framework ?
Sriram Angajala
 
Test automation wipro
ambreprasad77
 
automation_test_framewjdsjhdsjhsdorks.pptx
srikanthusk99
 
Hybrid Automation Framework Developement
Glasdon Falcao
 
Software automation
gokilabrindha
 
Test-Automation-Frameworks-and-Types-in-2024.pptx
Clarion Technologies
 
Automation Best Practices.pptx
pavelpopov43
 
Test Automation Frameworks- The Complete Guide.pdf
ronikakashyap1
 
The Essence of Test Automation Framework Design.pdf
kalichargn70th171
 
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
leebarnesutopia
 
The Essence of Test Automation Framework Design.pdf
flufftailshop
 
Functional and Non-functional Test automation
Dr Ganesh Iyer
 
Test Automation Frameworks: Assumptions, Concepts & Tools
Amit Rawat
 
SUMMIT 09 - Startegic Choice Of Test Automation Framework
Lavanya Lakshman
 
Automation Test Framework
Sachin-QA
 
Test automation in project management
ambreprasad77
 
Automated Software Testing Framework Training by Quontra Solutions
Quontra Solutions
 
An Automation Framework That Really Works
Basivi Reddy Junna
 
Starting Test Automation In Your Project - Webinar by 99X Technology
99X Technology
 
unit-5 SPM.pptx
ssuser92282c
 
What is an Automation Framework ?
Sriram Angajala
 
Ad

More from QUONTRASOLUTIONS (20)

PPTX
Big data introduction by quontra solutions
QUONTRASOLUTIONS
 
PPTX
Java constructors
QUONTRASOLUTIONS
 
PPTX
Cognos Online Training with placement Assistance - QuontraSolutions
QUONTRASOLUTIONS
 
PDF
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
PDF
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
PPTX
Cognos Overview
QUONTRASOLUTIONS
 
PPTX
Hibernate online training
QUONTRASOLUTIONS
 
PPTX
Java j2eeTutorial
QUONTRASOLUTIONS
 
PPTX
Software Quality Assurance training by QuontraSolutions
QUONTRASOLUTIONS
 
PPT
Introduction to software quality assurance by QuontraSolutions
QUONTRASOLUTIONS
 
PPT
.Net introduction by Quontra Solutions
QUONTRASOLUTIONS
 
PPT
Introduction to j2 ee patterns online training class
QUONTRASOLUTIONS
 
PPTX
Saas overview by quontra solutions
QUONTRASOLUTIONS
 
PPTX
Sharepoint taxonomy introduction us
QUONTRASOLUTIONS
 
PPTX
Introduction to the sharepoint 2013 userprofile service By Quontra
QUONTRASOLUTIONS
 
PPTX
Introduction to SharePoint 2013 REST API
QUONTRASOLUTIONS
 
PPTX
Performance Testing and OBIEE by QuontraSolutions
QUONTRASOLUTIONS
 
PPTX
Obiee introduction building reports by QuontraSolutions
QUONTRASOLUTIONS
 
PPTX
Sharepoint designer workflow by quontra us
QUONTRASOLUTIONS
 
PPT
Qa by quontra us
QUONTRASOLUTIONS
 
Big data introduction by quontra solutions
QUONTRASOLUTIONS
 
Java constructors
QUONTRASOLUTIONS
 
Cognos Online Training with placement Assistance - QuontraSolutions
QUONTRASOLUTIONS
 
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
Cognos Overview
QUONTRASOLUTIONS
 
Hibernate online training
QUONTRASOLUTIONS
 
Java j2eeTutorial
QUONTRASOLUTIONS
 
Software Quality Assurance training by QuontraSolutions
QUONTRASOLUTIONS
 
Introduction to software quality assurance by QuontraSolutions
QUONTRASOLUTIONS
 
.Net introduction by Quontra Solutions
QUONTRASOLUTIONS
 
Introduction to j2 ee patterns online training class
QUONTRASOLUTIONS
 
Saas overview by quontra solutions
QUONTRASOLUTIONS
 
Sharepoint taxonomy introduction us
QUONTRASOLUTIONS
 
Introduction to the sharepoint 2013 userprofile service By Quontra
QUONTRASOLUTIONS
 
Introduction to SharePoint 2013 REST API
QUONTRASOLUTIONS
 
Performance Testing and OBIEE by QuontraSolutions
QUONTRASOLUTIONS
 
Obiee introduction building reports by QuontraSolutions
QUONTRASOLUTIONS
 
Sharepoint designer workflow by quontra us
QUONTRASOLUTIONS
 
Qa by quontra us
QUONTRASOLUTIONS
 
Ad

Recently uploaded (20)

PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
infertility, types,causes, impact, and management
Ritu480198
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
epi editorial commitee meeting presentation
MIPLM
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 

Designing a Test Automation Framework By Quontra solutions

  • 1. Test Automation Framework Overview and Strategy Presented By Quontra Solutions IT Courses Online Training With Placement Support. Attend Free Demo . Email: [email protected] Contact: +1 (404)-900-9988 Web: www.quontrasolutions.com
  • 2. 2
  • 3. Contents 1. Software Framework 2. The Easy Way 3. The Better Way Introduction PageObject Pattern 1. Automation Framework Approaches Data/Table Driven Framework Keyword Driven Framework Hybrid Framework Generic Architecture 1. Guidelines and Lessons Learnt Test Organization Test Writing Style Browser Updates 3
  • 4. Software Framework What is a software framework? 4
  • 5. 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 5
  • 6. 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. 6
  • 7. The Easy Way What is the easy way to automate? 7
  • 8. 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. 8
  • 9. 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. 9
  • 10. The Better Way What could be a better way of automating? 10
  • 11. 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 11
  • 13. 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 13
  • 14. 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 14
  • 15. Automation Framework Approaches What are the available automation frameworks? 15
  • 16. Automation Framework Approaches 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 16
  • 18. Automation Framework Approaches Keyword Driven Framework  Keyword driven framework is an action based test method used in planning and implementation of automation. 18
  • 19. Automation Framework Approaches Hybrid Framework  A mix of Data driven and Keyword driven frameworks. 19
  • 20. Automation Framework Approaches 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. 20 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
  • 21. Guidelines and Lessons Learnt Some important points to keep in mind 21
  • 22. 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 22
  • 23. Automation Framework Approaches Guidelines 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 23
  • 24. 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 24
  • 25. 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 25
  • 26. 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> 26
  • 27. Functional test writing style Behavior Driven Development Style Tests 27
  • 28. 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. 28
  • 29. 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 29
  • 30. 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. 30