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.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:
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:
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/16792402/viewspace-567359/，如需转载，请注明出处，否则将追究法律责任。