ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Learning the Basic Elements of a QuickTest Automation Script

Learning the Basic Elements of a QuickTest Automation Script

原创 Linux操作系统 作者:ipqiaojj 时间:2009-03-17 15:07:09 0 删除 编辑

Learning the Basic Elements of a QuickTest Automation Script.

Like most automation object models, the root object of the QuickTest automation object model is the Application object. The Application object represents the application level of QuickTest. You can use this object to return other elements of QuickTest such as the Test object (which represents a component document), Options object (which represents the Options dialog box), or Addins collection (which represents a set of add-ins from the Add-in Manager dialog box), and to perform. operations like loading add-ins, starting QuickTest, opening and saving components, and closing QuickTest.

Each object returned by the Application object can return other objects, perform. operations related to the object and retrieve and/or set properties associated with that object.

Every automation script. begins with the creation of the QuickTest Application object. Creating this object does not start QuickTest. It simply provides an object from which you can access all other objects, methods and properties of the QuickTest automation object model.

Note: You can also optionally specify a remote QuickTest computer on which to create the object (the computer on which to run the script). For more information, see the Running Automation Programs on a Remote Computer section of the online QuickTest Automation Object Model Reference.

The structure for the rest of your script. depends on the goals of the script. You may perform. a few operations before you start QuickTest such as retrieving the associated add-ins for a component, loading add-ins, and instructing QuickTest to open in visible mode.

After you perform. these preparatory steps, if QuickTest is not already open on the computer, you can open QuickTest using the Application.Launch method. Most operations in your automation script. are performed after the Launch method.

For information on the operations you can perform. in an automation program, see the online HP QuickTest Professional Object Model Reference. For more information on this Help file, see Using the QuickTest Automation Reference.

When you finish performing the necessary operations, or you want to perform. operations that require closing and restarting QuickTest, such as changing the set of loaded add-ins, use the Application.Quit method. 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16792402/viewspace-571186/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    73296