What is the difference between gettoproperty and
settoproperty?Explain with an example?
Answers were Sorted based on User's Feedback
gettoproperty are the standard testobjectproperties that do
not chamnge during run time...In short Property whose value
is retrieved from the object description.
ObjectCount = Browser("Demo of Vo Object").Page("Demo of Vo
Object").ActiveX("VoDemoFormX").DROPDOWN
("FLIGHTS").GetTOProperty("itemscount")
SETOPROPERTY - Modifying Test Object Properties During a
Run Session
CHANGING THE NAME
Browser("Demo of Vo Object").Page("Demo of Vo
Object").ActiveX("VoDemoFormX").VirtualButton
("button").SetTOProperty "Name", 0
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / brinda
GetToProperty:
eg: a=window("Flight Reservation").WinRadioButton
("Business").GetToProperty("checked")
msgbox a
SetTOProperty:
Suppose in first build, it was "OK" button and now in the
modified buit it is "Yes" button.
you need to change the button name.
window("-----").WinButton("OK").SetTOProperty "Text", "Yes"
This will change the button name to "Yes".
Hope this helps....
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / siva reddy (us)
'The following example uses the GetTOProperties method to
retrieve
'the collection of properties and values used to identify
the Calendar
'ActiveX object.
Set col = Browser("Flight").Page("Flight").ActiveX
("Calendar").GetTOProperties()
setTOproperty:
You can modify the properties of the temporary version of
the object during the run session without affecting the
permanent values in the object repository by adding a
SetTOProperty statement in the Expert View.
Use the following syntax for the SetTOProperty method:
Object(description).SetTOProperty Property, Value
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / 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 |
scalability testing comes under in which tool?
diff between winrunner and qtp
what is main diff of qtp8.2 and qtp9.0?
in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in
Synchronozation types in QTP
Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts
For Usability testing, which is preferable Automation or Manual?
Where you are storing your script?
Explain the check points in QTP?
How can you close the second opened browser?
several browsers opened. write QTP script to close all browsers except gmail.
What is the Major difference between QTP ; LoadRunner? If u want to test an 1. erp module which automation tool you would prefer and why? and 2. for web application, which tool and why?