Course
HP UFT/QTP Testing Project: Real Time Project for Practice
Project Summary This Live Project will put you in an Online Corporate Test Environment. You will...
If you have segments of code that you need to use several times in your tests, you may want to create a user-defined function. By using user-defined functions, your tests are shorter, and easier to design, read, and maintain
Your own function libraries in Micro Focus UFT can contain VBScript functions, subroutines, modules etc.
You need to follow 3 simple steps to use a function from a library in your test
Step 1) To create a new function library in HP QTP. Select File > New > Function Library. It opens as a new tab in QTP.
Lets a create a very simple function which shows Message Box.
Function Demo MsgBox "This is a Test Function" End Function
So whenever this function is called a message box must be displayed. You can have multiple functions defined in the same file. Let's save the function. A function has an extension .qfl
Step 2) Associate the library with your test. Click File > Settings > Resources > Associate Function Library.Click Add. Select The Function Library File. Click Okay
Step 3) Last step to call the function in your test script
Important Notes
Project Summary This Live Project will put you in an Online Corporate Test Environment. You will...
This tutorial demonstrates OBJECT SPY. Object Spy can help determine the useful properties and...
This tutorial introduces Flight Reservation Application which will be used for hands-on for the...
In this tutorial, we will be working with Excel with Micro Focus UFT Consider we want to import...
Let's understand the Test Results generated by Micro Focus UFT In HP QTP, Right Hand Side shows...
What is Action in QTP? Actions help divide your test into "logical units" or "Business Processes". Actions help...