WR TSL 2-19-2008
上一篇 / 下一篇 2008-06-01 13:35:33 / 个人分类:WR
Winrunner Context Sensitive命令列表51Testing软件测试网vO6B5`?:e
G)xw,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.
zz&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软件测试网 XO^ 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.{*EU
ActiveBar_select_tool("Format;Center", TRUE);51Testing软件测试网'D9A}2D~,Y#y0b'_K
#Ko3R8g;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软件测试网-czXh aE 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 C o3k)\?!~&Y b9i015、db_check ( checklist, expected_results_file [ , max_rows [ , parameter_array ] ] );比较当前数据库数据和期待的数据库数据51Testing软件测试网 HIfJ ]al0k
51Testing软件测试网\a&W
G)xw,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.
zz&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软件测试网 XO^ 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.{*EU
ActiveBar_select_tool("Format;Center", TRUE);51Testing软件测试网'D9A}2D~,Y#y0b'_K
#Ko3R8g;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软件测试网-czXh aE 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 C o3k)\?!~&Y b9i015、db_check ( checklist, expected_results_file [ , max_rows [ , parameter_array ] ] );比较当前数据库数据和期待的数据库数据51Testing软件测试网 HIfJ ]al0k
51Testing软件测试网\a&W