Automation Framework Design in addition to Implementation
What is Automation Framework?
It is a Systematic Approach to automate Software Test Process.
Or
It is a prepare of guidelines, assumptions in addition to procedure developed past times experts
in companionship to perform tasks inwards an effective in addition to optimized way.
Why Automation Framework?
In a Project Test Automation nosotros exercise in addition to utilisation dissimilar types of files in addition to nosotros perform dissimilar types of tasks, inwards companionship to shop in addition to organize them all a systematic approach(Automation Framework) is required.
a) Files to travel Created during Test Automation using UFT:
i) Shared Object Repository files (.tsr)
ii) Function Library Files (.vbs)
iii) Environment Variables file (.XML)
iv) Test batch Files (.mtb)
v) Recovery Scenario files (.qrs)
vi) Test Data files (.txt/ Excel/Database files etc...)
vii) Test Result Files(.txt/ Excel/Database files etc...)
viii) AOM Script Files (.vbs)
b) Tasks to travel Performed:
i) Get Environment Details from Development Team in addition to Select Appropriate Add ins
ii) Analyze the AUT inwards damage of Object Identification
iii) Select Test Cases or Areas for Automation
iv) Tool Setting Configuration in addition to Globalize
v) Automation Framework Implementation
1) Create a Folder Structure to shop in addition to organize Automation Resources
2) Create Automation Resources in addition to store
3) Create Organizer file
4) Generate Driver Script
(Build Tests Using Automation Resources)
5) Create Initialization Script
6) Tests Run
7) Analyzing Test Results in addition to Reporting Defects
8) Select Tests for Regression Testing in addition to Regression Testing Cycle 1
9) Analyzing Test Results in addition to Reporting Defects
10) Select Tests for Regression Testing in addition to Regression Testing Cycle 2
.
.
.
11) Final Regression
12) Update Automation Resources (If required)
13) Automation Resources Maintenance
Types of Automation Framework
1) Record / Play dorsum Or Linear Framework
Description: In this approach Tests tin travel created using Recording feature.
Advantages:
i) Scripting noesis is optional
ii) Easy to generate Tests in addition to takes less time.
iii) Recommended for Short term projects
iv) Recommended for Dynamically changing UI Designs
v) Recommended for Dynamically changing Requirements
Disadvantages:
i) No Centralized maintenance of Test Objects
ii) Low inwards Performance
iii) Less or No concentration on Complex functionality testing
iv) Testers may non get got ascendance on tests, in addition to therefore locating Errors is difficult
v) UFT can't tape all types of statements or Steps.
2) Data Driven Framework
-----------------------
Description:
In this approach Tests tin travel created in addition to executed using multiple sets of Test Data
Advantages:
i) Positive in addition to Negative Testing
ii) Reliability Testing
Disadvantages:
i) Low inwards performance
ii) Maintenance is difficult
3) Modular Framework
Description:
In this approach Tests tin travel created in addition to executed using Reusable components.
Advantages:
i) High inwards performance
ii) Maintenance is easy.
iii) Concentration on Complex functionality testing
iv) Locating Errors is easy
etc...
Disadvantages:
i) Scripting noesis is mandatory
ii) Not suitable for brusque term projects
iii) Not suitable for dynamically changing requirements
4) Keyword Driven Framework
Keyword Driven Testing:
In this approach tests tin travel created in addition to executed using Keywords.
What is Keyword?
A fundamental to the code.
Or
A reserved discussion that refers a Command or Function or method or object or contention etc....
Types Keywords inwards UFT Test Automation
--------------------------------------
i) Utility Objects (UFT)
SystemUtil, RepositoriesCollection, Reporter, Services, Environment, Description etc....
-----------------------------------
ii) Test Objects (UFT)
Browser, Page, Link, WinButton, WebButton, VbButton etc....
------------------------------------
iii) Automation Objects (VBScript)
objFso, objExcel, objWord etc...
--------------------------------
iv) Functions (VBScript)
a) Built inwards Functions
1) Array (Array, IsArray, Split, Join, LBound, UBound...)
2) String (Left, Right, Mid, StrComp etc...)
3) Date & Time (Date, Time, Now, DateDiff etc...)
4) Conversion (Cint, Cdbl etc...)
5) I/O (InputBox, Msgbox)
6) Micellanious (VarType, CreateObject etc...)
b) User defined Functions
Login, Register etc...
-----------------------------------------
v) Methods
a) Local methods
Acitivate, Set, Select, GetRoProperty, GetVisibleTest, run, Click, Close, SetSecure, navigate, Sync etc...
b) Global Methods
CreateFolder, CopyFolder, Read, ReadLine, ReadAll, Write etc....
Add, open, Save, SaveAs etc...
Open, Close, MoveText etc...
-------------------------------------
vi) VBScript statements
Dim, Const, If, For, Set, Option Explicit, On Error Resume Next etc....
--------------------------
vii) Others
Not, And, Or, Mod etc....
------------------------------------------
Key Elements of Automation Framework
a) Influenza A virus subtype H5N1 good defined folder structure
b) Organizer file
c) Driver Script
d) Initialization script
e) Process guidelines docs
-----------------------------------
Folder Structure
MainFolder
TestScenarios (For storing Test Scenario files)
ObjectRepository (For storing shared object Repository files)
FunctionLibrary (For storing library files)
Environment (For storing surround variables file)
Recovery (For storing Recovery scenario files)
TestData (For storing Test information files)
TestResult (For storing exam results files)
Organizer (For storing organizer spread sheets)
Drivers (For storing Driver scripts)
Micellanious (Process guidelines docs, Approval docs, instructions past times squad Pb etc...)
---------------
Initialization Script (AOM Script file
-------------------------------------------------------
Process Steps:
i) Create Folder construction to shop Automation Resources
ii) Create Automation Resources in addition to Store
iii) Create Organizer
(* It provides instructions to Driver Script)
iv) Generate Driver Script
(* All resources tin be associated amongst Driver Script, It executes tests i past times i in addition to export exam resultant based on Organizer instructions)
v) Generate Initialization Script
(* Lunches UFT tool, Calls the Driver Script in addition to closes UFT Tool)
Sumber http://www.gcreddy.com/
What is Automation Framework?
It is a Systematic Approach to automate Software Test Process.
Or
It is a prepare of guidelines, assumptions in addition to procedure developed past times experts
in companionship to perform tasks inwards an effective in addition to optimized way.
Why Automation Framework?
In a Project Test Automation nosotros exercise in addition to utilisation dissimilar types of files in addition to nosotros perform dissimilar types of tasks, inwards companionship to shop in addition to organize them all a systematic approach(Automation Framework) is required.
a) Files to travel Created during Test Automation using UFT:
i) Shared Object Repository files (.tsr)
ii) Function Library Files (.vbs)
iii) Environment Variables file (.XML)
iv) Test batch Files (.mtb)
v) Recovery Scenario files (.qrs)
vi) Test Data files (.txt/ Excel/Database files etc...)
vii) Test Result Files(.txt/ Excel/Database files etc...)
viii) AOM Script Files (.vbs)
b) Tasks to travel Performed:
i) Get Environment Details from Development Team in addition to Select Appropriate Add ins
ii) Analyze the AUT inwards damage of Object Identification
iii) Select Test Cases or Areas for Automation
iv) Tool Setting Configuration in addition to Globalize
v) Automation Framework Implementation
1) Create a Folder Structure to shop in addition to organize Automation Resources
2) Create Automation Resources in addition to store
3) Create Organizer file
4) Generate Driver Script
(Build Tests Using Automation Resources)
5) Create Initialization Script
6) Tests Run
7) Analyzing Test Results in addition to Reporting Defects
8) Select Tests for Regression Testing in addition to Regression Testing Cycle 1
9) Analyzing Test Results in addition to Reporting Defects
10) Select Tests for Regression Testing in addition to Regression Testing Cycle 2
.
.
.
11) Final Regression
12) Update Automation Resources (If required)
13) Automation Resources Maintenance
Types of Automation Framework
1) Record / Play dorsum Or Linear Framework
Description: In this approach Tests tin travel created using Recording feature.
Advantages:
i) Scripting noesis is optional
ii) Easy to generate Tests in addition to takes less time.
iii) Recommended for Short term projects
iv) Recommended for Dynamically changing UI Designs
v) Recommended for Dynamically changing Requirements
Disadvantages:
i) No Centralized maintenance of Test Objects
ii) Low inwards Performance
iii) Less or No concentration on Complex functionality testing
iv) Testers may non get got ascendance on tests, in addition to therefore locating Errors is difficult
v) UFT can't tape all types of statements or Steps.
2) Data Driven Framework
-----------------------
Description:
In this approach Tests tin travel created in addition to executed using multiple sets of Test Data
Advantages:
i) Positive in addition to Negative Testing
ii) Reliability Testing
Disadvantages:
i) Low inwards performance
ii) Maintenance is difficult
3) Modular Framework
Description:
In this approach Tests tin travel created in addition to executed using Reusable components.
Advantages:
i) High inwards performance
ii) Maintenance is easy.
iii) Concentration on Complex functionality testing
iv) Locating Errors is easy
etc...
Disadvantages:
i) Scripting noesis is mandatory
ii) Not suitable for brusque term projects
iii) Not suitable for dynamically changing requirements
4) Keyword Driven Framework
Keyword Driven Testing:
In this approach tests tin travel created in addition to executed using Keywords.
What is Keyword?
A fundamental to the code.
Or
A reserved discussion that refers a Command or Function or method or object or contention etc....
Types Keywords inwards UFT Test Automation
--------------------------------------
i) Utility Objects (UFT)
SystemUtil, RepositoriesCollection, Reporter, Services, Environment, Description etc....
-----------------------------------
ii) Test Objects (UFT)
Browser, Page, Link, WinButton, WebButton, VbButton etc....
------------------------------------
iii) Automation Objects (VBScript)
objFso, objExcel, objWord etc...
--------------------------------
iv) Functions (VBScript)
a) Built inwards Functions
1) Array (Array, IsArray, Split, Join, LBound, UBound...)
2) String (Left, Right, Mid, StrComp etc...)
3) Date & Time (Date, Time, Now, DateDiff etc...)
4) Conversion (Cint, Cdbl etc...)
5) I/O (InputBox, Msgbox)
6) Micellanious (VarType, CreateObject etc...)
b) User defined Functions
Login, Register etc...
-----------------------------------------
v) Methods
a) Local methods
Acitivate, Set, Select, GetRoProperty, GetVisibleTest, run, Click, Close, SetSecure, navigate, Sync etc...
b) Global Methods
CreateFolder, CopyFolder, Read, ReadLine, ReadAll, Write etc....
Add, open, Save, SaveAs etc...
Open, Close, MoveText etc...
-------------------------------------
vi) VBScript statements
Dim, Const, If, For, Set, Option Explicit, On Error Resume Next etc....
--------------------------
vii) Others
Not, And, Or, Mod etc....
------------------------------------------
Key Elements of Automation Framework
a) Influenza A virus subtype H5N1 good defined folder structure
b) Organizer file
c) Driver Script
d) Initialization script
e) Process guidelines docs
-----------------------------------
Folder Structure
MainFolder
TestScenarios (For storing Test Scenario files)
ObjectRepository (For storing shared object Repository files)
FunctionLibrary (For storing library files)
Environment (For storing surround variables file)
Recovery (For storing Recovery scenario files)
TestData (For storing Test information files)
TestResult (For storing exam results files)
Organizer (For storing organizer spread sheets)
Drivers (For storing Driver scripts)
Micellanious (Process guidelines docs, Approval docs, instructions past times squad Pb etc...)
---------------
Initialization Script (AOM Script file
-------------------------------------------------------
Process Steps:
i) Create Folder construction to shop Automation Resources
ii) Create Automation Resources in addition to Store
iii) Create Organizer
(* It provides instructions to Driver Script)
iv) Generate Driver Script
(* All resources tin be associated amongst Driver Script, It executes tests i past times i in addition to export exam resultant based on Organizer instructions)
v) Generate Initialization Script
(* Lunches UFT tool, Calls the Driver Script in addition to closes UFT Tool)