Friday, July 1, 2016

Automation Testing

Why Automation Testing is Important?
Manual Testing is performed by a Human sitting in front of a computer. Human carefully executing the test scripts.

And Automation testing means using a automation tool to execute the Test Case Suite.

The Automation software can also enter test data into the system under test compare actual and
expected results and generate detailed Test Reports.

Goal of Automation is to reduce number of test cases to be run manually and not manual testing all together.

Automated testing is important due to following Reasons:

 1. Manual Testing of all work flows all fields,all negative scenarios is Time and Cost Consuming.

2. It is difficult to test for Multilingual Sites Manually.

3. Automation does not require human intervention.You can run your test overnight.

4.Automation increases speed of test execution and Test Coverage.

5. Manual testing can become boring and hence Error Prone.

Which Test Case to Automate?
Select those parameters which increase the Automation ROI

1. Test Cases that are executed repeatedly.
2. Test Cases that are very tedious or difficult to execute manually.
3. Test cases which are time consuming.
4. High Risk- Business Critical Test Cases.

Which Test Cases not to be Automated?
1. Test cases that are newly designed and not executed manually at least once.
2. Test Cases for which the requirements are changing frequently.
3. Test Cases which are executed on Ad-HOC basis.

Automation Process:
1. Test tool Selection.
Test tool selection largely depends on the technology the Application Under test is built on.
For example:
QTP does not support Informatica so QTP cannot be used for testing Informatica applications.

Its a good idea to conduct Proof of Concept of tool on AUT.

2. Define Scope of Automation
Scope of Automation is the area of your application Under Test which will be automated.

3. Planning,Design and Development
During this phase you create the Automation strategy and Plan.

4.Test Execution
Automation scripts are executed during this phase.

5. Maintenance:
As new functionalities are added to the System Under Test with successive cycles,Automation Scripts need to be added ,reviewed and maintained for each release cycle.

Maintenance becomes necessary to improve effectiveness of Automation scripts.

Automation Tools: 
The more popular automation tools are:

QTP/UFT: Its is the Market leader in Functional Testing tool.

Rational Robot- Its an IBM Tool used to automate regression,functional and configuration tests.

Selenium- Its an open source web Automation tool.

How to Select the best tool?
 Use following attributes to select the best tool
1. Ease of use(SCRIPTING LANGUAGE USED)
2. Support various types of test including functional,Test management ,Mobile etc.
3. Support for multiple testing frameworks.

Tools selection is one of the biggest challenges to be tracked before going for automation.
1. First identify the requirements, Explore various tools and its capabilities
2. Set the expectation from the tool and go for the proof of concept.

Framework in Automation:
A framework is set of automation guidelines which help in
1. Maintaining consistency of testing.
2. Less Maintenance of code
3. Improves re-usability

There are four types of framework we are using in Automation
1. Data driven Automation Framework.
2. Keyword driven Framework.
3. Modular Automation Framework.
4. Hybrid Automation Framework.

Automation Best Practices:
To get Maximum ROI
1. Scope of Automation need to be determined in detail before the start of the project.
    This set the expectations from Automation right.

2. Select the right Automation tool
    A tool must not be selected based on its popularity but its fit to the Automation requirements.

3. Choose Appropriate Framework

4. Scripting standards
    Standards have to be followed while writing the scripts for Automation.

5. Measure Metrices
    Success of Automation cannot be determined by comparing the manual effort with the automation       effort but by also capturing the Metrices like
        - Percent of defect founds.
        - Productivity Improvement etc

The above guidelines will help to start your Automation. Thanks

Now in next slide i will give you brief details on Selenium.

No comments:

Post a Comment