Sie sind auf Seite 1von 27

Automation Testing:

A Practical Approach

Content

What is Automation Testing?


Why Automation Testing?
Automation Methodologies.
Automation Testing Approach.

DiCentral Corporation

What is Automation Testing?


Automation testing is
about using a test tool
to implement test
scripts, execute them
and report test results
over applications under
test.
DiCentral Corporation

Why automation testing?


Reduce manual testing efforts.
Reduce test cycle time.
Reduce test costs.
Reduce manual testing errors when running
regression tests.
DiCentral Corporation

Why automation testing?


(Cont.)

Run tests that manual tests cannot be


run.
Improve project team collaborations.
Improve designing and programming
skills.
DiCentral Corporation

Pitfalls of Automation
Testing
Test everything. Non-repetitive
tests will increase costs
unnecessarily.
Debug time is not planned properly.
Hardcodes in test scripts.

DiCentral Corporation

Pitfalls of Automation
Testing
Changes in application under tests. This causes changes
in test scripts.
Automation testing can
replace manual testing.
Automation Test tool
limitations. Automation
Test tools cannot
recognize application
controls and objects.
DiCentral Corporation

Methodologies Record and Playback


Record every steps of a test case.
Test data is hard coded in the test scripts.
No structures in test scripts.
One test script per test case.
DiCentral Corporation

Methodologies - Functional Automation


Develop user-defined functions, business
functions, utility test scripts to reduce test
cases covering all critical business functionality.
Every test case is automated by a test script.
A test script include test data.
DiCentral Corporation

Methodologies Data
Driven

Test Data is stored in files or databases.


Test scripts can run by different test data.
A test script can be run more than 1 test
case.
DiCentral Corporation

Methodologies - Keyword
Driven

Test cases and test data are stored in


spreadsheets or database.
Keywords form the test cases.

Automation testers will develop test script


functions to run keywords.
DiCentral Corporation

Methodologies - Hybrid
Combine Data Driven and Keyword
Driven.

DiCentral Corporation

Approach - Select a test tool

DiCentral Corporation

Approach - Define Automation Testing


Process

Plan

Desig
n

Implem
ent

Deplo
y

DiCentral Corporation

Revie
w

Evalu
ate

Approach - Training
Train/mentor and improve design
skills.
Train/mentor and improve
programming skills.
Comprehend scripting techniques.
Test case design techniques.
DiCentral Corporation

Approach - Team Member


Collaborations
Test Designer: Comprehend
domain knowledge and design
test cases.
Test Implementer: Implement test
scripts
BA: Provide use cases, user
storiesetc
Developer: Provide information
about IDs of Objects/Controls,
Modulesetc
DiCentral Corporation

Approach - Define Goals and


Objectives

Understand clearly about


goals of automation testing.
Define objectives of
automation testing to
measure how much we get for
the goals of automation
testing.
Then come up with the best
strategy and plan for
automation testing.

DiCentral Corporation

Approach - Implement Automation Test


The framework will
Framework
facilitate
automation testing
activities:
Test designers
design test
cases.

DiCentral Corporation

Test
implementers
implement test
script.

Test executor run


tests and get
feedbacks/report
s.

Approach - Select Test


Cases
We cannot automate
everything because we do
not have time and money
for it.
Critical business test cases
will be selected for test
automation (End-to-End
tests)
DiCentral Corporation

Approach - Separate Test Data and Test


Script
To improve
reusability
and
maintainabili
ty
DiCentral Corporation

Approach - Provide Quick


Reports/Feedbacks

DiCentral Corporation

Approach - Maintain Test


Scripts

Short functions for single


responsibility.

Follow code conventions and


standards.

DiCentral Corporation

Other considerations - Test


Environments
Test scripts are executed on different
platforms.
Setup and organize test
environments in the way tests can be
executed in parallel.
DiCentral Corporation

Other considerations - Change


Management

DiCentral Corporation

Conclusions
Benefits of automation testing can be
attained if we do it right at the beginning.
There is more than one way to skin a cat.
Understand and apply practical approach
can make it.
DiCentral Corporation

Q&A
DiCentral Corporation.

Thank you

Das könnte Ihnen auch gefallen