Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution...

15
Test Automation PROCESS & STRATEGIES

Transcript of Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution...

Page 1: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Test AutomationPROCESS & STRATEGIES

Page 2: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Why Automation?

- Reduced Cost

- Reduced Effort

- Reduced Time

- Enhanced Quality

- Reusability

- Consistency

Manual Testing

• is time and cost consuming

• presents difficulty testing for multilingual sites

• can become boring and hence error prone

Automation Testing

• does not require Human intervention. You can run automated

test unattended (overnight)

• increases speed of test execution

Page 3: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Automation Process

Test Tool Selection

Criteria

Defining Scope of Automation

What to Automate?

What not to Automate?

Planning, Design, Development &

Execution

Page 4: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Test Tool Selection

• Rate the tool against the features list required by automation team

Functionality

• How easy it is to learn and adapt?

• Availability of trainingsUsability

• Is the tool compatible with the application?

Compatibility

• Licensing policy of the tool

Flexibility

• How good is support by the tool

• Online user community?Support

• € O $ £ : After all.

Affordability

Page 5: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

What to Automate?

Test Cases that are executed repeatedly and are time consuming

Test Cases that are tedious and don’t require manual intervention

Test Case that can survive the functional changes around them

Test Cases that have clear pass/fail criteria

Test Cases that are newly designed and not executed manually at least once

Test Cases for which the requirements are changing frequently

What Not to Automate?

Page 6: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Planning, Design, Development & Execution

Automation tools selected

Framework design and its features

In-Scope and Out-of-scope items of automation

Automation test bed preparation & test case

execution

Deliverables of automation testing

Maintenance becomes necessary to improve

effectiveness of Automation Scripts.

Page 7: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Selenium Automation Frameworks

Hybrid framework is a combination of Modular and Data driven framework

Utilizes the best technologies and resources to do the job

Page 8: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Open source testing framework inspired from JUnit and NUnit but more powerful and easier to use

NG of TestNG means Next Generation

Eliminates most of the limitations of the older framework and gives the tester the ability to write more flexible and

powerful tests with help of easy annotations, grouping, sequencing & parameterizing

Benefits

It gives the ability to produce HTML Reports of execution

Annotations made testers life easy

Test cases can be Grouped & Prioritized more easily

Parallel testing is possible

Generates Logs

TestNG Framework

Page 9: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

TestNG Framework

Page 10: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Recording

Page 11: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Export

Page 12: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

TestNG Framework

DRIVER SCRIPTPAGE OBJECTS APP MODULES

Page 13: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Functional Libraries

LogsUtilities Excel Utilities

Excel

Actual Results

Expected Results

Test Case

01

Test Case

02

Test Case

03

Page 14: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

TestNG Framework

Page Objects App Modules

Driver Script

Test Case

01

Test Case

02

Test Case 03

Functional Libraries

LogsUtilities Excel Utilities

Excel

Actual Result

Recording Export

Excel

Expected Result

Page 15: Automated Functional Testing · 2015. 2. 18. · Planning, Design, Development & Execution Automation tools selected Framework design and its features In-Scope and Out-of-scope items

Thank You!QUESTIONS?