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.
Founder of TestingTools.co, constantly shares knowledge on different test automation tools. Has experience in building proof of concepts, solutions, frameworks, platforms & implementation of test automation projects.
In pursuit of building a platform with inbuilt framework and reusable components for Oracle Cloud applications ( Oracle HCM, CX, SCM, Financials clouds, Salesforce and other cloud applications )
Major accomplishments in his career:
- Product architect and development manager for test automation platforms
- Oracle Flow Builder @ Oracle
- CloudTestr @ Suneratech
- 2 times to oracle open world
- More than 20 successful POCs ( Proof of concepts )
- 100 demos
- Designed pricing models.
- Trained more than 50 members.
- Built more than 100 re-usable functions.
Worked with tools:
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
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?
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?
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.
Hi Srinivas ,
Can we perform parallel execution of script using OATS same like we have Grid feature available in Selenium ?
yes, there is something called Oracle Test Manager, where you can configure multiple nodes and trigger parallel executions
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