ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Understanding the Update Options Tab

Understanding the Update Options Tab

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

Understanding the Update Options Tab

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:

  • Update test object descriptions. QuickTest updates the set of properties for each object class in your associated object repositories according to the properties currently defined in the Object Identification dialog box. You can use this option to modify the set of properties used to identify an object of a certain type.
  • 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:

    • If the property value in the previous description is parameterized or specified as a regular expression and matches the new property value, QuickTest keeps the property's previous parameterized or regular expression value. For example, if the previous property value was defined as the regular expression button.*, and the new value is button1, the property value remains button.*.
    • If the property value in the previous description does not match the new property value, but the object is found using Smart Identification, QuickTest updates the property value to the new, constant property value. For example, if the previous property value was button.*, and the new value is My button, if a Smart Identification definition enabled QuickTest to find the object, My button becomes the new property value. In this case, any parameterization or use of regular expressions is removed from the test object description.
  • Update checkpoint properties and output property values. QuickTest updates the expected values of your checkpoints to reflect any changes that may have occurred in your application since you created the test and updates the list of items that can be retrieved in your output value steps.
  • 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:

    • If checkpoint property values are parameterized or include regular expressions, they are not updated when using this option.
    • If you selected the Save only selected area check box when creating a bitmap checkpoint, the Update Run Mode option updates only the saved area of the bitmap; it does not update the original, full size object. To include more of the object in the checkpoint, create a new checkpoint. For more information, see Checking Bitmaps.

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

下一篇: 对专家的理解
请登录后发表评论 登录
全部评论

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    73839