一个人不应该依附在其他人身上,一个人应该首先自力更生。你应该自己能够独立,能够安顿你自己,那你就不会害怕了。你爱你自己的话,别人不能不爱你吧。

tsl脚本命令(转贴)三

上一篇 / 下一篇  2007-07-21 11:09:47 / 个人分类:WR

tsl脚本命令(转贴)三
8M;_/Q`Q;C5eAv051Testing软件测试网'f.X h%c"[$O$N
201、tab_get_item ( tab, item_num, out_item );返回tab选项的名称51Testing软件测试网 Ce5_2tT~
51Testing软件测试网'\E&P,vty&P3Zt-Q
202、tab_get_selected ( tab, out_item, out_num );返回选定的tab选项的名称和个数51Testing软件测试网j rO7To]M

HQ.HI2OW l*s;[c&DI0203、tab_select_item ( tab, item );选择tab选项
-U2EuXG2x(A0
_1lRo7]M0204、tab_wait_info ( tab, property, value, time );等待tab属性的值51Testing软件测试网 f9g#]6y+q

R!L3J1F&I!w0205、tbl_activate_cell ( table, row, column );双击表里某个单元51Testing软件测试网j s'i}olDsQ
51Testing软件测试网I"R9l1d5\ `
206、tbl_activate_col ( table, column );双击表里某列
HlIO-{]9N_051Testing软件测试网#[LF-@$k [$GS
207、tbl_activate_header ( table, column );双击表里某列标题
.h:D1gbvM|%Ri0
]]n ^UI+e0208、tbl_activate_row ( table, row );双击表里某行
]6E dJ!kM}6](j~R{e0
Z.Q%OA^9k0m9YM1N0209、tbl_deselect_col ( table, column );取消选择表的某列51Testing软件测试网 F)n'jMP

f8T*cZ|/[0210、tbl_deselect_cols_range ( table, from_column, to_column );取消选择表里某几列
a!Xpg#E:q|?2k8\+L/k0
G-i|,r E.}0211、tbl_deselect_row ( table, row );取消选择表里某行
|/`DSg9F051Testing软件测试网(N"}Da |F
212、tbl_deselect_rows_range ( table, from_row, to_row );取消选择表里某几行51Testing软件测试网d5h)cE"aN(pC
51Testing软件测试网 `HKekQaQ
213、tbl_extend_col ( table, column );往表里当前列加一列51Testing软件测试网$V~AWUN5ti

;K/AMaZ0214、tbl_extend_cols_range ( table, from_column, to_column );往表里当前列加多列
]+|&D[b7n@0
Y Pq$fG#J0215、tbl_extend_row ( table, row );往表里当前行前加一行51Testing软件测试网,WM(Q6C,r h#a

AUU&S3Q}N$X9[ |'[0216、tbl_extend_rows_range ( table, from_row, to_row );往表里当前行加多行
xE8F5q)c9?-O0
y1`*I1xX0217、tbl_get_cell_data ( table, row, column, out_text );返回表里指定单元的内容51Testing软件测试网]:m]|"^;Hnx,S

3sbNEN g0218、tbl_get_cols_count ( table, out_cols_count );返回表的列数
MW6[-L)q'ADd051Testing软件测试网0I9g:^:y&N#t
219、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题名称51Testing软件测试网S?+Z#IU+`l'oZ
51Testing软件测试网I ] }["TB
220、tbl_get_column_names ( table, out_col_names, out_cols_count );返回表里列的名称和个数51Testing软件测试网$nfv.QA0X8X|
51Testing软件测试网:rX9h E3])S,`
221、tbl_get_rows_count ( table, out_rows_count );返回表的行数51Testing软件测试网bxP g6J2g"Q6r1C

3n"^ Q3d8wK0222、tbl_get_selected_cell ( table, out_row, out_column );返回表里焦点所在单元
#Ac-G6?2v2C G+GghQ0
U\1S1`!c:p6PF;m0223、tbl_get_selected_row ( table, row );返回当前焦点所在行
'{p*r6i#V0
jN5X'^ s0224、tbl_select_cells_range ( table, start_row, start_col, end_row, end_col );在表里点击选定的几个单元
:u0B#|;c$sj051Testing软件测试网 N o#R)e}ZN
225、tbl_select_col_header ( table, column );选定指定的列的标题
9i#D#_2uf8w.Npt;TB(^0
~*l?^.H5XZ0226、tbl_select_cols_range ( table, from_column, to_column );在表里选定指定的几列
-JqCoLEZ051Testing软件测试网?/R%o6X!W e5A
227、tbl_select_rows_range ( table, from_row, to_row );在表里选定指定的几行
7O3N:M7@]051Testing软件测试网(O$[QsD\p4ZS]
228、tbl_set_cell_data ( table, row, column, data );设置表里某单元的内容51Testing软件测试网li[qS.s

4T4F!WCC|+z)rX;q~Z0229、tbl_set_cell_focus ( table, row, column );设置表里焦点到某个单元
+U?~ lJ051Testing软件测试网w;VDFz| f2v
230、tbl_set_selected_cell ( table, row, column );在表里选定指定的单元
L'nXYeA#GD051Testing软件测试网.uA zF'R^ b
231、tbl_set_selected_col ( table, column );在表里选定指定的列51Testing软件测试网EXF_Q2g U
51Testing软件测试网%z e,[[a-I9u)z
232、tbl_set_selected_row ( table, row );在表里选定指定的行
gcMJ z4o&b0
m|&ev$iZ e0233、obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );点击一个对象的文本
)chrHg f051Testing软件测试网$w$q i[A:h5T
234、obj_find_text ( object, string, result_array [, search_area  [, string_def ] ] );返回一个对象字符串的位置51Testing软件测试网f2n)AmX/Xz8O

