Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Session Wrap-Up
Working With Dynamic Content
When the property values of objects in the application change, modify the
corresponding test object property values so that it can continue to use the
existing tests or components.
Working With Dynamic Content
Syntax
Object(description).SetTOProperty Property, Value
Working With Dynamic Content
Can modify the set of properties that QuickTest uses to identify the
object, so that it will be able to identify an object even when some of its
properties change. You can use configure mandatory and assistive
properties for a test object class.
Problem:
Suppose that whenever a Web image is displayed more than once on a
page (like a logo displayed on the bottom and top of a page), the Web
designer adds a special ID property to the Image tag.
Solution:
To do this, Add the ID property as an assistive property, so that
QuickTest learns the ID property only when it is necessary for creating a
unique test object description.
Working With Dynamic Content
Case Study:
Scenario: How to click on a dynamically changing text.
Solution: After recording the script, To
change thelink
click on this Text
property of the link to \w.* to find zero or more occurrences
of any character (except \n).
Working With Dynamic Content
Result Screen
Working With Dynamic Content
Sometimes a link in one window creates another window. We can use the Exist
property to check whether or not a window exists. For example:
Browser("Window_name").Exist
Can Use the ChildObjects method to retrieve all child objects (or the subset of child
objects that match a certain description) on the Desktop or within any other parent
object.
Working With Dynamic Content
Scenario :
Verify for the existence of
Browser
for the following Yahoo
site.
Solution:
Use Exist property for the
existence
of Browser Under
Construction:
Mercury .
Q & A.
Working With Dynamic Content