O'Reilly logo

Advanced UFT 12 for Test Engineers Cookbook by Jonathon Lee Wright, Meir Bar-Tal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required