(A)
Descriptive programming allows you to work with objects that are not stored in object
repository. two types of programmatic descriptions.
1) listing the set of properties and values that describe the object directly in a test
statement.
2) Add collection of properties and values to a Description object, and then enter the
Description object name in the statement.
In your case my suggestion was to use the second option. Yes, this does not add objects to OR but you can use the objects.
(B)
You can use SetTOProperty method of test object.
Object(description).SetTOProperty Property, Value
The values of test object properties are used to identify the objects. Sometimes the properties of
the object in the application change dynamically. For example text of a link in a webpage is the
username used to login to that page.
Text property is used by test object to identify the link. So in order to identify the actual object we
can manipulate the value of “text” property of link using SetTOProperty.
This can be used for existing Dynamic Objects in OR.
( c)
By Using Object Repository Automation Model.
You can use ObjectRepositoryUtil Object and apply Add Object Method.
For more info, please check QTP Help.
By using this: you can add objects to OR from your script
Descriptive programming allows you to work with objects that are not stored in object
repository. two types of programmatic descriptions.
1) listing the set of properties and values that describe the object directly in a test
statement.
2) Add collection of properties and values to a Description object, and then enter the
Description object name in the statement.
In your case my suggestion was to use the second option. Yes, this does not add objects to OR but you can use the objects.
(B)
You can use SetTOProperty method of test object.
Object(description).SetTOProperty Property, Value
The values of test object properties are used to identify the objects. Sometimes the properties of
the object in the application change dynamically. For example text of a link in a webpage is the
username used to login to that page.
Text property is used by test object to identify the link. So in order to identify the actual object we
can manipulate the value of “text” property of link using SetTOProperty.
This can be used for existing Dynamic Objects in OR.
( c)
By Using Object Repository Automation Model.
You can use ObjectRepositoryUtil Object and apply Add Object Method.
For more info, please check QTP Help.
By using this: you can add objects to OR from your script