What is the difference between gettoproperty and
settoproperty?Explain with an example?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object spy in quicktest professional?

612


What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);

3483


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1717


Which environments does qtp support?

668


Discuss quicktest professional (qtp) environment?

570






what QTP Options do you know?

2915


Hi All, I need code for how to execute qtp scripts from excell sheet

1455


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

1508


What are the various automation frameworks available in qtp?

499


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

701


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3046


What are the methods used in UFT to handle exceptions or run-time errors?

638


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1593


what the difference between shared repository and per action repository?

546


What is the extension of the qtp local repository?

557