Just wanted to know that what is the best approach to store objects --
i. In Repository
ii. In XML
Storing objects in repository is very common and most of us use this option while working on automation script. But then, how about the objects in XML, how can we use it in script, how to add any new objects and then any advantage of xml in terms of performance as compared to object repository?
Please share your inputs on this.
Thanks in advance !
Re: Which is the best option 2 choose for obj maint.?
If you are having repositories in XML format, then you have to write parser functions to fetch the object desc. Advantage of using XML repository is you can develop your own parser to create the qtp script dynamically by just providing the object name and it is best suited for table driven approach.
If you are using QTP Repository you need not want to write any function to get objects.