共同探讨QTP相关问题

WR TSL 2-19-2008

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

Winrunner Context Sensitive命令列表
6ryy aV7|(tmS#q0
#Z%I5q Y3EpWO051Testing软件测试网 G1_.Kuu2R _2Q
51Testing软件测试网?0Zva*l
51Testing软件测试网)z)Jq(d O$G
1.ActiveBar_combo_select_item ( band_tool , item_name );选择下拉菜单某一项,例如:
}k5M~&R/i0
wI.^3N"L/rf051Testing软件测试网x[h%u k!h
set_window("Form1", 1);51Testing软件测试网 |:R8TG0d

~6xJ#rc4pPe051Testing软件测试网&s4ef|.\O[,K
ActiveBar_combo_select_item("Format;Font", "Arial");51Testing软件测试网UN W Z g,B(V%i*h E
51Testing软件测试网4Q\_9@$~#qH1|^

#[CThF$t8L0In the following example, WinRunner selects the third item in the Format:Font tool.
3g7R.t o O5L.ba0
g:Fwf*Ef6m${)}051Testing软件测试网f+]WDq
set_window("Form1", 1);51Testing软件测试网q\-MO*m1sOA

xQ6w0m5Y`.bx/a!i051Testing软件测试网8M^0\I+U
ActiveBar_combo_select_item("Format;Font", "#3");51Testing软件测试网b\5`8C:a@'a

qz8{(MM*ea5Ay0
m:~*[7Ae2FG7cqz02.ActiveBar_dump ( file_name );存储活动工具栏信息,包括标题、名称、ID等。51Testing软件测试网p}F-V7j.D
51Testing软件测试网6Sgt`I[:O&MI
file_name            参数包括路径,例如:51Testing软件测试网[K,O Z^;nM([h

PfD@&@3b0set_window("Form1", 1);51Testing软件测试网7p&B l:q?m0E&R5h#x
51Testing软件测试网0t.UC9x%O
ActiveBar_dump ("d:Bardump.txt");51Testing软件测试网|&\4zrk%?T!O
51Testing软件测试网C#Y6a cO9U L/BL+js X
3、ActiveBar_select_menu ( band_tool [, events_only ] ) ;选择菜单某一项,例如:51Testing软件测试网%`;D}/q }!M p%eT
51Testing软件测试网HaL(e~z&ZsU:`
in the following example, WinRunner selects the Cut menu item in the Edit toolbar.51Testing软件测试网'b3z+|!b:e

y \;?T"d-z j0set_window("Form1", 1);51Testing软件测试网{(h6O:LO}{0l7p

5Y4T&F(q!],z0ActiveBar_select_menu ("Edit;Cut",TRUE);
F\Hy3RQ0
ksTU5JKP [04、ActiveBar_select_tool (band_tool [, events_only ] ) ;选择工具栏里某一项,例如:
Z0v#s$H&x(IFR/u051Testing软件测试网[n&q4@F1l+VU
set_window("Form1", 1);
T+Z-L%ad)FZ2`0
H2q0`:M G S cyI0ActiveBar_select_tool("Format;Center", TRUE);
)C hH5K FU:F;V"I`0
R6BL&c1RW05、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口位图,51Testing软件测试网f8]9iX%F.M*_Ch

