how to change the properties of object during run time . plz
give the code using flight reservation

Answers were Sorted based on User's Feedback



how to change the properties of object during run time . plz give the code using flight reservation..

Answer / raju

We can change the property value of an object in Object
repository at runtime by using "Settoproperty".

For example If we want to change the text property of
submit button to save at run time, then we should use this
property to let the tool identify that the property is
changed so that Object Identification issues do not occur.

Syntax : Window("Window Name").page("Page Name").webbutton
("submit").settoproperty(text,"submit","save")

Next time if we execute this script statement----

Window("Window Name").page("Page Name").webbutton
("submit").click

tool doesn't face any difficulty in clicking on save
button..as the text property value of submit button is
changed to save....


Similarly we can change the property values of the objects
in Object Repository using this settoproperty..

Is This Answer Correct ?    3 Yes 4 No

how to change the properties of object during run time . plz give the code using flight reservation..

Answer / nikhil sood

see guys by using getroproperty method we can retrive run
time property value but we can nothave method to change
runtime property please let me know if i am incorrect

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More QTP Interview Questions

How did you resolve conflicts present in Object Repository?

0 Answers  


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

4 Answers   V2 Solutions,


What is the difference between Global and Local Data Sheets?

1 Answers  


What is the registration process and examination fees?

0 Answers  


What is data driver in qtp?

0 Answers  


Explain about the test fusion report of quicktest professional (qtp)?

0 Answers  


I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer

4 Answers   Cimcon,


assume i have few url link how will i dynamically call then using descriptive programming?

0 Answers   BirlaSoft,


explain all the check point in QTP?

1 Answers   BirlaSoft,


How you handles Pop-up windows which are Dynamically changing in Runtime?

2 Answers  


In Remote acess server how u run a test?

0 Answers  


hi how could i get installation guide for QTP 9.0 on XP help me for this !!!!!

1 Answers  


Categories