filmov
tv
Hybrid Test Automation Framework using Selenium and Java Data Driven and Keyword

Показать описание
Day 17 : Hybrid Test Automation Framework
What is an Automation Framework?
QA Automation Process
Structure… commonality on how things are done.
Human life easier.
Not trying to reinvent the wheel each time. Standards.
Thumb Rules :
Efficient : Faster create,edit,run. Uses fewer resources.
Reusable : Maintenance, Repeat with few changes.
Accurate : Trust worthy. Confidence on the tool.
Examples :
Buildings : Structure the same. Interiors, size of rooms etc. Steel beams, bricks…
Cars : Manufacturing plant for automobiles. Robots which repeat the same process. Chassis, Tyres already proven.
JUnit - Java Unit Testing Framework. Unit testing, @Before and @After each @Test.
Types of Automation Frameworks
Linear Framework
Automate Scenario by scenario. User Stories or Test Cases.
Functional Decomposition
Repeating functional Test blocks. Retest them during regression runs.
Code gets better organized. BDD/ATDD a little towards.
Reusable functions. That can be parameterized.
Ex: userLogin(uName,uPwd). sendMoney(from,to,when,howMuch)
All depends on the AUT, we create these reusable functions.
Data Driven Framework
1 or few Test Cases/Scenarios.
Run against different sets of data. And verify for expected.
Orgs or Apps that use loads of data. Financial, Healthcare, SocialMedia, Aero,
AUT TC behave when the Test Data changes.
Keyword Driven Framework
Focus changes on to the AUT.
AUT goes through a life cycle of changes (OR Feature updates)
QA must re-test the whole AUT and not just the recent changes. Regression Testing.
For each release, we must hence be able to Efficiently, Reusablitiy, Accurately perform a Regressions Testing.
Manually, do we need to repeat the entire effort for each release before we decide on a GO/No-Go? Yes … automation process can help.
KDF let us make it easier to
Write Regression Tests (easier in an Excel .. harder in .java)
Run Tests (select which and so on … execute)
Results of Tests (Pass, Fail, Screenshots, Log/Email, TimeTaken)
Maintain Future Tests (add new Tests to Excel, edit also in excel … getting towards ZERO CODE Framework … smart Driver Script)
Hybrid Test Automation Framework :
Hybrid is mixing best of 2 worlds together.
Hybrid Cars team : Fuel OR Battery.
Advantages from 2 of more Frameworks.
Combine DDF + KDF + PageFactory/POM into 1.
POM/PF - TestNG / Maven, Selenium
3rd Party Test Automation Tools
HP QTP/UFT, Microfocus, Selenium, AnyAUT
What is an Automation Framework?
QA Automation Process
Structure… commonality on how things are done.
Human life easier.
Not trying to reinvent the wheel each time. Standards.
Thumb Rules :
Efficient : Faster create,edit,run. Uses fewer resources.
Reusable : Maintenance, Repeat with few changes.
Accurate : Trust worthy. Confidence on the tool.
Examples :
Buildings : Structure the same. Interiors, size of rooms etc. Steel beams, bricks…
Cars : Manufacturing plant for automobiles. Robots which repeat the same process. Chassis, Tyres already proven.
JUnit - Java Unit Testing Framework. Unit testing, @Before and @After each @Test.
Types of Automation Frameworks
Linear Framework
Automate Scenario by scenario. User Stories or Test Cases.
Functional Decomposition
Repeating functional Test blocks. Retest them during regression runs.
Code gets better organized. BDD/ATDD a little towards.
Reusable functions. That can be parameterized.
Ex: userLogin(uName,uPwd). sendMoney(from,to,when,howMuch)
All depends on the AUT, we create these reusable functions.
Data Driven Framework
1 or few Test Cases/Scenarios.
Run against different sets of data. And verify for expected.
Orgs or Apps that use loads of data. Financial, Healthcare, SocialMedia, Aero,
AUT TC behave when the Test Data changes.
Keyword Driven Framework
Focus changes on to the AUT.
AUT goes through a life cycle of changes (OR Feature updates)
QA must re-test the whole AUT and not just the recent changes. Regression Testing.
For each release, we must hence be able to Efficiently, Reusablitiy, Accurately perform a Regressions Testing.
Manually, do we need to repeat the entire effort for each release before we decide on a GO/No-Go? Yes … automation process can help.
KDF let us make it easier to
Write Regression Tests (easier in an Excel .. harder in .java)
Run Tests (select which and so on … execute)
Results of Tests (Pass, Fail, Screenshots, Log/Email, TimeTaken)
Maintain Future Tests (add new Tests to Excel, edit also in excel … getting towards ZERO CODE Framework … smart Driver Script)
Hybrid Test Automation Framework :
Hybrid is mixing best of 2 worlds together.
Hybrid Cars team : Fuel OR Battery.
Advantages from 2 of more Frameworks.
Combine DDF + KDF + PageFactory/POM into 1.
POM/PF - TestNG / Maven, Selenium
3rd Party Test Automation Tools
HP QTP/UFT, Microfocus, Selenium, AnyAUT