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 |
Wat is the command used to add an object(properties) to an object repository?
What is meant by Pseudo Code?
Explain QTP testing process?
What are the Automation Limitations??
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
CAN I CALL A FUNCTION IN ACTION.IF YES PLEASE HELP ME
Can I record on netscape browser does it require any special settings ?
How to write test cases for web applications using QTP.plz write a sample test case to show how to write.urgently needed.thanks in advance..
How you test the object which is dynamically changes its location?
what is difference between wait and synchronization point.
what we do after completion of functional and regression testing
How to handle the exceptions using recovery scenario manager In QTP?