In this article you would learn how to create a Object Library in OpenScript IDE which is useful for creating Functional Test automation scripts in OFT of OATS.
Steps to create Object Library
- Once you create a new Project in OpenScript.
- Click on Assests Tab
- Select Object Libraries
- Click “Add” button
- You would be prompted with a “Open Object Library” window.
- Browse through the directories in the left side
- Give a name to Object Library
- Click “Ok” button to create the Object Library.
You could chose to either chose relative to Script / Repository based on your interest.
As shown below the Object Library with name “OL_Demo” is created, and going forward if any recording of script is done, all the objects and their attributes, values are stored in the “OL_Demo” Object Library. You can give your own name as per your interest.
Sample Object Library file & Contents are shown below:
In case of any queries, we would request you to share them through the comments section, we will try our best to respond on the same.
Hi Srinivas,
Could you please explain how to maintain object library for web application objects and also how to modify xpath that is stable.
Thanks in advance
Hi Amitha,
Thank you so much for reaching out to us, could you please provide more details about your query, as what you want to do ? / Why do you need to modify xpath that is stable?
Hi Srini,
In my case, I want to modify the XPath mostly because of frequetly changes in ID or Name.
How could I use the regular expression or other mechanisms to handle such issues?
Thanks
Vivek S.
Hi Vivek,
Sorry for the delay in response, just in case others might be having similar interest and so we wrote an article for the same. Wild carding and using regular expressions in xpath with OATS, hope this would be useful.
Thank You,
Regards,
Srinivas P.
Hi Srinivas ,
Can we perform parallel execution of script using OATS same like we have Grid feature available in Selenium ?
Hi Yugandhara,
yes, there is something called Oracle Test Manager, where you can configure multiple nodes and trigger parallel executions
Thank you,
Regards,
Srinivas P.
Hello,
Can you please describe how to create hierarchy of objects as we can in UFT ?
I think, it creates in a hierarchy by default when you are using Object Library to record a script or spy and add objects to Object Library.. Are you experiencing something different? if so could you please share a link where we can see the image of the Object Library expanded and give some explanation as what you are looking for