Hi. plz expalin abouit SetToProperty, SetRoProperty,
GetToProperty, GetRoProperty,GetToPrperties. with examples.

Answer Posted / raghavender

SetToProperty
It is used to set a vlaue to the property of an object
which is there in the Repository.

eg: browser("").page().webbutton("").setTOProperty
property,value

GetROProperty
This property is used to get the run time proerty of an
object.

eg: strval = Browser("").page("").webbutton
("").getROproperty("name")

GetToProperty:
This property is used to get the particular property value
of an object which is present in the repository.

Eg:strval = Browser("").page("").webButton("").getTOproperty
("name")

SetROProperty is not existing in QTP.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?

2198


How to handle Java tree in QTP?

720


How to use descriptive programming?

583


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1262


How did you resolve conflicts present in Object Repository?

1595






How can you identify the browser and its information using QTP script?

523


Name the different types of recording modes?

556


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

1445


when u script reveiwing in which area u more concentrates?

1392


How you create new action in qtp?

544


Write a QTP script to enter a keyword in to Google search engine?

627


What is the difference between per-action and shared?

568


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

1435


What is keyword view in qtp?

529


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

531