Saturday, March 5, 2011

11 tips on QTP Functions and Function library from HP.

  1. The Function Definition Generator enables you to add documentation that specifies exactly what a step using your function does. This description is shown in the Documentation column of the Keyword View for steps that use the function.
  2. NEW!! You can associate a function library with the open test by opening the function library and choosing File > Associate Library 'library_name' with 'test_name'.
  3. The RegisterUserFunc statement now has an optional argument that you can use to set a function as the default operation for a test object.
  4. You can use the new Function Definition Generator to easily generate user-defined functions (Insert > Function Definition Generator).
  5. NEW!! If a business component is currently open, clicking the New toolbar button creates a new business component document (and not a new test document). This also applies if an application area or function library is open.
  6. NEW!! You can open a recently used business component, application area, or function library by selecting it from the Recent Files list in the File menu.
  7. You can specify a relative path when calling actions, functions, and other external files associated with or referenced by a test or business component.
  8. You can create a user-defined function and register it as a test object method in order to overwrite or add to existing test object functionality.
  9. NEW!! You can create library files (containing VBScript functions, subroutines, classes, modules, and so forth) in QuickTest Professional and associate them with your test or application area. You can then call these functions (or other elements) from within your test assets.
  10. NEW!! You can debug functions, subroutines and classes defined in a function library file in QuickTest Professional.
  11. You can create a user-defined function and register it as a test object method in order to overwrite or add to existing test object functionality.

No comments:

Post a Comment

Please leave your comment here...