Hi Friends,
How can we update the Object Repository in Runtime with new properties?
Can anybody provide clear code on this topic?
Thanks
Suresh K
Printable View
Hi Friends,
How can we update the Object Repository in Runtime with new properties?
Can anybody provide clear code on this topic?
Thanks
Suresh K
You need to Create the QTP Application object, here all the API's of QTP including that of Object Repository are Present which can serve the purpose.
regards
Nawab
[QUOTE=NawabShaikh;26578]You need to Create the QTP Application object, here all the API's of QTP including that of Object Repository are Present which can serve the purpose.
regards
Nawab[/QUOTE]
Thank you for your answer. I need clear code for updating the Object Repository with "New Property" values at run time
Advanced Thanks
Suresh K
Browser().Page().Frame().WebButton("Ok").SetTOProperty("name =: LH")
regards
Nawab
We can update the values of Object at runtime using SetROProperty
Browser().Page().Webedit().SetROProperty("name").Value = "abc"
We can get runtime object values using getROProperty();
If wrong Correct me..
SetROProperty ....There is no such method.
Regards,
Nawab
Hi.
Please read the following in detail.
Objcet Repositry remains Read Only during Record and Run Session but the first time QuickTest encounters an object during a run session, it creates a temporary version of the test object for that run session. QuickTest uses the object description to create this temporary version of the object. For the remainder of the component, QuickTest refers to the temporary version of the test object rather than to the test object in the object repository
So, You can modify the properties of the temporary version of the object during the run session without affecting the permanent values in the object repository by adding a SetTOProperty statement in a user-defined function.
Use the following syntax for the [COLOR="Red"][B][U]SetTOProperty[/U][/B][/COLOR] method:
[U][B][COLOR="red"]Object(description).SetTOProperty Property, Value [/COLOR][/B][/U]
Cheers
[COLOR="red"][B][COLOR="Blue"][COLOR="DarkGreen"]SYCHO[/COLOR][/COLOR][/B][/COLOR]