tsl脚本命令(转贴)三
上一篇 / 下一篇 2007-07-21 11:09:47 / 个人分类:WR
tsl脚本命令(转贴)三
jP^ p}{+@6P0
v6m Oh|9E0
jP^ p}{+@6P0
v6m Oh|9E0
201、tab_get_item ( tab, item_num, out_item );返回tab选项的名称51Testing软件测试网%o7Qt!c1LjI(I\N
51Testing软件测试网7Y)RJG"c g
202、tab_get_selected ( tab, out_item, out_num );返回选定的tab选项的名称和个数51Testing软件测试网2AW$et^#Vl$E&y2kw
51Testing软件测试网 }nL:|^a
203、tab_select_item ( tab, item );选择tab选项
E1NYfO }H XBiN;s0
s {:{vp,D0204、tab_wait_info ( tab, property, value, time );等待tab属性的值51Testing软件测试网aG6aSZ,h;Br
51Testing软件测试网E:rKtXa:e c/a@
205、tbl_activate_cell ( table, row, column );双击表里某个单元51Testing软件测试网9A8]Cs,J!x9u
51Testing软件测试网xGn8V4F
206、tbl_activate_col ( table, column );双击表里某列51Testing软件测试网Bz%vSm|
51Testing软件测试网AqqWcbG
207、tbl_activate_header ( table, column );双击表里某列标题51Testing软件测试网e$UAaRE,_0g
,Z~h*v'Y4|a!U y5I0208、tbl_activate_row ( table, row );双击表里某行51Testing软件测试网(AyMW"x\Z9o
51Testing软件测试网r*[?N%m0S8P2j
209、tbl_deselect_col ( table, column );取消选择表的某列51Testing软件测试网%Zqj_1c4~O
51Testing软件测试网d{f0T7n,]C;Fg#N
210、tbl_deselect_cols_range ( table, from_column, to_column );取消选择表里某几列
cN;@.VcvgeB.H051Testing软件测试网&ItbUh0ae
211、tbl_deselect_row ( table, row );取消选择表里某行51Testing软件测试网)MFd}Z/T
51Testing软件测试网:v$C^;EY
212、tbl_deselect_rows_range ( table, from_row, to_row );取消选择表里某几行
$@9c8y SI9~k Y0
)K4P.iw2w_ z0213、tbl_extend_col ( table, column );往表里当前列加一列
8` W/^ZJX y;]051Testing软件测试网*[ \Lte)B1P
214、tbl_extend_cols_range ( table, from_column, to_column );往表里当前列加多列51Testing软件测试网^1J` M6T/?
51Testing软件测试网4YyA:\1`|H Gi
215、tbl_extend_row ( table, row );往表里当前行前加一行51Testing软件测试网~!A&g$kB1kI0v|
51Testing软件测试网 a3Fj*vB.s+v
216、tbl_extend_rows_range ( table, from_row, to_row );往表里当前行加多行51Testing软件测试网w D8G-r'E7V$o9CZ0P
iFl/?JHk:~Fo0217、tbl_get_cell_data ( table, row, column, out_text );返回表里指定单元的内容51Testing软件测试网;k s'|3Af6y)`Q
51Testing软件测试网%v EC q%k2[8a/xAO
218、tbl_get_cols_count ( table, out_cols_count );返回表的列数
FK!l$dG051Testing软件测试网U.cq]:X-|%F
219、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题名称
T'ru"K+f4x-ua#zX1rp051Testing软件测试网Lj'R%I/C"d G:joF-u
220、tbl_get_column_names ( table, out_col_names, out_cols_count );返回表里列的名称和个数51Testing软件测试网/xA[s J RW
7k3iIlBX9N'j(@H0221、tbl_get_rows_count ( table, out_rows_count );返回表的行数51Testing软件测试网n*Bm ^z6R ^,\
51Testing软件测试网7I Iq#?8pO L
222、tbl_get_selected_cell ( table, out_row, out_column );返回表里焦点所在单元51Testing软件测试网-aE+g1|v'D#S
S.D7Q_+f7J{Z0223、tbl_get_selected_row ( table, row );返回当前焦点所在行
j"v5P;{*v0
P+]&Mv`'U%d;i0224、tbl_select_cells_range ( table, start_row, start_col, end_row, end_col );在表里点击选定的几个单元51Testing软件测试网1v ~.Wi*T B j7n
Y S!nffe V,x0225、tbl_select_col_header ( table, column );选定指定的列的标题51Testing软件测试网aG^8Do'E6zum@
'V `0F;xNU~ bc/V%z]0226、tbl_select_cols_range ( table, from_column, to_column );在表里选定指定的几列
wtV6o{%k0
1Od7D u um \s'|0227、tbl_select_rows_range ( table, from_row, to_row );在表里选定指定的几行51Testing软件测试网!p#R$flF dK{*u
51Testing软件测试网,t9HW7vc D7T
228、tbl_set_cell_data ( table, row, column, data );设置表里某单元的内容
Q'q Uw-A7_F|0
h8h%GL {gAo0229、tbl_set_cell_focus ( table, row, column );设置表里焦点到某个单元51Testing软件测试网`)MD-FZ3TW{
51Testing软件测试网Zrpj)y:L&F2Sa
230、tbl_set_selected_cell ( table, row, column );在表里选定指定的单元51Testing软件测试网So?]+u
51Testing软件测试网{AMlr6rR
231、tbl_set_selected_col ( table, column );在表里选定指定的列
5{o%~6IGP051Testing软件测试网V.jPf-aa(Bq"w
232、tbl_set_selected_row ( table, row );在表里选定指定的行
og0PS"o:icC051Testing软件测试网*z6jf5k&D9H1t
233、obj_click_on_text ( object, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );点击一个对象的文本
1E/i2XZ%GK\051Testing软件测试网+ROs!rO
234、obj_find_text ( object, string, result_array [, search_area [, string_def ] ] );返回一个对象字符串的位置51Testing软件测试网#~#h e2h{G
8Uz0QJ6Y6F$y4U2Y0235、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );从对象里读取文本51Testing软件测试网X4[jyn RHj
51Testing软件测试网;] _ q!jH$lm+ZA2p
236、obj_move_locator_text ( object, string [ , search_area [ , string_def ] ] );在对象里把鼠标焦点落在字符串
+of-M(c[S2g051Testing软件测试网h!~?HU-}eY
237、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );在一个窗口返回字符串位置51Testing软件测试网T`Wx/v],EOo%T
51Testing软件测试网8H7C-{2jH-No)W
238、win_click_on_text (window, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在窗口搜索文本51Testing软件测试网'@i1I[MF
51Testing软件测试网Ue,Do M+P[9k
239、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定的区域读取文本
6Rr)DD(Rv051Testing软件测试网@B2F3x&q Z2s J8i
240、win_move_locator_text ( window, string [ ,search_area [ ,string_def ] ] );在窗口里把鼠标焦点落在字符串
6z2O`1I[ RN}ON*[051Testing软件测试网|'P.tDo m#W7d7i
241、toolbar_button_press ( toolbar, button, mouse_button );点击工具栏按钮
#D%@1B2kr,g0}0
;f tUKt7I0242、toolbar_get_button ( toolbar, button_num, out_text );返回工具栏按钮名称51Testing软件测试网2~6L%V Iz OkD*E
51Testing软件测试网|4M$SV i3o!Y2K,SMX-n
243、toolbar_get_button_info ( toolbar, button, property, out_value );返回工具栏按钮属性值51Testing软件测试网0}*|A7M X#k,SV#Q
51Testing软件测试网6Zd,u#ytKQ a%Na
244、toolbar_get_button_num ( toolbar, button, out_num );返回工具栏按钮位置51Testing软件测试网h/Kp d3QL1^$Ke9{#PUV
51Testing软件测试网5o_hSA-g
245、toolbar_get_buttons_count ( toolbar, out_num );返回工具栏按钮的个数51Testing软件测试网x5z ? ^~
%^P8i?C-lT)|N'Sw7qd0246、toolbar_select_item ( toolbar, toolbar_item_chain [, mouse_button ] );选择类菜单工具栏的某项51Testing软件测试网*Nl(U'W+E0Q
zW,J#@~0247、web_browser_invoke ( browser, site );调用ie打开某个站点51Testing软件测试网Z ]:^,yV*X o(U
51Testing软件测试网y,~S7s-_ v(ih
248、web_cursor_to_image ( image, x, y );移动鼠标指针到某个图片
T2y I!Z dKJu0aB0
8gj.v Q*L+i0249、web_cursor_to_label ( label, x, y );移动鼠标指针到某个标签
[1AO$WbzS0
kKg-wP!qG5f0250、web_cursor_to_link ( link, x, y );移动鼠标指针到某个链接
P q:l.M cx051Testing软件测试网-K1c3n [ c;`
251、web_cursor_to_obj ( object, x, y );移动鼠标指针到某个对象
pE@ ? \#@4`0
"[!eH.M7S@`+Q0252、web_event ( object, event_name [, x , y ] );在指定对象运行一个事件51Testing软件测试网4oei"DXB^
51Testing软件测试网 K-Oh;W#@g9{QM
253、web_file_browse ( object );点击浏览按钮
1I*`!g%R9g _?051Testing软件测试网Oar G9O r~h
254、web_file_set ( object, value );在文件类型的对象设置文本值
PVmFi)|'g;bI051Testing软件测试网/]f.H`Ig5n
255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回帧内文本位置51Testing软件测试网.`h3a/v|-`
$j0g2{2w;^'\ bd!^sO0256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回帧内文本的内容
1e+uv.Y,K0
$eS @g5x1T0257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回帧内标准表达式的事件个数51Testing软件测试网;vb VoY$k Wz`
Q2C!rHH1{D+i*v0258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );检查帧内指定的文本字符串是否存在
M2q:{` G th051Testing软件测试网RB|q\ON U9FO
259、web_get_run_event_mode ( out_mode );返回当前的运行模式
Yk2RL#UYe2x6Y051Testing软件测试网7l%}b"gu;?[.@u
260、web_get_timeout ( out_timeout );返回winrunner响应web的最大等待时间
r2~gn#wU&[/H0
51Testing软件测试网7Y)RJG"c g
202、tab_get_selected ( tab, out_item, out_num );返回选定的tab选项的名称和个数51Testing软件测试网2AW$et^#Vl$E&y2kw
51Testing软件测试网 }nL:|^a
203、tab_select_item ( tab, item );选择tab选项
E1NYfO }H XBiN;s0
s {:{vp,D0204、tab_wait_info ( tab, property, value, time );等待tab属性的值51Testing软件测试网aG6aSZ,h;Br
51Testing软件测试网E:rKtXa:e c/a@
205、tbl_activate_cell ( table, row, column );双击表里某个单元51Testing软件测试网9A8]Cs,J!x9u
51Testing软件测试网xGn8V4F
206、tbl_activate_col ( table, column );双击表里某列51Testing软件测试网Bz%vSm|
51Testing软件测试网AqqWcbG
207、tbl_activate_header ( table, column );双击表里某列标题51Testing软件测试网e$UAaRE,_0g
,Z~h*v'Y4|a!U y5I0208、tbl_activate_row ( table, row );双击表里某行51Testing软件测试网(AyMW"x\Z9o
51Testing软件测试网r*[?N%m0S8P2j
209、tbl_deselect_col ( table, column );取消选择表的某列51Testing软件测试网%Zqj_1c4~O
51Testing软件测试网d{f0T7n,]C;Fg#N
210、tbl_deselect_cols_range ( table, from_column, to_column );取消选择表里某几列
cN;@.VcvgeB.H051Testing软件测试网&ItbUh0ae
211、tbl_deselect_row ( table, row );取消选择表里某行51Testing软件测试网)MFd}Z/T
51Testing软件测试网:v$C^;EY
212、tbl_deselect_rows_range ( table, from_row, to_row );取消选择表里某几行
$@9c8y SI9~k Y0
)K4P.iw2w_ z0213、tbl_extend_col ( table, column );往表里当前列加一列
8` W/^ZJX y;]051Testing软件测试网*[ \Lte)B1P
214、tbl_extend_cols_range ( table, from_column, to_column );往表里当前列加多列51Testing软件测试网^1J` M6T/?
51Testing软件测试网4YyA:\1`|H Gi
215、tbl_extend_row ( table, row );往表里当前行前加一行51Testing软件测试网~!A&g$kB1kI0v|
51Testing软件测试网 a3Fj*vB.s+v
216、tbl_extend_rows_range ( table, from_row, to_row );往表里当前行加多行51Testing软件测试网w D8G-r'E7V$o9CZ0P
iFl/?JHk:~Fo0217、tbl_get_cell_data ( table, row, column, out_text );返回表里指定单元的内容51Testing软件测试网;k s'|3Af6y)`Q
51Testing软件测试网%v EC q%k2[8a/xAO
218、tbl_get_cols_count ( table, out_cols_count );返回表的列数
FK!l$dG051Testing软件测试网U.cq]:X-|%F
219、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题名称
T'ru"K+f4x-ua#zX1rp051Testing软件测试网Lj'R%I/C"d G:joF-u
220、tbl_get_column_names ( table, out_col_names, out_cols_count );返回表里列的名称和个数51Testing软件测试网/xA[s J RW
7k3iIlBX9N'j(@H0221、tbl_get_rows_count ( table, out_rows_count );返回表的行数51Testing软件测试网n*Bm ^z6R ^,\
51Testing软件测试网7I Iq#?8pO L
222、tbl_get_selected_cell ( table, out_row, out_column );返回表里焦点所在单元51Testing软件测试网-aE+g1|v'D#S
S.D7Q_+f7J{Z0223、tbl_get_selected_row ( table, row );返回当前焦点所在行
j"v5P;{*v0
P+]&Mv`'U%d;i0224、tbl_select_cells_range ( table, start_row, start_col, end_row, end_col );在表里点击选定的几个单元51Testing软件测试网1v ~.Wi*T B j7n
Y S!nffe V,x0225、tbl_select_col_header ( table, column );选定指定的列的标题51Testing软件测试网aG^8Do'E6zum@
'V `0F;xNU~ bc/V%z]0226、tbl_select_cols_range ( table, from_column, to_column );在表里选定指定的几列
wtV6o{%k0
1Od7D u um \s'|0227、tbl_select_rows_range ( table, from_row, to_row );在表里选定指定的几行51Testing软件测试网!p#R$flF dK{*u
51Testing软件测试网,t9HW7vc D7T
228、tbl_set_cell_data ( table, row, column, data );设置表里某单元的内容
Q'q Uw-A7_F|0
h8h%GL {gAo0229、tbl_set_cell_focus ( table, row, column );设置表里焦点到某个单元51Testing软件测试网`)MD-FZ3TW{
51Testing软件测试网Zrpj)y:L&F2Sa
230、tbl_set_selected_cell ( table, row, column );在表里选定指定的单元51Testing软件测试网So?]+u
51Testing软件测试网{AMlr6rR
231、tbl_set_selected_col ( table, column );在表里选定指定的列
5{o%~6IGP051Testing软件测试网V.jPf-aa(Bq"w
232、tbl_set_selected_row ( table, row );在表里选定指定的行
og0PS"o:icC051Testing软件测试网*z6jf5k&D9H1t
233、obj_click_on_text ( object, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );点击一个对象的文本
1E/i2XZ%GK\051Testing软件测试网+ROs!rO
234、obj_find_text ( object, string, result_array [, search_area [, string_def ] ] );返回一个对象字符串的位置51Testing软件测试网#~#h e2h{G
8Uz0QJ6Y6F$y4U2Y0235、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );从对象里读取文本51Testing软件测试网X4[jyn RHj
51Testing软件测试网;] _ q!jH$lm+ZA2p
236、obj_move_locator_text ( object, string [ , search_area [ , string_def ] ] );在对象里把鼠标焦点落在字符串
+of-M(c[S2g051Testing软件测试网h!~?HU-}eY
237、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );在一个窗口返回字符串位置51Testing软件测试网T`Wx/v],EOo%T
51Testing软件测试网8H7C-{2jH-No)W
238、win_click_on_text (window, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在窗口搜索文本51Testing软件测试网'@i1I[MF
51Testing软件测试网Ue,Do M+P[9k
239、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定的区域读取文本
6Rr)DD(Rv051Testing软件测试网@B2F3x&q Z2s J8i
240、win_move_locator_text ( window, string [ ,search_area [ ,string_def ] ] );在窗口里把鼠标焦点落在字符串
6z2O`1I[ RN}ON*[051Testing软件测试网|'P.tDo m#W7d7i
241、toolbar_button_press ( toolbar, button, mouse_button );点击工具栏按钮
#D%@1B2kr,g0}0
;f tUKt7I0242、toolbar_get_button ( toolbar, button_num, out_text );返回工具栏按钮名称51Testing软件测试网2~6L%V Iz OkD*E
51Testing软件测试网|4M$SV i3o!Y2K,SMX-n
243、toolbar_get_button_info ( toolbar, button, property, out_value );返回工具栏按钮属性值51Testing软件测试网0}*|A7M X#k,SV#Q
51Testing软件测试网6Zd,u#ytKQ a%Na
244、toolbar_get_button_num ( toolbar, button, out_num );返回工具栏按钮位置51Testing软件测试网h/Kp d3QL1^$Ke9{#PUV
51Testing软件测试网5o_hSA-g
245、toolbar_get_buttons_count ( toolbar, out_num );返回工具栏按钮的个数51Testing软件测试网x5z ? ^~
%^P8i?C-lT)|N'Sw7qd0246、toolbar_select_item ( toolbar, toolbar_item_chain [, mouse_button ] );选择类菜单工具栏的某项51Testing软件测试网*Nl(U'W+E0Q
zW,J#@~0247、web_browser_invoke ( browser, site );调用ie打开某个站点51Testing软件测试网Z ]:^,yV*X o(U
51Testing软件测试网y,~S7s-_ v(ih
248、web_cursor_to_image ( image, x, y );移动鼠标指针到某个图片
T2y I!Z dKJu0aB0
8gj.v Q*L+i0249、web_cursor_to_label ( label, x, y );移动鼠标指针到某个标签
[1AO$WbzS0
kKg-wP!qG5f0250、web_cursor_to_link ( link, x, y );移动鼠标指针到某个链接
P q:l.M cx051Testing软件测试网-K1c3n [ c;`
251、web_cursor_to_obj ( object, x, y );移动鼠标指针到某个对象
pE@ ? \#@4`0
"[!eH.M7S@`+Q0252、web_event ( object, event_name [, x , y ] );在指定对象运行一个事件51Testing软件测试网4oei"DXB^
51Testing软件测试网 K-Oh;W#@g9{QM
253、web_file_browse ( object );点击浏览按钮
1I*`!g%R9g _?051Testing软件测试网Oar G9O r~h
254、web_file_set ( object, value );在文件类型的对象设置文本值
PVmFi)|'g;bI051Testing软件测试网/]f.H`Ig5n
255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回帧内文本位置51Testing软件测试网.`h3a/v|-`
$j0g2{2w;^'\ bd!^sO0256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回帧内文本的内容
1e+uv.Y,K0
$eS @g5x1T0257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回帧内标准表达式的事件个数51Testing软件测试网;vb VoY$k Wz`
Q2C!rHH1{D+i*v0258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );检查帧内指定的文本字符串是否存在
M2q:{` G th051Testing软件测试网RB|q\ON U9FO
259、web_get_run_event_mode ( out_mode );返回当前的运行模式
Yk2RL#UYe2x6Y051Testing软件测试网7l%}b"gu;?[.@u
260、web_get_timeout ( out_timeout );返回winrunner响应web的最大等待时间
r2~gn#wU&[/H0