Action patterns

The following action patterns provide sample Actions that can be executed within UFT:

  • DoSomething: This design pattern calls the TimeStamp() function and prints the returned value:
    Function DoSomething()
        Print "Doing something at " & Timestamp()
        DoSomething = 0
    End Function
  • [OpenApp]: This design pattern calls the preceding DoSomething() function combined with auxiliary classes and functions taken from the previous section to provide a reusable Action to provide a basic open AUT functionality:
    Class [OpenApp] ' -------------------------------------------------- ' Reusable Action: OpenApp ' Description: ' -------------------------------------------------- Public Status Public Iteration Public StepNum Public dt Public Details Public ...

Get Advanced UFT 12 for Test Engineers Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.