Function Libraries are user actions that can be reused across various test cases, saving time on repetitive tasks. These components support input and output parameters and can also be merged with other function libraries.
For instance, in a shopping e-commerce site, you can create four function libraries: one for logging in, another for product search, a third for purchasing, and the last for logging out. These components can be utilized individually across various test cases.
Let’s proceed to see how to create a function library.
Login to Web from Launchpad.
Click on the Project Workspace folder to create a new Function Library.
You can also create it by clicking the dialer on the Project Workspace.
Additionally, you can create new items by right-clicking on the Project Workspace folder and selecting the "Create New" option.
Once created, select Web Recorder from the list of recorders to begin recording of the steps.
Select Object Repository, Browser, and Start Recording.
The recording action begins. Steps get recorded. Click on Save and Close once the steps are complete.
The steps can now be seen in the function library.
Click on the Run button to execute the recorded steps.
The execution wizard pop-up opens. Choose the . Select the execution agent and plugin.
View Live Logs during execution. Click on the arrow to view the result.
View Results after execution.
With this, you now learned the functioning of the Function Library.
Simplify your testing journey with .
Click Here to learn more about features.