Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

VerifyProperties often returns false when the property for the object exists. What is causing this and how can it be avoided?

VerifyProperties often returns false when the property for the object exists. What is causing this and how can it be avoided?

Problem:

VerifyProperties often returns false when the property for the object exists. What is causing this and how can it be avoided?

Resolution:

False being returned when Verifing Properities can be a result of timing issues. SilkTest may execute the method before an object has fully loaded resulting in the properties not being recognised and hence "False" will be returned.


As of SilkTest 2006 release 2 the VerifyProperties method has been changed to include a third parameter which is a timeout. Specifying the timeout will force SilkTest to continue to execute VerifyProperties for the specified time until the timeout is reached or the Verification passes. If the method does not pass within the specified timeout and exception is thrown.

The syntax for the VerifyProperties method is as follows.

window.VerifyProperties (WinPropTree, [FuzzyVerifyWhich] [, nTimeout])


WinPropTree
The 4Test record that lists the expected values for window and window"s children. WINPROPTREE.
FuzzyVerifyWhich
Optional. Used with fuzzy verification. Default is FALSE. FUZZYVERIFY.
nTimeout
Optional. The number of seconds to wait for the expected value of the specified property or properties to be achieved.

More information can be found under "VerifyProperties Method" in the SilkTest help

Old KB# 20815

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:14
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.