Lesson 7: Create functions and function libraries

UFT provides many built-in functions and methods that can satisfy many of your testing needs. However, there may be times when you need to perform a specific task that is not available by default for a particular test object class. In these cases, you can create a user-defined function for this task. You then save this function in a function library file which is associated with tests, and then insert the function call as a step whenever you need to perform the task.

In Lesson 2: Creating Object Repositories, you created shared object repositories and associated them with the action in your test. In this lesson, you will use a similar process by creating a function and a function library, and then associating the function library with your test. By associating this function library with your test, you can call any of the functions in the test.

This lesson includes the following: