軟件測試工具Winrunner TSL命令簡介

發表于:2009-10-10來源:作者:點擊數: 標簽:
軟件測試工具Winrunner TSL命令簡介 Winrunner Context Sensitive命令列表 1.ActiveBar_combo_select_item ( band_tool , item_name );選擇下拉菜單某一項,例如: set_window("Form1", 1); ActiveBar_combo_select_item("Format;Font", "Arial"); In the f

軟件測試工具Winrunner TSL命令簡介

Winrunner Context Sensitive命令列表

        1.ActiveBar_combo_select_item ( band_tool , item_name );選擇下拉菜單某一項,例如:

        set_window("Form1", 1);

        ActiveBar_combo_select_item("Format;Font", "Arial");

        In the following example, WinRunner selects the third item in the Format:Font tool.

        set_window("Form1", 1);

        ActiveBar_combo_select_item("Format;Font", "#3");

        2.ActiveBar_dump ( file_name );存儲活動工具欄信息,包括標題、名稱、ID等。

        file_name  參數包括路徑,例如:

        set_window("Form1", 1);

        ActiveBar_dump ("d:Bardump.txt");

        3、ActiveBar_select_menu ( band_tool [, events_only ] ) ;選擇菜單某一項,例如:

        in the following example, WinRunner selects the Cut menu item in the Edit toolbar.

        set_window("Form1", 1);

        ActiveBar_select_menu ("Edit;Cut",TRUE);

        4、ActiveBar_select_tool (band_tool [, events_only ] ) ;選擇工具欄里某一項,例如:

        set_window("Form1", 1);

        ActiveBar_select_tool("Format;Center", TRUE);

        5、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比較窗口位圖,

        6、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比較對象位圖,

        7、button_check_info ( button, property, property_value );檢查按鈕屬性的值

        8、button_check_state ( button, state );檢查單選框或復選框的狀態

        9、button_get_info ( button, property, out_value );返回按鈕屬性的值

        10、button_get_state ( button, out_state );返回單選框或復選框的狀態

        11、button_press ( button );點擊按鈕

        12、button_set ( button, state );設置單選框或復選框的狀態

        13、button_wait_info ( button, property, value, time );等待按鈕的屬性值變化

        14、calendar_activate_date ( calendar, date );雙擊日歷某個日期

        15、db_check ( checklist, expected_results_file [ , max_rows [ , parameter_array ] ] );比較當前數據庫數據和期待的數據庫數據

        16、db_connect ( session_name, connection_string );建立一個數據庫session并建立odbc連接

        17、db_disconnect ( session_name );斷開連接結束session

        18、db_execute_query ( session_name, SQL, record_number );執行sql語句返回記錄集

        19、db_get_field_value ( session_name, row_index, column );返回數據庫特定區域的值

        20、db_get_headers ( session_name, header_count, header_content );返回數據庫session的列的數量及列的內容并以tab分組

        21、db_get_last_error ( session_name, error );返回最后一條數據庫session錯誤信息

        22、db_get_row ( session_name, row_index, row_content );返回特定行內容

        23、db_record_check ( ChecklistFileName , Suclearcase/" target="_blank" >ccessConditions, RecordNumber ); Compares information that appears in the application under test during a test run with the current values in the corresponding record(s) in your database.

        24、db_write_records ( session_name, output_file [ , headers [ , record_limit ] ] );把結果記錄集寫到一個文本文件

        25、ddt_close ( data_table_name );關閉數據表文件

        26、ddt_close_all_tables();關閉全部數據表

        27、ddt_export ( data_table_namename1, data_table_namename2 );把一個數據表信息導到另一個數據表文件

        28、ddt_get_current_row ( data_table_name, out_row );返回數據表當前所在行

        29、ddt_get_parameters ( table, params_list, params_num );返回數據表的參數和參數的個數

        30、ddt_get_row_count ( data_table_name, out_rows_count );返回數據表行數

        31、ddt_is_parameter ( data_table_name, parameter );返回一個參數是否在數據表里有效

        32、ddt_next_row ( data_table_name );指向數據表中到當前行的下一行

        33、ddt_open ( data_table_name [ , mode ] );打開或創建一個可以訪問的數據表

        34、ddt_report_row ( data_table_name );報告當前行到測試結果

        35、ddt_save ( data_table_name );保存數據表信息

        36、ddt_set_row ( data_table_name, row );設置當前行為第幾行

      

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97