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
In qtp, how you can get the last character from a string?
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
How many types of recording modes in the qtp?
what is description object?
How do you test DLL files using automation Tool QTP?
What are the various automation frameworks available in qtp?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
What is the use of text output value in quicktest professional?
What are the various types of Actions in UFT?
Explain the concept of how quicktest professional identifies object?
How many tabs are available in debug viewer pane?
How you can write contexts to text file in qtp?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
What is test object model in quicktest professional (qtp)?
What is QTP scenario.