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
How you debug your script?
What are the different types of recording modes?
How to record application running on the Virtual machine?
What is the extension of the recovery scenario file in qtp?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
when u script reveiwing in which area u more concentrates?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
Why qtp the best testing tool?
How to define array in qtp?
Whether qtp 9.0 supports Test director8.0
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
what are all the fileds present in object repository?
How will you check that your test cases covered all the requirements?
What are the advantages of Object Repository?