?? winrunner.txt
字號:
250、web_cursor_to_link ( link, x, y );移動鼠標指針到某個鏈接
251、web_cursor_to_obj ( object, x, y );移動鼠標指針到某個對象
252、web_event ( object, event_name [, x , y ] );在指定對象運行一個事件
253、web_file_browse ( object );點擊瀏覽按鈕
254、web_file_set ( object, value );在文件類型的對象設置文本值
255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回幀內文本位置
256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回幀內文本的內容
257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回幀內標準表達式的事件個數
258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );檢查幀內指定的文本字符串是否存在
259、web_get_run_event_mode ( out_mode );返回當前的運行模式
260、web_get_timeout ( out_timeout );返回winrunner響應web的最大等待時間
261、web_image_click ( image, x, y );點擊一個圖片鏈接或圖片
262、web_label_click ( label );點擊指定的標簽
263、web_link_click ( link );點擊朝文本鏈接
264、web_link_valid ( name, valid );檢查url鏈接是否有效
265、web_obj_get_child_item ( object, table_row, table_column, object_type, index, out_object );返回對象的子對象的物理描述
266、web_obj_get_child_item_count ( object, table_row, table_column, object_type, object_count );返回對象的子對象的個數
267、web_obj_get_info ( object, property_name, property_value );返回對象屬性的值
268、web_obj_get_text ( object, table_row, table_column, out_text [, text_before, text_after, index] );返回對象的文本字符串
269、web_obj_get_text_count ( object, table_row, table_column, regex_text_to_find, count ); 返回對象內標準表達式的事件個數
270、web_obj_text_exists ( object, table_row, table_column, text_to_find [, text_before, text_after] );在對象里如果該文本存在,返回該文本
271、web_refresh ( frame );winrunner重新連接指定的幀
272、web_restore_event_default ( );重新設置全部事件為默認值
273、web_set_event ( class, event_name, event_type, event_status );設置事件狀態
274、web_set_run_event_mode ( mode );設置事件運行模式
275、web_set_timeout ( timeout );設置winrunner響應web的最大時間
276、web_set_tooltip_color ( fg_color, bg_color );設置webtest工具條的顏色
277、web_sync ( timeout );等待幀的導航完成
278、web_tbl_get_cell_data ( table, row, column, starting_pos, out_text, out_actual_text_length );返回web表內指定單元的內容,開始于指定的字符
279、web_url_valid ( URL, valid );檢查url是否有效
280、tbl_get_cell_data ( table, row, column, out_text );返回table里指定單元的內容(加載webtest)
281、tbl_get_cols_count ( table, out_cols_count );返回表的列數(加載webtest)
282、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的標題的名稱(加載webtest)
283、tbl_get_rows_count ( table, out_rows_count );返回表的行數(加載webtest)
284、web_password_encrypt ( password );將web頁面的密碼加密
285、set_window ( window [,time] );激活窗口并確定等待時間
286、win_activate ( window );激活窗口
287、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比較窗口的位圖
288、win_check_gui ( window, checklist, expected_results_file, time );比較窗口的gui數據
289、win_check_info ( window, property, property_value [, timeout ] );檢查被請求的窗口屬性
290、win_click_help ( window );在窗口點擊幫助按鈕
291、win_click_on_text (window, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在窗口搜索文本
292、win_close ( window );關閉窗口
293、win_drag (source_window, x, y [, mouse_button ] );從源窗口拖動對象
294、win_drop ( target_window, x, y );拖動對象到目標窗口
295、win_exists ( window [, time ] );檢查窗口是否顯示在屏幕上
296、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );返回窗口里字符串的位置
297、win_get_desc ( window, obligatory, optional, selector, out_desc );返回窗口的物理描述
298、win_get_info ( window, property, out_value );返回窗口屬性的值
299、win_get_text ( window, out_text [, x1, y1, x2, y2] );從窗口指定區域讀取文本
300、win_highlight ( window [, flashes ] );高亮顯示窗口
301、win_max ( window );最大化窗口到全屏
302、最小化窗口為一個圖標
303、win_mouse_click ( window, x, y [, mouse_button [, modifier] ] );在窗口點擊鼠標
304、win_mouse_dbl_click ( window, x, y [, mouse_button [, modifier ] ] );在窗口雙擊鼠標
305、win_mouse_drag ( window, start_x, start_y, end_x, end_y [, mouse_button ] );在窗口做鼠標拖動操作
306、win_mouse_move ( window, x, y );移動鼠標焦點到指定的位置
307、win_move ( window, x, y );移動窗口到一個絕對位置
308、win_move_locator_text ( window, string [ ,search_area [ ,string_def ] ] );移動鼠標焦點到窗口的某個字符串
309、win_open ( window );打開應用程序窗口
310、win_resize ( window, width, height );調整窗口大小
311、win_restore ( window );恢復窗口從前的大小
312、win_type ( window, keyboard_input );用鍵盤輸入窗口
313、win_wait_bitmap ( window, bitmap, time [, x, y, width, height] );等待窗口位圖
314、win_wait_info ( window, property, value, time );等待窗口屬性值
315、atan2 ( y, x );返回y/x(正切)的弧度
316、cos ( x );返回余弦值
317、exp ( x );返回e的指數值
318、int ( x );返回實數的整數部分
319、log ( x );返回自然對數
320、sin ( x );返回正弦值
321、sqrt ( x );返回平方根值
322、delete array [ subscript ];刪除數組里某個元素
323、split ( string, array [ , field_separators ] );將輸入分成區域保存在數組里
324、call test_name ( [ parameter1, parameter2, ... parametern ] );調用其他測試腳本
325、call_chain_get_attr ( property, level, out_value );返回調用鏈里測試或函數的信息
326、call_chain_get_depth ( );返回調用鏈選項的個數
327、call_close test_name ( [ parameter1, parameter2, ... parametern ] );調用測試腳本,完成時關閉測試
328、call_ex ( Astra_test_path );從winrunner里調用Astra QuickTest測試
329、return [ expression ];返回測試或函數的結果表達式
330、texit ( [ expression ] );停止執行當前的測試
331、treturn [ ( expression ) ];停止調用測試返回控制調用測試
332、load ( module_name [,1/0 [,1/0 ] ] );載入一個編譯過的模塊
333、reload ( module_name [,1|0 [,1|0] ]);刪除編譯過的模塊并重新載入內存
334、unload ( [ module | test [ , function_name ] ] );從內存里刪除編譯模塊
335、define_object_exception (recovery_scenario_name, function, window, object, property [ , value ] );對一個gui對象異常事件定義簡單的觀察場景
336、define_popup_exception (recovery_scenario_name, function, window );對pop-up事件定義異常
337、define_tsl_exception (recovery_scenario_name, return_code [, TSL_function ] );定義tsl事件異常事件
338、exception_off ( recovery_scenario_name );解除指定的觀察場景
339、exception_off_all ( );解除所有的觀察場景
340、exception_on (recovery_scenario_name );激活指定的觀察場景
341、file_close ( file_name );關閉用file-open打開的文件
342、file_compare ( file1, file2 [ , save_file ] );比較兩個文件的內容
343、file_getline ( file_name, out_line );讀取文件下一行,并將其分配給一個變量
344、file_open ( file_name, mode );打開或創建指定的文件
345、file_printf ( file_name, format, exp1 [ , exp2,... exp30 ] );按格式打印文件
346、pause ( [ expression ] );暫停測試執行并輸出提示信息
347、report_msg ( message );往測試報告里寫信息
348、sprintf ( format, exp1, exp2,...expn );返回固定格式字符串到一個變量
349、str_map_logical_to_visual ( logical_string, visual_string );把邏輯字符串轉換成形象字符串
350、eval ( statement1 [; statement2;.... statementn;] );評估并執行附屬的tsl語句
351、get_unique_filename ( folder_path , file_prefix , file_extension , out_filename , with_underscore );基于指定的前綴,創建唯一的文件名
352、nargs ( );返回參數通過的個數
353、tl_step ( step_name, status, description );把測試腳本分成幾塊,并在當前測試結果里插入狀態信息
354、invoke_application ( file, command_option, working_dir, show );調用windows應用程序
355、dos_system ( expression );執行dos命令
356、ascii ( string );返回字符串第一個字符的asc碼
357、compare_text ( str1, str2 [, chars1, chars2 ] );比較兩個字符串
358、index ( string1, string2 );顯示兩個字符串位置
359、length ( string );計算字符串里字符的個數
360、match ( string, regular_expression );尋找字符串里正規表達式的事件
361、substr ( string, position [, length ] );從字符串里提取子字符串
362、tolower ( string );轉換全部大寫字母到小寫字母
363、toupper ( string ); 轉換全部小寫字母到大寫字母
364、end_transaction ( transaction [ , status ] );標記一個性能分析的結束
365、get_time ( );返回當前系統時間
366、start_transaction ( transaction_name ); 標記一個性能分析的開始
367、time_str ( [ expression ] );將返回的整數時間轉換成字符串
368、wait ( seconds [, milliseconds] );測試暫停
invoke_application(file,command_option,working_dir,show);
file:應用程序的文件名,絕對路徑;
command_option:應用程序的參數;
working_dir:應用程序工作路徑;
show:程序運行時的顯示模式;
數據庫檢查點:標準檢查點和運行時檢查點
標準檢查點檢查行數、列數、內容是否一致;包括defaultcheck僅檢查數據庫內容是否一致;custom check 可隨意組合上面三種方式檢查
運行時檢查點檢查程序界面上某些控件顯示的內容是否在數據庫中匹配記錄,三種方式:匹配一條、匹配多條、沒有匹配記錄
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -