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 );存儲活動工具欄信息,包括標(biāo)題、名稱、ID等。
file_name 參數(shù)包括路徑,例如:
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 );檢查單選框或復(fù)選框的狀態(tài)
9、button_get_info ( button, property, out_value );返回按鈕屬性的值
10、button_get_state ( button, out_state );返回單選框或復(fù)選框的狀態(tài)
11、button_press ( button );點擊按鈕
12、button_set ( button, state );設(shè)置單選框或復(fù)選框的狀態(tài)
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 ] ] );比較當(dāng)前數(shù)據(jù)庫數(shù)據(jù)和期待的數(shù)據(jù)庫數(shù)據(jù)
16、db_connect ( session_name, connection_string );建立一個數(shù)據(jù)庫session并建立odbc連接
17、db_disconnect ( session_name );斷開連接結(jié)束session
18、db_execute_query ( session_name, SQL, record_number );執(zhí)行sql語句返回記錄集
19、db_get_field_value ( session_name, row_index, column );返回數(shù)據(jù)庫特定區(qū)域的值
20、db_get_headers ( session_name, header_count, header_content );返回數(shù)據(jù)庫session的列的數(shù)量及列的內(nèi)容并以tab分組
21、db_get_last_error ( session_name, error );返回最后一條數(shù)據(jù)庫session錯誤信息
22、db_get_row ( session_name, row_index, row_content );返回特定行內(nèi)容
23、db_record_check ( ChecklistFileName , SuccessConditions, 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 ] ] );把結(jié)果記錄集寫到一個文本文件
25、ddt_close ( data_table_name );關(guān)閉數(shù)據(jù)表文件
26、ddt_close_all_tables();關(guān)閉全部數(shù)據(jù)表
27、ddt_export ( data_table_namename1, data_table_namename2 );把一個數(shù)據(jù)表信息導(dǎo)到另一個數(shù)據(jù)表文件
28、ddt_get_current_row ( data_table_name, out_row );返回數(shù)據(jù)表當(dāng)前所在行
29、ddt_get_parameters ( table, params_list, params_num );返回數(shù)據(jù)表的參數(shù)和參數(shù)的個數(shù)
30、ddt_get_row_count ( data_table_name, out_rows_count );返回數(shù)據(jù)表行數(shù)
相關(guān)推薦:推薦:2010年計算機軟件水平考試必備完美攻略北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |