Upload
ganuka-yashantha
View
102
Download
0
Embed Size (px)
Citation preview
Hybrid Test Automation FrameworkIntroduction(Free to Share/View/Download)Presenter : Ganuka
Yashantha
© Ganuka Yashantha | [email protected]
Contents
Existing Test Automation Framework Data Driven Framework
Why Hybrid Automation FrameworkHybrid Framework
How to Use Hybrid Framework
Disadvantages of Data Driven Framework
Advantages of Hybrid Framework
Next
© Ganuka Yashantha | [email protected]
Data Driven Test Framework
1
© Ganuka Yashantha | [email protected]
Existing Framework
In now a days industries using Data Driven frame works
It’s also requires script writing experience using IDE(Eclipse or
some other).
Using this frame work Automation Engineers can write and
run robust data driven test suite.
Learning Curve is higher
© Ganuka Yashantha | [email protected]
Data-Driven Frameworks
A data-driven framework is where test input and output values are read from data files
(ODBC sources, CVS files, Excel files, DAO objects, ADO objects, and such) and are
loaded into variables in captured or manually coded scripts.
Data Driven frameworks Mainly Contains Below Packages• Data Objects• Execution Class• Page Objects • Helper Class
In coming slides describes to what extend QA Engineer requires coding ability when writes an Execution Class/ Data Objects, etc..
© Ganuka Yashantha | [email protected]
Data Provider Class
Data Loaded from Excel File
Data Passed to the Execution class
© Ganuka Yashantha | [email protected]
Keyword Driven Framework
Script Writers can use built in frame work which supports to Keywords. Therefor no coding ability requires when writing automation test suite.
Not supporting bulk data Changes using Excel, CSV or XML
Easier to understand and scripting
Not supporting to new functional changes (JavaScript Executions)
Flexibility is lower
With current functional tests(Various Data Levels) less popular in the industry.
© Ganuka Yashantha | [email protected]
© Ganuka Yashantha | [email protected]
Data Driven Frame Work + Key Word Driven Frame Work
What is Hybrid Frame Work
Able to gain advantages of both frame works by eliminating disadvantages
Sample Test Case Runner that will drive our Hybrid test is shown below.
Once you built the Framework,
No need of coding, just Excel
Anyone can Automate
Data Set( From Where data is loaded)
Page Objects
Keywords(Actions)
Data validation Column names from Data Set
Locators can be ID/XPATH/NAME
Locator Type
© Ganuka Yashantha | [email protected]
Disadvantages of Data Driven Framework
• Tester should be conversant in programming language
• Learning curve is high
• More time consuming
Disadvantages of Keyword Driven Framework
• Less flexibility
• Not supporting for java script executions/code injections
• Less data driven support
• Highly depending on the developed framework
• When AE’s going to change the framework its highly time consuming and less supporting
© Ganuka Yashantha | [email protected]
Advantages of Hybrid Framework
• No Code level Work (Execution class writes on Excel)
• High level of reusability (All the data objects’ Page Objects
maintained in Excel file)
• High level of maintainability(Use of Data Driven Framework)
• Minimal learning curve for the end user(New Comers can
learn quickly)
• Higher flexibility(Finally Selenium runs in back end)
• Easier to understand(Not in IDE just Excel file)
© Ganuka Yashantha | [email protected]
Further Obstacles and Investigations..
• Report generations
• Use of Jenkins
• Execution of multiple test cases
• Implementing custom listeners
• Different browser per page
• Loading more properties
© Ganuka Yashantha | [email protected]
Next
© Ganuka Yashantha | [email protected]
More About Frame Work Development
Integration of TestNG
Test execution using “.bat” file