automation testing - a practical approach
Post on 29-Sep-2015
236 Views
Preview:
TRANSCRIPT
PowerPoint Presentation
Automation Testing:A Practical Approach1ContentWhat is Automation Testing?Why Automation Testing?Automation Methodologies.Automation Testing Approach. DiCentral CorporationWhat 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 CorporationWhy automation testing?
Reduce manual testing efforts.
Reduce test cycle time.
Reduce test costs.
Reduce manual testing errors when running regression tests. DiCentral Corporation4
Why automation testing? (Cont.)Run tests that manual tests cannot be run.
Improve project team collaborations.
Improve designing and programming skills. DiCentral CorporationPitfalls of Automation Testing
Test everything. Non-repetitive tests will increase costs unnecessarily.
Debug time is not planned properly.
Hardcodes in test scripts. DiCentral CorporationPitfalls 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 PlaybackRecord 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 AutomationDevelop 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 DrivenTest 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 DrivenTest 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 - HybridCombine Data Driven and Keyword Driven. DiCentral CorporationApproach - Select a test tool
DiCentral CorporationApproach - Define Automation Testing ProcessDesignPlanImplementDeployReviewEvaluate DiCentral CorporationApproach - Training
Train/mentor and improve design skills.
Train/mentor and improve programming skills.
Comprehend scripting techniques.
Test case design techniques. DiCentral CorporationApproach - Team Member CollaborationsTest 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 CorporationApproach - 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 CorporationApproach - Implement Automation Test Framework
The framework will facilitate automation testing activities:Test designers design test cases.
Test implementers implement test script.
Test executor run tests and get feedbacks/reports. DiCentral CorporationApproach - Select Test CasesWe 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 CorporationApproach - Separate Test Data and Test Script
To improvereusability and maintainability DiCentral CorporationApproach - Provide Quick Reports/Feedbacks
DiCentral CorporationApproach - Maintain Test ScriptsShort functions for single responsibility.
Follow code conventions and standards.
Code Review and Refactor.
DiCentral CorporationOther considerations - Test EnvironmentsTest scripts are executed on different platforms.
Setup and organize test environments in the way tests can be executed in parallel. DiCentral CorporationOther considerations - Change Management
DiCentral CorporationConclusionsBenefits 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 CorporationQ & A
DiCentral Corporation.
Thank you
27
top related