Object
Identification
It is a mechanism of how QTP is
recognizing the objects uniquely
Object
Identification:
-
1. Normal Identification
2. Smart Identification
Normal
Identification:
- It is divided into 2 properties
a) Mandatory Properties
b) Assistance Properties
Mandatory
Properties:
- The properties which are mandatory to recognize, are called mandatory
Properties
Ex: -Name, Text,
Class Name, attached text…etc.
Assistive
properties:
- these are assistance for mandatory properties.
Window based
Applications:
Window id
Web Based
Applications:
html id, html tag
àWhenever we are
adding an object to OR, QTP takes all mandatory properties and analyze whether
these are
sufficient to recognize the
object.
àIf mandatory
properties are not sufficient then it takes assistive properties one by one,
and analyze for
identification.
If provided assistive property is
also not sufficient then QTP takes the help of “Ordinal Identifiers”.
àWe have 3
Ordinal identifiers
Index, Location, Creation Time (For
Browser)
àIndex with
respective the application and location is with respective Desktop.
Smart
Identification:
- It is divided in to 2 Properties
1. Base Filter Properties
2. Optional Filter Properties
àGenerally we are
not using smart identification
________________________________________________________________________
Chapter XXIII
Framework
Question: - What is
Framework?
Framework is an environment,
where we can maintain automation testing process. We maintain the environment
in
the form of folder structure.
Question: - Why do we
require framework?
1. To make user friendly
2. To avoid Re-Work
3. For better maintenance/
process maintenance
Question: - How do you
decide your Framework
à It is with
respect to client requirement
à If we maintain
manual testing process in quality center then we maintain in QC else we maintain
in
network/ shared drivers
Question: -
Characteristics of Framework
1. Framework should be user
friendly
2. Framework should avoid Re-Work
3. Framework should be good
maintenance/ maintainability
Framework Folder
Structure:
-
Auto Frame: - It is a
parent folder and it is a framework name. It contains bellow sub folders.
Documents, Data Library, Test
Script, Function Library, Environment Variables, Logs, OR, Recovery
Documents: - It is used
to maintain project related documents like Requirements, test cases, Automation
Feasibility, Test Plan…etc.
Data Library: - This folders
is used to maintaining files like .xls and Notepad
Ex: - àRun manager.xls
à Test Case
related data.xls
àQueries in
Notepad
Runmanager.xls: - It contains
all test scripts with execution status YES/ NO.
Test Scripts: - In this
folder we maintain automation test scripts
Functional
Library:
- It is used to maintain common functions and business functions
Common Function: - Function
which are related to Framework
Business
Framework:
- Function which are related to Test Cases (AUT).
Environment
Variable:
- To maintain External Environment files (.xml)
Logs: - It is used
to analyze and store test results
à During execution
of test scripts, framework is creating a runtime[with system date time as name]
folder and
creates Excel Reports, HTML
Reports, Performance Reports, Screen Shots folders in Runtime folders.
o Excel reports: - This folder
is used to save and analyze results in Excel
o HTML reports: - This folder
is used to save and analyze results in HTML
o Performance reports: - This folder
is used to save and analyze test script performance
o Screen shots: - This is used
to save and analyze screen for failed test scripts
OR: - It is used
to maintain shared object file
Recovery: - It is used
to maintains recovery files
InitScript.vbs: - It is
initialize vbs files, if we execute it.
à It does below
o It lunches QTP with require ADD-Ins
o Open driver script and executes
o Close QTP after executing test scripts
Driver Scripts File:
- To open and execute the required scripts selecting from excel
Types of
Framework:
-
1. Linear Framework
2. Data Driven Framework
3. Keyword Driven Framework
4. Modular Driven framework
5. Hybrid Framework
Linear Framework: - In this
framework we design and maintain the scripts independently. We are not
designing test scripts without reusability.
Data Driven
Framework:
- Maintaining the test scripts to execute with multiple Test Data.
Keyword Driven
Framework:
- Implementing scripts reusability by using Functions.
Modular Driven
Framework:
- Implementing scripts reusability by using Actions.
Hybrid Framework: - Combination
of one or more framework.
Generally we use hybrid with Data Driven and Key
Word Driven Frameworks
No comments :
Post a Comment