zoukankan      html  css  js  c++  java
  • 在TestPartner中通过设置Menu ID识别菜单项来处理多语言版本的问题

    If working with a multi-language application, or if you want to record menus using something other than visible text, set TestPartner to record menu selections by ID rather than by text. This results in a more reliable playback against multiple versions of the menu in different language versions of the application.

    The following shows a test script where File>Open... is recorded using the menu command:

    ' Select File>Open in WordPad using Menu Command.
    Window("Document - WordPad Window").Attach
        Window.MenuSelect "File~Open..."

    The following shows a test script where File>Open... is recorded using an ID for the menu selection.

    ' Set the record option "Menus by ID" to Yes, then
    ' Record the selection of File>Open in WordPad using Menu ID.
    Window("Document - WordPad Window").Attach
        Window.MenuSelect 57601

    The second recorded code sample plays back more reliably in a non-English version of the application, because it does not use natural language text to make the selection.

    To set menus to record using menu ID:

    Click Tools>Options. The Options dialog box appears.

    Double-click Record. The Record options display in the right side panel.

    In the right side panel of the Options dialog box, select Yes in the list for the Menus by ID option setting.

    Click OK. When recording selections against menus, the selections record by ID rather than by name.

     Tip: To set a single test script to record against menus by using the menu ID, create a TPlayback object and set its MenuByCommand property to No.

  • 相关阅读:
    ZENCART 在文本格式郵件中轉換貨币符号
    ZENCART contact us 收不到邮件的问题
    zencart 如何修改在线人数和订单编号
    19.Oracle的动态监听和静态监听
    16.查看ORACLE的SAG和PGA的使用率
    1.Rman备份的基本命令
    4.ASM常用命令汇总
    2.Rman 备份、检查、维护、恢复
    2.oracle的备份和恢复之expdp和impdp命令02
    17.sqlnet.ora文件
  • 原文地址:https://www.cnblogs.com/testware/p/2010167.html
Copyright © 2011-2022 走看看