Hybrid automation framework

19
Hybrid Automation Framework with java DOAI TRAN

Transcript of Hybrid automation framework

Page 1: Hybrid automation framework

Hybrid Automation Framework with java

DOAI TRAN

Page 2: Hybrid automation framework

Contents- Selenium – Hybrid Framework- Advantages of Hybrid Framework- Architecture of hybrid framework.- Flow Diagram- Object Repository- Test Cases – Test Suite- Keyword Supports- Execution- Reports- Exception Handling- Log.- Demo

Page 3: Hybrid automation framework

Hybrid FrameworkSELENIUM FRAMEWORK

Data Driven Hybrid Framework Keyword Driven

Log4j, POI Excel File, TestNG, Maven, Integrate with Jenkins

Page 4: Hybrid automation framework

Advantages of Hybrid Framework- Less Technical Expertise- Easy To Understand- Early Start- Re-usability of component- Re-usability of code

Page 5: Hybrid automation framework

Architecture of hybrid framework.Controlle

r

Test Data

ExecuteTestCasesReadWriteExcel

logkeyword

Core Framework

Object Repositor

yTest

Report

Log for actions

Screenshot

Selenium Webdriver

Page 6: Hybrid automation framework

Flow Diagram- Below is the Flow Diagram of Framework Execution

Controller

Test Cases TestCasesTest Steps

Test ObjectActions Test Data

Page 7: Hybrid automation framework

Object RepositoryWe will collect all Object repository in txt file.- Object name will be managed following naming conventions as below:

Page 8: Hybrid automation framework

Object Repository Preparation steps - config- We list URL of object repository file (txt) in Constants class.

Page 9: Hybrid automation framework

Object Repository (Cont) Preparation steps – config - Then, we can call object repository on Controller to execute

Page 10: Hybrid automation framework

Test Cases – Test Suite We will manage Test Suite and Test Cases through Excel file. Test Suite >< Excel file. Test Suite sheet:

+ To summary all Test Cases will be defined on Test Suite.+ Whether Control Test Cases be run or not (Run Mode)

Page 11: Hybrid automation framework

Test Cases – Test Steps

Page 12: Hybrid automation framework

Keyword Support

Page 13: Hybrid automation framework

Execution

Select the test suite and test report location and input name of test suite before executed

Page 14: Hybrid automation framework

Reports After executed, we can get the report file (Excel file).

Page 15: Hybrid automation framework

Reports After executed, we can get the report file (Excel file).

Page 16: Hybrid automation framework

Exception Handling All failed steps on a test cases will be taken screenshot to keep

tracking. In imageLog folder. Screenshot file be named with naming convention.

Page 17: Hybrid automation framework

Log for all steps In logfile.log, we can see all log of all steps be executed in a Test Cases / Test

Suites

Page 18: Hybrid automation framework
Page 19: Hybrid automation framework

References

ToolsQA. Hybrid Framework Guru99 – Automation Framework Apache POI 3.5 Apache Log4j 1.2 Data Driven and Keyword Driven Selenium ToolsQA Exception handling in Selenium – ToolsQA