I am using a Hybrid Framework within my organization.
As part of the Framework, I have created an Object-Map that stores definitions of Objects in an Excel Spreadsheet.
Something like say the column headers of the Object Map go like this
Col4:- Object Class
Col5:- Object Name
The automation testers start by capturing an object in OR and then add the OR definitions in the Excel format mentioned above.
Eg:- So they will add Google under Browser, Google under Page, null under Frame, WedEdit under Object Class and q under Object Name.
This information is collated at runtime and actions are performed using wrapper functions like
We use this format as an insurance to quickly adapt to any OR changes in the AUT.(BTW, There are many more columns we use in the Object Map as we test applications like Java, dot net etc)
Though the concept is good, I see this as a time consuming and error prone activity in our framework (especially when used by non technical testers)
Hence I would like to know if there is a way I can directly parse(find the hierarchy) of an object by simply using its unique name.
This way I can replace the Object Map without impacting the existing scripts.
P.S. I know of properties like TestObjName but I cannot use it as I only have the name and not the object itself.
Any thoughts would be welcome.
Thanks a lot Carrying Smiles for your response. I have googled on ObjectRepositoryUtils and found some stuff that I can use to create the parser that I want.
I have got some early stutters with some General Errors and pure virtual errors but will keep you posted on how I get along with this. Thanks.