tsl腳本命令
Winrunner Context Sensitive命令列表
1.ActiveBar_combo_select_item ( band_tool , item_name );選擇下拉菜單某一項(xiàng),例如:
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 );存儲(chǔ)活動(dòng)工具欄信息,包括標(biāo)題、名稱、ID等。
file_name 參數(shù)包括路徑,例如:
set_window(“Form1”, 1);
ActiveBar_dump (“d:Bardump.txt”);
3、ActiveBar_select_menu ( band_tool [, events_only ] ) ;選擇菜單某一項(xiàng),例如:
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 ] ) ;選擇工具欄里某一項(xiàng),例如:
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] );比較對(duì)象位圖,
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 );點(diǎn)擊按鈕
12、button_set ( button, state );設(shè)置單選框或復(fù)選框的狀態(tài)
13、button_wait_info ( button, property, value, time );等待按鈕的屬性值變化
14、calendar_activate_date ( calendar, date );雙擊日歷某個(gè)日期
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 );建立一個(gè)數(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 );返回?cái)?shù)據(jù)庫特定區(qū)域的值
20、db_get_headers ( session_name, header_count, header_content );返回?cái)?shù)據(jù)庫session的列的數(shù)量及列的內(nèi)容并以tab分組
北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |