How to change the run-time value of a property for an
object in QTP?

Answers were Sorted based on User's Feedback



How to change the run-time value of a property for an object in QTP?..

Answer / madhava

use 'SetToProperty' method of an object to change the
property of object at run-time....

example :

browser(" ").page(" ").winedit
("username").setToProperty "Property", Value

Property can be any physical property of the object such as
Name, type, color........

Is This Answer Correct ?    11 Yes 3 No

How to change the run-time value of a property for an object in QTP?..

Answer / santhi

If u want change the property of object at run-time....
use 'SetToProperty' method of an object

example :

browser(" ").page(" ").winedit
("username").setToProperty "Property", Value

if any queries let me know,
santhi.patti@gmail.com

Is This Answer Correct ?    7 Yes 3 No

How to change the run-time value of a property for an object in QTP?..

Answer / lokesh kanithi

Yes,We can change the run-time value of a property for an
Object by using the debug Viewer by applying a breakpoing
or when a step is failed.Use Debug or view--->Debug Viewer--
->Watch expressions Tab
Type the property & set the value during the run time.
If I'm wrong pls let me know the answer.
mail me:klrao.kanithi@gmail.com

Is This Answer Correct ?    1 Yes 2 No

How to change the run-time value of a property for an object in QTP?..

Answer / vijaybhaskar

suppose if u want to change runtime property of the edit
box simply type



browser(" ").page(" ").winedit("username").set "bhaskar"
]


correct me if i am wrong

Is This Answer Correct ?    0 Yes 14 No

Post New Answer

More QTP Interview Questions

Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

0 Answers  


How to suppress warnings from the test results page?

0 Answers  


How do I get the QTP scripts result in xml format by using vb script function?

0 Answers  


How many types of recording modes in the qtp?

0 Answers  


what is difference betweein qtp 9.0 and 9.2

1 Answers  






How do u use Database checkpoints and what are the use?

4 Answers   Qualtree Solutions,


What is the difference between two actions?

1 Answers   Wipro,


Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script used in QTP? PLZ

3 Answers  


What is test automation framework?which framework does QTP follow?Need some practical explanation as to how u will start ur testing process following a particular framework?

2 Answers   IBM, Sony,


regular expression

2 Answers   Wipro,


How can you write the scripts that operate on different objects depending on run-time information?

0 Answers  


what is object spy

5 Answers   TCS,


Categories