(ow$DUZ!l/{6W0235、obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );从对象里读取文本
*V~[#E"Y?)^;Gg {051Testing软件测试网t*u(Zqg
236、obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里把鼠标焦点落在字符串
%M h yH"Z4m e*{0
K{7uFdtQ0237、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );在一个窗口返回字符串位置51Testing软件测试网5t%?vL_1W%@

&c4}0P }j_:a0K%t0238、win_click_on_text (window, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在窗口搜索文本51Testing软件测试网%Kn%|7]V~4cn

Y"D'zNStoc0239、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定的区域读取文本51Testing软件测试网 i2^V5ig6_H6K

Oq'c4w%C-h0240、win_move_locator_text ( window, string [ ,search_area  [ ,string_def ] ] );在窗口里把鼠标焦点落在字符串51Testing软件测试网9BUOGNC){

B$Ex!o/{-?6ECT0241、toolbar_button_press ( toolbar, button, mouse_button );点击工具栏按钮
6t,S1}.Hn&onD|!^3V051Testing软件测试网rR@2\5\5Q;w
242、toolbar_get_button ( toolbar, button_num, out_text  );返回工具栏按钮名称
9gI i#wbY"?1i0
H nT%d&R(_*e$F[0243、toolbar_get_button_info ( toolbar, button, property, out_value );返回工具栏按钮属性值
$PZ p#KYG%Ae c3b,~051Testing软件测试网 b+ZSK.R U2_)NA
244、toolbar_get_button_num ( toolbar, button, out_num );返回工具栏按钮位置51Testing软件测试网4qff;kz
51Testing软件测试网CH.M I}-?'d-Z6U
245、toolbar_get_buttons_count ( toolbar, out_num );返回工具栏按钮的个数
6S P2L k,uDzf051Testing软件测试网Yq e(m^C4H's?
246、toolbar_select_item ( toolbar, toolbar_item_chain [, mouse_button ] );选择类菜单工具栏的某项
+Q'F-F| [9{lIF dm051Testing软件测试网+P-UO.j @3L5L
247、web_browser_invoke ( browser, site );调用ie打开某个站点
[}4^Ej!l0
)Agf$~L0248、web_cursor_to_image ( image, x, y );移动鼠标指针到某个图片51Testing软件测试网0fb9{-v(h#}@3as]
51Testing软件测试网%E8Ux5z0QYs
249、web_cursor_to_label ( label, x, y );移动鼠标指针到某个标签
+g5D$WavW0s051Testing软件测试网 @6VhAJ/V8I4Uk
250、web_cursor_to_link ( link, x, y );移动鼠标指针到某个链接51Testing软件测试网0I m(lwE5k

5Cv6I#dc;lPI2s m*G1~0251、web_cursor_to_obj ( object, x, y );移动鼠标指针到某个对象51Testing软件测试网"\Q$[}}0h$T2XB;WH#{
51Testing软件测试网 ^ t ]mW8K#Dj |
252、web_event ( object, event_name [, x , y ] );在指定对象运行一个事件51Testing软件测试网;V#V9{y&R&{gP3V*b
51Testing软件测试网:{:Vk@6rB9cj1|9`
253、web_file_browse ( object );点击浏览按钮51Testing软件测试网#G)H)QCEvJ

#b3[!H{"v}0254、web_file_set ( object, value );在文件类型的对象设置文本值51Testing软件测试网g$`ZK `'ggd

^8ZJ]1_-F0255、web_find_text ( frame, text_to_find, result_array [, text_before, text_after, index, show ] );返回帧内文本位置51Testing软件测试网4|Y{"dQ8w$|z

D` b |B6`.B'BYH0256、web_frame_get_text ( frame, out_text [, text_before, text_after, index ] );返回帧内文本的内容
Gn MTD zU051Testing软件测试网o'iD+DK_ n'G
257、web_frame_get_text_count ( frame, regex_text_to_find, count );返回帧内标准表达式的事件个数
{ R \]ofAT051Testing软件测试网+ra"PxLj
258、web_frame_text_exists ( frame, text_to_find [, text_before, text_after ] );检查帧内指定的文本字符串是否存在
4Y|0Ro|:f051Testing软件测试网0V6rp L0[ H&S3zf)i%p
259、web_get_run_event_mode ( out_mode );返回当前的运行模式51Testing软件测试网 p(`Tl l.]&L b

Hw0h'` [4pk\0260、web_get_timeout ( out_timeout );返回winrunner响应web的最大等待时间
7}t/iN0rA.ha%v0
+m?\^ H:`o`0261、web_image_click ( image, x, y );点击一个图片链接或图片
2cWP,QHL0
6w f#Ozp m m0262、web_label_click ( label );点击指定的标签51Testing软件测试网5\3_V!Z.i

6Uk.[+RChb%m0263、web_link_click ( link );点击朝文本链接51Testing软件测试网Ux,N'Pytlw
51Testing软件测试网+J ~*dw;rw)g?'i
264、web_link_valid ( name, valid );检查url链接是否有效
5V!Q9q6k Y0
-q+n,F xx S jZ,Sm0265、web_obj_get_child_item ( object, table_row, table_column, object_type, index, out_object );返回对象的子对象的物理描述51Testing软件测试网d @sBv8M
51Testing软件测试网7u G'h5_*}h)}V
266、web_obj_get_child_item_count ( object, table_row, table_column, object_type, object_count );返回对象的子对象的个数
5sUJ I$S_ |^051Testing软件测试网9m5A8`.Vi$ac7C5H
267、web_obj_get_info ( object, property_name, property_value );返回对象属性的值51Testing软件测试网Xx7T oB5cUq
51Testing软件测试网/ti;{*c0X9H}
268、web_obj_get_text ( object, table_row, table_column, out_text [, text_before, text_after, index] );返回对象的文本字符串51Testing软件测试网3L*pR:\;x!];`'Ld'B3]

FXb-C i{ S0269、web_obj_get_text_count ( object, table_row, table_column, regex_text_to_find, count ); 返回对象内标准表达式的事件个数
7gA#u(k&{k7r-S-_'xr0
ql _5^hi GIQ&o0270、web_obj_text_exists ( object, table_row, table_column, text_to_find [, text_before, text_after] );在对象里如果该文本存在,返回该文本
mQ"e0I]:}r_051Testing软件测试网6|H%q}y'p
271、web_refresh ( frame );winrunner重新连接指定的帧
8y"BB^6@ii]?m0
N[K pb ~0272、web_restore_event_default ( );重新设置全部事件为默认值
z n|$jwq{b"@051Testing软件测试网,~!~D`mi"H1d
273、web_set_event ( class, event_name, event_type, event_status );设置事件状态51Testing软件测试网te V*p&Z^@$h}

M|? tprjJ+I0274、web_set_run_event_mode ( mode );设置事件运行模式
T#C%u"g f-?s051Testing软件测试网l!L#R%v.[*q
275、web_set_timeout ( timeout );设置winrunner响应web的最大时间
:x9v9ie!_%Nhn/k0
yG"N/`2T0276、web_set_tooltip_color ( fg_color, bg_color );设置webtest工具条的颜色51Testing软件测试网!?LH/h du3@B
51Testing软件测试网v`[f$D?8iwI
277、web_sync ( timeout );等待帧的导航完成
cO}A4mJF051Testing软件测试网bX"qy,d~7k
278、web_tbl_get_cell_data ( table, row, column, starting_pos, out_text, out_actual_text_length );返回web表内指定单元的内容,开始于指定的字符
Yz k?\ mL8H0
iK&Ij1c:mw_0279、web_url_valid ( URL, valid );检查url是否有效51Testing软件测试网Gl6FQ{8C0]
51Testing软件测试网C-yD:sw#[9u"[ W(A Aj
280、tbl_get_cell_data ( table, row, column, out_text );返回table里指定单元的内容(加载webtest)51Testing软件测试网j']2}1F$yYZ#n_
51Testing软件测试网g%J!?eLx"]/`ds
281、tbl_get_cols_count ( table, out_cols_count );返回表的列数(加载webtest)51Testing软件测试网AP'sH rF6]%V
51Testing软件测试网MBM"?g ]
282、tbl_get_column_name ( table, col_index, out_col_name );返回表里指定列的标题的名称(加载webtest)51Testing软件测试网xKs?%JDo
51Testing软件测试网/O#?-NH#yM,PH
283、tbl_get_rows_count ( table, out_rows_count );返回表的行数(加载webtest)51Testing软件测试网#DT.[9W+Hk!O;c

4j/X(q*ubhm9['B0284、web_password_encrypt ( password );将web页面的密码加密
(E(XL)R3J-H_0n(A-Z051Testing软件测试网3{,_)u&s6Jg(gN
285、set_window ( window [,time] );激活窗口并确定等待时间
M"| iH'^0
~ u1ER ^#q[!B7ETJ0286、win_activate ( window );激活窗口
ll e E+ns7K0
*Y j z;ozfBb MA0287、win_check_bitmap ( window, bitmap, time [, x, y, width, height ] );比较窗口的位图51Testing软件测试网 [P` QR5kw9^ g

`4x3_J`"ARbK5h)N p0288、win_check_gui ( window, checklist, expected_results_file, time );比较窗口的gui数据
U }$LkCCt k0
*@*hl+wr3Itw0289、win_check_info ( window, property, property_value [, timeout ] );检查被请求的窗口属性51Testing软件测试网?n%A ?5l){8G
51Testing软件测试网 ~V/J'mIc2x(bj`!nb
290、win_click_help ( window );在窗口点击帮助按钮51Testing软件测试网5Z u;aT-|d

!q+F)Ij%}0291、win_click_on_text (window, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在窗口搜索文本
wmO(tkv051Testing软件测试网 w8lG$m3p(tJ
292、win_close ( window );关闭窗口51Testing软件测试网c%`%b O'L
51Testing软件测试网*Tu9[*sHa [r8s*P
293、win_drag (source_window, x, y [, mouse_button ] );从源窗口拖动对象51Testing软件测试网;bl A,o?%kH
51Testing软件测试网rlX u`_go
294、win_drop ( target_window, x, y  );拖动对象到目标窗口
2y t8_6Pu0
d-Cer%m:O0295、win_exists ( window [, time ] );检查窗口是否显示在屏幕上
;p g d&@3`p051Testing软件测试网 j!B.`0VKd
296、win_find_text ( window, string, result_array [, search_area [, string_def ] ] );返回窗口里字符串的位置
$jT/L t3Yl-R@c051Testing软件测试网&?u Pb6EO
297、win_get_desc ( window, obligatory, optional, selector, out_desc );返回窗口的物理描述51Testing软件测试网2GnD-h&_f
51Testing软件测试网q3\jWS+E!ma]
298、win_get_info ( window, property, out_value );返回窗口属性的值
&n"?/['y-Q3H0
(p orZY0299、win_get_text ( window, out_text [, x1, y1, x2, y2] );从窗口指定区域读取文本51Testing软件测试网$[&o8lK`)Z
51Testing软件测试网H$rN6v.?7H4~7X
300、win_highlight ( window [, flashes ] );高亮显示窗口

TAG: WR

 

评分:0

我来说两句

Open Toolbar