天道酬勤

TSL脚本命令

上一篇 / 下一篇  2007-02-09 10:49:00

Winrunner Context Sensitive命令列表51Testing软件测试网7cf/N+q;G1X)E
51Testing软件测试网N!SW_0U J)^
1.ActiveBar_combo_select_item ( band_tool , item_name );选择下拉菜单某一项,例如:51Testing软件测试网'E#DV}N`.J_
set_window("Form1", 1);51Testing软件测试网 z.edT6Oi
ActiveBar_combo_select_item("Format;Font", "Arial");51Testing软件测试网|E s+kk]2~i
In the following example, WinRunner selects the third item in the Format:Font tool.
q)aER;Hx2of,a0set_window("Form1", 1);
}]g`I G0ActiveBar_combo_select_item("Format;Font", "#3");
0KL2E3s PL+SL02.ActiveBar_dump ( file_name );存储活动工具栏信息,包括标题、名称、ID等。
W*v#e;` T0file_name 参数包括路径,例如:
r5|5~Z{k#|0set_window("Form1", 1);
}!BP(bIcQep0ActiveBar_dump ("d:Bardump.txt");51Testing软件测试网#t*K2Og-H4Y0n+GWQ
3、ActiveBar_select_menu ( band_tool [, events_only ] ) ;选择菜单某一项,例如:51Testing软件测试网%ENK)U zv8U'D
in the following example, WinRunner selects the Cut menu item in the Edit toolbar.51Testing软件测试网+t7y,Jr1Z7heA K
set_window("Form1", 1);51Testing软件测试网E/PsrbGu^$^ ^
ActiveBar_select_menu ("Edit;Cut",TRUE);51Testing软件测试网dv+noy d:]8Y
4、ActiveBar_select_tool (band_tool [, events_only ] ) ;选择工具栏里某一项,例如:51Testing软件测试网,uC9d!v0d5G;b
set_window("Form1", 1);51Testing软件测试网JX RY*N,g
ActiveBar_select_tool("Format;Center", TRUE);
n;u[?a\;J05、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口位图,51Testing软件测试网.z7X5g&Qvo
6、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象位图,51Testing软件测试网/{pm$|*\[f7tl'{ c2n
7、button_check_info ( button, property, property_value );检查按钮属性的值51Testing软件测试网)ak2Z2qGQrI#YUK
8、button_check_state ( button, state );检查单选框或复选框的状态51Testing软件测试网o/z?.qZ0\2]
9、button_get_info ( button, property, out_value );返回按钮属性的值
9I+go3ayu2y010、button_get_state ( button, out_state );返回单选框或复选框的状态51Testing软件测试网!Jf9J"iHbP9q!_
11、button_press ( button );点击按钮
8uOqd?6e'rX012、button_set ( button, state );设置单选框或复选框的状态51Testing软件测试网5y3g*}w*{/j9A:Z
13、button_wait_info ( button, property, value, time );等待按钮的属性值变化
CFa9\N.LD-n014、calendar_activate_date ( calendar, date );双击日历某个日期51Testing软件测试网k[eT.U N;k6|
15、db_check ( checklist, expected_results_file [ , max_rows [ , parameter_array ] ] );比较当前数据库数据和期待的数据库数据
t#GoB:VZ&T\x016、db_connect ( session_name, connection_string );建立一个数据库session并建立odbc连接
-nKy@sgBcFKL'g017、db_disconnect ( session_name );断开连接结束session
dO,G"i4Gz:r018、db_execute_query ( session_name, SQL, record_number );执行sql语句返回记录集51Testing软件测试网tugt#`2z)r9D
19、db_get_field_value ( session_name, row_index, column );返回数据库特定区域的值
2H_i6sDGV020、db_get_headers ( session_name, header_count, header_content );返回数据库session的列的数量及列的内容并以tab分组
P#F G5`&L]021、db_get_last_error ( session_name, error );返回最后一条数据库session错误信息51Testing软件测试网Kh~u!k:?g'Jo
22、db_get_row ( session_name, row_index, row_content );返回特定行内容51Testing软件测试网'|#W-t3t"e[~m
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.51Testing软件测试网6tnOr(D5z1G*d
24、db_write_records ( session_name, output_file [ , headers [ , record_limit ] ] );把结果记录集写到一个文本文件
1?0h9\8mJX"e025、ddt_close ( data_table_name );关闭数据表文件51Testing软件测试网`&O&LUb3q.H*X nW
26、ddt_close_all_tables();关闭全部数据表
BY5ql0jf027、ddt_export ( data_table_namename1, data_table_namename2 );把一个数据表信息导到另一个数据表文件51Testing软件测试网&m|%NoRH;M-L)P
28、ddt_get_current_row ( data_table_name, out_row );返回数据表当前所在行
h-w c w4N'F!b029、ddt_get_parameters ( table, params_list, params_num );返回数据表的参数和参数的个数51Testing软件测试网W9@P'`*L']4Y8f"e
30、ddt_get_row_count ( data_table_name, out_rows_count );返回数据表行数
aX6L$YX+z q$Lo5a031、ddt_is_parameter ( data_table_name, parameter );返回一个参数是否在数据表里有效51Testing软件测试网*ci6HQ*WR%Su
32、ddt_next_row ( data_table_name );指向数据表中到当前行的下一行51Testing软件测试网| Q*G)R U)MQ
33、ddt_open ( data_table_name [ , mode ] );打开或创建一个可以访问的数据表
7d!XK5szx8\o034、ddt_report_row ( data_table_name );报告当前行到测试结果51Testing软件测试网'i U%b&t{"jc4Z` j
35、ddt_save ( data_table_name );保存数据表信息
.O+O LrEf036、ddt_set_row ( data_table_name, row );设置当前行为第几行
+J6k7q S%A037、ddt_set_val ( data_table_name, parameter, value );插入parameter列一个新值value51Testing软件测试网&~L@(~ m!|
38、ddt_set_val_by_row ( data_table_name, row, parameter, value );插入特定行的parameter列一个新值value51Testing软件测试网@(D2}1pV { K%|
39、ddt_show ( data_table_name [ , show_flag ] );显示或隐藏数据表,1是显示,0是隐藏
y-[%u!xI0s7l040、ddt_sort ( table_file, row1, col1, row2, col2, sort_by_rows, key1 [ , key2, key3 ] );根据关键字将数据表特定区域的值排序,sort_by_rows 参数1是按行,0是按列
J1y5ody FA db041、ddt_update_from_db ( data_table_name, file, out_row_count [ , max_rows ] );从数据库往数据表里导数据;51Testing软件测试网+J&L?,qE`K(d4sj
42、ddt_val ( data_table_name, parameter );返回数据表当前行的参数的值
:^W;z:CV_043、ddt_val_by_row ( data_table_name, row_number, parameter );返回数据表特定行的参数的值51Testing软件测试网.u r)\I,\0m2eA
44、date_age_string ( date, years, month, days, new_date );将日期相应改变返回新值
f8Z0f-{$v7D'["?9EA045、date_align_day ( align_mode, day_in_week );指定特定的日期给某天51Testing软件测试网CQ5c2aSU:O@
46、date_calc_days_in_field ( field_name1, field_name2 );计算两个日期间的天数
ND S&^9a8K#[047、date_calc_days_in_string ( string1, string2 );计算字符串格式的日期间的天数
^JS-y`*h2S048、edit_check_info ( edit, property, property_value );检查对象属性的值51Testing软件测试网2f CD-N"V+zIJF
49、edit_check_selection ( edit, selected_string );检查选择的字符串是否存在
B+RY:m7T*GW050、edit_check_text (edit, text, case_sensitive );检查编辑对象的文本内容
#P6k'U}| v WQ5BX051、edit_delete ( edit, start_column, end_column );删除编辑对象的文本内容
k+M4L'u9}6i052、edit_delete_block ( edit, start_row, start_column, end_row, end_column );删除文本区
*Hf#H.HE\M%kS053、edit_get_block ( edit, start_row, start_column, end_row, end_column, out_string );返回文本区51Testing软件测试网hHG-Ys@%r
54、edit_get_info ( edit, property, out_value );返回编辑对象的属性值
;vf%X/Wv055、edit_get_row_length ( edit, row, out_length );返回编辑对象里行的长度51Testing软件测试网}9j}9N(Qd`'P
56、edit_get_rows_count ( edit, out_number );返回编辑对象里行数
U V2tb}5B057、edit_get_selection ( edit, out_string );返回编辑对象的选定字符串51Testing软件测试网`8G;^VF/b
58、edit_get_selection_pos ( edit, out_start_row, out_start_column, out_end_row, out_end_column );返回选定区域的开始和结束位置51Testing软件测试网/ZydB~;{b%q c.h}:}
59、edit_get_text ( edit, out_string );返回编辑对象的文本51Testing软件测试网6IOs+n `Ck,T}
60、edit_insert ( edit, text, columnI );在编辑对象第一行插入文本51Testing软件测试网/vi)?JK0t G
61、edit_insert_block ( edit, text, row, column );在一个多行编辑对象插入文本51Testing软件测试网X iB3h0D+K8Yg
62、edit_replace ( edit, text, start_column, end_column );替换一个编辑对象的内容
"m d&M&M0}WH f}063、edit_replace_block ( edit, text, start_row, start_column, end_row, end_column );替换一个编辑对象的多行内容
3`;z|U/X9fdlD7jv064、edit_set ( edit, text );替换编辑对象的全部内容
5Zl'I'j]$`-d+`065、edit_set_insert_pos ( edit, row, column );把鼠标指针放到编辑对象特定位置51Testing软件测试网)]8SV5O:d6B%y6L
66、edit_set_selection ( edit, start_row, start_column, end_row, end_column );选择编辑对象的文本
5m;m7Jk"L"Y!M#u067、edit_type ( edit, text );在编辑对象敲入字符串51Testing软件测试网4NP;a"R[
68、edit_wait_info ( edit, property, value, time );等待编辑对象属性的值
jfBzm9rz/h*}069、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据51Testing软件测试网JSI6S _:sjx\+Q,a
70、win_check_gui ( window, checklist, expected_results_file, time );对一个窗口比较当前的gui对象数据51Testing软件测试网j%iqQ"E%_n&q
71、get_class_map ( custom_class, out_standard_class );返回和一个自定义的类相关的标准类51Testing软件测试网:r;k`V6~1v,R[!d^;z
72、get_record_attr ( class, out_obligatory, out_optional, out_selector );从一个对象类返回属性51Testing软件测试网8Pt D[-Y^*Zo
73、get_record_method ( class, out_method );返回一个对象类的方法51Testing软件测试网$O/y(]~XWl v
74、set_class_map ( custom_class, standard_class );关联一个自定义类和一个标准类
2t*py*V.t0U075、set_record_attr ( class, oblig_prop, optional_prop, selector );设置一个对象类的属性
.e+K*j l,X/D%?"_2Y076、set_record_method ( class, method );设置对一个类的记录方法
P\5fT ^*a#E)V077、unset_class_map ( custom_class );解开一个自定义类和标准类的关联关系51Testing软件测试网}#TYp9u-dP D+Tt
78、GUI_add ( file path, window, object, physical_desc );往gui map文件里加一个对象
^R1w.h#Z K-|T079、GUI_buf_get_desc ( file, window, object, out_desc );返回guimap文件里对象的物理描述51Testing软件测试网/h/w A d&i,e[r}i6e#Y
80、GUI_buf_get_desc_attr ( file, window, object, property, out_prop_value ); 返回guimap文件里对象的属性的值
%h2O'm%|Uf1ZW E081、GUI_buf_get_logical_name ( file, physical_desc, window, out_name ); 返回guimap文件里对象的逻辑名称
)\u6NR7R082、GUI_buf_new ( file );创建新的gui对象文件
X_w$zY#i j1HG.~[083、GUI_buf_set_desc_attr ( file, window, object, property, value );设置guimap文件里对象的属性的值51Testing软件测试网;}0L wdJlK6tP8P$YU
84、GUI_close ( file );关闭guimap文件51Testing软件测试网/w,z5RTe:YX0Z-h
85、GUI_close_all ();关闭全部guimap文件51Testing软件测试网_j4ySE"V(L ^t
86、GUI_delete ( file, window, obj );从guimap文件里删除一个对象51Testing软件测试网D7B!\1l"e\z _a(b
87、GUI_desc_compare ( desc_1, desc_2 );比较两个物理描述
Niv%cz"dz.J"i088、GUI_desc_get_attr ( physical_desc, property, out_attr_value );从物理描述得到属性的值
5K!Y1uI5n089、GUI_desc_set_attr ( physical_desc, property, value );设置属性的值51Testing软件测试网&n e m@!O*^_ds
90、GUI_get_name ( out_name, out_version );返回测试程序下gui对象的类型51Testing软件测试网So#eT rE U
91、GUI_get_window ( );在guimap里返回当前窗口
S;G"I:NF _Cw092、GUI_list_buf_windows ( file, out_windows, out_number );列举出guimap文件里所有的窗口51Testing软件测试网P;Yeky4Um S
93、GUI_list_buffers ( out_files, out_number );列举所有打开的guimap文件
/P.Hy$[MIb094、GUI_list_desc_attrs ( physical_desc, out_array );列举一个gui对象的属性值51Testing软件测试网fVGz/m{` {T f
95、GUI_list_map_buffers ( out_file, out_number );列举所有载入的guimap文件51Testing软件测试网a JrJ;H!PLE
96、GUI_list_win_objects ( file, window, out_objects, out_number );列举一个窗口的全部对象
{[.Vx*U(WA097、GUI_load ( file_name );载入一个guimap文件
p fhEYEv"l5f098、GUI_map_get_desc ( window, object, out_desc, out_file );返回guimap里对象的物理描述
mr,s{ d9a#F099、GUI_map_get_logical_name ( physical_desc, window, out_obj, out_file );返回guimap里对象的逻辑名称
Ob Esgq wcos0100、GUI_open ( file_name );打开guimap文件51Testing软件测试网 _SD;LQU!`"?P
101、GUI_save ( file_name );保存guimap文件
u7B(Li+M)}Z)P0102、GUI_save_as ( current_file_name, new_file_name );另存为guimap文件
D+[r U,X8@\;g(o/O!d7x'P0103、GUI_set_window ( window_name );设置guimap里目标识别范围51Testing软件测试网1e+Ji5q]b4YF g
104、GUI_unload ( file );卸载guimap文件51Testing软件测试网!s^|0a-p hm
105、GUI_unload_all ( )卸载全部的guimap文件
-t:]7k.^V0|B&h%j2G0106、icon_move ( icon, x, y );移动图标到新位置51Testing软件测试网6TJ[GIIq3z
107、icon_select ( icon );点击鼠标选择图标
w1pt4|$Y.Fx0108、java_activate_method( object, method, retval [ , param1, ... param8 ] );调用请求的java方法51Testing软件测试网6Ni s#bI2h?
109、java_fire_event ( object , class [ , constructor_param1,..., constructor_paramX ] );模拟一个java对象的事件
C6DCqdf t)G,Y Hh0Q0110、jco_create ( object , jco , class [ , constructor_param1 , ... , constructor_param8 ] )创建一个现有java对象的上下文java对象51Testing软件测试网pr'Q-v)_4uS {7Q4WO
111、jco_free ( object_name );释放内存里指定的jco对象
O,Yru/aG~I3y!f0112、jco_free_all();释放全部内存里的jco对象51Testing软件测试网kf^A |
113、jdc_aut_connect ( in_timeout );建立一个winrunner和java应用程序的连接51Testing软件测试网2}}N B-b
114、method_wizard ( [ object ] );打开java方法的向导
%T8} s-Yr+qHKy.[0115、obj_key_type ( object, keyboard_input );向java组件发送事件51Testing软件测试网(N8Q r b,d2f[e\
116、obj_set_info ( object, property, value );设置对象属性的值
m P M;jG5n/J$d1Z]0117、popup_select_item ( "menu component;menu item" );从java活动菜单选择一个选项
'B|6g6?{T0118、list_activate_item ( list, item [, offset ] );激活列表里某一项
4x U4Ef0j5wG0119、list_check_info ( list, property, property_value );检查列表属性的值51Testing软件测试网&uR'Na C
120、list_check_item ( list, item_num, item_content );检查列表某项的内容51Testing软件测试网LLNcBVf K-^|
121、list_check_selected ( list, selected_items );检查选中的那项51Testing软件测试网Fj6PRGyJ-`AT1H
122、list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项51Testing软件测试网I4S9f"mw%o }f0y
123、list_deselect_item ( list, item [, mouse_button [, offset ]] );取消选定列表的某一项
B+]4fOj){-t R7?0124、list_deselect_range ( list, item1, item2 [, offset ] );取消选定2个选项51Testing软件测试网[)^Rs \0]T`0R7_
125、list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项51Testing软件测试网UA!w DDa2g)}
126、list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项
|%yY`5l o v3j0127、list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项51Testing软件测试网\D"P$Gx(_n
128、list_extend_item ( list, item [, button [, offset ] ] );往指定的列表里添加一个选项51Testing软件测试网H7Q&y!]c$`e
129、list_extend_multi_items ( list, item_list, [, mouse_button [, offset ] ] );添加多个选项
A IQq;{0130、list_extend_range ( list, item1, item2 [, button [, offset ] ] );添加一定范围的选项51Testing软件测试网9tf#|%F P6[%a*M.mzj
131、list_get_checked_items ( list, items, number );返回标记的选项的个数和值
!B?@yis3E$e0132、list_get_info ( list, property, out_value );返回列表属性的值
f w(J5b'\C xMM0133、list_get_item ( list, item_num, out_value );返回列表选项的内容
n ]M}8yVT0134、list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标51Testing软件测试网 ?gE{5G }4_u Vd
135、list_get_item_info ( list, item, state, out_value );返回列表选项的状态51Testing软件测试网fkf6N1~2Y
136、list_get_item_num ( list, item, out_num );返回列表选项的位置51Testing软件测试网Af%s4xCEy z0`e
137、list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值51Testing软件测试网-zy"u Q$O%w0T
138、list_select_item ( list, item [,button [, offset ] ]);选择一个列表选项51Testing软件测试网e;X0C#w*F)u-gx
139、list_select_multi_items ( list, item_list [, mouse_button [, offset ] ] );选择一个列表的多个选项51Testing软件测试网y[Kv"Cp&U-j2K
140、list_select_range ( list, item1, item2 [, button [, offset ] ]);选定一定范围内全部选项
n/Drs$bl})eM8[0141、list_wait_info ( list, property, value, time );等待列表属性的值51Testing软件测试网8Pv+M8@:K!N$U2uo2X$tS5~
142、menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述51Testing软件测试网6c0Ua)b kOBzl
143、menu_get_info ( menu, property, out_value );返回菜单属性的值
{ e(m0Jc%[8}0144、menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容51Testing软件测试网t p:NF/d7z
145、menu_get_item_num ( menu, item, out_osition );返回菜单选项的位置
I-]OgI5_e0146、menu_select_item ( menu;item [ x,y ] );选择一个菜单选项
i1f'G\WJCs+l0147、menu_wait_info ( menu, property, value, time );等待菜单属性的值51Testing软件测试网*w7w2S(w~]
148、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图
@EE1xo%b {g0149、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据
zUh,{&Bi0150、obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值51Testing软件测试网A)L3j Y9II
151、obj_click_on_text ( object, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在对象里点击文本
_rzTY kE0152、obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象
B~b2Y_)M L0153、obj_drop ( target_object, x, y );拖动一个对象到目标对象
`9f1[%T2d"^$l Z y0154、obj_exists ( object [, time ] );检查对象是否显示在屏幕上51Testing软件测试网~6TLPx%x'k$IC P
155、obj_find_text ( object, string, result_array [, search_area [, string_def ] ] );在对象里返回字符串的位置
3U#}#m9hU0156、obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述51Testing软件测试网A4X3@r5@2Ne&u'Y.U
157、obj_get_info ( object, property, out_value );返回对象属性的值51Testing软件测试网 I3HA)nXk
158、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本
6J7K0F KWdf6x0159、obj_highlight ( object [, flashes ] );高亮显示对象51Testing软件测试网2o$oJJf,}"|UY
160、obj_mouse_click ( object, x, y [, mouse_button ] );点击一个对象51Testing软件测试网;e8mEtq7of'@
161、obj_mouse_dbl_click ( object, x, y [, mouse_button ] );双击一个对象51Testing软件测试网~0X4i-||
162、obj_mouse_drag ( object, start_x, start_y, end_x, end_y [,mouse_button ] );在对象上拖动鼠标
z$TY5UgR:N0163、obj_mouse_move ( object, x, y );在对象里移动鼠标指针51Testing软件测试网 [!o7tWrN,b
164、obj_move_locator_text ( object, string [ , search_area [ , string_def ] ] );在对象里移动鼠标到一个字符串
Gtdg#D kE0165、obj_type ( object, keyboard_input );用键盘输入对象
B e9Z(R2i:j`/\^0166、obj_wait_bitmap ( object, bitmap, time [, x, y, width, height] );等待对象位图出现在屏幕
!m#E0X{H o#yW0167、obj_wait_info ( object, property, value, time );等待对象属性的值
0ISK*[.f8y1A%P0168、scroll_check_info ( scroll, property, property_value );检查滚动条的属性值51Testing软件测试网D/LjZ J*|9N%S!v
169、scroll_check_pos ( scroll, position );检查滚动条的当前位置51Testing软件测试网G t4\9\Bb5B`
170、scroll_drag ( scroll, orientation, position );滚动到指定位置51Testing软件测试网p4Tw EG8^;e9@7O4w|7T
171、scroll_drag_from_min ( scroll, orientation, position );从最小值开始滚动51Testing软件测试网g3PV:hDf}6cC
172、scroll_get_info ( scroll, property, out_value );返回滚动条的属性值
/} i6c]ov)q0173、scroll_get_max ( scroll, orientation, out_max );返回滚动条的最大位置
1|5hi4fo3UTH dg0174、scroll_get_min ( scroll, orientation, out_min );返回滚动条的最小位置51Testing软件测试网*n%T\F0HQ;a)]/E
175、scroll_get_selected ( slider, min_value, max_value );返回滚动条的最小和最大值
g$j5M)\#o%l!~0176、scroll_get_pos ( scroll, orientation, out_pos );返回滚动条当前位置51Testing软件测试网\GI!z7sI,qW d
177、scroll_line ( scroll, orientation, [ +|- ] lines );滚动指定的几行
!r t2q&zmS:[3V$a0178、scroll_max ( scroll, orientation );设置滚动条到最大位置
*U SZ9j Yo5UO am0179、scroll_min ( scroll, orientation );设置滚动条到最小位置51Testing软件测试网c4[]8nF3v4K*?
180、scroll_page ( scroll, orientation, [+|-] pages );移动滚动条指定的页数51Testing软件测试网/f5w ~iFvv,r
181、scroll_wait_info ( scroll, property, value, time );等待滚动条属性的值51Testing软件测试网*j'H*j-[BD1?
182、spin_get_info ( spin, property, out_value );返回旋转属性的值51Testing软件测试网-x;bV/A/H)u W
183、spin_get_pos ( spin, out_value );返回旋转对象的位置
+tp#bDaq`9h0184、spin_get_range ( spin, out_min_pos, out_max_pos );返回旋转对象的最小与最大位置51Testing软件测试网+@Ct6i6w;P#umr:qg^h
185、spin_max ( spin [, index ] );设置旋转对象到最大值
;GHu9qz0186、spin_min ( spin [, index ] );设置旋转对象到最小值51Testing软件测试网$C7fi J9JU
187、spin_next ( spin [, index ] );设置旋转对象到下一个值
g n;R%K'aR)GW0188、spin_prev ( spin [, index ] ); 设置旋转对象到前一个值51Testing软件测试网 S j(Y:w2Z`}a!c_HX
189、spin_set ( spin, item [, index ] );设置选择对象到一个选项值
D5AtS;t0J0190、spin_wait_info ( spin, property, value, time );等待旋转属性等于指定的值51Testing软件测试网xJ(jcOD0M'\tMm
191、static_check_info ( static, property, property_value );检查静态文本对象属性的值
c|:k2~-tdR|0192、static_check_text ( static, text, case_sensitive );检查静态文本对象的内容
o(]3`)N4nxQ0193、static_get_info ( static, property, out_value );返回静态文本对象属性的值
Vb7Y?,p"rl0194、static_get_text ( static, out_string );返回静态文本对象的内容51Testing软件测试网!\R0T(_(z:ON9oeT
195、static_wait_info ( static, property, value, time );等待静态文本对象的属性值
0T4kHOg-X0`X0196、statusbar_get_field_num ( statusbar, field, field_index );返回状态栏区域的数字索引51Testing软件测试网 w7l/IU5x~
197、statusbar_get_info ( statusbar, property, out_value );返回状态栏的属性值51Testing软件测试网^4[:b1Gp m
198、statusbar_get_text ( statusbar, field_index, out_text );读取状态栏区域的文本51Testing软件测试网(}7zd0Y@o
199、statusbar_wait_info ( statusbar, property, value, time );等待状态栏属性的值
R ~t.O7b0200、tab_get_info ( tab, property, out_value );返回tab属性的值
rQ2m(y/Z}PzHQ4O0201、tab_get_item ( tab, item_num, out_item );返回tab选项的名称
"jY6E+j+T8qQ aB i0202、tab_get_selected ( tab, out_item, out_num );返回选定的tab选项的名称和个数51Testing软件测试网,E+rTrrXVP
203、tab_select_item ( tab, item );选择tab选项
[&l [Q_x9v8Y G0204、tab_wait_info ( tab, property, value, time );等待tab属性的值
Z^@\PCe*Rt0205、tbl_activate_cell ( table, row, column );双击表里某个单元51Testing软件测试网`5o5O:rJx6Qu
206、tbl_activate_col ( table, column );双击表里某列51Testing软件测试网uK:l/r:A R;V&|(y
207、tbl_activate_header ( table, column );双击表里某列标题
qJW9Jq$T(xNf#E0208、tbl_activate_row ( table, row );双击表里某行
`n#b,W7C(oHl-D0209、tbl_deselect_col ( table, column );取消选择表的某列
d$kI4YE4~ W0210、tbl_deselect_cols_range ( table, from_column, to_column );取消选择表里某几列51Testing软件测试网h!@T [LQ4c'x_g q%D
211、tbl_deselect_row ( table, row );取消选择表里某行
Uro^3G'?IsU0212、tbl_deselect_rows_range ( table, from_row, to_row );取消选择表里某几行51Testing软件测试网8ZJIN#c.JmQ^
213、tbl_extend_col ( table, column );往表里当前列加一列
DZ2J,hRa0214、tbl_extend_cols_range ( table, from_column, to_column );往表里当前列加多列51Testing软件测试网/{3P,j7}"n8SB3h
215、tbl_extend_row ( table, row );往表里当前行前加一行51Testing软件测试网}y*~Z)y$@*W;` IK@&t
216、tbl_extend_rows_range ( table, from_row, to_row );往表里当前行加多行
Ez)zU oP,} Nt#f0217、tbl_get_cell_data ( table, row, column, out_text );返回表里指定单元的内容
)~8^'uA2]E(ET0218、tbl_get_cols_count ( table, out_cols_count );返回表的列数
,\UfY/q"uwa0219、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题名称
u Ys8u3]0220、tbl_get_column_names ( table, out_col_names, out_cols_count );返回表里列的名称和个数51Testing软件测试网A.a%g']`w+c1Kc E
221、tbl_get_rows_count ( table, out_rows_count );返回表的行数
^/B\7~$~FJ:g|^0222、tbl_get_selected_cell ( table, out_row, out_column );返回表里焦点所在单元51Testing软件测试网_Pf'A+F2F
223、tbl_get_selected_row ( table, row );返回当前焦点所在行51Testing软件测试网:c}N:YTb7|za
224、tbl_select_cells_range ( table, start_row, start_col, end_row, end_col );在表里点击选定的几个单元51Testing软件测试网9B5m'h*Vo$PA
225、tbl_select_col_header ( table, column );选定指定的列的标题
P9B]yk9}*Tc#DRK0226、tbl_select_cols_range ( table, from_column, to_column );在表里选定指定的几列
-h/x_![)Eb+m*_ _~H0227、tbl_select_rows_range ( table, from_row, to_row );在表里选定指定的几行51Testing软件测试网"as*@4wRl"_SX)`'D
228、tbl_set_cell_data ( table, row, column, data );设置表里某单元的内容
j8K N.wr0229、tbl_set_cell_focus ( table, row, column );设置表里焦点到某个单元
4]e8B!P/N*U0230、tbl_set_selected_cell ( table, row, column );在表里选定指定的单元
] u:Nk*B{ [0231、tbl_set_selected_col ( table, column );在表里选定指定的列
9sE3W HBU#NlB0232、tbl_set_selected_row ( table, row );在表里选定指定的行51Testing软件测试网#a7W P8[4]"Ed7}
233、obj_click_on_text ( object, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );点击一个对象的文本
})@t2`;q0234、obj_find_text ( object, string, result_array [, search_area [, string_def ] ] );返回一个对象字符串的位置51Testing软件测试网"ZYw6@BSt
235、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );从对象里读取文本
P{p] \N*Z k3n(k0236、obj_move_locator_text ( object, string [ , search_area [ , string_def ] ] );在对象里把鼠标焦点落在字符串51Testing软件测试网NO wEf"|t
237、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );在一个窗口返回字符串位置
pboMl%]V[0238、win_click_on_text (window, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在窗口搜索文本
.e{9_Uv*m0239、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定的区域读取文本51Testing软件测试网OLp7PVHX2Z#\ ]k
240、win_move_locator_text ( window, string [ ,search_area [ ,string_def ] ] );在窗口里把鼠标焦点落在字符串51Testing软件测试网1J~5] Y6GK8U
241、toolbar_button_press ( toolbar, button, mouse_button );点击工具栏按钮51Testing软件测试网|v#Mb:]
242、toolbar_get_button ( toolbar, button_num, out_text );返回工具栏按钮名称
1^ GnX\6H0243、toolbar_get_button_info ( toolbar, button, property, out_value );返回工具栏按钮属性值51Testing软件测试网W alfP
244、toolbar_get_button_num ( toolbar, button, out_num );返回工具栏按钮位置51Testing软件测试网!I#K(K3OO+R-W
245、toolbar_get_buttons_count ( toolbar, out_num );返回工具栏按钮的个数
Ild#o'X.T| ]d0246、toolbar_select_item ( toolbar, toolbar_item_chain [, mouse_button ] );选择类菜单工具栏的某项51Testing软件测试网A0J {;zh4fM
247、web_browser_invoke ( browser, site );调用ie打开某个站点
Q V/g;ORt&k0_0248、web_cursor_to_image ( image, x, y );移动鼠标指针到某个图片51Testing软件测试网-bD4l:U1M(k
249、web_cursor_to_label ( label, x, y );移动鼠标指针到某个标签51Testing软件测试网6HJ+gr1Bpue
250、web_cursor_to_link ( link, x, y );移动鼠标指针到某个链接
{BNmsu7^/I0251、web_cursor_to_obj ( object, x, y );移动鼠标指针到某个对象
8w z REV7l{ aMhx0252、web_event ( object, event_name [, x , y ] );在指定对象运行一个事件51Testing软件测试网&J6Sy(v5k(B } Q
253、web_file_browse ( object );点击浏览按钮
%V@*]&y2n1C4K J7g0254、web_file_set ( object, value );在文件类型的对象设置文本值51Testing软件测试网D4E0J m{
255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回帧内文本位置
/c5o/@@6K!ATfe0256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回帧内文本的内容51Testing软件测试网y(_@p)d)k*wJS;\m
257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回帧内标准表达式的事件个数
8A*Oj;i+\#p Q0258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );检查帧内指定的文本字符串是否存在
Rp:lP&vi0i8]bd[}0259、web_get_run_event_mode ( out_mode );返回当前的运行模式51Testing软件测试网/z v:@,F.n"z6N[K*gk
260、web_get_timeout ( out_timeout );返回winrunner响应web的最大等待时间
7`@ cYV*c0261、web_image_click ( image, x, y );点击一个图片链接或图片
S+o AP(iv;x0262、web_label_click ( label );点击指定的标签
1{&Em|tj.~ P0263、web_link_click ( link );点击朝文本链接51Testing软件测试网[^5{0Dl1p lu
264、web_link_valid ( name, valid );检查url链接是否有效
J Db3hbh0265、web_obj_get_child_item ( object, table_row, table_column, object_type, index, out_object );返回对象的子对象的物理描述
)Gn l&UJ_qRV0266、web_obj_get_child_item_count ( object, table_row, table_column, object_type, object_count );返回对象的子对象的个数
ZhT YI*Q+n0267、web_obj_get_info ( object, property_name, property_value );返回对象属性的值
wD7jA:I Bx4j0268、web_obj_get_text ( object, table_row, table_column, out_text [, text_before, text_after, index] );返回对象的文本字符串51Testing软件测试网pDe~*qV
269、web_obj_get_text_count ( object, table_row, table_column, regex_text_to_find, count ); 返回对象内标准表达式的事件个数51Testing软件测试网N x-V)gH#U:{3?:]
270、web_obj_text_exists ( object, table_row, table_column, text_to_find [, text_before, text_after] );在对象里如果该文本存在,返回该文本
;d9bEn}%?!]^0271、web_refresh ( frame );winrunner重新连接指定的帧51Testing软件测试网/uk9A$em V
272、web_restore_event_default ( );重新设置全部事件为默认值
'b6MX\Q'X6@K0273、web_set_event ( class, event_name, event_type, event_status );设置事件状态
,RK%{LK~ kpm*g5Z0274、web_set_run_event_mode ( mode );设置事件运行模式
&Mi4J/nj0f0275、web_set_timeout ( timeout );设置winrunner响应web的最大时间
U%X V-oM8@ Y1I!O0276、web_set_tooltip_color ( fg_color, bg_color );设置webtest工具条的颜色
7G;ov/E@ N8k8N0277、web_sync ( timeout );等待帧的导航完成51Testing软件测试网8[| vi8^7e C.K
278、web_tbl_get_cell_data ( table, row, column, starting_pos, out_text, out_actual_text_length );返回web表内指定单元的内容,开始于指定的字符
f8u|]#bx*?;f0279、web_url_valid ( URL, valid );检查url是否有效51Testing软件测试网5j!]l$\M~/S
280、tbl_get_cell_data ( table, row, column, out_text );返回table里指定单元的内容(加载webtest)51Testing软件测试网 Y#~W4bh:x
281、tbl_get_cols_count ( table, out_cols_count );返回表的列数(加载webtest)51Testing软件测试网 U[8OAL5Ks+XQ8j
282、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题的名称(加载webtest)51Testing软件测试网[fx9ESq
283、tbl_get_rows_count ( table, out_rows_count );返回表的行数(加载webtest)
Oj7Y"]#s2QC0284、web_password_encrypt ( password );将web页面的密码加密
*G S?"N tNq(^&M0285、set_window ( window [,time] );激活窗口并确定等待时间51Testing软件测试网"ZtCY;q C0d1B
286、win_activate ( window );激活窗口
|+P@#k'g$o`f7d#z P;H0287、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口的位图51Testing软件测试网,c7|jt"F[Gm
288、win_check_gui ( window, checklist, expected_results_file, time );比较窗口的gui数据51Testing软件测试网e%Go6S2w#d(@.T
289、win_check_info ( window, property, property_value [, timeout ] );检查被请求的窗口属性51Testing软件测试网 [0z:h2ex wbfY
290、win_click_help ( window );在窗口点击帮助按钮51Testing软件测试网5gg%f p,eqU }
291、win_click_on_text (window, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在窗口搜索文本
&loj"hP4rc0292、win_close ( window );关闭窗口51Testing软件测试网8l&dzT H
293、win_drag (source_window, x, y [, mouse_button ] );从源窗口拖动对象51Testing软件测试网/_d!H;Rf\X(k
294、win_drop ( target_window, x, y );拖动对象到目标窗口51Testing软件测试网q j^)? D&T
295、win_exists ( window [, time ] );检查窗口是否显示在屏幕上
O4|2v+hZ$ZpDE2s0296、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );返回窗口里字符串的位置51Testing软件测试网1^,d`fqB-J
297、win_get_desc ( window, obligatory, optional, selector, out_desc );返回窗口的物理描述
m.h7vO-{ ]0298、win_get_info ( window, property, out_value );返回窗口属性的值
/Ro1Op6WG/^0299、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定区域读取文本51Testing软件测试网MXeI7Ufb
300、win_highlight ( window [, flashes ] );高亮显示窗口
P{3pDd x`Z?'I0301、win_max ( window );最大化窗口到全屏51Testing软件测试网*wQ9`x]P$?1n$b4b
302、最小化窗口为一个图标
?q-Sd3N+sg9R0303、win_mouse_click ( window, x, y [, mouse_button [, modifier] ] );在窗口点击鼠标
3rnq J,hV0304、win_mouse_dbl_click ( window, x, y [, mouse_button [, modifier ] ] );在窗口双击鼠标
!u| ^:~,{ wD0305、win_mouse_drag ( window, start_x, start_y, end_x, end_y [, mouse_button ] );在窗口做鼠标拖动操作51Testing软件测试网6`3N ] s(g]Y1` O ~
306、win_mouse_move ( window, x, y );移动鼠标焦点到指定的位置
z,jqs K(`i^4[0307、win_move ( window, x, y );移动窗口到一个绝对位置
olDZ%V6hV0308、win_move_locator_text ( window, string [ ,search_area [ ,string_def ] ] );移动鼠标焦点到窗口的某个字符串51Testing软件测试网uMbJ5GL
309、win_open ( window );打开应用程序窗口51Testing软件测试网/c4u9q:a.`%C0?%G
310、win_resize ( window, width, height );调整窗口大小
iv Sj!YSg0311、win_restore ( window );恢复窗口从前的大小
D rfE"tY"x0312、win_type ( window, keyboard_input );用键盘输入窗口51Testing软件测试网 T As?cZ
313、win_wait_bitmap ( window, bitmap, time [, x, y, width, height] );等待窗口位图51Testing软件测试网0ZSa*U-XQ!E'C
314、win_wait_info ( window, property, value, time );等待窗口属性值51Testing软件测试网,Z&za[&f5e4v la
315、atan2 ( y, x );返回y/x(正切)的弧度51Testing软件测试网 [ w%kAgn$?%A4i
316、cos ( x );返回余弦值
P"sSH GjQ YU2d0317、exp ( x );返回e的指数值51Testing软件测试网a c:K @n&I,{
318、int ( x );返回实数的整数部分51Testing软件测试网2f a5\u&m ?hE.\)i
319、log ( x );返回自然对数51Testing软件测试网,k2C Q W&{ T2{
320、sin ( x );返回正弦值
vOPg7ah+|z_t0321、sqrt ( x );返回平方根值51Testing软件测试网"K7FB\q-S0Ov
322、delete array [ subscrīpt ];删除数组里某个元素
)@l aI,yEfnI5J0323、split ( string, array [ , field_separators ] );将输入分成区域保存在数组里51Testing软件测试网U7O8P'ZP/~;c7xKQ7D
324、call test_name ( [ parameter1, parameter2, ... parametern ] );调用其他测试脚本51Testing软件测试网 m5ha0?Y!s/sR
325、call_chain_get_attr ( property, level, out_value );返回调用链里测试或函数的信息
%q*r`.g-W6RBU3]0326、call_chain_get_depth ( );返回调用链选项的个数51Testing软件测试网E D(t)wD
327、call_close test_name ( [ parameter1, parameter2, ... parametern ] );调用测试脚本,完成时关闭测试
7i[Nw3m[]\v g#[0328、call_ex ( Astra_test_path );从winrunner里调用Astra QuickTest测试
$W'o#vv1Ey0329、return [ expression ];返回测试或函数的结果表达式
wRm\8{\}/q4R^0330、texit ( [ expression ] );停止执行当前的测试
C*@(r0f(S?.y F$A0331、treturn [ ( expression ) ];停止调用测试返回控制调用测试
-Z~f2}'_Z0332、load ( module_name [,1/0 [,1/0 ] ] );载入一个编译过的模块51Testing软件测试网i_b2}ODO;Lh+A%p
333、reload ( module_name [,1|0 [,1|0] ]);删除编译过的模块并重新载入内存51Testing软件测试网l%AjC_E
334、unload ( [ module | test [ , function_name ] ] );从内存里删除编译模块
&u Njv"`a9X0[I(e0335、define_object_exception (recovery_scenario_name, function, window, object, property [ , value ] );对一个gui对象异常事件定义简单的观察场景51Testing软件测试网'n!L1Z%_4G#|})~a
336、define_popup_exception (recovery_scenario_name, function, window );对pop-up事件定义异常
J#[E d*N] I Ft Z.l0337、define_tsl_exception (recovery_scenario_name, return_code [, TSL_function ] );定义tsl事件异常事件51Testing软件测试网3k.[&cqZ2{
338、exception_off ( recovery_scenario_name );解除指定的观察场景
,D"s` zW t-S7Z0m0339、exception_off_all ( );解除所有的观察场景51Testing软件测试网 sU\D0D'rd"_&S3Kr
340、exception_on (recovery_scenario_name );激活指定的观察场景
C#seRL TlF5w g n9d0341、file_close ( file_name );关闭用file-open打开的文件
+gD*c^.xDAL0342、file_compare ( file1, file2 [ , save_file ] );比较两个文件的内容
`9?)O+D#jkx0343、file_getline ( file_name, out_line );读取文件下一行,并将其分配给一个变量51Testing软件测试网w S3ujiI+M,K
344、file_open ( file_name, mode );打开或创建指定的文件51Testing软件测试网W)xb|"Jo
345、file_printf ( file_name, format, exp1 [ , exp2,... exp30 ] );按格式打印文件
9_c'sy8j.|0346、pause ( [ expression ] );暂停测试执行并输出提示信息
I+oY5qF.T.O X!i s0347、report_msg ( message );往测试报告里写信息
!s:^0R$Lm]c P0348、sprintf ( format, exp1, exp2,...expn );返回固定格式字符串到一个变量51Testing软件测试网j0w&G h~x @
349、str_map_logical_to_visual ( logical_string, visual_string );把逻辑字符串转换成形象字符串51Testing软件测试网 j|5I{Nx tY
350、eval ( statement1 [; statement2;.... statementn;] );评估并执行附属的tsl语句51Testing软件测试网q:J }a"c
351、get_unique_filename ( folder_path , file_prefix , file_extension , out_filename , with_underscore );基于指定的前缀,创建唯一的文件名51Testing软件测试网4oX.]iM#q
352、nargs ( );返回参数通过的个数
oB6`$tNB)d&Q p0353、tl_step ( step_name, status, descrīption );把测试脚本分成几块,并在当前测试结果里插入状态信息
7\V3[\C&{:m0354、invoke_application ( file, command_option, working_dir, show );调用windows应用程序
9NNL J*xh:}0355、dos_system ( expression );执行dos命令
o{-BEcSf0356、ascii ( string );返回字符串第一个字符的asc码51Testing软件测试网2y5nl e z5h
357、compare_text ( str1, str2 [, chars1, chars2 ] );比较两个字符串
}:HmRv S#T0358、index ( string1, string2 );显示两个字符串位置51Testing软件测试网P`4{ ov*\/qj
359、length ( string );计算字符串里字符的个数51Testing软件测试网 xM)o(SE$[q6oU Nb
360、match ( string, regular_expression );寻找字符串里正规表达式的事件
u]T4`0g^0361、substr ( string, position [, length ] );从字符串里提取子字符串
:\!Ey coJO6b y0362、tolower ( string );转换全部大写字母到小写字母
vC(i f(q id(PaD0363、toupper ( string ); 转换全部小写字母到大写字母51Testing软件测试网$^lBEKhyU E5H.e
364、end_transaction ( transaction [ , status ] );标记一个性能分析的结束
AZ|%xF(S0365、get_time ( );返回当前系统时间
%T7F0E'G MR0366、start_transaction ( transaction_name ); 标记一个性能分析的开始51Testing软件测试网l;X'OmJms$_\
367、time_str ( [ expression ] );将返回的整数时间转换成字符串
5H6W/h]wIe0368、wait ( seconds [, milliseconds] );测试暂停51Testing软件测试网U7w"R7R5K
invoke_application(file,command_option,working_dir,show);51Testing软件测试网2ae%J!^,vg
file:应用程序的文件名,绝对路径;
o0y)Xi&N.c#u!| Y0command_option:应用程序的参数;
-v(_^#k8Os:v+tS*r0working_dir:应用程序工作路径;51Testing软件测试网.?3A(zW w@F
show:程序运行时的显示模式;
4u.S3h h+_0数据库检查点:标准检查点和运行时检查点51Testing软件测试网n F}2u t&Te*e
标准检查点检查行数、列数、内容是否一致;包括defaultcheck仅检查数据库内容是否一致;custom check 可随意组合上面三种方式检查 .51Testing软件测试网 \"[e(G Z b-j A
运行时检查点检查程序界面上某些控件显示的内容是否在数据库中匹配记录,三种方式:匹配一条、匹配多条、没有匹配记录.

TAG:

 

评分:0

我来说两句

日历

« 2023-11-20  
   1234
567891011
12131415161718
19202122232425
2627282930  

数据统计

  • 访问量: 39833
  • 日志数: 65
  • 图片数: 1
  • 文件数: 2
  • 书签数: 13
  • 建立时间: 2006-12-27
  • 更新时间: 2008-05-31

RSS订阅

Open Toolbar