ITPub博客

首页 > Linux操作系统 > Linux操作系统 > About Scripted Components

About Scripted Components

原创 Linux操作系统 作者:ipqiaojj 时间:2009-03-14 21:27:46 0 删除 编辑

About Scripted Components

You can utilize the full power of both the Keyword View and the Expert View, as well as other QuickTest tools and options, when working with scripted components. For example, you can use the Step Generator to guide you through the process of adding methods and functions to your scripted component. Using the Expert View, you can enhance the scripted component flow by manually entering standard VBScript. statements and other programming statements using QuickTest objects and methods. You can also incorporate user-defined functions in your scripted component steps, parameterize selected items, and add checkpoints and output values to your scripted component.

You can create scripted components for Subject Matter Experts, for example, if they need components that contain more complex functionality, such as loops or conditional statements. Subject Matter Experts working in Quality Center can then include these scripted components in business process tests to check that the application behaves as expected.

After you create a scripted component, Subject Matter Experts can view the auto-documentation generated by the component (read-only) in the Business Components module of the Quality Center project. They can run the scripted component and add it to their business process tests, but you remain responsible for maintaining the scripted component in QuickTest, if any changes are needed. Scripted components cannot be modified in Quality Center.

For more information on creating a scripted component, see Creating a Scripted Component.

You save and open scripted components in the same way as you save and open business components. For more information, see Saving a Business Component and Opening a Business Component.

Similarities Between Scripted Components and Other Testing Documents

Scripted components contain much of the same functionality as QuickTest actions and tests. For example, you can:

  • Work with programmatic statements in the Expert View (see Working in Function Library Windows.)
  • Create checkpoints and output values.
  • View the hierarchical Keyword View display.
  • Create and work with virtual objects.
  • Use the Data Table to run multiple iterations.
  • Use the Active Screen to view a snapshot of your application as it appeared when you performed a certain step during a recording session, and to parameterize object values and insert checkpoints, methods, and output values for any object in the page, even if your application is not available or you do not have a step in your test corresponding to the selected object.
  • Use random and environment parameters.
  • Set applications to open at the start of a record or run session.

For general information on all of the functionality available for scripted components, refer to the HP QuickTest Professional User's Guide.

Scripted components are also similar to business components, in that scripted components are:

  • Associated with a specific application area. Note that all of the resources must be stored in the Quality Center project and not the file system.
  • Standalone modular units that can be incorporated in a business process test.
  • Linear within a business process test (not hierarchical).
  • Not nested, meaning they cannot call another component.

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

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

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    73285