I0`5z2Q iD:d*i w06、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象位图,51Testing软件测试网:c(C(v&F L9p3h

~&tM`Q4i6i07、button_check_info ( button, property, property_value );检查按钮属性的值
\K7M7G%BH5G-{$ky0
x"Q N#V~:Xut w08、button_check_state ( button, state );检查单选框或复选框的状态51Testing软件测试网ZTU2f~;A3fV+J

eE~9B5K/m nt/g&N{rC09、button_get_info ( button, property, out_value );返回按钮属性的值51Testing软件测试网.x3Ue1u"^+pw

8N`&ylB}+O+I010、button_get_state ( button, out_state );返回单选框或复选框的状态
4J"V(m5l#y9M051Testing软件测试网 Wo KxM5DW_
11、button_press ( button );点击按钮51Testing软件测试网)x5].EOg

&I4l?%Ff8_OI%g012、button_set ( button, state );设置单选框或复选框的状态
8YW-o Y:p4Dn$P051Testing软件测试网)FN$Vc%X9o2_(`3m
13、button_wait_info ( button, property, value, time );等待按钮的属性值变化
3LR3P jB1f0
-^*N{'Z)o'q014、calendar_activate_date ( calendar, date );双击日历某个日期
#AM}M2lVR@0
&w%B Z+bjT q015、db_check ( checklist, expected_results_file [ , max_rows [ , parameter_array ] ] );比较当前数据库数据和期待的数据库数据
`*ZthS:s&\051Testing软件测试网$M^&{3[)r#S-W'K]3Q
16、db_connect ( session_name, connection_string );建立一个数据库session并建立odbc连接
0Q"H.OlZmpN-_0
u5mdX'{fK$Tp017、db_disconnect ( session_name );断开连接结束session
+?%|x)X?Z051Testing软件测试网v]x-U-Z
18、db_execute_query ( session_name, SQL, record_number );执行sql语句返回记录集
XR t C%H]%I2} ]051Testing软件测试网*h4\rg[!AkS
19、db_get_field_value ( session_name, row_index, column );返回数据库特定区域的值51Testing软件测试网'ELj!PaAgZ^D
51Testing软件测试网-]NhO:b-Z
20、db_get_headers ( session_name, header_count, header_content );返回数据库session的列的数量及列的内容并以tab分组51Testing软件测试网@7E h ?|D
51Testing软件测试网3Sf9r5R+Ga"M
21、db_get_last_error ( session_name, error );返回最后一条数据库session错误信息
!h0g8}r"|k0
N0L r&Kd'\+hv9o#n8ff:f022、db_get_row ( session_name, row_index, row_content );返回特定行内容
R5[i:G#oQ8`0
"Xf2d-X5K3z&u023、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软件测试网v:P0fVJ*g{Ed8Zl

6P7b$DF.mT.S9cA024、db_write_records ( session_name, output_file [ , headers [ , record_limit ] ] );把结果记录集写到一个文本文件51Testing软件测试网[N~{:F
51Testing软件测试网tH \*{U R Bf Z.skw
25、ddt_close ( data_table_name );关闭数据表文件
W:}Rc(S8~ Z0
ixrO v\F3A026、ddt_close_all_tables();关闭全部数据表51Testing软件测试网;] vt s hRvo@

,`.r[,B-d027、ddt_export ( data_table_namename1, data_table_namename2 );把一个数据表信息导到另一个数据表文件
w(?n F d nEx5v0
9}"o(s Fl"J"g,X$v028、ddt_get_current_row ( data_table_name, out_row );返回数据表当前所在行
z-?9vfI$dP2Y2i0
,Q?'P?x"x c9^k%ZI0`029、ddt_get_parameters ( table, params_list, params_num );返回数据表的参数和参数的个数
ku[EJ/y$| ^051Testing软件测试网/o8D4V`8T$h8x}Ic
30、ddt_get_row_count ( data_table_name, out_rows_count );返回数据表行数
nVM-t%Tg051Testing软件测试网 @#_|/p%K(k,R0zV
31、ddt_is_parameter ( data_table_name, parameter );返回一个参数是否在数据表里有效
I_-NE@;}W0
H gK m7s/\ey032、ddt_next_row ( data_table_name );指向数据表中到当前行的下一行51Testing软件测试网5zA/B.oe8@;i"ZY

#Op(t[+S]2KI+g'w033、ddt_open ( data_table_name [ , mode ] );打开或创建一个可以访问的数据表51Testing软件测试网 Y@G.H'}-E0q

2M;`'c3OVzn n034、ddt_report_row ( data_table_name );报告当前行到测试结果
q4D6? MW1[.@h ]051Testing软件测试网p7["TM.t)x
35、ddt_save ( data_table_name );保存数据表信息
iw"L'WZriC8y051Testing软件测试网#U|oC"eM:ct
36、ddt_set_row ( data_table_name, row );设置当前行为第几行
Q/Y s3w&MMV[)[0
}*I Fbc LHh/X037、ddt_set_val ( data_table_name, parameter, value );插入parameter列一个新值value51Testing软件测试网$YN"jR]}@#~Q;{

6LlJre4O038、ddt_set_val_by_row ( data_table_name, row, parameter, value  );插入特定行的parameter列一个新值value51Testing软件测试网,E2g;gtm'bT

1DZ%p9a4A{+F*b"s039、ddt_show ( data_table_name [ , show_flag ] );显示或隐藏数据表,1是显示,0是隐藏
[4s.D^ ?8|-X!ixz0
.Z0]!k#\'{%A#VY4o040、ddt_sort ( table_file, row1, col1, row2, col2, sort_by_rows, key1 [ , key2, key3 ]  );根据关键字将数据表特定区域的值排序,sort_by_rows            参数1是按行,0是按列
TaA4ky ~i&]051Testing软件测试网4RJ'}*h:seS
41、ddt_update_from_db ( data_table_name, file, out_row_count [ , max_rows ] );从数据库往数据表里导数据;
$Nc(d"fDC0
Z-fauL0g$s042、ddt_val ( data_table_name, parameter );返回数据表当前行的参数的值51Testing软件测试网K3rCO WZ
51Testing软件测试网+R|FJ V-Q!uE$v
43、ddt_val_by_row ( data_table_name, row_number, parameter );返回数据表特定行的参数的值51Testing软件测试网D1};C#^#L+v6L)V Y

n ?[ \ I%KG:y044、date_age_string ( date, years, month, days, new_date );将日期相应改变返回新值
Q0p,G T(g9k j0
@8d-ncu3Y.Z Q045、date_align_day ( align_mode, day_in_week );指定特定的日期给某天
'pp)Bt e'MG'@I0
*hXIp O%u(@046、date_calc_days_in_field ( field_name1, field_name2 );计算两个日期间的天数51Testing软件测试网?o pd2s1E
51Testing软件测试网0F\"A)E!teM&M2vu
47、date_calc_days_in_string ( string1, string2 );计算字符串格式的日期间的天数
,D n,I9Pu%_3D&Tp)z051Testing软件测试网2FI+[5]%oY^{z
48、edit_check_info ( edit, property, property_value );检查对象属性的值51Testing软件测试网)c0bEMD9?y e

w#^H)?4_.h+R049、edit_check_selection ( edit, selected_string );检查选择的字符串是否存在
J3{R|6fSG0
/M].]a`(s _050、edit_check_text (edit, text, case_sensitive );检查编辑对象的文本内容51Testing软件测试网%_;|uP3UP6D0U z1ZI
51Testing软件测试网eQ!_Pu*G5b.S.r8C
51、edit_delete ( edit, start_column, end_column );删除编辑对象的文本内容
S!DBb X wS'LS/m051Testing软件测试网#D'iv8o!hZ)Y4p
52、edit_delete_block ( edit, start_row, start_column, end_row, end_column );删除文本区
9Y T3R^ m [ F$O'O0
j0doSu053、edit_get_block ( edit, start_row, start_column, end_row, end_column, out_string );返回文本区
7~8T?zP0
`5g khlq9S*}W \1n054、edit_get_info ( edit, property, out_value );返回编辑对象的属性值51Testing软件测试网f Vps I1aL
51Testing软件测试网 V4G `Ot NQ+_G
55、edit_get_row_length ( edit, row, out_length );返回编辑对象里行的长度
3?b&mEdT[0\*J6K[051Testing软件测试网)uElh*kMB-Eq Z
56、edit_get_rows_count ( edit, out_number );返回编辑对象里行数
#`._ O t-Q6A~6fmb0
6OdYbi&V(CX7z Z057、edit_get_selection ( edit, out_string );返回编辑对象的选定字符串
a.{ ?4d O@051Testing软件测试网@kcx*X,a$Nr \
58、edit_get_selection_pos ( edit, out_start_row, out_start_column, out_end_row, out_end_column );返回选定区域的开始和结束位置51Testing软件测试网3C}.p R/Nu E \
51Testing软件测试网#d DP8R{h DAy
59、edit_get_text ( edit, out_string );返回编辑对象的文本
PR)`0a^$fF*N&{@:tq051Testing软件测试网dD Kjf
60、edit_insert ( edit, text, columnI );在编辑对象第一行插入文本
0UeU+cA.|H4b0
V5GI(k/^ l%S z061、edit_insert_block ( edit, text, row, column );在一个多行编辑对象插入文本51Testing软件测试网#Xv+rzJp(_H;E bS0uf

A.W`2i}S062、edit_replace ( edit, text, start_column, end_column );替换一个编辑对象的内容51Testing软件测试网[ @G D a3Z&ai

B0{KUoyb063、edit_replace_block ( edit, text, start_row, start_column, end_row, end_column );替换一个编辑对象的多行内容51Testing软件测试网3Y8KIm.qL.D!l|g
51Testing软件测试网?:NZCW$SA
64、edit_set ( edit, text );替换编辑对象的全部内容
Dd}0I u?8aITr051Testing软件测试网3k-x]0B6p U-R&Q s2B#r
65、edit_set_insert_pos ( edit, row, column );把鼠标指针放到编辑对象特定位置
oWlRh4R @O0
8y YVv)}6_7S ~b3t066、edit_set_selection ( edit, start_row, start_column, end_row, end_column );选择编辑对象的文本
&g/wE3R2bED051Testing软件测试网+g&{N;v5K[:Ga
67、edit_type ( edit, text );在编辑对象敲入字符串
;J/ZgNMt[/P051Testing软件测试网Z M$w|Q&ue4n
68、edit_wait_info ( edit, property, value, time );等待编辑对象属性的值51Testing软件测试网5vO-OO5ro u&H
51Testing软件测试网b-@ j`:^
69、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据51Testing软件测试网'P"r+T/F?^6JJ8s&X
51Testing软件测试网5`-Q.C0hF!Y5B6w
70、win_check_gui ( window, checklist, expected_results_file, time );对一个窗口比较当前的gui对象数据51Testing软件测试网#K)N/CH;sOc
51Testing软件测试网/u@ \!vYv4h
71、get_class_map ( custom_class, out_standard_class );返回和一个自定义的类相关的标准类
:b|J aKh:~051Testing软件测试网5T/h*y2k.?EN
72、get_record_attr ( class, out_obligatory, out_optional, out_selector );从一个对象类返回属性
k/NOy N9o ~K5GJ0
0I4x a:s U ??0N073、get_record_method ( class, out_method );返回一个对象类的方法51Testing软件测试网I3H,l/dk4f4aS;c

6e A\*TNxa074、set_class_map ( custom_class, standard_class );关联一个自定义类和一个标准类51Testing软件测试网}WL5{m)WKr _.ti1T

v%qmR`.k\]\u075、set_record_attr ( class, oblig_prop, optional_prop, selector );设置一个对象类的属性
sZnow$b051Testing软件测试网p#ug ZY*ez*}IEw
76、set_record_method ( class, method );设置对一个类的记录方法51Testing软件测试网|#B,g I;_9n @`

E+H sIY w5_077、unset_class_map ( custom_class );解开一个自定义类和标准类的关联关系51Testing软件测试网M@0[+L'G

J$BS[k078、GUI_add ( file path, window, object, physical_desc );往gui map文件里加一个对象51Testing软件测试网 Gw(yP q&C?1pC
51Testing软件测试网~%Y,xv,T\ n9d
79、GUI_buf_get_desc ( file, window, object, out_desc );返回guimap文件里对象的物理描述51Testing软件测试网@#pBPf
51Testing软件测试网7e {*@ H `Co^ Q`
80、GUI_buf_get_desc_attr ( file, window, object, property, out_prop_value ); 返回guimap文件里对象的属性的值51Testing软件测试网 Bnf,xu+q
51Testing软件测试网)A;E faAS#R;Z
81、GUI_buf_get_logical_name ( file, physical_desc, window, out_name ); 返回guimap文件里对象的逻辑名称
G7g7|4A8z+F:L E0
-}H e+mn.B?082、GUI_buf_new ( file );创建新的gui对象文件51Testing软件测试网y1F;Y;}1SL9L7?

$lIL d c083、GUI_buf_set_desc_attr ( file, window, object, property, value );设置guimap文件里对象的属性的值
&jw5cfT4y w|4c0
A E v0kN{084、GUI_close ( file );关闭guimap文件
Y!O i:_M:n051Testing软件测试网U,m x6RNo @:x+U(\
85、GUI_close_all ();关闭全部guimap文件51Testing软件测试网'}+R x{f I&k

!W?I"Nkq086、GUI_delete ( file, window, obj  );从guimap文件里删除一个对象51Testing软件测试网Y*xj+d f2G;k6x;x

h2W| H@Qx3o087、GUI_desc_compare ( desc_1, desc_2 );比较两个物理描述
7lEGXW2A2hg+C0
t0q,Z,OK ^ T6Q088、GUI_desc_get_attr ( physical_desc, property, out_attr_value );从物理描述得到属性的值51Testing软件测试网0nkX)U.Snh+R^
51Testing软件测试网S%e#i+b}C;S
89、GUI_desc_set_attr ( physical_desc, property, value );设置属性的值
s'p0lbe'nd051Testing软件测试网 H\&D+nFU e.^p
90、GUI_get_name ( out_name, out_version );返回测试程序下gui对象的类型51Testing软件测试网Z[xe7E&[XQJ
51Testing软件测试网s*O)P qLpBU
91、GUI_get_window ( );在guimap里返回当前窗口51Testing软件测试网.lN,oW5m@
51Testing软件测试网/fVlWz
92、GUI_list_buf_windows ( file, out_windows, out_number );列举出guimap文件里所有的窗口
(k#BG*z[*?LY A7fd051Testing软件测试网+uQ(A!b7_x#o;BhCV
93、GUI_list_buffers ( out_files, out_number );列举所有打开的guimap文件
6i%j"Q7fp"K)\zU0
D7](B hLi}I094、GUI_list_desc_attrs ( physical_desc, out_array );列举一个gui对象的属性值51Testing软件测试网.y II5Kx

b4CF,lpE"N;_095、GUI_list_map_buffers ( out_file, out_number );列举所有载入的guimap文件51Testing软件测试网,}?5hm g4e_

7\_`aij096、GUI_list_win_objects ( file, window, out_objects, out_number );列举一个窗口的全部对象
2WM_tEB8R#a0
]+T_@^#U-a097、GUI_load ( file_name );载入一个guimap文件51Testing软件测试网Y.\9B ph/a$?(}4H

GR~mW-\&O"l&M098、GUI_map_get_desc ( window, object, out_desc, out_file );返回guimap里对象的物理描述
J)F p5QpN0T*CvU0
SvJ1IgMGU099、GUI_map_get_logical_name ( physical_desc, window, out_obj, out_file );返回guimap里对象的逻辑名称51Testing软件测试网Ag:C4|R;H#{ Q+Z

tw"^L)n0100、GUI_open ( file_name );打开guimap文件
 
101、GUI_save ( file_name );保存guimap文件
,_iUv'|3jMc0
;wU rr2sDTQY0102、GUI_save_as ( current_file_name, new_file_name );另存为guimap文件51Testing软件测试网 s ~Oy(k(PW;^
51Testing软件测试网5CB*Frg i-MB0C$H
103、GUI_set_window ( window_name );设置guimap里目标识别范围
a{k`C z7A[051Testing软件测试网n r'o/d G(ob$x6H2t
104、GUI_unload ( file );卸载guimap文件
^4zB*r5{iY0
]%hxx7A&zP4e!x0105、GUI_unload_all ( )卸载全部的guimap文件51Testing软件测试网7S9J^B,i:| g ]/H/p

@'tjZ y`0106、icon_move ( icon, x, y );移动图标到新位置51Testing软件测试网-U|-zQb&m8DE

H[n;E@\4C{O x0107、icon_select ( icon );点击鼠标选择图标
vx8c]n,xNU3w0
b&T%Tt#TNey0108、java_activate_method( object, method, retval [ , param1, ... param8 ] );调用请求的java方法
Jz0h`&np#W:@3A(\0
%t&p'G:};O m C/Y0109、java_fire_event ( object , class [ , constructor_param1,..., constructor_paramX ] );模拟一个java对象的事件51Testing软件测试网&mK/@u&Bk+cboo

Vo!kst*Wq^0110、jco_create ( object , jco , class [ , constructor_param1 , ... , constructor_param8 ] )创建一个现有java对象的上下文java对象51Testing软件测试网j%u0Ck frx5w?c

uA"O rYB0111、jco_free ( object_name );释放内存里指定的jco对象51Testing软件测试网,`[%J~z9s_

)m'_,R/a1L0112、jco_free_all();释放全部内存里的jco对象
:y gpB2?ZH?0
mzb[](OS2Y0113、jdc_aut_connect ( in_timeout );建立一个winrunner和java应用程序的连接51Testing软件测试网!j ?%qPG;kL
51Testing软件测试网(gj.a bE_W8MP4L
114、method_wizard ( [ object ] );打开java方法的向导51Testing软件测试网(M|ea f[x7dJ

-NE4F;W&c5_KP0115、obj_key_type ( object, keyboard_input );向java组件发送事件
jk-[-[*{-XN7X6R051Testing软件测试网5l.e.w ^2MG
116、obj_set_info ( object, property, value );设置对象属性的值51Testing软件测试网n+m)j;z5j/lW
51Testing软件测试网 d'Z)@b6gX
117、popup_select_item ( "menu component;menu item" );从java活动菜单选择一个选项
R"KHj3EH#J0
D ]|^.r9As4@4L0118、list_activate_item ( list, item [, offset ] );激活列表里某一项
*bb\s!O p0
8ZU%z6nk*]&ti v0119、list_check_info ( list, property, property_value );检查列表属性的值
1WwD8d@5P*k!WnZ051Testing软件测试网C|/X*B4g
120、list_check_item ( list, item_num, item_content );检查列表某项的内容
*J8@I]0Xg0
nU8JlCy!e qK0121、list_check_selected ( list, selected_items );检查选中的那项
Y\b)M9C9S0
oH7P!zP!D1{.Njf(G0122、list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项51Testing软件测试网z5\:aq,y.n

)z5r-UXt0s0123、list_deselect_item ( list, item [, mouse_button  [, offset ]] );取消选定列表的某一项
,j#K mdvsd6t051Testing软件测试网&x"\iuhv?
124、list_deselect_range ( list, item1, item2 [, offset ] );取消选定2个选项
c,F$q@*X051Testing软件测试网d:H8xoJc0w OH
125、list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项51Testing软件测试网k(BU)lo \7^'A
51Testing软件测试网6\+V5{ pO(Ca1UF
126、list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项
*kg g0AW;A)t]-?3L051Testing软件测试网%LlCkq5Bt4@e:r*XV7|1]
127、list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项
Ab-{F_!uk0
I%_*\~(~8p.FL]0128、list_extend_item ( list, item [, button  [, offset ] ] );往指定的列表里添加一个选项
J8{.G4W4]%^l051Testing软件测试网!}'i@ydX;aV9h
129、list_extend_multi_items ( list, item_list, [, mouse_button  [, offset ] ] );添加多个选项51Testing软件测试网 w5Z-z~&D"S-M
51Testing软件测试网&L {2{%g1e {U
130、list_extend_range ( list, item1, item2 [, button  [, offset ] ] );添加一定范围的选项
&y%Uc \loYI0
I2S h e;X,}\!}B0131、list_get_checked_items ( list, items, number );返回标记的选项的个数和值51Testing软件测试网!n"l@7}N&K? ]?
51Testing软件测试网j_7U/x)j9d
132、list_get_info ( list, property, out_value );返回列表属性的值51Testing软件测试网F7p!av s

iO|&~ ` z0133、list_get_item ( list, item_num, out_value );返回列表选项的内容
4_g,U'R5Wz?"aA1T:z051Testing软件测试网b\ zC ]
134、list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标
8m6X$D YK1v E4u"M.Bh0
r&K'S3q+vGGg-SJ0135、list_get_item_info ( list, item, state, out_value );返回列表选项的状态
(^m:yi*u051Testing软件测试网@F+d7b!bb j6R
136、list_get_item_num ( list, item, out_num );返回列表选项的位置51Testing软件测试网B_"G/Vk GZ

dG |S,U5~-H0137、list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值
^4kcPD1l6]a`;nv/Q051Testing软件测试网:s;Qu;?9GJ$e)L+V
138、list_select_item ( list, item [,button  [, offset ] ]);选择一个列表选项
9R:o"ew*B051Testing软件测试网m7rnd&Oy)H@*~.K`I
139、list_select_multi_items ( list, item_list [, mouse_button  [, offset ] ] );选择一个列表的多个选项
Fi2aPQNKYhT051Testing软件测试网:~$y:r;J9NM
140、list_select_range ( list, item1, item2 [, button  [, offset ] ]);选定一定范围内全部选项51Testing软件测试网];S5]wx_wn s3m
51Testing软件测试网GU^ \2K$c
141、list_wait_info ( list, property, value, time );等待列表属性的值51Testing软件测试网,O"X3Ij*u
51Testing软件测试网7m"M8C~'YY
142、menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述51Testing软件测试网|/B!tO"I
51Testing软件测试网m'kI J/_ t f*Rv
143、menu_get_info ( menu, property, out_value );返回菜单属性的值
*Q#~W.M r0[O^0
4h)T}:u x)VP,gY0144、menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容51Testing软件测试网3V1y4V/\Ox'd
51Testing软件测试网g&M0e"lbh.W
145、menu_get_item_num ( menu, item, out_position );返回菜单选项的位置51Testing软件测试网5I[q-oTq
51Testing软件测试网2i[Y3S"J.mX
146、menu_select_item ( menu;item [ x,y ] );选择一个菜单选项
\rd/za]S0
xR'Hn*T3@o }I:j!e0147、menu_wait_info ( menu, property, value, time );等待菜单属性的值51Testing软件测试网;v XPeJ|"Z
51Testing软件测试网VZu5H&d
148、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图
Y%^9HcR8C9D7~${051Testing软件测试网+o} _E@
149、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据
u8b'J)q&|t$xh051Testing软件测试网.Fp*PdO
150、obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值
j}B9N6l@xcd5S0
Kq3oXt7rl9Mzz0151、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在对象里点击文本
L3MY ET4ft051Testing软件测试网^(b6t~*L W!Y _
152、obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象
4R(QMk ?)B7}0
.WC:~_ER:L\$l!j0153、obj_drop ( target_object, x, y );拖动一个对象到目标对象
\3s%gb_ jZ0
NA0RD~:@ KG0154、obj_exists ( object [, time ] );检查对象是否显示在屏幕上51Testing软件测试网Mi w|hq
51Testing软件测试网5e;EC'w7TSt:R
155、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );在对象里返回字符串的位置
4uYD,V+sg051Testing软件测试网R7] B|8e
156、obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述51Testing软件测试网jXr:VG!c.R7^
51Testing软件测试网&nS:~(t*r%`;S%j
157、obj_get_info ( object, property, out_value );返回对象属性的值51Testing软件测试网h0r(q7m I GS

z^,tR%](`~g0158、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本51Testing软件测试网 x!X1U:y&MF7l`5d'ni(T

u0`Z,f}-F^V1a7{0159、obj_highlight ( object [, flashes ] );高亮显示对象51Testing软件测试网A)r/^d4{ lb C AW

"_ rO{$J!IjC0160、obj_mouse_click ( object, x, y [, mouse_button ] );点击一个对象
N!O!o3[OdJ]051Testing软件测试网9\.[g-Eu
161、obj_mouse_dbl_click ( object, x, y [, mouse_button ] );双击一个对象51Testing软件测试网 X K"c(sIYVA

z] Hep&B-VU0162、obj_mouse_drag ( object, start_x, start_y, end_x, end_y [,mouse_button ] );在对象上拖动鼠标
(|2G#S Lv051Testing软件测试网0r T g0z,IKO
163、obj_mouse_move ( object, x, y );在对象里移动鼠标指针51Testing软件测试网iG5y?6T9v"^
51Testing软件测试网/n(W1U/L7M
164、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里移动鼠标到一个字符串
$l.OW]3J051Testing软件测试网1uvrC+x
165、obj_type ( object, keyboard_input );用键盘输入对象51Testing软件测试网 _"r-y SE8uB1n0b0g
51Testing软件测试网2g%}7Pq!Q q!iW ]S!~
166、obj_wait_bitmap ( object, bitmap, time [, x, y, width, height] );等待对象位图出现在屏幕
Ur-g:z'iIb051Testing软件测试网 }B;t8C e
167、obj_wait_info ( object, property, value, time );等待对象属性的值
S(dk*F.M3_3l$U7x051Testing软件测试网!{I8k7Et!RA~
168、scroll_check_info ( scroll, property, property_value );检查滚动条的属性值
q2@'x[:[*i*~*C0A-O051Testing软件测试网!mAT r{%T/f EHk*r
169、scroll_check_pos ( scroll, position );检查滚动条的当前位置
DZ0OL%O051Testing软件测试网l'd@$W$xG2Q
170、scroll_drag ( scroll, orientation, position );滚动到指定位置
;Zi\&oI051Testing软件测试网B8Bzq1T8Qf3|h
171、scroll_drag_from_min ( scroll, orientation, position );从最小值开始滚动51Testing软件测试网*h]$WZn~c v
51Testing软件测试网xe{a+t'rv j
172、scroll_get_info ( scroll, property, out_value );返回滚动条的属性值51Testing软件测试网&KRP@S:\
51Testing软件测试网N`&Crk \'FQ#b
173、scroll_get_max ( scroll, orientation, out_max );返回滚动条的最大位置
{8LH7h+[0[^ad0
DC/m,]_} m0174、scroll_get_min ( scroll, orientation, out_min );返回滚动条的最小位置
-c#wg%`5^0
4g_7Tp}3n0PZ0175、scroll_get_selected ( slider, min_value, max_value );返回滚动条的最小和最大值51Testing软件测试网owmy8D.r8F

2] `4yKD-B*B0176、scroll_get_pos ( scroll, orientation, out_pos );返回滚动条当前位置51Testing软件测试网I]M`K4~|nby
51Testing软件测试网m"}9f,E5M8l*?dk'e:o
177、scroll_line ( scroll, orientation, [ +|- ] lines );滚动指定的几行
oJG(RoR;Es}051Testing软件测试网i7OM_E3v$N7U4c
178、scroll_max ( scroll, orientation );设置滚动条到最大位置
@,c3h"p,xFgZ(s:Eu0
Q\,@V3E0179、scroll_min ( scroll, orientation );设置滚动条到最小位置
X6mhN`$mT8C@0
2t4[t"uD4Bm*O0180、scroll_page ( scroll, orientation, [+|-] pages );移动滚动条指定的页数51Testing软件测试网7~:xzh(j8ZP4d!Q,W/j

~.l.AcgIGjE0181、scroll_wait_info ( scroll, property, value, time );等待滚动条属性的值
I[JB8k@d&X!p~8k051Testing软件测试网#H {:tD#gTi"sqB
182、spin_get_info ( spin, property, out_value );返回旋转属性的值
6G$N@2wv8H051Testing软件测试网I[J.|,` }i
183、spin_get_pos ( spin, out_value );返回旋转对象的位置
eg1Yy.{j0
'D^Q_ Y7p0184、spin_get_range ( spin, out_min_pos, out_max_pos );返回旋转对象的最小与最大位置51Testing软件测试网&Z};G'w7RS(o{
51Testing软件测试网eS5w(FbB `2U([
185、spin_max ( spin [, index ] );设置旋转对象到最大值51Testing软件测试网 E \H0| X0xJ
51Testing软件测试网9}3R|.NMP'B1J2W
186、spin_min ( spin [, index ] );设置旋转对象到最小值
*D/T*pE8|[051Testing软件测试网8|+v0bDK f
187、spin_next ( spin [, index ] );设置旋转对象到下一个值51Testing软件测试网dT}1V4lC"A?8k9p

x)sCk2e1e1n#Cu9E0188、spin_prev ( spin [, index ] ); 设置旋转对象到前一个值
(QtHR7| _9|:g051Testing软件测试网(VD0x.B.u3E^9k
189、spin_set ( spin, item [, index ] );设置选择对象到一个选项值
2Hs'o'U0wn051Testing软件测试网 ].C@;yq%U5b
190、spin_wait_info ( spin, property, value, time );等待旋转属性等于指定的值
%c p EtJ@6Q*V"XWd0
(Ui4mfJ:w0191、static_check_info ( static, property, property_value );检查静态文本对象属性的值
O2p9HG0dqt A051Testing软件测试网$wlUg(n0VC
192、static_check_text ( static, text, case_sensitive );检查静态文本对象的内容51Testing软件测试网 qSvt.kc4Z/L
51Testing软件测试网t|| ~^
193、static_get_info ( static, property, out_value );返回静态文本对象属性的值
;X`ApZ7X051Testing软件测试网}B0U/m"RgM
194、static_get_text ( static, out_string );返回静态文本对象的内容51Testing软件测试网N^,Yds)EK

NNAj3~M zN n,i0195、static_wait_info ( static, property, value, time );等待静态文本对象的属性值51Testing软件测试网,c#k8~8faK+J aI
51Testing软件测试网 Y)vI9w&j J
196、statusbar_get_field_num ( statusbar, field, field_index );返回状态栏区域的数字索引51Testing软件测试网^D/fJ6?Y

4n_!f7_;? D/X0197、statusbar_get_info ( statusbar, property, out_value );返回状态栏的属性值
0B,|su;D0
'rW:fdk WB-b0198、statusbar_get_text ( statusbar, field_index, out_text );读取状态栏区域的文本
(K qjM6^?051Testing软件测试网Y1V.v? b dV
199、statusbar_wait_info ( statusbar, property, value, time );等待状态栏属性的值51Testing软件测试网,HpzK f-v+L1oqA
51Testing软件测试网6O"o!B(a_k0W
200、tab_get_info ( tab, property, out_value );返回tab属性的值
 
101、GUI_save ( file_name );保存guimap文件
\$F2^coI0
ljQ V9Z$Fy-t0102、GUI_save_as ( current_file_name, new_file_name );另存为guimap文件
Yh?4]-hP!q051Testing软件测试网2~T&W&k"k
103、GUI_set_window ( window_name );设置guimap里目标识别范围51Testing软件测试网 \H2g Q$A p1t
51Testing软件测试网1U*ih4rl4t]
104、GUI_unload ( file );卸载guimap文件51Testing软件测试网1k9i%d yy"J'C-^ E
51Testing软件测试网w q&F)cD+q!iCh7q
105、GUI_unload_all ( )卸载全部的guimap文件
(U/O S/k@;Pl0
{v5t)|`8|0106、icon_move ( icon, x, y );移动图标到新位置51Testing软件测试网n0n~y.{V*[CXJ;p
51Testing软件测试网pc4BR^0b/M
107、icon_select ( icon );点击鼠标选择图标
|8}:O6P J0
L-U3G5~i B0X0108、java_activate_method( object, method, retval [ , param1, ... param8 ] );调用请求的java方法51Testing软件测试网 D.p7]{ _k G A

M]3Glm0109、java_fire_event ( object , class [ , constructor_param1,..., constructor_paramX ] );模拟一个java对象的事件51Testing软件测试网"wz&XF!e7F ` [4j b(H

$NbbV7qew e N0110、jco_create ( object , jco , class [ , constructor_param1 , ... , constructor_param8 ] )创建一个现有java对象的上下文java对象
E{4i'K$ok,u051Testing软件测试网"nd"N6Na|
111、jco_free ( object_name );释放内存里指定的jco对象
KB)Eb"s&qj0
R9D$J$Ud M+uB0112、jco_free_all();释放全部内存里的jco对象51Testing软件测试网(YY'}O*E+r"e1_

;v6_h3@#l Fq$w0113、jdc_aut_connect ( in_timeout );建立一个winrunner和java应用程序的连接51Testing软件测试网&^&?'|l2X'l(H oe.S"S

VmA9RVwv;o4X0114、method_wizard ( [ object ] );打开java方法的向导
L4v;cH%PpI4^t T051Testing软件测试网4|(PM"~l/f.y
115、obj_key_type ( object, keyboard_input );向java组件发送事件
-j;GG/{%Q~W051Testing软件测试网-`,DV.P(@/I.@H b
116、obj_set_info ( object, property, value );设置对象属性的值
ewZJ;u(Q0
:bX+[c1uV@-M v0117、popup_select_item ( "menu component;menu item" );从java活动菜单选择一个选项
/wFi cjQ|%UI0
5nSHZ;y/ky.W0118、list_activate_item ( list, item [, offset ] );激活列表里某一项
V7tkmBSx~ Wmd051Testing软件测试网5e\I1di
119、list_check_info ( list, property, property_value );检查列表属性的值51Testing软件测试网T4Q8[)X$UYt
51Testing软件测试网2i;]I~!Q"cAK
120、list_check_item ( list, item_num, item_content );检查列表某项的内容
jwJa,b/]V{$YX051Testing软件测试网fm-^8S$h v
121、list_check_selected ( list, selected_items );检查选中的那项51Testing软件测试网#x@3a.a'R4i
51Testing软件测试网avJ K ^ S
122、list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项
N] q:J0Cw;R051Testing软件测试网d]{a E9x/Io3R,?
123、list_deselect_item ( list, item [, mouse_button  [, offset ]] );取消选定列表的某一项51Testing软件测试网*HY0I*]QN)U'\
51Testing软件测试网0G0m K3~@'s6F4Y
124、list_deselect_range ( list, item1, item2 [, offset ] );取消选定2个选项51Testing软件测试网6j%d(h b)K{Z
51Testing软件测试网*{$UX-ZeDD}od
125、list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项51Testing软件测试网#n aT9LI*@o
51Testing软件测试网(x#r,~'SR
126、list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项
A8]e| L rtx _051Testing软件测试网Kyk?/dC9M
127、list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项51Testing软件测试网w_)dCi:G3qFm
51Testing软件测试网_$k\I'Mm%H$J
128、list_extend_item ( list, item [, button  [, offset ] ] );往指定的列表里添加一个选项
U[;o9A}"P#^0
p^:A5A%qNY0129、list_extend_multi_items ( list, item_list, [, mouse_button  [, offset ] ] );添加多个选项51Testing软件测试网?njJd{)t4UHLb
51Testing软件测试网EE r I"cl4v^
130、list_extend_range ( list, item1, item2 [, button  [, offset ] ] );添加一定范围的选项
6@+Rl3{.P(JUQ051Testing软件测试网['G4j%uzZZz b
131、list_get_checked_items ( list, items, number );返回标记的选项的个数和值51Testing软件测试网`3dW;C:Q9^V8L

U9A? dpdC0132、list_get_info ( list, property, out_value );返回列表属性的值
6VkN4m;T4@Cv1Rk8W*q051Testing软件测试网]'h7cL \Jy9M_E
133、list_get_item ( list, item_num, out_value );返回列表选项的内容
)~b1G*su"bZ0
oCCT*p'Z}d0134、list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标51Testing软件测试网 cueB+V~5A`

7D(g;N#J1ogOQ0135、list_get_item_info ( list, item, state, out_value );返回列表选项的状态51Testing软件测试网 NF%{ l Ne4f*i
51Testing软件测试网 rzG-J*KW(\8UKz
136、list_get_item_num ( list, item, out_num );返回列表选项的位置
eZ/OC(c6R%fJ0
3H&e^8vh] Q.oK0137、list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值
,]8iv;CqWd051Testing软件测试网V o2|`#m5E
138、list_select_item ( list, item [,button  [, offset ] ]);选择一个列表选项51Testing软件测试网,_v.M!lR
51Testing软件测试网;K6F9`aC NH
139、list_select_multi_items ( list, item_list [, mouse_button  [, offset ] ] );选择一个列表的多个选项51Testing软件测试网:qZ] nDo
51Testing软件测试网/nh-Bm8A v6X(Q
140、list_select_range ( list, item1, item2 [, button  [, offset ] ]);选定一定范围内全部选项
oY6B!S*[5Mk051Testing软件测试网VVj9RjL_
141、list_wait_info ( list, property, value, time );等待列表属性的值51Testing软件测试网 H l?6Z h+XO
51Testing软件测试网$]-@8d9n4Z
142、menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述51Testing软件测试网 [fD1J(Q

5zrE.bc/{1`q8x0143、menu_get_info ( menu, property, out_value );返回菜单属性的值
Z^Xx&h"q7z,{%l}j2u051Testing软件测试网ON zt)z
144、menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容51Testing软件测试网5A5p"G(S$w7[h%`5}

Vm+z7ma0145、menu_get_item_num ( menu, item, out_position );返回菜单选项的位置51Testing软件测试网g Ta@;cC4@/g
51Testing软件测试网k|#o(~w
146、menu_select_item ( menu;item [ x,y ] );选择一个菜单选项
$@5kA?3o,X~.e0a0
+y^^pHFl0147、menu_wait_info ( menu, property, value, time );等待菜单属性的值51Testing软件测试网!r aU;C:n}9|X[

9_'G#w-S!bd0148、obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图51Testing软件测试网!\"{'k@W&n5F:I k
51Testing软件测试网!\&v&n @C
149、obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据
6g4[Ah7bfs051Testing软件测试网&qq^3yk.N"Q2t
150、obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值
\%t1J+h\*eQ051Testing软件测试网6PM!k4|o avw
151、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在对象里点击文本
7w"C Sq yW#?!^051Testing软件测试网5ofvI x,Nlu)f(A$N
152、obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象51Testing软件测试网4Ygw Hp'\Vb:v

TllI l ]I$U1~2|k0153、obj_drop ( target_object, x, y );拖动一个对象到目标对象51Testing软件测试网"P5cqK;~4AD
51Testing软件测试网5t9^0z-xL0{@ {Ck
154、obj_exists ( object [, time ] );检查对象是否显示在屏幕上51Testing软件测试网nGqSx@"fwl

2j J`)h|Y0155、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );在对象里返回字符串的位置51Testing软件测试网"W3Td)y0R0G

%YK4SO0`)yZ_&a8f0156、obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述
c e{|u0
"I&OH F h.Rp0157、obj_get_info ( object, property, out_value );返回对象属性的值
Z6`*}*FOl4A'I-O1Z0
HhM$W"BT][0158、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本
I%G w^~6N!j v0
ojk$e%a8_fyQ0159、obj_highlight ( object [, flashes ] );高亮显示对象51Testing软件测试网!U%?y-F hH'?w }L
51Testing软件测试网5FQ0@)J*A x~ z%n
160、obj_mouse_click ( object, x, y [, mouse_button ] );点击一个对象51Testing软件测试网6wu V q2q m4um,|
51Testing软件测试网9o'x&c*wx%C._Qk;_
161、obj_mouse_dbl_click ( object, x, y [, mouse_button ] );双击一个对象51Testing软件测试网~.V c;[WM5X$X%F5B

Z|t-H,Az0162、obj_mouse_drag ( object, start_x, start_y, end_x, end_y [,mouse_button ] );在对象上拖动鼠标
I3dF;A'e ?V0
7C!m"xn\&kK0163、obj_mouse_move ( object, x, y );在对象里移动鼠标指针51Testing软件测试网WcJf-c0T R
51Testing软件测试网&y%v&Xd)hj vD
164、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里移动鼠标到一个字符串
~ i7x#f1T0
0\S.u[/U6GS0165、obj_type ( object, keyboard_input );用键盘输入对象
Y g+},G*^ ZQP0
Ppf7J'GR/[E%y1|0166、obj_wait_bitmap ( object, bitmap, time [, x, y, width, height] );等待对象位图出现在屏幕
8cm#c/dE2\G$h0
#@%W,I0_5SmU0167、obj_wait_info ( object, property, value, time );等待对象属性的值51Testing软件测试网4V@;X7k)q {

Z6x,C3MN \s0168、scroll_check_info ( scroll, property, property_value );检查滚动条的属性值51Testing软件测试网f,HMXEw

)g0aT%a0V Q0169、scroll_check_pos ( scroll, position );检查滚动条的当前位置
M\`a`n8R051Testing软件测试网,N'D0~*G/Z+V H-eW5q/Q
170、scroll_drag ( scroll, orientation, position );滚动到指定位置51Testing软件测试网*{:HN/Vx(rf"[

O-_ `h({ q-~O&~W;K0171、scroll_drag_from_min ( scroll, orientation, position );从最小值开始滚动
8?#j#f&T"B-FX:t FCj0
"Yc NH$D+DBqq0172、scroll_get_info ( scroll, property, out_value );返回滚动条的属性值
R1{'FHQ8vvZ^i0
?7\$\ j-FJ_5Z;JI0173、scroll_get_max ( scroll, orientation, out_max );返回滚动条的最大位置51Testing软件测试网 G,y`/m(~Q FWC
51Testing软件测试网-Rq!^#UB}
174、scroll_get_min ( scroll, orientation, out_min );返回滚动条的最小位置
`a{xJ zxS051Testing软件测试网6_&Y{E/I(E
175、scroll_get_selected ( slider, min_value, max_value );返回滚动条的最小和最大值
9O,i,J N6N|j,\Q051Testing软件测试网!n ],Ux c(f
176、scroll_get_pos ( scroll, orientation, out_pos );返回滚动条当前位置
5k8l&s F%FWy3Z0
(L?%{+vR N"IV4y0177、scroll_line ( scroll, orientation, [ +|- ] lines );滚动指定的几行
{U3dko051Testing软件测试网8fVto;Q[;u"zK3K
178、scroll_max ( scroll, orientation );设置滚动条到最大位置51Testing软件测试网 WM iXJ&Y:G%a

\ y&DZ~y[L!n?0179、scroll_min ( scroll, orientation );设置滚动条到最小位置51Testing软件测试网({0pG Vg&~6V~S

#R+^X-?o0180、scroll_page ( scroll, orientation, [+|-] pages );移动滚动条指定的页数51Testing软件测试网2yJiU I

3M$M7X J6B7b e+EQ0181、scroll_wait_info ( scroll, property, value, time );等待滚动条属性的值51Testing软件测试网r/pY pW~

n*n!F0}+N%t\2N9}u0182、spin_get_info ( spin, property, out_value );返回旋转属性的值
6P D6|5~FP@lT051Testing软件测试网6Q0~N;Z(o eX
183、spin_get_pos ( spin, out_value );返回旋转对象的位置
%NF*O9h\0o [k0
'{8KL%M\] g SA0184、spin_get_range ( spin, out_min_pos, out_max_pos );返回旋转对象的最小与最大位置51Testing软件测试网_? [%D6a+U4y
51Testing软件测试网CWI&W4bB{\3PU&`
185、spin_max ( spin [, index ] );设置旋转对象到最大值51Testing软件测试网+lxlBe+oy

*])U` AX@3q2]1pc0186、spin_min ( spin [, index ] );设置旋转对象到最小值
AN%Nrd0l7s/{1T#s0
:X wr/Q mE|0187、spin_next ( spin [, index ] );设置旋转对象到下一个值
_-\%@ b^8p0
Gv T+mz.Y"M0188、spin_prev ( spin [, index ] ); 设置旋转对象到前一个值51Testing软件测试网M STl7t^c:x

xB7w'^7mU0189、spin_set ( spin, item [, index ] );设置选择对象到一个选项值51Testing软件测试网,C:r]zK^
51Testing软件测试网{I/x5iOhc6D
190、spin_wait_info ( spin, property, value, time );等待旋转属性等于指定的值
/c\b!oL051Testing软件测试网0gS iW\"g
191、static_check_info ( static, property, property_value );检查静态文本对象属性的值
,OPRH;T_M `0
5W+{[mA,h @V0192、static_check_text ( static, text, case_sensitive );检查静态文本对象的内容51Testing软件测试网 K`'hO+v&I6^v7h:YU

c+HD'eN,} si0193、static_get_info ( static, property, out_value );返回静态文本对象属性的值
W w#nv*C6O6E_051Testing软件测试网ovJM p~ A
194、static_get_text ( static, out_string );返回静态文本对象的内容
G$d5R(p"w['J051Testing软件测试网GIpIw:h YD
195、static_wait_info ( static, property, value, time );等待静态文本对象的属性值
a-u k2Hk*Tn051Testing软件测试网 S x `@B
196、statusbar_get_field_num ( statusbar, field, field_index );返回状态栏区域的数字索引51Testing软件测试网M#|n9A5Q+q7_
51Testing软件测试网9|?3e#C:vsY
197、statusbar_get_info ( statusbar, property, out_value );返回状态栏的属性值51Testing软件测试网ud4jx6A3[8k

SQ3n6f"[I{R+D0198、statusbar_get_text ( statusbar, field_index, out_text );读取状态栏区域的文本51Testing软件测试网5Fp0?ra$G%q
51Testing软件测试网 T&uys)f.L
199、statusbar_wait_info ( statusbar, property, value, time );等待状态栏属性的值51Testing软件测试网k^Y[;eXZ

yU.z$t$~&u K.F0200、tab_get_info ( tab, property, out_value );返回tab属性的值
 
201、tab_get_item ( tab, item_num, out_item );返回tab选项的名称
$?R?hPG051Testing软件测试网v!I:[Js6A+PEZ vF{'v
202、tab_get_selected ( tab, out_item, out_num );返回选定的tab选项的名称和个数
0N[nF0l {'Lu8l051Testing软件测试网F-T*W i_ O|
203、tab_select_item ( tab, item );选择tab选项51Testing软件测试网0pGLF,`:t4J9p

7n0W(fl0o;Z8V!J4j0204、tab_wait_info ( tab, property, value, time );等待tab属性的值51Testing软件测试网z0hceS1H$\.E

#f(B0sYz2cQ0205、tbl_activate_cell ( table, row, column );双击表里某个单元
I!LR/IJ1^k,k0
cj G uH ?&\X0206、tbl_activate_col ( table, column );双击表里某列
$do _2CE0
sl/O{bm@3`0207、tbl_activate_header ( table, column );双击表里某列标题
"VM%gb!jR"bv0
%xeEIo3b1v.?0208、tbl_activate_row ( table, row );双击表里某行51Testing软件测试网;QYu!RsIY'e(oKp

*T2Y:C ~9X'M$}XDe9lN9[0209、tbl_deselect_col ( table, column );取消选择表的某列
RzJ QH5p9n F0
(d| j1h0}|] u0210、tbl_deselect_cols_range ( table, from_column, to_column );取消选择表里某几列
#Hw@!tV5g051Testing软件测试网+K`(V I(E3w)yF
211、tbl_deselect_row ( table, row );取消选择表里某行
'HI~Kd&_6bttL Z0
0U;tB9xk0212、tbl_deselect_rows_range ( table, from_row, to_row );取消选择表里某几行
,{tf X fs_F*R Ra051Testing软件测试网&j6@4`0k"p0B*sIi z0NU
213、tbl_extend_col ( table, column );往表里当前列加一列51Testing软件测试网!a-z6u K$D1P"B4`
51Testing软件测试网l0V+sr#["l2s)[.a
214、tbl_extend_cols_range ( table, from_column, to_column );往表里当前列加多列
3B3j+f"y8q0
V~.o^9Q B8p Tw0215、tbl_extend_row ( table, row );往表里当前行前加一行
C wJwU"SU){051Testing软件测试网FK.b,Dv'THyi
216、tbl_extend_rows_range ( table, from_row, to_row );往表里当前行加多行
im|!_j@/h{OI0
y1U3T t.H_5c { d0217、tbl_get_cell_data ( table, row, column, out_text );返回表里指定单元的内容51Testing软件测试网-EU:I-w]9K5@
51Testing软件测试网)D,{gE6O9S
218、tbl_get_cols_count ( table, out_cols_count );返回表的列数
t2u*uHp:B`3e ^9N,s0
G(SH#{C3lh:d0219、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题名称
U5?ZZ#}/B$jA'q0
H'd%HVE0I0220、tbl_get_column_names ( table, out_col_names, out_cols_count );返回表里列的名称和个数51Testing软件测试网&wWG9Y} n-@:W.E.O
51Testing软件测试网r!Z'[&q&c4K
221、tbl_get_rows_count ( table, out_rows_count );返回表的行数
4U?h I)y0Q\O`py2k051Testing软件测试网/~-Q*R9^gF0B"j3uF
222、tbl_get_selected_cell ( table, out_row, out_column );返回表里焦点所在单元51Testing软件测试网W6{&AFT{3{

c$F+k,S$r0223、tbl_get_selected_row ( table, row );返回当前焦点所在行
g O#I{.g XZ0
9F#U&c#U USv0224、tbl_select_cells_range ( table, start_row, start_col, end_row, end_col );在表里点击选定的几个单元
|7`M$Z&d8O*R p0
)x W(h N L5QF/fh0225、tbl_select_col_header ( table, column );选定指定的列的标题51Testing软件测试网 S*nMMRZ

n*S!c2[l0s0226、tbl_select_cols_range ( table, from_column, to_column );在表里选定指定的几列51Testing软件测试网*@yrjqa{
51Testing软件测试网"Y"J$zPjBQx
227、tbl_select_rows_range ( table, from_row, to_row );在表里选定指定的几行51Testing软件测试网R&WW0~ X

v']B+N/|.HG0228、tbl_set_cell_data ( table, row, column, data );设置表里某单元的内容51Testing软件测试网&U%r6uSA)wg~

,z!G?S)H I5C0229、tbl_set_cell_focus ( table, row, column );设置表里焦点到某个单元51Testing软件测试网"{gw+V7HJ/x4z
51Testing软件测试网R1{0?6Ci l F!j
230、tbl_set_selected_cell ( table, row, column );在表里选定指定的单元
7I%cEG7T$XC J0
;\T"{0Q%TAc{c0231、tbl_set_selected_col ( table, column );在表里选定指定的列
{H5uL*G/N051Testing软件测试网sD(e A.sI,N
232、tbl_set_selected_row ( table, row );在表里选定指定的行
1lKC4O3`cZ3p`0
?_\C2t3H{0v~\&D0233、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );点击一个对象的文本
sw])`~0
j,nv!A,[:u\ X`r0234、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );返回一个对象字符串的位置51Testing软件测试网3e aF5JO l9c[

Kt5x/N5S x0235、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );从对象里读取文本
T7`+Vk1D%VB*{0
+u+Q1L#D!G0DNv S0236、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里把鼠标焦点落在字符串
U;y\$d'I0q0
#GFk GJ1o L-O0237、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );在一个窗口返回字符串位置51Testing软件测试网K*} fE"@

2Yn,w} Q:Ay0L-V0238、win_click_on_text (window, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在窗口搜索文本51Testing软件测试网;e*A^(sf YD"e X

Wb9bziP,Nj |0239、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定的区域读取文本
_K-p H,bgfU'kIO*S0
UB2M/d8N1q/qY0240、win_move_locator_text ( window, string [ ,search_area  [ ,string_def ] ] );在窗口里把鼠标焦点落在字符串51Testing软件测试网u-rl'e-lv

'KS&sdE9h_F1j~u-r0241、toolbar_button_press ( toolbar, button, mouse_button );点击工具栏按钮51Testing软件测试网-w6uOI5h
51Testing软件测试网E#lX,|vcub
242、toolbar_get_button ( toolbar, button_num, out_text  );返回工具栏按钮名称
6Q"q Xmlt La Z051Testing软件测试网^#b#i2X4u8x'J
243、toolbar_get_button_info ( toolbar, button, property, out_value );返回工具栏按钮属性值51Testing软件测试网&wd#y c$N.X*z*Y
51Testing软件测试网 |d"dMX&M;Z:o
244、toolbar_get_button_num ( toolbar, button, out_num );返回工具栏按钮位置51Testing软件测试网:U7J T pZhg

@s/R2B ] E/v5D0245、toolbar_get_buttons_count ( toolbar, out_num );返回工具栏按钮的个数51Testing软件测试网T1`e)u$WY'h0c4Ul

)o?_ql:H`V\"_0246、toolbar_select_item ( toolbar, toolbar_item_chain [, mouse_button ] );选择类菜单工具栏的某项
/N w7E%T/Q } Yx%p0
&d}7L l8qd"C,b|0247、web_browser_invoke ( browser, site );调用ie打开某个站点
L.mL:zjd!x051Testing软件测试网;D;? vc3ld
248、web_cursor_to_image ( image, x, y );移动鼠标指针到某个图片
"qa3F6r0v0
9i'r#Gw5b r0249、web_cursor_to_label ( label, x, y );移动鼠标指针到某个标签51Testing软件测试网HE-?,D+B
51Testing软件测试网0x/f?0G1te X'X7Y
250、web_cursor_to_link ( link, x, y );移动鼠标指针到某个链接
Fdx3Yz"T0b051Testing软件测试网iO.N/Gub+Ac
251、web_cursor_to_obj ( object, x, y );移动鼠标指针到某个对象
'K*E wE/bAw051Testing软件测试网i%~?9g']
252、web_event ( object, event_name [, x , y ] );在指定对象运行一个事件
QP C E8S;a/bsa#r0
0b9M+sTF8[YDg0253、web_file_browse ( object );点击浏览按钮51Testing软件测试网K|PB h_q t
51Testing软件测试网 `'P6li%[;hQL
254、web_file_set ( object, value );在文件类型的对象设置文本值
s ]?,VM3T/_ E*b051Testing软件测试网u"l@B;W
255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回帧内文本位置51Testing软件测试网JA[m B

-uRp1f$x3t3[g[0256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回帧内文本的内容
@(^$W*M V;sz'M0
#o(`Og*sO0257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回帧内标准表达式的事件个数
:]Cpu&P1UCE u-L051Testing软件测试网7I6[q@eJ&Rp r"I2xO#R
258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );检查帧内指定的文本字符串是否存在
B'{$[hi1S4a;}0
+F-U:ub}B*z0259、web_get_run_event_mode ( out_mode );返回当前的运行模式
^ Yz!},g l/l5|/H051Testing软件测试网8QQl6YkD6r@J}+i
260、web_get_timeout ( out_timeout );返回winrunner响应web的最大等待时间51Testing软件测试网 f3{+C9fV#@ v_"em
51Testing软件测试网8lpQ E?'aie
261、web_image_click ( image, x, y );点击一个图片链接或图片51Testing软件测试网a w(Yo_5Y+a

_h9e?h`0262、web_label_click ( label );点击指定的标签51Testing软件测试网W-V R,U%u

_ Q%yxT?e.z `0263、web_link_click ( link );点击朝文本链接51Testing软件测试网*BKyC&Dr*Zy

V Tg2tu-}N#G4@$KtH0264、web_link_valid ( name, valid );检查url链接是否有效51Testing软件测试网M!D+ID1UWR,Z-K"o

-\4? }t*b#MQfJ)Y0265、web_obj_get_child_item ( object, table_row, table_column, object_type, index, out_object );返回对象的子对象的物理描述
}.K']~*ICG`051Testing软件测试网%q!? gnrBg
266、web_obj_get_child_item_count ( object, table_row, table_column, object_type, object_count );返回对象的子对象的个数51Testing软件测试网$XLAF;G&F#~S
51Testing软件测试网+B ]v YlWA hDon T
267、web_obj_get_info ( object, property_name, property_value );返回对象属性的值51Testing软件测试网Yb7lr|8pD F.m
51Testing软件测试网+P&RfW,dX#u-^
268、web_obj_get_text ( object, table_row, table_column, out_text [, text_before, text_after, index] );返回对象的文本字符串
h9O3B8R G7l0
8M,B*DA2I1A,T0269、web_obj_get_text_count ( object, table_row, table_column, regex_text_to_find, count ); 返回对象内标准表达式的事件个数
#i/N,uAMo051Testing软件测试网OZEp f$Q/{
270、web_obj_text_exists ( object, table_row, table_column, text_to_find [, text_before, text_after] );在对象里如果该文本存在,返回该文本
s%Z+\? xuy0
%Z+H7|fPE1d0271、web_refresh ( frame );winrunner重新连接指定的帧51Testing软件测试网o!H k0` m[`9I

%L7_-[{U0272、web_restore_event_default ( );重新设置全部事件为默认值
7t/r$[ dj&k `2lw051Testing软件测试网KY|[B3?
273、web_set_event ( class, event_name, event_type, event_status );设置事件状态51Testing软件测试网'nZ H*C\%y*R
51Testing软件测试网S%A3{#ICf
274、web_set_run_event_mode ( mode );设置事件运行模式51Testing软件测试网%B4XR;u w7?6P

I;?-cIEk6dRf0275、web_set_timeout ( timeout );设置winrunner响应web的最大时间
$k0W.YA%QMG*IO0
r!]b^3J[O0276、web_set_tooltip_color ( fg_color, bg_color );设置webtest工具条的颜色51Testing软件测试网8GI^]rds0Zf

g%Un oZk8J0277、web_sync ( timeout );等待帧的导航完成
l4_+Iq`[^ s051Testing软件测试网;?FPtlY ?u g
278、web_tbl_get_cell_data ( table, row, column, starting_pos, out_text, out_actual_text_length );返回web表内指定单元的内容,开始于指定的字符
j0f!t#o+NxM#W6PH0
L_,c h&\%hP:Ndy0279、web_url_valid ( URL, valid );检查url是否有效
_qybh/px051Testing软件测试网{9f4I T,ILb
280、tbl_get_cell_data ( table, row, column, out_text );返回table里指定单元的内容(加载webtest)
3~ji'i4d#TE0
&r5E)yq4}?1O0281、tbl_get_cols_count ( table, out_cols_count );返回表的列数(加载webtest)
0x7F0s^rxf}#v0
s| `(\;RfOP0282、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题的名称(加载webtest)51Testing软件测试网)Cgm&usY`~P
51Testing软件测试网~6X!jXz&F w*AK
283、tbl_get_rows_count ( table, out_rows_count );返回表的行数(加载webtest)51Testing软件测试网6Y#P:L'H+u/?j i
51Testing软件测试网Q;vY ?)q7f;e@
284、web_password_encrypt ( password );将web页面的密码加密
+E4R(I O@{*}3l:Y0
]!\S,` |-Z|{B0285、set_window ( window [,time] );激活窗口并确定等待时间
z c\$Y1]X [0
|r%Orb0286、win_activate ( window );激活窗口51Testing软件测试网(\1To@ VS%y
51Testing软件测试网?;YJ%? TYP
287、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口的位图51Testing软件测试网+_HjZ+B*Udv8zH K

8l`;`/v6|*m0288、win_check_gui ( window, checklist, expected_results_file, time );比较窗口的gui数据
_,U7b+W@q0
]+mz$\ Lc0289、win_check_info ( window, property, property_value [, timeout ] );检查被请求的窗口属性
-L4l(Z\9q t051Testing软件测试网1yho~"[
290、win_click_help ( window );在窗口点击帮助按钮51Testing软件测试网~9T ty1w&?C*?h

p^a?5VJ+G+j9g0291、win_click_on_text (window, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在窗口搜索文本
]:R*i;iN&l051Testing软件测试网-a1|.{ ?*]qmB6H0n
292、win_close ( window );关闭窗口
:L u#W7H(E-m!UQ?&J0
C/pL6P"_%y$k0293、win_drag (source_window, x, y [, mouse_button ] );从源窗口拖动对象51Testing软件测试网m SN(d2MQ
51Testing软件测试网e7Py N~Uf$u
294、win_drop ( target_window, x, y  );拖动对象到目标窗口51Testing软件测试网yCo:dK
51Testing软件测试网!b)md8u#N^lAW
295、win_exists ( window [, time ] );检查窗口是否显示在屏幕上51Testing软件测试网*s9B u;E{
51Testing软件测试网~Cv-zOj |
296、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );返回窗口里字符串的位置51Testing软件测试网U7K'o8V4e+f S {KW]

]5B%j0q$YD6E-d4?0297、win_get_desc ( window, obligatory, optional, selector, out_desc );返回窗口的物理描述51Testing软件测试网S tN%p&n D|`X

9W5MgLHA6f6C;_DC0298、win_get_info ( window, property, out_value );返回窗口属性的值
1{"R jin0aO&x0{Zv0K]0
8gC#}X5M9_x#M[F0299、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定区域读取文本
9qK ao V7U051Testing软件测试网[V&z2WP HB
300、win_highlight ( window [, flashes ] );高亮显示窗口
 
301、win_max ( window );最大化窗口到全屏
B7v8G#L]051Testing软件测试网[Gt,yY0O,\z
302、最小化窗口为一个图标
:gA0q7j"{051Testing软件测试网4K.P z FY^
303、win_mouse_click ( window, x, y [, mouse_button  [, modifier] ] );在窗口点击鼠标51Testing软件测试网/L KLGWy+zO8J|uRG

2EE3B/voJt'O0304、win_mouse_dbl_click ( window, x, y [, mouse_button  [, modifier ] ] );在窗口双击鼠标
GO7]t}(c051Testing软件测试网u/\\F y
305、win_mouse_drag ( window, start_x, start_y, end_x, end_y [, mouse_button ] );在窗口做鼠标拖动操作
}w)T$v/] |r G.T$C051Testing软件测试网O'~i5l nu1k
306、win_mouse_move ( window, x, y );移动鼠标焦点到指定的位置
-S+}(s`5g"G1R zo&G+D051Testing软件测试网,n(VC$}&Q8U^1D7A
307、win_move ( window, x, y );移动窗口到一个绝对位置
x,F/O|r8UY0
aX+o7~n RM,m+\U0308、win_move_locator_text ( window, string [ ,search_area  [ ,string_def ] ] );移动鼠标焦点到窗口的某个字符串
:e cg/z%d~ |,|"yK*j0
O*G$o;C} }!N0309、win_open ( window );打开应用程序窗口
/YQBd{0
v S.IV7]#a's$wK N0310、win_resize ( window, width, height );调整窗口大小51Testing软件测试网Jr Wh:Y g BNw'z

Sa3@T,D'QZ7B NU0311、win_restore ( window );恢复窗口从前的大小51Testing软件测试网LPZ%Yp cp/a L
51Testing软件测试网+l2V Q,e,`
312、win_type ( window, keyboard_input );用键盘输入窗口51Testing软件测试网%h}\.I|2f)A-K$|

Y:G(trtmVJ0313、win_wait_bitmap ( window, bitmap, time [, x, y, width, height] );等待窗口位图
)~ bH&RVQ0
%C)w9|6j#~T;fv d0314、win_wait_info ( window, property, value, time );等待窗口属性值51Testing软件测试网?zZO$Mp)`7F
51Testing软件测试网5{1lLft4J5l
315、atan2 ( y, x );返回y/x(正切)的弧度51Testing软件测试网6o.s.k]]Yw#w@k

zT g;i.n0316、cos ( x );返回余弦值
6v0L H8~Vd/E0
C'}.m9n+}0317、exp ( x );返回e的指数值
l'LyB0w-l;P4v"|051Testing软件测试网t1Y_O?E-x
318、int ( x );返回实数的整数部分
[%E4e:|`7P7}051Testing软件测试网 if@,h&O/Tg(N
319、log ( x );返回自然对数51Testing软件测试网7W_7FQ3W

l~]I$zb*Ca0320、sin ( x );返回正弦值51Testing软件测试网qKuAW~S3_c

"]&d?;PtZ Z'HX%M8z0321、sqrt ( x );返回平方根值51Testing软件测试网*e-L i^dXZ
51Testing软件测试网 @ Z7Q[ cl
322、delete array [ subscrīpt ];删除数组里某个元素51Testing软件测试网 n P ~!d7C
51Testing软件测试网._w X x8lz
323、split ( string, array [ , field_separators ] );将输入分成区域保存在数组里
|b,y SrN#H051Testing软件测试网/V$}!l6W5Nq]u
324、call test_name ( [ parameter1, parameter2, ... parametern ] );调用其他测试脚本51Testing软件测试网o$JbV5AA G5{9[
51Testing软件测试网&x[?A {[?
325、call_chain_get_attr ( property, level, out_value );返回调用链里测试或函数的信息
Sj[7K)Ye4s3tKi:F0
R0_;}~ b0326、call_chain_get_depth ( );返回调用链选项的个数
-C/Lx i(\H E;m;D0
&q@@9IUKpz#s0327、call_close test_name ( [ parameter1, parameter2, ... parametern ] );调用测试脚本,完成时关闭测试
l.X?9Nxa0
qa-c#j.c9uj fN0328、call_ex ( Astra_test_path );从winrunner里调用Astra QuickTest测试51Testing软件测试网:]?2B6X;Qz.]
51Testing软件测试网 TTM;lm'B,],@.A
329、return [ expression ];返回测试或函数的结果表达式
%s-C"l l AB2G051Testing软件测试网KJ)b"o{+_,B"z
330、texit ( [ expression ] );停止执行当前的测试51Testing软件测试网,{6v+x7B5b|E#KQn
51Testing软件测试网L RcU2j5rRR P
331、treturn [ ( expression ) ];停止调用测试返回控制调用测试51Testing软件测试网X[%Q kz\&sE2F8^7x
51Testing软件测试网4}U)A&gug$SO4[
332、load ( module_name [,1/0 [,1/0 ] ] );载入一个编译过的模块51Testing软件测试网'?np W?*uQ

-i Sb/g4M9]0333、reload ( module_name [,1|0 [,1|0] ]);删除编译过的模块并重新载入内存51Testing软件测试网)}0hQ$CcN \p oh
51Testing软件测试网KD q$Xm3R
334、unload ( [ module | test [ , function_name ] ] );从内存里删除编译模块51Testing软件测试网5YQ)TJhT1U}6Y

$L%il C*eQ(|0335、define_object_exception (recovery_scenario_name, function, window, object, property  [ , value ] );对一个gui对象异常事件定义简单的观察场景51Testing软件测试网c)Avy_$]

z7N'QiIB%fFr0336、define_popup_exception (recovery_scenario_name, function, window );对pop-up事件定义异常51Testing软件测试网0plO/D,eG
51Testing软件测试网(OT!}{1z9E/{6[
337、define_tsl_exception (recovery_scenario_name, return_code [, TSL_function ] );定义tsl事件异常事件
;M^*\1TL9Tb0
%p;PfD2xx[}@0338、exception_off ( recovery_scenario_name );解除指定的观察场景
*N0ud+BH051Testing软件测试网pG n9G3F
339、exception_off_all ( );解除所有的观察场景51Testing软件测试网R [}G].qq,n!oC]
51Testing软件测试网6V e~3s5[YKh.K
340、exception_on (recovery_scenario_name );激活指定的观察场景51Testing软件测试网6XmF9CV)]-V6j

0ep6H@Dp:z1uJ |!EIh0341、file_close ( file_name );关闭用file-open打开的文件51Testing软件测试网"H}n m&tJ rY

8TmA1Uy0342、file_compare ( file1, file2 [ , save_file ] );比较两个文件的内容51Testing软件测试网 q.k1` t)?;b

FOH9vm F0343、file_getline ( file_name, out_line );读取文件下一行,并将其分配给一个变量
5Rf7tA!~5h3e0
lH+e;n#x7y0344、file_open ( file_name, mode );打开或创建指定的文件
*U&MKQri%vu!k0
)t9~tH8E _0345、file_printf ( file_name, format, exp1 [ , exp2,... exp30 ] );按格式打印文件51Testing软件测试网"d3FTk$^8AsR6GZ v
51Testing软件测试网%ui ~:mo9^ a
346、pause ( [ expression ] );暂停测试执行并输出提示信息
\ X/\/C%JF Ia051Testing软件测试网o-Ow+i9I W
347、report_msg ( message );往测试报告里写信息51Testing软件测试网8o(Ze7i4Qsf*aEj g
51Testing软件测试网3}CIQi BrT
348、sprintf ( format, exp1, exp2,...expn );返回固定格式字符串到一个变量51Testing软件测试网KE0jl c*y B6O

8h/A6b/eLDDW5v9e0349、str_map_logical_to_visual ( logical_string, visual_string );把逻辑字符串转换成形象字符串51Testing软件测试网Kc,~(B\8c

W9Q:MH EYS0350、eval ( statement1 [; statement2;.... statementn;] );评估并执行附属的tsl语句51Testing软件测试网 {+S,l2X%JA"K
51Testing软件测试网)K,`[G r"Q%j L
351、get_unique_filename ( folder_path , file_prefix  , file_extension  , out_filename  , with_underscore );基于指定的前缀,创建唯一的文件名
5_A8[ Dt051Testing软件测试网]4_c'iz?h
352、nargs ( );返回参数通过的个数51Testing软件测试网 \&g2eW qV+lo3fT
51Testing软件测试网,YK)X:P{_#P
353、tl_step ( step_name, status, descrīption );把测试脚本分成几块,并在当前测试结果里插入状态信息51Testing软件测试网8r6~8p2zh;O0n

Kil["eXS0354、invoke_application ( file, command_option, working_dir, show );调用windows应用程序
9P*TX jQvF051Testing软件测试网7j D*`*k.u,p e7r
355、dos_system ( expression );执行dos命令
'w"j;f6V {"`051Testing软件测试网?P4N"L|1hZ)Z
356、ascii ( string );返回字符串第一个字符的asc码
S |W4}yH,c D051Testing软件测试网A cP2~yA.|Q&R
357、compare_text ( str1, str2 [, chars1, chars2 ] );比较两个字符串51Testing软件测试网 fw(A-q(A;\b.o;w
51Testing软件测试网ta2aw"D
358、index ( string1, string2 );显示两个字符串位置
9i5p$`X-F~#~7}!@"a8P051Testing软件测试网(xr2X1w1r(n.M/X R
359、length ( string );计算字符串里字符的个数
R_G B+`8q??051Testing软件测试网#W%z t&Fu$d(Po
360、match ( string, regular_expression );寻找字符串里正规表达式的事件51Testing软件测试网%y0hR e8r'}0p

6F6C1zpB]GK0361、substr ( string, position [, length ] );从字符串里提取子字符串51Testing软件测试网Y.DS M k QoI

+\D+x4Zg8|0362、tolower ( string );转换全部大写字母到小写字母51Testing软件测试网 m p'|o`l M
51Testing软件测试网@3^mg@,o&F dj
363、toupper ( string ); 转换全部小写字母到大写字母51Testing软件测试网8fa \~?.h/Kh

$@+t-A?1y[0364、end_transaction ( transaction [ , status ] );标记一个性能分析的结束51Testing软件测试网`#dN _:oE7Oq3y&g"R

U ?jt.{"W@0365、get_time ( );返回当前系统时间51Testing软件测试网!Fv0H zZ(j
51Testing软件测试网 ]%F Ym6cFl D"~0Z
366、start_transaction ( transaction_name ); 标记一个性能分析的开始
A Vr&azEz[{051Testing软件测试网w&x!Wui[-_;N0i
367、time_str ( [ expression ] );将返回的整数时间转换成字符串51Testing软件测试网5[Y6vO(VS

[4vpQ:IWt0368、wait ( seconds [, milliseconds] );测试暂停51Testing软件测试网%V5t-gw*_A&P

"\0Q+yA.zzu051Testing软件测试网6Q Q"\x%[r^]
invoke_application(file,command_option,working_dir,show);51Testing软件测试网4RE'}Y}8J?Fe

{Y _7B&ID051Testing软件测试网(Ts]8ZQ(tT
file:应用程序的文件名,绝对路径;
}$K_i P051Testing软件测试网/v0j/VII4\jZPOP-m
51Testing软件测试网3Z7f5h+c+k*I[x BA
command_option:应用程序的参数;
&R|.N Ez!iOQ051Testing软件测试网d,A"eeS2H u \!~
51Testing软件测试网 v3d_c4bBx*@ F
working_dir:应用程序工作路径;
cc+U+H8t?~051Testing软件测试网zA{uP`

5rN[\1f6` wt-xr0show:程序运行时的显示模式;51Testing软件测试网G{ w g3n

{$|6b)U-vi6E-PJ$@n051Testing软件测试网+B.FH5O b1K3a@5^j

` w_$XH0数据库检查点:标准检查点和运行时检查点
s4A3v;F%jv"P#r$Z {0
e@]JE0
+X(J5wL ^$_6U0标准检查点检查行数、列数、内容是否一致;包括defaultcheck仅检查数据库内容是否一致;custom check 可随意组合上面三种方式检查
`oa k{051Testing软件测试网q+^$a$lW(F8H$b

em+X;r(z Y6p5f9oB0运行时检查点检查程序界面上某些控件显示的内容是否在数据库中匹配记录,三种方式:匹配一条、匹配多条、没有匹配记录

TAG: WR

 

评分:0

我来说两句

Open Toolbar