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
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 |
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 |
we have 10 actions in out test how can we convert 9th action is main action ? how ?
Dear Friend, I am New in QTP 10 so can any one tell me how to do QTP testing on WEB APPLICATION while writing VBScript. If Possible then Give Example how to write vbscript in QTP to test WEB Apllication. Vishal Patil
can we call a test in another test? how? explain with one example?
How to see the screens after running test in QTP?
How do we retrieve the content from a text box in a web page
explain structured testing? plz guys with exp. do answer
How do you move objects from local object repository to shared object repository???What are methods?
hi all i have qtp 9.0, Active screen is not working means after recording script snap shots not displayed in Active screen window. i have all ready check all setting means Tool...>option...>Active screen...>Default Level button is disabled. Is there other setting is remain to set Pls help i m new for qtp
We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?
Can any one tell me Difference between Keyword Driven Frame work and Hybrid framework? Its Urgent.
If a script has a local repository and also uses a shared repository, which repository will QTP use first when searching for an object during playback?
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp