UFT Class 9
(Descriptive Programming Part-1)
Descriptive Programming Or Programmatic Descriptions
Enter / Provide objects data straight into statements/steps
is called Descriptive Programming.
No bespeak to accept Object Repositories separately, nosotros supply objects info
directly inwards the Test/Test script only.
Descriptive Programming is faster inwards execution than object repository based Test.
Object Repository based Test Design
Recording Keyword driven methodology
----------------------------------------------------------
Test external view Same
Internal process Uses Local Repositories Shared object repositories
--------------------------------------------------------------------------
Test External view:
Test object statements vary from OR based exam to DP
Test Object Statements:
Single Test Object Statement
OR:
Syntax:
TestObject("Objectname").Operation
Ex:
Dialog("Login").Activate
Browser("Google").Close
DP:
Syntax:
TestObject("Property Name:=Property value").Operation
Or
TestObject("Property1 Name:=Property1 value","Property2 Name:=Property2 value" ).Operation
Object
Object is something which has construction together with properties
Property
It is an attribute of the object, which describes the Object
Method / Operation
Operation on Object
-----------------------------------
Object
Man
Properties Values
Name abcd
Color White
height 6
weight 70
etc...
Methods
---------
Speaking
walking
etc....
----------------------------
Browser
Properties:
title
Version Ie 9
name Gmail
openurl
etc...
----------------------------------------------
Ex:
Browser("CreationTime:=0").Close
Dialog("text:=Login").Activate
Or
Dialog("text:=Login", "width:=320", "height:=200").Activate
Two Test Objects statement
OR:
Syntax:
Test Object("Object Name").Child TestObject("ObjectName").Method / Operation
Ex:
Dialog("Login").WinButton("OK").Click
DP:
Syntax:
TestObject("Property Name:=Property Value").Child TestObject("PropertyName:=PropertyValue").Method or Operation
Ex:
Dialog("text:=Login").WinButton("text:=Cancel").Click
---------------------------
Ex:
Browser("CreationTime:=0").Page("title:=Gmail").Link("text:=Create an account").Click
---------------------------------------------------
Internal Process:
Test Execution Process inwards illustration of OR based Test:
During exam execution UFT reads statements from UFT tool editor i past times one
and gets objects data from Object Repository
based on that data performs actions on AUT.
Test Execution Process inwards illustration of DP:
During exam execution UFT reads statements from UFT tool editor i past times one
and objects data also available inwards the Statements
based on that data performs actions straight on AUT.