Hybrid Automation Framework Developement

23
Hybrid Automation Framework 21/06/22 Presenter:- Glasdon Falcao

Transcript of Hybrid Automation Framework Developement

Page 1: Hybrid Automation Framework Developement

Hybrid Automation Framework

02/0

5/23

Presenter:- Glasdon Falcao

Page 2: Hybrid Automation Framework Developement

Understanding Automation Testing To Start With??

02/0

5/23

Traditionally performed with tools that mimic manual test flows using a record and play-back system similar to Marco recording in excelHow does this work with Tool:-•Capture manual test flow, using record capability.•While recording, captures object on which actions are performed and stores them in an object repository.•On playback objects on page checked against OR for match.•Tools then generates user actions on objects (e.g. button click) to replicate test flow.•Test scripts can be customized to use multiple data sets for the same test flow or to modify test flow.

Page 3: Hybrid Automation Framework Developement

Problems With This Approach & A Solution Of Course….

02/0

5/23

This Test Automation Approach has for the most part been a failure. Why?•Automation tools have been oversold. They have been given capabilities that they do not necessarily posses. E.g. demonstrate capabilities on one system and believe that would extend to all systems. •Record and Playback looks great but performs poorly in practice.•Work great for small projects but scales poorly.•Do not port well from one project to another. •Hard to customize

The Solution Of Course:-Is To build a layer over existing automation tools (An Automation Framework Layer). •Tools still used (in the general case) to capture object properties•Framework Provides a library of functions that hides underlying complexity from users.•Modular design makes it easy to extend•User friendly interface and reporting options•Uses Global parameters and variables to compensate for changes in application.

Page 4: Hybrid Automation Framework Developement

Different Ways to Design A Framework

02/0

5/23

I Believe With And

There Are:•Test Script Modularity Framework OR Page-Object Model Framework•Data-Driven Automation Frameworks•Keyword-Driven Automation Framework•Hybrid Test Automation Framework•Behaviour Driven Development.

All others are just derived versions and given different names.

Page 5: Hybrid Automation Framework Developement

POC And Selecting A Right Framework…

02/0

5/23

The major problem we usually have :-1.Coverage 2. Maintaining Scripts3.Reuse 4. Record/Playback 5. A different views of automation testing.

Some record/playback scripts Using A Tool

Page 6: Hybrid Automation Framework Developement

How A Keyword Automation Framework Layer (Diagrammatically) Should Be?

02/0

5/23

Page 7: Hybrid Automation Framework Developement

The Good And The Bad Of This Approach…

02/0

5/23

The Good•Much easier to extend to larger projects.•Designed to be highly modular, so changes in the application are easier to deal with.•Highly customizable, easy to modify across projects.•Reduced maintenance costs.•Isolates technical nitty-gritty of test case scripting from test execution. The Bad•Adds additional overhead of testers having to understand the framework•Performs poorly when application changes often as test scripts must be continually modified•Often sold as a panacea, Automation testing however takes time and effort no matter how you do it.

Page 8: Hybrid Automation Framework Developement

What Are We Looking AT???

02/0

5/23

YES.. We Have One Working Automation Framework In Place To Help Us With Out Testing Cycle.

Page 9: Hybrid Automation Framework Developement

Traceability Matrix

Glas

don

Falc

ao02

/05/

23

Automation Development Matrix

Page 10: Hybrid Automation Framework Developement

What A Automation Framework Should Have…

02/0

5/23

Page 11: Hybrid Automation Framework Developement

How A Automation Framework Control Flow Should Be..

02/0

5/23

Page 12: Hybrid Automation Framework Developement

Additional Capability

02/0

5/23

This framework has data driven capability which can be used for certain test cases which may need multiple Datasets.

So we now have two hybrid frameworks in one at our disposal..

1.Keyword Driven + Data Driven = Hybrid Framework

2.Data Driven + Page Object Model = Hybrid Framework.

Page 13: Hybrid Automation Framework Developement

Reporting..

02/0

5/23

We have two level of reporting integrated with the framework.1.An Technical Logger Which may identify any failures at granular level and can assist in troubleshooting.2.Reports In HTML Format with capabilities For:-

• Provides two types of reports summary and detailed report• The summary report provides details of execution duration, test start

time and end time• Screenshot captured of each execution step• The detailed reports describe exceptional cases handled, steps

passed, and steps failed.• Video Recording of the execution.• Good Graphical View At Start.

Page 14: Hybrid Automation Framework Developement

Why Need A Technical Logger – For Trouble Shooting

02/0

5/23

Page 15: Hybrid Automation Framework Developement

Why Need A Good Reporting System

02/0

5/23

Page 16: Hybrid Automation Framework Developement

Plus Reporting..

02/0

5/23

Page 17: Hybrid Automation Framework Developement

What Else.. A Continuous Integration Should Add Value..

02/0

5/23

Page 18: Hybrid Automation Framework Developement

Jenkins? About Jenkins?

• Build Scheduling• Build Deployment• Automated Process For Automation Script Run• Notifications & Communications

02/0

5/23

Page 19: Hybrid Automation Framework Developement

What We Still Want To Achieve…

02/0

5/23

Page 20: Hybrid Automation Framework Developement

Configurable UI Interface - Proposed

02/0

5/23

Page 21: Hybrid Automation Framework Developement

Consolidated Reporting Interface

02/0

5/23

Page 22: Hybrid Automation Framework Developement

More To Automation Framework

We have more framework development to do notably:--Extending framework support for more web objects. -Extending framework support for browsers and more OS.-Framework Support for web testing on tablet with existing scripts using Appium-Performance support via Selenium and Visual Studio..-Jenkins integration of tools.-And many more…

02/0

5/23

Page 23: Hybrid Automation Framework Developement

Thank You …

02/0

5/23