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

What are the different recording modes and how do they work?

0 Answers  


whenever a scenario is recorded ever, it creates a object repository automatically (‘per action’ /local ). we do not need to make them individually…then why we need a shared object repository. How it will be practically utilized ?? your input will be highly appreciated..

5 Answers  


WHICH PROCESS U FOLLOW IN COMPANY

1 Answers   IGT,


What are the types of object repositories? Which one is you are using?

0 Answers  


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

0 Answers  






can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...

1 Answers   FSS,


I have 3 browsers i want to give facebook url in 2 nd browser using qtp

3 Answers   Tech Mahindra,


Can I compare two DataBases using QTP ?

1 Answers  


Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J

1 Answers   ADP,


What are the main attributes of test automation?

3 Answers  


What is throw object?

1 Answers  


i'm using QTP 8.2. A person using QTP 9.0 sends me a QTP TestScript, same when i try to open , an error comes "unexpected file format". Why?? and how to resolve the problem??

2 Answers  


Categories