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

What is the difference between a Function and Action in QTP?

0 Answers   Wells Fargo,


What are the features and benefits of quick test pro (qtp 8.0)?

0 Answers  


I have an application running in Linux server. I am reaching the application through emulators like telnet. My operating system at the client side is Windows XP. Using emulator I am connecting the Linux server and working on the application. Can I automate the testing of the software running in Linux server using QTP. In short, does QTP support the applications running in Linux servers.

1 Answers  


How u will do versioning in QTP?

0 Answers   NIIT,


Deal All, Recently i face one interview question in one company. str="test12@#3456" In This i want to print like special character and numeric ,word in one script please tell me how to write the code for this Thanks Balaji

1 Answers  






How to parameterize Object Repository?

2 Answers  


Diff between Test Stratergy and Test Plan? Diff b/w Test design ansd test case design?

1 Answers  


can any one tell me how to select some text.i need the script for that

1 Answers  


What is keyword driven framework?

0 Answers  


Hi, I Would Like to Know which is the Best QTP Certification Training Institute in Hyd? Thanks in Advance kishan

1 Answers  


HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  


What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..??

3 Answers   DST Global Solutions,


Categories