What is the difference between gettoproperty and
settoproperty?Explain with an example?
Answer Posted / noor
GetToProperty: Returns the value of a specified property
from the test object description.
Syntax: object.GetTOProperty (Property)
Example:
Sub GetTOProperty_Example()
'The following example uses the GetTOProperty method to
retrieve the
'RegExpWndClass property from the Object Repository.
Dim ObjectName
RegExpWndClass = Window("Test").GetTOProperty
("RegExpWndClass")
End Sub
SetToProperty: Sets the value of the specified property in
its test object description.
Syntax: object.SetTOProperty Property, Val
Example:
Sub SetTOProperty_Example()
'The following example uses the SetTOProperty method to set
the
'index of a window's description.
Window("Test").SetTOProperty "Index", 2
End Sub
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is Port testing. Whhen will you perform?
What are the different types of recording modes in qtp? Which will be used when?
Does QTP record on Objects created on XWindows Environment?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
Explain advantages and disadvantages kdf?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?
write a script to verify the image path(src property) of the images which are in web pages.
Step 3&4 are repeated until an the object in recognised uniquely.
Explain the concept of object repository and how quicktest professional recognises objects?
How to start recording using quicktest professional (qtp)?
how to find that tools work well with ur existing system?
How do we analyze the checkpoint results?