The Update Options tab enables you to specify which aspects of your component you want to update, such as test object descriptions and/or expected checkpoint values. After you save the component, the results of the updated component are used for subsequent runs.
You can specify one or more of the following information types to update:
Note: If the property set you select in the Object Identification dialog box for an object class is not ideal for a particular object, the new object description may cause future runs to fail. Therefore, it is recommended that you save a copy of your object repository before updating it, so that you can return to the previously saved version, if necessary.
This option can be especially useful when you want to record and debug your component using property values that are easy to recognize in your application (such as object labels), but may be language or operating system dependent. After you debug your component, you can use the Update Run Mode option to change the object descriptions to use more universal property values.
For example, suppose you design a component for the English version of a part of your application. The test objects are recognized according to the test object property values in the English version, some of which may be language dependent. You now want to use the same component for the French version of this part of your application.
To do this, you define properties that are non-language dependent. These properties will be used for object identification. For example, you can identify a link object by its target property value instead of its text property value. You can then perform. an update run on the English version of this part of your application using these new properties. This will modify the test object descriptions so that you can later run the component successfully on the French version of your application.
Tip: If you have a component that runs successfully, but in which certain objects are identified using Smart Identification, you can change the set of properties used for object identification and then use the Update test object descriptions option to update the test object description to use the set of properties that Smart Identification used to identify the object.
When you run the component with Update test object descriptions selected, QuickTest finds the test object specified in each step based on its current test object description. If QuickTest cannot find the test object based on its description, it uses the Smart Identification properties to identify the test object (if Smart Identification is enabled). After QuickTest finds the test object, it then updates its description based on the mandatory and assistive properties that you define in the Object Identification dialog box.
Note: Test objects that cannot be identified during the update process are not updated. As in any run session, if an object cannot be found during the update run, the run session fails, and information on the failure is included in the Test Results. In these situations, you may want to use Maintenance Mode to resolve these problems.
Any properties that were used in the previous test object description and are no longer part of the description for that test object class, as defined in the Object Identification dialog box, are removed from the new description, even if the values were parameterized or defined as regular expressions.
If the same property appears both in the test object's new and previous descriptions, one of the following occurs:
For example, suppose you defined a text checkpoint as part of your test, and the text in your application has changed since you created your test. You can update the test to update the checkpoint properties to reflect the new text.
The output value option is mainly relevant for XML output value steps used with Web services component. For more information, see the section describing Web services in the HP QuickTest Professional Add-ins Guide.
Notes:
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16792402/viewspace-567405/ ,如需转载,请注明出处,否则将追究法律责任。