Tuesday, September 4, 2012

4 Different Ways to Associate Function Libraries to your QTP Scripts

4 Different Ways to Associate Function Libraries to your QTP Scripts
Most of the times, when you are creating test scripts or are designing a new QTP Framework, you would be trying to come up with reusable functions which you would have to store in the function library. Now, in order to use this function library with multiple test cases, you need to associate this function library with your scripts. This article explains the 4 methods that will help you in associating the function libraries in QTP Test Cases.

Based on the type of framework you are using, you can use any of the following methods to associate function libraries to your QTP Script -

  • By using ‘File > Settings > Resources > Associate Function Library’ option in QTP.
  • By using Automation Object Model (AOM).
  • By using ExecuteFile method.
  • using LoadFunctionLibrary method.

No comments:

Post a Comment