共同探讨QTP相关问题

WR TSL 2-19-2008

上一篇 / 下一篇  2008-06-01 13:35:33 / 个人分类:WR

Winrunner Context Sensitive命令列表51Testing软件测试网vO6B5`?:e

G)x w,u7Em9y051Testing软件测试网x7}/o"FIt }J

O%x1qer,x \r051Testing软件测试网!S7h&nt l:X*Mr
1.ActiveBar_combo_select_item ( band_tool , item_name );选择下拉菜单某一项,例如:
~-e e4A`051Testing软件测试网vR1~(c0D.[qZ
51Testing软件测试网v+V*W-L/Gx\
set_window("Form1", 1);51Testing软件测试网A h+y,@d@E

b:\!{C]*y$\(Ax051Testing软件测试网`8A(n^ecG$y3Uq
ActiveBar_combo_select_item("Format;Font", "Arial");51Testing软件测试网w'[e-n)c:^C3v
51Testing软件测试网m"d0P!~3I
51Testing软件测试网FgT#HKt%M1J-r
In the following example, WinRunner selects the third item in the Format:Font tool.
z z&m uF2{-[%U&?(j l0
/P)K6Y9S4m _0
8L$l]l#N}-l/D+EJ0set_window("Form1", 1);51Testing软件测试网 ~ {N)x g4v

f"LzuW0
)| O@L G.cUF~0ActiveBar_combo_select_item("Format;Font", "#3");51Testing软件测试网 X O^cC,J#k
51Testing软件测试网@q$K9A+cep!g(rEY5e

-F/d'e0C7^;D)~02.ActiveBar_dump ( file_name );存储活动工具栏信息,包括标题、名称、ID等。
LZ i&A? P,d/eS:D051Testing软件测试网v'y*J0bXKQc
file_name            参数包括路径,例如:
.cmX[%M.c8a cZ1|0
2` i,[b} o$|0set_window("Form1", 1);51Testing软件测试网q8kNs;i}7\(km

O,Hn4^M"{Q0ActiveBar_dump ("d:Bardump.txt");
SSN.y2rr a%b0
(o8XidD \03、ActiveBar_select_menu ( band_tool [, events_only ] ) ;选择菜单某一项,例如:
"M1G y^*r1CD9g0
-?O.UB Y s/U0in the following example, WinRunner selects the Cut menu item in the Edit toolbar.
#{-j ^z Bv051Testing软件测试网'v.~~f3V"h4elC
set_window("Form1", 1);51Testing软件测试网"X2M;P"C.]i`

'e k~2Whzwe0ActiveBar_select_menu ("Edit;Cut",TRUE);
-|J7x\:A%z2Z051Testing软件测试网5g4G3~C s?8X(D.h
4、ActiveBar_select_tool (band_tool [, events_only ] ) ;选择工具栏里某一项,例如:51Testing软件测试网)p;T*X;C2\ g

9^W5L|&k#@.B3y.|0set_window("Form1", 1);
'Bl3w$sX%H8Tz@D|051Testing软件测试网WL7r O6n2W1w&L.{*E U
ActiveBar_select_tool("Format;Center", TRUE);51Testing软件测试网'D9A}2D~,Y#y0b'_K

#K o3R8g;Rdp05、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口位图,51Testing软件测试网9GE'zTYN
51Testing软件测试网K)ZSz2r`&O
6、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象位图,51Testing软件测试网(j)B}6bP.W0R.|

n:ngzy%U ic^07、button_check_info ( button, property, property_value );检查按钮属性的值51Testing软件测试网*m4{ pi5pV)m
51Testing软件测试网n0B[ P;z7p g EUd4A
8、button_check_state ( button, state );检查单选框或复选框的状态51Testing软件测试网3[0Q.@VIo

sb7J-] n0H c09、button_get_info ( button, property, out_value );返回按钮属性的值51Testing软件测试网XB\T^/Mk
51Testing软件测试网|*\/t&`8_6T J
10、button_get_state ( button, out_state );返回单选框或复选框的状态51Testing软件测试网FTh$D&f-L"WL
51Testing软件测试网r)K.kM ?7{
11、button_press ( button );点击按钮51Testing软件测试网3p8^%k ]5L M]_'T-v!J
51Testing软件测试网-czX h a E mx{y
12、button_set ( button, state );设置单选框或复选框的状态51Testing软件测试网4P1k)d'bbd V,h

6u+d;U0ml]t?013、button_wait_info ( button, property, value, time );等待按钮的属性值变化51Testing软件测试网,mYw6w}4R3w!eb

:H1`9]+o.e1{R*@r(a014、calendar_activate_date ( calendar, date );双击日历某个日期51Testing软件测试网'K*uDO*j({ r

R Co3k)\?!~&Y b9i015、db_check ( checklist, expected_results_file [ , max_rows [ , parameter_array ] ] );比较当前数据库数据和期待的数据库数据51Testing软件测试网HIfJ ]al0k
51Testing软件测试网 \ a&WqM4QN&Hx
16、db_connect ( session_name, connection_string );建立一个数据库session并建立odbc连接
z'KVg6hl9z'l0
s2Y3n&AZ Q017、db_disconnect ( session_name );断开连接结束session
L%k+F0y%p@M3r~051Testing软件测试网y"o:@*z/J9\(|4S
18、db_execute_query ( session_name, SQL, record_number );执行sql语句返回记录集51Testing软件测试网3Q'W9a8?'a
51Testing软件测试网\%}coipw i.t
19、db_get_field_value ( session_name, row_index, column );返回数据库特定区域的值
E\%z"G0D E9b,R;Z051Testing软件测试网]F%H)|'a Cx
20、db_get_headers ( session_name, header_count, header_content );返回数据库session的列的数量及列的内容并以tab分组51Testing软件测试网W.b1{ T"\q7C?'P"N
51Testing软件测试网D[D5V H j
21、db_get_last_error ( session_name, error );返回最后一条数据库session错误信息51Testing软件测试网&K Z(Ka.v1Q AB

9P+`'Y2o`T:NSw022、db_get_row ( session_name, row_index, row_content );返回特定行内容51Testing软件测试网!M+\[0Z3jN2T K

W&k k'n8@023、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软件测试网,[x g6ND.C
51Testing软件测试网"l$xn-zlXQZ2q
24、db_write_records ( session_name, output_file [ , headers [ , record_limit ] ] );把结果记录集写到一个文本文件
'Qj.]jx%v0
"X5Hb Vz\$\2I7J025、ddt_close ( data_table_name );关闭数据表文件
9MH9fL0~$q+x0
0\_y4w&?026、ddt_close_all_tables();关闭全部数据表51Testing软件测试网d-ImL Fq

"\+S?&y y4Q!?027、ddt_export ( data_table_namename1, data_table_namename2 );把一个数据表信息导到另一个数据表文件51Testing软件测试网;` ozy Rd5ud6c
51Testing软件测试网;M N%|,O%C.Q:n[I
28、ddt_get_current_row ( data_table_name, out_row );返回数据表当前所在行
'c#dha4B`3L7K({0
m%rdK}3K:C029、ddt_get_parameters ( table, params_list, params_num );返回数据表的参数和参数的个数
F"b7fls051Testing软件测试网CURE I
30、ddt_get_row_count ( data_table_name, out_rows_count );返回数据表行数51Testing软件测试网x"Ilq5e+Z4j3_E

j2H!CQzXKU031、ddt_is_parameter ( data_table_name, parameter );返回一个参数是否在数据表里有效
Jkh2@(E4S+Wp']/x0d0
1an2t1|2OSJ032、ddt_next_row ( data_table_name );指向数据表中到当前行的下一行
+e$b2pm*N;K0m0
^N&x5t8Vi Rm5u033、ddt_open ( data_table_name [ , mode ] );打开或创建一个可以访问的数据表51Testing软件测试网RQqca

fiOgp!Jo034、ddt_report_row ( data_table_name );报告当前行到测试结果51Testing软件测试网 lb+wDQ8fM
51Testing软件测试网k.k mo9f
35、ddt_save ( data_table_name );保存数据表信息
'fBj'C;I8U{ u/cH051Testing软件测试网N9v&IQHK
36、ddt_set_row ( data_table_name, row );设置当前行为第几行51Testing软件测试网 u[(}"ML!a$g5bT)C

!`.P{ ycF D O_037、ddt_set_val ( data_table_name, parameter, value );插入parameter列一个新值value
?*zhIe4f4U)L0
m l2K&wA4Gm038、ddt_set_val_by_row ( data_table_name, row, parameter, value  );插入特定行的parameter列一个新值value51Testing软件测试网!K1M wo#`#F
51Testing软件测试网/i yrV-C
39、ddt_show ( data_table_name [ , show_flag ] );显示或隐藏数据表,1是显示,0是隐藏
iIXmYi7F7o/CW0
H9e8cf!~ ui#[I+?040、ddt_sort ( table_file, row1, col1, row2, col2, sort_by_rows, key1 [ , key2, key3 ]  );根据关键字将数据表特定区域的值排序,sort_by_rows            参数1是按行,0是按列51Testing软件测试网$e"d.i#bK ^M3Y
51Testing软件测试网4NU#K N'_
41、ddt_update_from_db ( data_table_name, file, out_row_count [ , max_rows ] );从数据库往数据表里导数据;51Testing软件测试网b^0h)V6Zdg
51Testing软件测试网j!R w"d{*u1G"h
42、ddt_val ( data_table_name, parameter );返回数据表当前行的参数的值
l U[t []0
.h)QF d2C Zdv043、ddt_val_by_row ( data_table_name, row_number, parameter );返回数据表特定行的参数的值
,ck[6x l!do:u051Testing软件测试网(G.@7N)ld(P6sy
44、date_age_string ( date, years, month, days, new_date );将日期相应改变返回新值
8o!Y Gyw"c9tN6]u~.{0
o^aamE+h045、date_align_day ( align_mode, day_in_week );指定特定的日期给某天51Testing软件测试网h9u$@1B$?"i
51Testing软件测试网deLb"DT
46、date_calc_days_in_field ( field_name1, field_name2 );计算两个日期间的天数
5Af L*n']y r0
wg"\|a8J4vC047、date_calc_days_in_string ( string1, string2 );计算字符串格式的日期间的天数
rp7_ h3}L051Testing软件测试网S W?'lo2G!T
48、edit_check_info ( edit, property, property_value );检查对象属性的值
+Q+o;k#aIj E0
I9Iqy\1FIU049、edit_check_selection ( edit, selected_string );检查选择的字符串是否存在51Testing软件测试网7k E W NE2n.A
51Testing软件测试网GDJ3E+D4Vjv.?
50、edit_check_text (edit, text, case_sensitive );检查编辑对象的文本内容
}om [:?SD\0
d#Guj-bU)Z^ D051、edit_delete ( edit, start_column, end_column );删除编辑对象的文本内容51Testing软件测试网R0AM;U:P&m

t3YE$C(^8[;]t052、edit_delete_block ( edit, start_row, start_column, end_row, end_column );删除文本区51Testing软件测试网O.o N5mV'wW:z
51Testing软件测试网j%\ FnEGF
53、edit_get_block ( edit, start_row, start_column, end_row, end_column, out_string );返回文本区51Testing软件测试网d4U bo6` W$yl

.]i ^+u&@:D+D054、edit_get_info ( edit, property, out_value );返回编辑对象的属性值51Testing软件测试网/w-XZ dy%Eh HM \3on;L
51Testing软件测试网7VN1M&Z*V!a+vz'P
55、edit_get_row_length ( edit, row, out_length );返回编辑对象里行的长度51Testing软件测试网|M;u2w ] ]+{
51Testing软件测试网VA#J:u aK
56、edit_get_rows_count ( edit, out_number );返回编辑对象里行数
PB"R ^!iO`mA {051Testing软件测试网Vs EJuG.xd
57、edit_get_selection ( edit, out_string );返回编辑对象的选定字符串
&x WZq/EGJd051Testing软件测试网?G)]c.\G4HAzz
58、edit_get_selection_pos ( edit, out_start_row, out_start_column, out_end_row, out_end_column );返回选定区域的开始和结束位置
!Q*r ]2U:B0
7g5X(]d#KJ(w~ e059、edit_get_text ( edit, out_string );返回编辑对象的文本51Testing软件测试网4H4C0w a?/?+x_

'uC6P,` _060、edit_insert ( edit, text, columnI );在编辑对象第一行插入文本
'[ UsYTd5p!f051Testing软件测试网MR L7mX,L#{:E
61、edit_insert_block ( edit, text, row, column );在一个多行编辑对象插入文本51Testing软件测试网 b#Ce `wC0tl
51Testing软件测试网@!O4k#m0_z6E
62、edit_replace ( edit, text, start_column, end_column );替换一个编辑对象的内容
hv,l*W1oMMq*]J!M0
)YXi5N^x I063、edit_replace_block ( edit, text, start_row, start_column, end_row, end_column );替换一个编辑对象的多行内容51Testing软件测试网.Y+e[ Ol[^
51Testing软件测试网\ nqBut3g2_]
64、edit_set ( edit, text );替换编辑对象的全部内容
[W#\ i a;qK F^Ts051Testing软件测试网 }7s C9]imf;m
65、edit_set_insert_pos ( edit, row, column );把鼠标指针放到编辑对象特定位置51Testing软件测试网!Djq1?6Z"a7?3T7B o1^m
51Testing软件测试网[W^!\*Us7UcP
66、edit_set_selection ( edit, start_row, start_column, end_row, end_column );选择编辑对象的文本
6RtJR-F O0W?VT0
-X&M9eWv(X}S067、edit_type ( edit, text );在编辑对象敲入字符串
x/EKOB w Hv ?0
F6I {:E2U-I(I.e-li068、edit_wait_info ( edit, property, value, time );等待编辑对象属性的值
o!_:tw i(fn$_O051Testing软件测试网)~S8_\^l3o JOY
69、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据51Testing软件测试网r`N i9X#C2Q(F @+v
51Testing软件测试网jJvR^sy%^Z4o Py
70、win_check_gui ( window, checklist, expected_results_file, time );对一个窗口比较当前的gui对象数据51Testing软件测试网1O;]b5Iy\2t1H&B
51Testing软件测试网lCF'y$z*K
71、get_class_map ( custom_class, out_standard_class );返回和一个自定义的类相关的标准类
T KkZl]0
l#]+B fbk072、get_record_attr ( class, out_obligatory, out_optional, out_selector );从一个对象类返回属性51Testing软件测试网 ^R;S-oN
51Testing软件测试网8[{Lx"t5C.L
73、get_record_method ( class, out_method );返回一个对象类的方法51Testing软件测试网$Z&a-L!@K2{q N

8\+C&U0~&J3u074、set_class_map ( custom_class, standard_class );关联一个自定义类和一个标准类
b1M6c%F)],w0X0
;UQ3K*B"K+J[075、set_record_attr ( class, oblig_prop, optional_prop, selector );设置一个对象类的属性51Testing软件测试网3]L BoVB T W D

s(dU^ zB Z!\076、set_record_method ( class, method );设置对一个类的记录方法
@:R.P2g0kUmB051Testing软件测试网*y&B oDw4z,r4C+n(u
77、unset_class_map ( custom_class );解开一个自定义类和标准类的关联关系51Testing软件测试网$pBI {C9f{
51Testing软件测试网D.VL:] v Si7^
78、GUI_add ( file path, window, object, physical_desc );往gui map文件里加一个对象
l4r*N.]-r+x(`^$C%e q0
+N!iz'Or*C4z5h$i079、GUI_buf_get_desc ( file, window, object, out_desc );返回guimap文件里对象的物理描述
M9KDs$x8k\5y0
B%tHP(\!u*w0~080、GUI_buf_get_desc_attr ( file, window, object, property, out_prop_value ); 返回guimap文件里对象的属性的值
(D PcLrqcb051Testing软件测试网*Ya rcJ#~O
81、GUI_buf_get_logical_name ( file, physical_desc, window, out_name ); 返回guimap文件里对象的逻辑名称51Testing软件测试网T.YmzE7Q2kep8N
51Testing软件测试网2I3rK_|
82、GUI_buf_new ( file );创建新的gui对象文件
|4m6I Q8}.J Vj051Testing软件测试网P/N(L/QC8l+c8Ea8q#B
83、GUI_buf_set_desc_attr ( file, window, object, property, value );设置guimap文件里对象的属性的值
v7US9a*x2BIfK c051Testing软件测试网 ?S.yVn t"J d
84、GUI_close ( file );关闭guimap文件51Testing软件测试网na^,bK r5w

SL [)KJ Kes'y4J:Q-yA085、GUI_close_all ();关闭全部guimap文件51Testing软件测试网*d'A5]-~4vtP(\
51Testing软件测试网7m&]"x~$|+M)Z9sk&D
86、GUI_delete ( file, window, obj  );从guimap文件里删除一个对象51Testing软件测试网mt.`o2WhY8ge S
51Testing软件测试网o-T1`H%U
87、GUI_desc_compare ( desc_1, desc_2 );比较两个物理描述
"T,aGhW051Testing软件测试网1w Kp8KCHj Ob/x
88、GUI_desc_get_attr ( physical_desc, property, out_attr_value );从物理描述得到属性的值
b~'S~K051Testing软件测试网 U6RL SG.N
89、GUI_desc_set_attr ( physical_desc, property, value );设置属性的值51Testing软件测试网~1iAwh#k} e

T X*Jaa O090、GUI_get_name ( out_name, out_version );返回测试程序下gui对象的类型
$B1v9ln/a'Z0
@-Q+[ |:W*e u091、GUI_get_window ( );在guimap里返回当前窗口51Testing软件测试网xU*A5cf"\m.T

+^ d#OM/?d ]U:x092、GUI_list_buf_windows ( file, out_windows, out_number );列举出guimap文件里所有的窗口
:qU!Z o\ n~e051Testing软件测试网;F\P-Eu-I
93、GUI_list_buffers ( out_files, out_number );列举所有打开的guimap文件51Testing软件测试网`Eu+y }#]

"b*S%sc5~4Bp094、GUI_list_desc_attrs ( physical_desc, out_array );列举一个gui对象的属性值51Testing软件测试网{9r!J {4o{U"P
51Testing软件测试网!W+J\H%e9E?
95、GUI_list_map_buffers ( out_file, out_number );列举所有载入的guimap文件51Testing软件测试网m1`wK!M-h

M/J+Jbz6DBt096、GUI_list_win_objects ( file, window, out_objects, out_number );列举一个窗口的全部对象
U D J%\Dh\)W0
bgEz!RwK(]097、GUI_load ( file_name );载入一个guimap文件
Q2A~9kC]U051Testing软件测试网,\/i9h zu"z5M
98、GUI_map_get_desc ( window, object, out_desc, out_file );返回guimap里对象的物理描述
,Ha7y2r6n%BR_051Testing软件测试网H'f#Ig)U%W
99、GUI_map_get_logical_name ( physical_desc, window, out_obj, out_file );返回guimap里对象的逻辑名称
?E'LWx S&X3|8\6n0
/Z s7rA+oM0100、GUI_open ( file_name );打开guimap文件
 
101、GUI_save ( file_name );保存guimap文件
;`w#WKx#iz0
6X(FPF#x@h(M S]0102、GUI_save_as ( current_file_name, new_file_name );另存为guimap文件
X:WX V7~[d`051Testing软件测试网2Q*Z vBy,h
103、GUI_set_window ( window_name );设置guimap里目标识别范围51Testing软件测试网w~%I*vX E*Kw

4}TL }"LSS0104、GUI_unload ( file );卸载guimap文件
Vem0d g&fI:w0
m|0R2HM!S,v)g0105、GUI_unload_all ( )卸载全部的guimap文件51Testing软件测试网&?lh2[F%Px

h5i)yu5R)c0106、icon_move ( icon, x, y );移动图标到新位置51Testing软件测试网fS$r6D$K:~h?
51Testing软件测试网h%D#^/T^
107、icon_select ( icon );点击鼠标选择图标
P*AqoVu0
7w!JCnr~E0108、java_activate_method( object, method, retval [ , param1, ... param8 ] );调用请求的java方法51Testing软件测试网%|{5jCIr2Ti*C5D
51Testing软件测试网^aA%tM0NJ
109、java_fire_event ( object , class [ , constructor_param1,..., constructor_paramX ] );模拟一个java对象的事件
!c cv.ngs051Testing软件测试网!l c6zo,T*]
110、jco_create ( object , jco , class [ , constructor_param1 , ... , constructor_param8 ] )创建一个现有java对象的上下文java对象
8Rx8v1Y/uKN0
|j?KuZ(oeR0111、jco_free ( object_name );释放内存里指定的jco对象
} ~?.gtk051Testing软件测试网+F d l? ??QEPq
112、jco_free_all();释放全部内存里的jco对象
eJ1d){dPmN$C8H0
2fpf7}M0113、jdc_aut_connect ( in_timeout );建立一个winrunner和java应用程序的连接51Testing软件测试网t fsx vU#Y`;r4lsw
51Testing软件测试网VwgT-D_;A
114、method_wizard ( [ object ] );打开java方法的向导
EO-P9iC yL6P051Testing软件测试网;\n6I&t'M5J
115、obj_key_type ( object, keyboard_input );向java组件发送事件
G'd0vG6o?t0
pP/U@5X{:}wG0116、obj_set_info ( object, property, value );设置对象属性的值51Testing软件测试网1^4`N/P!V!x t8y
51Testing软件测试网'Fp"a VpXO'}
117、popup_select_item ( "menu component;menu item" );从java活动菜单选择一个选项
^k0U$c:Ua051Testing软件测试网:j ` er^n,`Z5B
118、list_activate_item ( list, item [, offset ] );激活列表里某一项
qH {~r0
e ~A'j ~D0qb"z0119、list_check_info ( list, property, property_value );检查列表属性的值
~l'Z8~4AsE0
s6u+^ Y8|\T4k b0120、list_check_item ( list, item_num, item_content );检查列表某项的内容51Testing软件测试网P(uu d}zXh
51Testing软件测试网_7SS VO3\'lG
121、list_check_selected ( list, selected_items );检查选中的那项51Testing软件测试网#C qDW2v
51Testing软件测试网a0qrQK8V/R{qv
122、list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项51Testing软件测试网O(};eN%R2N
51Testing软件测试网'p)C/r$bd|
123、list_deselect_item ( list, item [, mouse_button  [, offset ]] );取消选定列表的某一项
&v(qsb!@n O W0
Zn;D#Rp&G3d0124、list_deselect_range ( list, item1, item2 [, offset ] );取消选定2个选项51Testing软件测试网5Q'U/_q*l X%v.DD

D XJe:WL0125、list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项51Testing软件测试网1Wi[v ?7NC"p5r
51Testing软件测试网9V7Q/Lj^h9Ts
126、list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项51Testing软件测试网5BhD3l'z#Ut
51Testing软件测试网$u_S(@N'A!gU a9E
127、list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项51Testing软件测试网.A1G'J3VG o VOX-L

A8nZN({s\]0128、list_extend_item ( list, item [, button  [, offset ] ] );往指定的列表里添加一个选项
PN\ U:Mlt'^7K0
}8J9b7v'E/bL0B0129、list_extend_multi_items ( list, item_list, [, mouse_button  [, offset ] ] );添加多个选项
.A hGM,L0
Q~` {t i \1e2G0130、list_extend_range ( list, item1, item2 [, button  [, offset ] ] );添加一定范围的选项51Testing软件测试网8SoamD5e|Um"{`

M x4J6g_m}0o0131、list_get_checked_items ( list, items, number );返回标记的选项的个数和值51Testing软件测试网-S;Voi/Y^.r~^C0\v

U&Ini j#kA0132、list_get_info ( list, property, out_value );返回列表属性的值51Testing软件测试网!Te!H7z:g,L
51Testing软件测试网.s4z ]dNR g ?
133、list_get_item ( list, item_num, out_value );返回列表选项的内容
&n(k-i&O(M&`p0
)R5]u3i!h'uG2\0134、list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标
P"?5?"XF0
b m0DQ5M7a Ab0135、list_get_item_info ( list, item, state, out_value );返回列表选项的状态
6X;za x-@j#H T051Testing软件测试网4kE I*@ y:Q(H
136、list_get_item_num ( list, item, out_num );返回列表选项的位置
(~b/sR1d051Testing软件测试网;D,s7X2S \*\F
137、list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值
5v$d{Hi@gm7O2F \0
PE8L-V'E+M0138、list_select_item ( list, item [,button  [, offset ] ]);选择一个列表选项
;a|N8S?]/i9J051Testing软件测试网8N#U"N.{I&^;BX
139、list_select_multi_items ( list, item_list [, mouse_button  [, offset ] ] );选择一个列表的多个选项
;|uJ?qHh#a051Testing软件测试网JC W#X8I-C7e)\A
140、list_select_range ( list, item1, item2 [, button  [, offset ] ]);选定一定范围内全部选项
1kev5{9j!Ef"@X*|051Testing软件测试网y u&Sa]*Ki
141、list_wait_info ( list, property, value, time );等待列表属性的值51Testing软件测试网#?&[rU+`Sw
51Testing软件测试网RI#OZ2N~2wq~
142、menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述51Testing软件测试网5X Z1e ~,\%u$G
51Testing软件测试网7Z:Q?iAR3D6s
143、menu_get_info ( menu, property, out_value );返回菜单属性的值
e G2J~8_s&n7r0
4jI Q}Zy0144、menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容
"K/n:R\ \0
{HA^f-W0145、menu_get_item_num ( menu, item, out_position );返回菜单选项的位置51Testing软件测试网zxe F3{X? ?
51Testing软件测试网2fMpT6A9UvE4oW
146、menu_select_item ( menu;item [ x,y ] );选择一个菜单选项
R%?7kp u+wJc051Testing软件测试网(Djye\x/s#W_
147、menu_wait_info ( menu, property, value, time );等待菜单属性的值51Testing软件测试网n |#cF\6ZcE

q:Y6p!~zw2t-F0148、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图
"S:T UyP:b5l$D0
&Kijl,\0149、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据
i_(OWy&|c)q }0
S'}7VA-X9cs0150、obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值51Testing软件测试网Iv[ S;pK

9R|$FFsl0151、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在对象里点击文本51Testing软件测试网'y`%Ic#r*Yb

*?}0S.X|i/zS!dw:C0152、obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象51Testing软件测试网X cDxD.b8R\ K

'EiEe"A f!H g0153、obj_drop ( target_object, x, y );拖动一个对象到目标对象51Testing软件测试网d#Uz7g/ht

+i%Yu*f&U]8T0154、obj_exists ( object [, time ] );检查对象是否显示在屏幕上51Testing软件测试网l\D5tB sX,P
51Testing软件测试网9rGi+x{+{9HI
155、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );在对象里返回字符串的位置
o-^ |*vnIp051Testing软件测试网4~"N+qn;S)[vY;f
156、obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述
-q/P!zv rC D_051Testing软件测试网f2g3p BwzKS
157、obj_get_info ( object, property, out_value );返回对象属性的值
Q,kd$v b0
EK j+gim:S0]0158、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本
0b p[vz |:Z051Testing软件测试网Q ZOBk:f AZ(w(u s
159、obj_highlight ( object [, flashes ] );高亮显示对象
MS.{KOQ051Testing软件测试网{'Q+J.C[-@_
160、obj_mouse_click ( object, x, y [, mouse_button ] );点击一个对象
|t/yi/z z }O051Testing软件测试网Y3ru)@ I c.O
161、obj_mouse_dbl_click ( object, x, y [, mouse_button ] );双击一个对象51Testing软件测试网KA3@!C&S LN:~q!i1@

@1k,S+Ru0162、obj_mouse_drag ( object, start_x, start_y, end_x, end_y [,mouse_button ] );在对象上拖动鼠标51Testing软件测试网z^2tN0i.x
51Testing软件测试网,z QV9d+n-nh N
163、obj_mouse_move ( object, x, y );在对象里移动鼠标指针
-}q5D/ta9e9Ey3Y0
8Jy&`Jl!D"I0164、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里移动鼠标到一个字符串
w RR(~"\;Y9x#ln/^)U051Testing软件测试网X efqI7C(Zh2V\
165、obj_type ( object, keyboard_input );用键盘输入对象
2? hwgu7z0
#G)il"ALV3Zu0166、obj_wait_bitmap ( object, bitmap, time [, x, y, width, height] );等待对象位图出现在屏幕51Testing软件测试网IOq(b,N6{b2f(l

+i5O,S:~$[%w!T,Y0167、obj_wait_info ( object, property, value, time );等待对象属性的值51Testing软件测试网2Z/N7Ig)n)GO
51Testing软件测试网u1fR-wa
168、scroll_check_info ( scroll, property, property_value );检查滚动条的属性值51Testing软件测试网;ejDZ-]

4~ w-p8}T cQ%B0169、scroll_check_pos ( scroll, position );检查滚动条的当前位置
D ]~H _,d+m DDsE0
h gK.W.sW'l1_w0170、scroll_drag ( scroll, orientation, position );滚动到指定位置51Testing软件测试网'j7x$sn5o}6oA
51Testing软件测试网#||ww5M.Oa.P$A.?
171、scroll_drag_from_min ( scroll, orientation, position );从最小值开始滚动51Testing软件测试网LS bvLh
51Testing软件测试网|bi V0hsVu
172、scroll_get_info ( scroll, property, out_value );返回滚动条的属性值
5\?| Vb6r(v(?OK0
!bH/a!a*Vh _/{0173、scroll_get_max ( scroll, orientation, out_max );返回滚动条的最大位置51Testing软件测试网6zG5z U xo
51Testing软件测试网;ady0TF;^AB
174、scroll_get_min ( scroll, orientation, out_min );返回滚动条的最小位置
`F FR#h7w+p;Z0
mD?If3[0175、scroll_get_selected ( slider, min_value, max_value );返回滚动条的最小和最大值51Testing软件测试网}^M`O
51Testing软件测试网,?0f]4?hkF$^
176、scroll_get_pos ( scroll, orientation, out_pos );返回滚动条当前位置
&n6E U!uN PZXm0
[%]pW;i&S(H[N0177、scroll_line ( scroll, orientation, [ +|- ] lines );滚动指定的几行
b#r \7y]cC0
xMc%Z1O1F+nz*Z%D D e0178、scroll_max ( scroll, orientation );设置滚动条到最大位置
}P[)nn[0
1|C+`;sR$UY0fT|0179、scroll_min ( scroll, orientation );设置滚动条到最小位置51Testing软件测试网0_Qug uG
51Testing软件测试网:J6[,^ d7M9|)x
180、scroll_page ( scroll, orientation, [+|-] pages );移动滚动条指定的页数
1Bj Cwq0]B/W051Testing软件测试网4A?;GEA p&{j
181、scroll_wait_info ( scroll, property, value, time );等待滚动条属性的值51Testing软件测试网n j7LNbO I

D%?td@2T0182、spin_get_info ( spin, property, out_value );返回旋转属性的值
"wq2WH6E051Testing软件测试网u3yh#OgD d
183、spin_get_pos ( spin, out_value );返回旋转对象的位置
/L ?sz'h4H"`(z051Testing软件测试网8|u!RnQ0JVf`
184、spin_get_range ( spin, out_min_pos, out_max_pos );返回旋转对象的最小与最大位置
J._(jLvtwlMtFp051Testing软件测试网R@4z*o1{b!r/W0Fh
185、spin_max ( spin [, index ] );设置旋转对象到最大值
KPh"X@g8d6?0
+G)Ui%R I7FSZ0186、spin_min ( spin [, index ] );设置旋转对象到最小值
2Ub1b%I2w0n9b051Testing软件测试网(]z Tp;ipw-{FM.VLR5S
187、spin_next ( spin [, index ] );设置旋转对象到下一个值51Testing软件测试网+E1I3pBJ S[F
51Testing软件测试网J,eZ&EjgV
188、spin_prev ( spin [, index ] ); 设置旋转对象到前一个值
s*k E6@'a@w&q0
)_rB{0n@$x0189、spin_set ( spin, item [, index ] );设置选择对象到一个选项值
U8raIm1}m$U+H0
D5R/S-W$tQ0190、spin_wait_info ( spin, property, value, time );等待旋转属性等于指定的值
7V EV Tg#`051Testing软件测试网6en6E k&{ \z:REg
191、static_check_info ( static, property, property_value );检查静态文本对象属性的值
!u3t%V K r#[a)\051Testing软件测试网N q3Q l'd3b
192、static_check_text ( static, text, case_sensitive );检查静态文本对象的内容
7f6Bpp&Mcb051Testing软件测试网daom4P
193、static_get_info ( static, property, out_value );返回静态文本对象属性的值51Testing软件测试网k d#k2@4xm(x)ak2^h

]g-\+t No };qQ!\0194、static_get_text ( static, out_string );返回静态文本对象的内容
q,Rm/LF2q&J0
"G.?DVwg1Z5?0195、static_wait_info ( static, property, value, time );等待静态文本对象的属性值
^^t!ON+W4d6e0
]9gGki0196、statusbar_get_field_num ( statusbar, field, field_index );返回状态栏区域的数字索引51Testing软件测试网u3iP:Y `,`!BS
51Testing软件测试网~*lVCB8f^NE
197、statusbar_get_info ( statusbar, property, out_value );返回状态栏的属性值
ux0dQv M]%fc)Z;k051Testing软件测试网p1q%N-Qc"aZ2}b
198、statusbar_get_text ( statusbar, field_index, out_text );读取状态栏区域的文本
*Zb`l^;m/qg0
&fg:{~:a7~9c{AT0199、statusbar_wait_info ( statusbar, property, value, time );等待状态栏属性的值51Testing软件测试网k3n~ f4T.]V5W
51Testing软件测试网2mtjP v'jP
200、tab_get_info ( tab, property, out_value );返回tab属性的值
 
101、GUI_save ( file_name );保存guimap文件
:{ms I*T? S051Testing软件测试网rG ofjz
102、GUI_save_as ( current_file_name, new_file_name );另存为guimap文件
Y cQ%o8X&krJ1]051Testing软件测试网 {OR#z*E
103、GUI_set_window ( window_name );设置guimap里目标识别范围51Testing软件测试网D;U-cb!]N.Jc
51Testing软件测试网 DE`Q-N"o8o$~F
104、GUI_unload ( file );卸载guimap文件
!q J"Tq_3Dq#M~{^051Testing软件测试网"y%\W)xG%w-l2o*f2z
105、GUI_unload_all ( )卸载全部的guimap文件51Testing软件测试网%d |I-S0tD9A

!Uhl/i%r7P-@)a}I0106、icon_move ( icon, x, y );移动图标到新位置
5F+t yN,Iy8z-Z0
(Ij1kAl"G4j0107、icon_select ( icon );点击鼠标选择图标51Testing软件测试网.I|?ien)H T$i
51Testing软件测试网'tw4u,E2~&Q
108、java_activate_method( object, method, retval [ , param1, ... param8 ] );调用请求的java方法51Testing软件测试网M9Bm[9VECD7H"S

#m'zD"T5Y Q o$R0109、java_fire_event ( object , class [ , constructor_param1,..., constructor_paramX ] );模拟一个java对象的事件
O o#D6NF:U%s051Testing软件测试网qG)x E)}`9_!E J*qs
110、jco_create ( object , jco , class [ , constructor_param1 , ... , constructor_param8 ] )创建一个现有java对象的上下文java对象51Testing软件测试网yvX7j&k kYf/i

0V+` s'l'X2~[$iEH0111、jco_free ( object_name );释放内存里指定的jco对象51Testing软件测试网x R,E+?O5tOT5K

qp9Cl:^-q)b0112、jco_free_all();释放全部内存里的jco对象
-p ?\3]Pb-y051Testing软件测试网N R5BT$tU$jl
113、jdc_aut_connect ( in_timeout );建立一个winrunner和java应用程序的连接51Testing软件测试网$JS7J9z(D"SG

7i(p2v~7K-q&]V0114、method_wizard ( [ object ] );打开java方法的向导51Testing软件测试网&LlT aJ#^e.m

1^L pFdG+Y0115、obj_key_type ( object, keyboard_input );向java组件发送事件
+iO1BS%U0
,~$Y:W&L.G9H4m0116、obj_set_info ( object, property, value );设置对象属性的值
z#kB L.h b)f%|+B051Testing软件测试网6t t7Bwi([
117、popup_select_item ( "menu component;menu item" );从java活动菜单选择一个选项51Testing软件测试网H+kDETS

6zt~jvH6b^0118、list_activate_item ( list, item [, offset ] );激活列表里某一项51Testing软件测试网2S"ep(Hh[z
51Testing软件测试网)_ J;~H#SF n SF M
119、list_check_info ( list, property, property_value );检查列表属性的值51Testing软件测试网*Q$kJ} K3bw$v#g
51Testing软件测试网K(rq1T/`{"l~
120、list_check_item ( list, item_num, item_content );检查列表某项的内容51Testing软件测试网xe/Q}&Z%m:xZ:s
51Testing软件测试网 W(s;RY%~0F
121、list_check_selected ( list, selected_items );检查选中的那项
J$b3P*q Io!ExxP0
+I\6w[#tl-d'Q0122、list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项
L3i0g;oM%l&m C-nXZX051Testing软件测试网:uC r6iW_
123、list_deselect_item ( list, item [, mouse_button  [, offset ]] );取消选定列表的某一项51Testing软件测试网!Pr+qK |O/]g)D

2k5e{Yt6Yq0124、list_deselect_range ( list, item1, item2 [, offset ] );取消选定2个选项
h5Bop)l A0y0
:JO/D@&~6?1[ {8k#X0125、list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项51Testing软件测试网L!x2gx[ M8P.wL

Jx$b.C*W2V?n|2I(xQX0126、list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项51Testing软件测试网!T d `\)O{kR1e5RJ'K/{Jw
51Testing软件测试网o&@X K6U#P)TS
127、list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项
0EvM vY%G0MM051Testing软件测试网 J'Z~kd1_.F
128、list_extend_item ( list, item [, button  [, offset ] ] );往指定的列表里添加一个选项
tD4s&@H7vn0
y%IE3nD0129、list_extend_multi_items ( list, item_list, [, mouse_button  [, offset ] ] );添加多个选项
WHkw_!K0
aznYNE E {0130、list_extend_range ( list, item1, item2 [, button  [, offset ] ] );添加一定范围的选项51Testing软件测试网I D f5^jQ;sMz
51Testing软件测试网!V]&okj,u ]
131、list_get_checked_items ( list, items, number );返回标记的选项的个数和值51Testing软件测试网3rf6g,O]9s

k-_k)O!IH;ma0132、list_get_info ( list, property, out_value );返回列表属性的值51Testing软件测试网L b)pa.x3T4^ Y3H$lN z
51Testing软件测试网qp"}"Kh9i|/v
133、list_get_item ( list, item_num, out_value );返回列表选项的内容
@{6_qXk&t2U0
Vux l+Bbz0134、list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标
D^m/E|X5v,q051Testing软件测试网#dR;h6Y$b4d
135、list_get_item_info ( list, item, state, out_value );返回列表选项的状态51Testing软件测试网sWLav1fW

sK8w!x#KQ FW R0136、list_get_item_num ( list, item, out_num );返回列表选项的位置51Testing软件测试网l8u.F^3_
51Testing软件测试网 IU!E1jh"zN8HT
137、list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值51Testing软件测试网K,}] |u0A"z
51Testing软件测试网6nqeGQ/L'W
138、list_select_item ( list, item [,button  [, offset ] ]);选择一个列表选项
r9Cli,k6M Vt^&K0
B/VU.g} Y0139、list_select_multi_items ( list, item_list [, mouse_button  [, offset ] ] );选择一个列表的多个选项51Testing软件测试网8CMbt,DE
51Testing软件测试网 UX OgX4D2PF
140、list_select_range ( list, item1, item2 [, button  [, offset ] ]);选定一定范围内全部选项
2t;D?S-H-^C']0
`2ZO x M0141、list_wait_info ( list, property, value, time );等待列表属性的值51Testing软件测试网w B/N fE*s'yS
51Testing软件测试网 FC\)vfLR
142、menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述51Testing软件测试网-BP$T%sye!B'F.{ o
51Testing软件测试网(p vm.y9} Vf W
143、menu_get_info ( menu, property, out_value );返回菜单属性的值51Testing软件测试网;a&L/fe?r-uJ
51Testing软件测试网oz\{u H
144、menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容
9Iw9dL?0
#g7fpG'l6AD(SX0145、menu_get_item_num ( menu, item, out_position );返回菜单选项的位置51Testing软件测试网0`$M*V:W.T3V

;c'ez3IHPi H d&z a0146、menu_select_item ( menu;item [ x,y ] );选择一个菜单选项51Testing软件测试网 `%T"~#L,o,i6m

P1FV N5pO+R-s"jXLe0147、menu_wait_info ( menu, property, value, time );等待菜单属性的值51Testing软件测试网/A YFc y9\wi*@7z
51Testing软件测试网 \/{7V f!t'aB
148、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图
5J1n&Qf4CU9wRt*|X}051Testing软件测试网Y0F!?nUjtI
149、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据51Testing软件测试网.} X3c0JgxN
51Testing软件测试网(?[ Y,Gfd
150、obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值
\ D!c&|6Re!O0
q#p0SG3RWlq0151、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在对象里点击文本
8|]}$Z|d[051Testing软件测试网^,[*d4F8Z@6c
152、obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象
1v5g'j9Xs!L,i k:Zbt051Testing软件测试网 f lPV;p[(S
153、obj_drop ( target_object, x, y );拖动一个对象到目标对象
o#L:ZO;y0
2nk/cB e;aKR0154、obj_exists ( object [, time ] );检查对象是否显示在屏幕上51Testing软件测试网DsP|+x
51Testing软件测试网1g9?i8D yqf
155、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );在对象里返回字符串的位置
u!J-~:_jsparg$V0
g+WU4_.Y(wW ~0156、obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述
B*P0^"tX9O s*sH[1Q051Testing软件测试网 G\3Qst'_ih"K
157、obj_get_info ( object, property, out_value );返回对象属性的值51Testing软件测试网v"mk"fgi0hM)p
51Testing软件测试网C$da2Ka!z
158、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本
{} I8GQ#nU5D8m9m0
W)q;AkC ~t2Dj0159、obj_highlight ( object [, flashes ] );高亮显示对象51Testing软件测试网g3woy^5r qE7p

:}s@o,lN,J8?0160、obj_mouse_click ( object, x, y [, mouse_button ] );点击一个对象51Testing软件测试网,I {(di1W

x_(e3y#OcA0161、obj_mouse_dbl_click ( object, x, y [, mouse_button ] );双击一个对象51Testing软件测试网hw0\/rk6XE
51Testing软件测试网)]? s3Z4L9^g
162、obj_mouse_drag ( object, start_x, start_y, end_x, end_y [,mouse_button ] );在对象上拖动鼠标51Testing软件测试网 A(PL1Y6?G@

1K#A6s](g8Q!?0163、obj_mouse_move ( object, x, y );在对象里移动鼠标指针
I-T)Zsq8A051Testing软件测试网V!Z1b$_x k0| k K{ o
164、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里移动鼠标到一个字符串51Testing软件测试网"qf^M(`
51Testing软件测试网!d"yA ]zhn0kp'q
165、obj_type ( object, keyboard_input );用键盘输入对象
0q/I'UY5j&{o0
!zyHpy0166、obj_wait_bitmap ( object, bitmap, time [, x, y, width, height] );等待对象位图出现在屏幕51Testing软件测试网ye)PV#u-Z VG }

3]jS @,|s8s O5z5L0167、obj_wait_info ( object, property, value, time );等待对象属性的值
A`f*\$c1` @f0
"s-Up r[,a0168、scroll_check_info ( scroll, property, property_value );检查滚动条的属性值51Testing软件测试网N2T1[iZ;e&S:P
51Testing软件测试网u zH)cSQ
169、scroll_check_pos ( scroll, position );检查滚动条的当前位置51Testing软件测试网_7hd0N1na3ix o

&t6q9o2A^/Y0170、scroll_drag ( scroll, orientation, position );滚动到指定位置
6X+s4Fa z051Testing软件测试网%kR&c(Y Rr0c'i
171、scroll_drag_from_min ( scroll, orientation, position );从最小值开始滚动
B5p%Fx%AM0
3m0M$k$LU q2k0172、scroll_get_info ( scroll, property, out_value );返回滚动条的属性值51Testing软件测试网m#O c[3Bj
51Testing软件测试网#M Xbc%X6h(zl)\
173、scroll_get_max ( scroll, orientation, out_max );返回滚动条的最大位置
S \x(`b:r051Testing软件测试网 Rv K\h0hs
174、scroll_get_min ( scroll, orientation, out_min );返回滚动条的最小位置
$RC:b1t6`1{0
0`3M ^rq2FV0Rx?,K0175、scroll_get_selected ( slider, min_value, max_value );返回滚动条的最小和最大值
;DS%F D(wl N051Testing软件测试网(v-gXxI*X^%j0| E
176、scroll_get_pos ( scroll, orientation, out_pos );返回滚动条当前位置
%y5i p DW9N {@6eI0
sAWT-p_G}0177、scroll_line ( scroll, orientation, [ +|- ] lines );滚动指定的几行
l_+?&XN @0
,q\(Y#p+gb0178、scroll_max ( scroll, orientation );设置滚动条到最大位置
5z_)Z ?7R9K,[6GB0
$]s4hU6oT9e et0179、scroll_min ( scroll, orientation );设置滚动条到最小位置
1T%}Gu:a/d0
!CE.vpr h0180、scroll_page ( scroll, orientation, [+|-] pages );移动滚动条指定的页数
M'_/ND ~;_ nS,{0
EjA$_O0181、scroll_wait_info ( scroll, property, value, time );等待滚动条属性的值51Testing软件测试网$NTU1y&j
51Testing软件测试网%u"y2['q/@mM&j
182、spin_get_info ( spin, property, out_value );返回旋转属性的值51Testing软件测试网/NCV8\mPgT'M

5zF)i2x3E-xg0183、spin_get_pos ( spin, out_value );返回旋转对象的位置
+L5}#z9G*z051Testing软件测试网 c$D oY&D0r+z
184、spin_get_range ( spin, out_min_pos, out_max_pos );返回旋转对象的最小与最大位置
!d _4vY1D0
,C8pf*q?9~ UL0185、spin_max ( spin [, index ] );设置旋转对象到最大值51Testing软件测试网D6aU"D$ve [$G
51Testing软件测试网z&iL*?o`{^6pH
186、spin_min ( spin [, index ] );设置旋转对象到最小值51Testing软件测试网v${.L-hD{;Y8|+D
51Testing软件测试网0Trt'c#X,W ^5Q_
187、spin_next ( spin [, index ] );设置旋转对象到下一个值
5{0A nfR051Testing软件测试网1M$BV\CNJ3]5D
188、spin_prev ( spin [, index ] ); 设置旋转对象到前一个值51Testing软件测试网I!ru0e o#Iio!U#w/cN

!}1\B!Z7_kk0189、spin_set ( spin, item [, index ] );设置选择对象到一个选项值
\@%r&P s8T"J051Testing软件测试网{+_LMl|u{
190、spin_wait_info ( spin, property, value, time );等待旋转属性等于指定的值51Testing软件测试网C6n9B!C_\8AV

:t\,fj6L9AYg X0191、static_check_info ( static, property, property_value );检查静态文本对象属性的值51Testing软件测试网&KRRV@-jH}] @

q5b P-n}T9NE0192、static_check_text ( static, text, case_sensitive );检查静态文本对象的内容51Testing软件测试网u[/Y g%Hk

V L2@-Z#]!@w!d%h0193、static_get_info ( static, property, out_value );返回静态文本对象属性的值51Testing软件测试网%FS'd/BqiG?
51Testing软件测试网 r!f$milpz
194、static_get_text ( static, out_string );返回静态文本对象的内容51Testing软件测试网!KW A)`nI.KY#Q
51Testing软件测试网[5V*rwy"b@ Os
195、static_wait_info ( static, property, value, time );等待静态文本对象的属性值51Testing软件测试网%an|jGy,dG(Z
51Testing软件测试网O7W]+A d F5F
196、statusbar_get_field_num ( statusbar, field, field_index );返回状态栏区域的数字索引51Testing软件测试网E/b k4s4wFM

Az2^{c"c$x$l;B0197、statusbar_get_info ( statusbar, property, out_value );返回状态栏的属性值51Testing软件测试网*~b$cz]%q5Sf/FE

O3{8j1Dq*~-H|0198、statusbar_get_text ( statusbar, field_index, out_text );读取状态栏区域的文本
)gR$W? ~C/YPA051Testing软件测试网'w3qS.DH&{'xx yk
199、statusbar_wait_info ( statusbar, property, value, time );等待状态栏属性的值
1MN*R$Mhy H051Testing软件测试网 ~@F-j/D g.b%?0G$F
200、tab_get_info ( tab, property, out_value );返回tab属性的值
 
201、tab_get_item ( tab, item_num, out_item );返回tab选项的名称
2\T5u@&{0
?5^!Ca@/W5kv6D9l0202、tab_get_selected ( tab, out_item, out_num );返回选定的tab选项的名称和个数
R-q&_1@){ Gf}$_D9O0
6a(g6Yb_0203、tab_select_item ( tab, item );选择tab选项51Testing软件测试网wG^6]*S

;v4Ao%G"a O0204、tab_wait_info ( tab, property, value, time );等待tab属性的值51Testing软件测试网HGw3f#^"y*|"X)cc9f
51Testing软件测试网5PgD$iE(F
205、tbl_activate_cell ( table, row, column );双击表里某个单元
!zl8T.e7Cd0
Q$A#Rp.K0206、tbl_activate_col ( table, column );双击表里某列51Testing软件测试网+Oo0c"du}
51Testing软件测试网"P H{!dX x@6f
207、tbl_activate_header ( table, column );双击表里某列标题
?"mdT'd0
D:{8k1?&}4hd)UF0208、tbl_activate_row ( table, row );双击表里某行51Testing软件测试网DT Z%A&vfl1X'W

"Eok oB;]0209、tbl_deselect_col ( table, column );取消选择表的某列51Testing软件测试网#xh%d PD nNkP/]

i)I]%[Z!J0210、tbl_deselect_cols_range ( table, from_column, to_column );取消选择表里某几列51Testing软件测试网 }0bd:BL A J
51Testing软件测试网+tYX.n2TB'W
211、tbl_deselect_row ( table, row );取消选择表里某行
~ ?va6E o0
z~:?3D,o[0212、tbl_deselect_rows_range ( table, from_row, to_row );取消选择表里某几行
7Y7pG%~(gC051Testing软件测试网#R8gE7K:L R
213、tbl_extend_col ( table, column );往表里当前列加一列
u!M@;o$rU;c%l051Testing软件测试网W/L#x%UF.cp
214、tbl_extend_cols_range ( table, from_column, to_column );往表里当前列加多列51Testing软件测试网5aMo s1T:N
51Testing软件测试网 @cpZDh3o
215、tbl_extend_row ( table, row );往表里当前行前加一行51Testing软件测试网'F'A^3WB9f | _ v
51Testing软件测试网q~w6H(G,o3^E%O
216、tbl_extend_rows_range ( table, from_row, to_row );往表里当前行加多行
QS_.d?+B051Testing软件测试网]6`w xfF8Y
217、tbl_get_cell_data ( table, row, column, out_text );返回表里指定单元的内容
Q'G+a+i0o7g U"E0
p Qq]be C0y5B#UG0218、tbl_get_cols_count ( table, out_cols_count );返回表的列数
W/N)c&j-]dnI'GP0
?OSy VUq` hT0219、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题名称
1e;C'rP_6xGrV051Testing软件测试网7\?j#s^|
220、tbl_get_column_names ( table, out_col_names, out_cols_count );返回表里列的名称和个数
f%u3J*a2O%H,Z-g"LJ051Testing软件测试网4n _|2g(~ V"z:f:~}
221、tbl_get_rows_count ( table, out_rows_count );返回表的行数
@'ubrz0
Xv2Z6h}\#J0222、tbl_get_selected_cell ( table, out_row, out_column );返回表里焦点所在单元51Testing软件测试网?!PK YYAB4I
51Testing软件测试网0q8U:oS0Pd O3` h
223、tbl_get_selected_row ( table, row );返回当前焦点所在行51Testing软件测试网;_/m&W tI"d
51Testing软件测试网O,B [["~A%I"U
224、tbl_select_cells_range ( table, start_row, start_col, end_row, end_col );在表里点击选定的几个单元51Testing软件测试网(R.L*?'m x
51Testing软件测试网a~/r"v6t2q%k \.M
225、tbl_select_col_header ( table, column );选定指定的列的标题51Testing软件测试网x(Lpmrc6C
51Testing软件测试网9n#Y.d.Lt/SM%F/MT"u
226、tbl_select_cols_range ( table, from_column, to_column );在表里选定指定的几列
+~U`bX(k7Q_8m0
nP;q jV~0227、tbl_select_rows_range ( table, from_row, to_row );在表里选定指定的几行51Testing软件测试网(vc:d @Kk6yAu+B w a
51Testing软件测试网$G0?wz7nB
228、tbl_set_cell_data ( table, row, column, data );设置表里某单元的内容
s9Y;Zj(k N0A%l0
L7M8E'c/bA5h8x0229、tbl_set_cell_focus ( table, row, column );设置表里焦点到某个单元51Testing软件测试网_r#gY+VQi\
51Testing软件测试网Ia&Se1j!ol'v
230、tbl_set_selected_cell ( table, row, column );在表里选定指定的单元51Testing软件测试网}gp&U;`7J1Eo6eF
51Testing软件测试网"BeSk P)F8lB5i
231、tbl_set_selected_col ( table, column );在表里选定指定的列51Testing软件测试网 g(i Ff g-IWi1m:r

E x&Gw8a*@6z0232、tbl_set_selected_row ( table, row );在表里选定指定的行51Testing软件测试网Ejr;Dlheb

v{9e1uFrq9q U$} wi0233、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );点击一个对象的文本
z2g9z LyD%@k#E}j0
5i?3@o!w0234、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );返回一个对象字符串的位置51Testing软件测试网0O"w/]+kdM)~,C&U.g
51Testing软件测试网 }"enH$v7T%V(|
235、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );从对象里读取文本
.tk/Y c"F1z051Testing软件测试网 E!~IUmIis
236、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里把鼠标焦点落在字符串51Testing软件测试网B,T v6nN%e-Suh ]
51Testing软件测试网5cdZhKi
237、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );在一个窗口返回字符串位置51Testing软件测试网TivlAIrJ

7c^){8]E-f8Q{:W#zkj2E5@0238、win_click_on_text (window, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在窗口搜索文本51Testing软件测试网r6P5^)Ft.n:F7any@-i
51Testing软件测试网+T:L4^#x-K7k|A%H
239、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定的区域读取文本51Testing软件测试网!apCs8o
51Testing软件测试网'G;\)Vr/q`Q
240、win_move_locator_text ( window, string [ ,search_area  [ ,string_def ] ] );在窗口里把鼠标焦点落在字符串51Testing软件测试网cpds._(Ope:Q"k
51Testing软件测试网?0y+Q-qHbA1fP
241、toolbar_button_press ( toolbar, button, mouse_button );点击工具栏按钮
(Bt BGI-eaW0
x j0D7RR0242、toolbar_get_button ( toolbar, button_num, out_text  );返回工具栏按钮名称
]l:h f p051Testing软件测试网+L(H[(s w1gm$c
243、toolbar_get_button_info ( toolbar, button, property, out_value );返回工具栏按钮属性值
@P'g*?s V`6@8M051Testing软件测试网aynz4\)b]fNY
244、toolbar_get_button_num ( toolbar, button, out_num );返回工具栏按钮位置51Testing软件测试网"jJV.y%f3U
51Testing软件测试网?!_ L&Wvt:A cu!N
245、toolbar_get_buttons_count ( toolbar, out_num );返回工具栏按钮的个数51Testing软件测试网+x4z@&SJ&kTQ s
51Testing软件测试网:{)Rf ikh/U
246、toolbar_select_item ( toolbar, toolbar_item_chain [, mouse_button ] );选择类菜单工具栏的某项
%p8H^C rVX;{]0
$] t6G+Us^0247、web_browser_invoke ( browser, site );调用ie打开某个站点51Testing软件测试网4RWz Y*f6O4F Ym
51Testing软件测试网0~r*}&~Q:|
248、web_cursor_to_image ( image, x, y );移动鼠标指针到某个图片
s KI6m W051Testing软件测试网*cYo.I.JF R1@8x;Tg
249、web_cursor_to_label ( label, x, y );移动鼠标指针到某个标签51Testing软件测试网1UT U X,PsD
51Testing软件测试网u p;`e Azr
250、web_cursor_to_link ( link, x, y );移动鼠标指针到某个链接51Testing软件测试网 a5E.PIq |*Ml/F

wK n9_e o&be0251、web_cursor_to_obj ( object, x, y );移动鼠标指针到某个对象
c&ls:I$U0V(|r$PM051Testing软件测试网mp,{WTHDyD
252、web_event ( object, event_name [, x , y ] );在指定对象运行一个事件
G%w}4H_ NY'b051Testing软件测试网)l[E?`2?i R e)h$K
253、web_file_browse ( object );点击浏览按钮51Testing软件测试网lJJ8Uu6l

AV&C3av k)`0254、web_file_set ( object, value );在文件类型的对象设置文本值51Testing软件测试网8f0C)Jv7{
51Testing软件测试网2TylkWW5sX
255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回帧内文本位置51Testing软件测试网D/f(p KXfLe_
51Testing软件测试网3M/\P.t BW
256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回帧内文本的内容51Testing软件测试网.{dYgNt6qX.N!n

)o0g ADpU/\~0257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回帧内标准表达式的事件个数51Testing软件测试网 n MN:sH Wv3I [

Y-WP^[z2HE.C&V0j0258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );检查帧内指定的文本字符串是否存在51Testing软件测试网AY9]t%L

hG[0`u\l0259、web_get_run_event_mode ( out_mode );返回当前的运行模式51Testing软件测试网,FK:Z|*b
51Testing软件测试网c{,x}7H ro
260、web_get_timeout ( out_timeout );返回winrunner响应web的最大等待时间
F'C%Q@(GlY a4d o0
y\.[DxG0z0bR Y.d0261、web_image_click ( image, x, y );点击一个图片链接或图片51Testing软件测试网?&tgY$k6{
51Testing软件测试网B4OEGSD.v {
262、web_label_click ( label );点击指定的标签51Testing软件测试网(q+|zcQ

A(r0gi6~jB[d0263、web_link_click ( link );点击朝文本链接51Testing软件测试网g q1_R?:G

#U2?%H7C&H)_ t0264、web_link_valid ( name, valid );检查url链接是否有效51Testing软件测试网+x wm JA\:Z3k4[

D N D?7WK\0G0265、web_obj_get_child_item ( object, table_row, table_column, object_type, index, out_object );返回对象的子对象的物理描述
!eF&H H$O7y~A051Testing软件测试网wH ]5YuO ?]
266、web_obj_get_child_item_count ( object, table_row, table_column, object_type, object_count );返回对象的子对象的个数
;w[o3GR)X i1Y051Testing软件测试网h _e(GX
267、web_obj_get_info ( object, property_name, property_value );返回对象属性的值51Testing软件测试网Pz[-^ gbi~

l C;L#lg:iS0268、web_obj_get_text ( object, table_row, table_column, out_text [, text_before, text_after, index] );返回对象的文本字符串
1LFQIe+T051Testing软件测试网Wo }NR
269、web_obj_get_text_count ( object, table_row, table_column, regex_text_to_find, count ); 返回对象内标准表达式的事件个数51Testing软件测试网 KtK'G/Tt:C

7l~p8W6u Ep0270、web_obj_text_exists ( object, table_row, table_column, text_to_find [, text_before, text_after] );在对象里如果该文本存在,返回该文本
w^#Lih3m)kC$]0
li^ U,F4p"],o0271、web_refresh ( frame );winrunner重新连接指定的帧51Testing软件测试网:X{"cw#G SMR
51Testing软件测试网`l5P3B.O\u
272、web_restore_event_default ( );重新设置全部事件为默认值
zA2\'i4Y"t%h ZA:As0
"j4c"GH*FBV*OZ p0273、web_set_event ( class, event_name, event_type, event_status );设置事件状态
6T9ga^}0
QCKdU7A0274、web_set_run_event_mode ( mode );设置事件运行模式
v:P'Rs.C0
;a G _gG!x3ClWT0275、web_set_timeout ( timeout );设置winrunner响应web的最大时间51Testing软件测试网,N(?${Q-I%Id5H

?"naaK0276、web_set_tooltip_color ( fg_color, bg_color );设置webtest工具条的颜色51Testing软件测试网v`4Ty9N[4T \%{'{
51Testing软件测试网6Y R$}Y1XoA1I
277、web_sync ( timeout );等待帧的导航完成
xu_(zED^}0
*rs9{B8p-hHp0278、web_tbl_get_cell_data ( table, row, column, starting_pos, out_text, out_actual_text_length );返回web表内指定单元的内容,开始于指定的字符
O1s D'jLWR&Qe O0
~|3\[(]-| _|D0279、web_url_valid ( URL, valid );检查url是否有效51Testing软件测试网su-R(]/W y

/M1i0?'m9gV.B0280、tbl_get_cell_data ( table, row, column, out_text );返回table里指定单元的内容(加载webtest)51Testing软件测试网$o-\5F!B!eb'f

Y Jk:U_^!D+T'D0281、tbl_get_cols_count ( table, out_cols_count );返回表的列数(加载webtest)
o!w|3DZt#CM0
+O0j1t A}4B0282、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题的名称(加载webtest)51Testing软件测试网5_ed'Y A&J,^1mD$v]

3om.bd"{ G0283、tbl_get_rows_count ( table, out_rows_count );返回表的行数(加载webtest)51Testing软件测试网SRt!sJ'x n)ub8Q

V \ w%qZ5m.Ux0284、web_password_encrypt ( password );将web页面的密码加密51Testing软件测试网(i4T ` M*dm

*{WS/i Q5l0285、set_window ( window [,time] );激活窗口并确定等待时间51Testing软件测试网w*t vY7V

"|*l-i2fO @ W0286、win_activate ( window );激活窗口
U7e7z-]U5B051Testing软件测试网h%dy!j,h
287、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口的位图
6^wn mg*|!`051Testing软件测试网ln@J/XI+~3_
288、win_check_gui ( window, checklist, expected_results_file, time );比较窗口的gui数据51Testing软件测试网5D'z.?(M1p5x,O
51Testing软件测试网"oZ1N&kQ]R+Iv
289、win_check_info ( window, property, property_value [, timeout ] );检查被请求的窗口属性51Testing软件测试网tP#i(g_Hv

*\#_6DJk-p!D0290、win_click_help ( window );在窗口点击帮助按钮51Testing软件测试网C:gF;kn%G#g

)h1r v G(Fs0291、win_click_on_text (window, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在窗口搜索文本51Testing软件测试网uq_"W1] nP

2[FVq#L9SH I0292、win_close ( window );关闭窗口51Testing软件测试网.})Eu`kxb

Cp,{8d X1g:k0293、win_drag (source_window, x, y [, mouse_button ] );从源窗口拖动对象
Bk~X(?\ng XW051Testing软件测试网O$e^Z@Ej
294、win_drop ( target_window, x, y  );拖动对象到目标窗口51Testing软件测试网_6G!iy2a)iS.V_
51Testing软件测试网+L'XssZD J*n8k
295、win_exists ( window [, time ] );检查窗口是否显示在屏幕上
']pJot0
FlZ x'c\%l'D0296、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );返回窗口里字符串的位置
x2t#Y|gJ051Testing软件测试网nh.lqz~
297、win_get_desc ( window, obligatory, optional, selector, out_desc );返回窗口的物理描述
v3r6a] Wo \-x051Testing软件测试网&Z+LQU.vA |
298、win_get_info ( window, property, out_value );返回窗口属性的值
9Uq'd8Q|m"](G c051Testing软件测试网$SI?8f$vV
299、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定区域读取文本51Testing软件测试网0q z(o/MT'u p'y p
51Testing软件测试网.k8W9G9sM3[t2q2k,I
300、win_highlight ( window [, flashes ] );高亮显示窗口
 
301、win_max ( window );最大化窗口到全屏
/wE1I OU8CRsHv0
Uk_v0o3m V0302、最小化窗口为一个图标
!A XQA.e\0H0
+g Gt}3~0303、win_mouse_click ( window, x, y [, mouse_button  [, modifier] ] );在窗口点击鼠标
6F6M1SO"k9K)j#MlM0
G ^a.^7g0304、win_mouse_dbl_click ( window, x, y [, mouse_button  [, modifier ] ] );在窗口双击鼠标
6C,hx2vbx(Fb gJ0
js4|%h&SyT_f0305、win_mouse_drag ( window, start_x, start_y, end_x, end_y [, mouse_button ] );在窗口做鼠标拖动操作51Testing软件测试网Gv5C'RT+J6uHa
51Testing软件测试网.Jd.H!z$VR
306、win_mouse_move ( window, x, y );移动鼠标焦点到指定的位置51Testing软件测试网Y.L:f9N,[a5J*n8t0?
51Testing软件测试网!x&F)R^9C-Ot
307、win_move ( window, x, y );移动窗口到一个绝对位置
i:f%P5XvE @ Y1j051Testing软件测试网:HROS$GBa
308、win_move_locator_text ( window, string [ ,search_area  [ ,string_def ] ] );移动鼠标焦点到窗口的某个字符串
|+jnM(gv;b*h,W7op0
uX!X:S R9p i9g@0309、win_open ( window );打开应用程序窗口51Testing软件测试网B:K!^? g

M@?wg2x s*U)T0310、win_resize ( window, width, height );调整窗口大小51Testing软件测试网Df/u:wl
51Testing软件测试网!@_y.jX/`
311、win_restore ( window );恢复窗口从前的大小51Testing软件测试网6aaw6q c N.t

{X%hGsk0312、win_type ( window, keyboard_input );用键盘输入窗口51Testing软件测试网5i])m!y|Q:BLEq
51Testing软件测试网+K?3R g3[2L].mW
313、win_wait_bitmap ( window, bitmap, time [, x, y, width, height] );等待窗口位图
9H^G/C$X0
7RF t#} |+Qi+C0314、win_wait_info ( window, property, value, time );等待窗口属性值
v rohYA/T0
6}3w1@m4? J.d0315、atan2 ( y, x );返回y/x(正切)的弧度
%?f'o\u(p^;|051Testing软件测试网;t.c'_w^3C/PNNf
316、cos ( x );返回余弦值51Testing软件测试网G/I%d$}%c5qn6M$u
51Testing软件测试网TRGbU
317、exp ( x );返回e的指数值51Testing软件测试网BH8J \I0w Q%y\ i

^a/Z qL&R2sK0318、int ( x );返回实数的整数部分
4A(D2U z1q9pE6f(?M0
w9ayeS&t0Yr0319、log ( x );返回自然对数51Testing软件测试网 f#C7O/Ce&so
51Testing软件测试网%Y wX2_L1{
320、sin ( x );返回正弦值51Testing软件测试网*q5AS _$p6G\^

&Z}W Y ph+UVNFF0321、sqrt ( x );返回平方根值51Testing软件测试网1}+@5yK~wa
51Testing软件测试网y!f:tf#sQ
322、delete array [ subscrīpt ];删除数组里某个元素
mC k ]*Ny1ZPHp\v051Testing软件测试网0J/A${[({D({v
323、split ( string, array [ , field_separators ] );将输入分成区域保存在数组里
lq NBH*A v$j+E#K#D051Testing软件测试网oZ"]/Cl o#T
324、call test_name ( [ parameter1, parameter2, ... parametern ] );调用其他测试脚本
{{bm)r/H(qV0
Yug"_ _w1]8A!qc0325、call_chain_get_attr ( property, level, out_value );返回调用链里测试或函数的信息51Testing软件测试网~5p P Q0[J

t)Sk^ wjA d0326、call_chain_get_depth ( );返回调用链选项的个数51Testing软件测试网UE(?^)x w$U

fq5HS%Bw^;k_ X/q0327、call_close test_name ( [ parameter1, parameter2, ... parametern ] );调用测试脚本,完成时关闭测试51Testing软件测试网#WO ].p ~
51Testing软件测试网~-ZaDK&Xx7Yn1J
328、call_ex ( Astra_test_path );从winrunner里调用Astra QuickTest测试51Testing软件测试网.F {$w T$n0t#g1K5n

$|)_1q4oq ~I0329、return [ expression ];返回测试或函数的结果表达式51Testing软件测试网 w0kT4|2E5Sx'~

!d7TM]ml;z0330、texit ( [ expression ] );停止执行当前的测试
geF"ffFa0
,tr*b3[$s/p5W:z4m$W6O0331、treturn [ ( expression ) ];停止调用测试返回控制调用测试
3onM0K2yF.PQ051Testing软件测试网6u? m"S6u:B8|q
332、load ( module_name [,1/0 [,1/0 ] ] );载入一个编译过的模块
u^L lz9_^-K051Testing软件测试网BeO L"j0ga
333、reload ( module_name [,1|0 [,1|0] ]);删除编译过的模块并重新载入内存
%vG2Y:H't4v,R0z051Testing软件测试网xgo@$H9K(K,D%^)S
334、unload ( [ module | test [ , function_name ] ] );从内存里删除编译模块51Testing软件测试网6L0Dh? ck
51Testing软件测试网#U&~1m^3?;L(m9T
335、define_object_exception (recovery_scenario_name, function, window, object, property  [ , value ] );对一个gui对象异常事件定义简单的观察场景
T]8TRd$a@0
.`[@)y$O0336、define_popup_exception (recovery_scenario_name, function, window );对pop-up事件定义异常51Testing软件测试网6_z!~n/\ fA+S

a l0aLMX0337、define_tsl_exception (recovery_scenario_name, return_code [, TSL_function ] );定义tsl事件异常事件
+}8b7}MiT9B'n`051Testing软件测试网$oH(B c)W.o-tfG
338、exception_off ( recovery_scenario_name );解除指定的观察场景51Testing软件测试网*XR^`o#RU
51Testing软件测试网6`tC}R.P#[
339、exception_off_all ( );解除所有的观察场景51Testing软件测试网A Y-~'|YGR#M

#a{t @CCD9d$D0340、exception_on (recovery_scenario_name );激活指定的观察场景51Testing软件测试网+o7Bq EofTb
51Testing软件测试网 r?;Wlt
341、file_close ( file_name );关闭用file-open打开的文件
AE{8OBP0
0{D"b"U%Gc(ULr/R0342、file_compare ( file1, file2 [ , save_file ] );比较两个文件的内容
l:@T8NV%s0
;fg]9OO:`*tm0343、file_getline ( file_name, out_line );读取文件下一行,并将其分配给一个变量
9eCs I0a0
_-h2|'R+da0344、file_open ( file_name, mode );打开或创建指定的文件51Testing软件测试网;E0dHgy_1j3L(o K
51Testing软件测试网_XV)Z4y
345、file_printf ( file_name, format, exp1 [ , exp2,... exp30 ] );按格式打印文件
dT2b z2KU$u0
ZT&J}TjfH9p0346、pause ( [ expression ] );暂停测试执行并输出提示信息
MbNSIl x?0
A$W#J$xz{KX0347、report_msg ( message );往测试报告里写信息51Testing软件测试网@/? {!u-B(k?1w*|
51Testing软件测试网 \rs1v C/w$GG/[
348、sprintf ( format, exp1, exp2,...expn );返回固定格式字符串到一个变量
7Ml1A"\x-Z.A051Testing软件测试网:HnD7Gz.[N]$Q-q
349、str_map_logical_to_visual ( logical_string, visual_string );把逻辑字符串转换成形象字符串
&Q^R(U4w0ERa051Testing软件测试网'J ta-E}D/_7A G
350、eval ( statement1 [; statement2;.... statementn;] );评估并执行附属的tsl语句51Testing软件测试网"j W6cF0\']#d)m xf

XGdc+oU,Q0351、get_unique_filename ( folder_path , file_prefix  , file_extension  , out_filename  , with_underscore );基于指定的前缀,创建唯一的文件名
7?-a"|tR!a/~1R0
5g%PBrwW0352、nargs ( );返回参数通过的个数51Testing软件测试网x5y Dk:Q*Fdk,k:@
51Testing软件测试网/f4{q5H?
353、tl_step ( step_name, status, descrīption );把测试脚本分成几块,并在当前测试结果里插入状态信息51Testing软件测试网W zb%[*y X7M(f"F
51Testing软件测试网g'L)v,lr)S|o D
354、invoke_application ( file, command_option, working_dir, show );调用windows应用程序51Testing软件测试网u9_kW[(P9z+F

1OR$kt4d*xq$G0355、dos_system ( expression );执行dos命令51Testing软件测试网4v&S8P#\O$L$h7A g

P tt9EDYS4S0356、ascii ( string );返回字符串第一个字符的asc码51Testing软件测试网XA%{ [^5`:g
51Testing软件测试网MB2t j R+`D6E z&~
357、compare_text ( str1, str2 [, chars1, chars2 ] );比较两个字符串
2L~ C%Y hy051Testing软件测试网|\9QO*Diz
358、index ( string1, string2 );显示两个字符串位置
/~xJ'x5t4U0
a']DilP0359、length ( string );计算字符串里字符的个数
%cbu(P Mb SA@kZ0
Bus}$Ao0360、match ( string, regular_expression );寻找字符串里正规表达式的事件
o0C k'i8eN1]~F5K-?'h051Testing软件测试网2Z9})c F9cp j/_$M!I3O
361、substr ( string, position [, length ] );从字符串里提取子字符串
d+z#YA/F0
1Cut9V%uR x0362、tolower ( string );转换全部大写字母到小写字母51Testing软件测试网$W1R lNh ^&c
51Testing软件测试网.ENX8t,I5RNw
363、toupper ( string ); 转换全部小写字母到大写字母
2MQwicGz)X051Testing软件测试网5?3JAf@6XK
364、end_transaction ( transaction [ , status ] );标记一个性能分析的结束
Bijy pP9m^X0
ly!\jv7KU0365、get_time ( );返回当前系统时间51Testing软件测试网yr0OdD$?1y
51Testing软件测试网:v6D7T DVC ]T
366、start_transaction ( transaction_name ); 标记一个性能分析的开始51Testing软件测试网z@%U0Awx"l

g:Hih:B3P(Er JNFD0367、time_str ( [ expression ] );将返回的整数时间转换成字符串51Testing软件测试网W n)\T{#q

2SU S]$lA p9z[,[0368、wait ( seconds [, milliseconds] );测试暂停51Testing软件测试网 S @3e2FR6lY"K|[
51Testing软件测试网 D7ZlI Wn @5VvM

#[$~,la4biQ0invoke_application(file,command_option,working_dir,show);
Km Ea/t051Testing软件测试网e^X#C8IAl
51Testing软件测试网XQ}!@6@x&R
file:应用程序的文件名,绝对路径;51Testing软件测试网/m6_:lj$I gmA)s}XY&L

u-`+aHGp `0
6lsweR5C V\0command_option:应用程序的参数;
7kb+x7o"~%l K-{051Testing软件测试网'WE]7rw p4BYx] v
51Testing软件测试网?2H%G+t5{W\
working_dir:应用程序工作路径;51Testing软件测试网 ~x` qgK T1lC?
51Testing软件测试网qb|6zr;l?

eou@XLsU6{0show:程序运行时的显示模式;51Testing软件测试网o%F my qU)q
51Testing软件测试网v [y SVd

{(RA+wi4s[0
iWf4j8o*W0rXl0数据库检查点:标准检查点和运行时检查点
/_eDa z1Lh1q,~;MIt0
R.cK zuKj051Testing软件测试网yC'ef/h {/w
标准检查点检查行数、列数、内容是否一致;包括defaultcheck仅检查数据库内容是否一致;custom check 可随意组合上面三种方式检查51Testing软件测试网+md.}!S"x9N4TXx7vW

[ r?L}gjz-@G0
w.V O ^Je D`)e e0运行时检查点检查程序界面上某些控件显示的内容是否在数据库中匹配记录,三种方式:匹配一条、匹配多条、没有匹配记录

TAG: WR

 

评分:0

我来说两句

Open Toolbar