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 |
How do client side image and server side image work?
WHAT ARE THE SHORTCUT KEYS IN QTP?
how u will describe testing activities?
My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.
Tell me the situations where we will use Data Driven?
when we apply the daily build each and every day,the property may change in the application.so that the created script is not reusable in winrunner and qtp.for ex for date field it is taken dtpicker.at another time it is taken some other name.how can i solve it.
What is qtpro? What is quick test pro? What is a quick test professional?
How can I change object description or check point values in qtp?
What are the Disadvantages of shared object repository?
hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable
how to select the work for complete automation and one more thing when u are going to choose automation
What is the difference between call to existing action and copy of an action?