为大家提供测试基本方法,通信系统相关技术,测试人员职业规划等方面的收集,给大家提供一个交流学习的平台。

TSL Online Reference(L-W)

上一篇 / 下一篇  2007-06-01 10:20:04 / 个人分类:自动化测试

L

[K lZ Q0

1.      length ( string );计算字符串里字符的个数51Testing软件测试网 E te[(wI:_

2.      list_activate_item ( list, item [, offset ] );激活列表里某一项51Testing软件测试网D i%F B2Q][ru

3.      list_check_info ( list, property, property_value );检查列表属性的值

8t6c Z*T#Cg/U1S.^0

4.      list_check_item ( list, item_num, item_content );检查列表某项的内容

1A;|/h[,U aF-\ }8S;q"l0

例如:51Testing软件测试网.A k1t9^7@RiL w

if (list_check_item("Drinks",0, "Apple Juice")!=E_OK)

%L%Oa:f8X/E(uI Q)^/q0

report_msg("the first drink should be apple juice");

~-n`([9P@U?0

 

^F2c2Z0D?0

5.      list_check_selected ( list, selected_items );检查选中的那项51Testing软件测试网c6\:Z u#\#J,h

6.      list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项

!D6VA4v4B.B;O$k ~0

7.      list_deselect_item ( list, item [, mouse_button [, offset ]] );取消选定列表的某一项51Testing软件测试网6a'u!r }-?6l UJf5Q

8.      list_deselect_range ( list, item1, item2 [, offset ] );取消选定一定范围内的选项

.e7\TU6MJ0

9.      list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项51Testing软件测试网yC5`'QO$],~o(X5`"oY

10.  list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项

4qv | dbF,B0

11.  list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项51Testing软件测试网X t.z*F:xz

12.  list_extend_item ( list, item [, button [, offset ] ] );往指定的列表里添加一个选项51Testing软件测试网 V J1Ai XIyni7Aq

13.  list_extend_multi_items ( list, item_list, [, mouse_button [, offset ] ] );添加多个选项

i a?wCS ~0

14.  list_extend_range ( list, item1, item2 [, button [, offset ] ] );添加一定范围的选项51Testing软件测试网(O-BE_!t5I8MS]

15.  list_get_checked_items ( list, items, number );返回标记的选项的个数和值51Testing软件测试网 DE y ?6ej(p4N)P n

16.  list_get_column_header ( listview_object, in_column_index, out_header_value );返回列表图的行标题51Testing软件测试网Yq#k^N

例如:list_get_column_header ("Contents of 'arch'",1,col_header);

Ttx U5W6[.hXx.?1c0

 

'Gd!U`Q n)C0

17.  list_get_info ( list, property, out_value );返回列表属性的值51Testing软件测试网cQ oqp-m

18.  list_get_item ( list, item_num, out_value );返回列表选项的内容51Testing软件测试网5yy[0KY{ K

19.  list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标

+x,^2SU/c0

20.  list_get_item_info ( list, item, state, out_value );返回列表选项的状态

.DTC4k)Wi0

21.  list_get_item_num ( list, item, out_num );返回列表选项的位置51Testing软件测试网xr!Q\8f;I;{|V ~2v

22.  list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值

v G)Z!U4{ BN.f+Xw0

23.  list_get_subitem ( list, item, subitem_index, subitem );返回列表图子目录的值51Testing软件测试网X5QXali%d

例如:list_get_subitem ("SysListView32", "#"&i,7,value); # Item Number 3;51Testing软件测试网0fF2T+z)D?3|L

 

4} \1~)e~}p&n|i ~(`0

24.  list_rename_item ( list, item );激活列表项的标签以便重命名51Testing软件测试网D1J9qTQ O0gK

25.  list_select_item ( list, item [,button [, offset ] ]);选择一个列表选项51Testing软件测试网*B[{1zq.L6agc

26.  list_select_multi_items ( list, item_list [, mouse_button [, offset ] ] );选择一个列表的多个选项

r&BMP C {4l`8D0

27.  list_select_range ( list, item1, item2 [, button [, offset ] ]);选定一定范围内全部选项51Testing软件测试网+jT5V'p4{z

28.  list_set_item_state ( list, item, value [, button ] );设置制定列表中的图标的状态

`-y5J+Y)JR-d'Zx0

例如:list_set_item_state ("SysListView32", items_arr[i], OFF);

t;g?S:n#C,`0

 

5Hj9q&KU0

29.  list_wait_info ( list, property, value, time );等待列表属性的值

I,Lax]0

30.  load ( module_name [,1/0 [,1/0 ] ] );载入一个编译过的模块

6M9s}/|;z5J2QI0

31.  load_16_dll ( pathname );加载16位的动态链接包51Testing软件测试网YC?/U }"o

32.  load_dll ( pathname [, load_action ] );加载16位的动态链接包51Testing软件测试网"t }5t)f%Q4Hu$jkK

33.  log ( x );返回自然对数51Testing软件测试网B;m\T7y l4b[

34.  lov_get_item ( list, column, row, out_value );Oracle应用程序中返回一个列表项的值51Testing软件测试网2_,V:J,R%zd

35.  lov_select_item ( list, item );Oracle应用程序中返回一个列表项的值

]7Y,S#H C0

36.  lr_whoami ( vuser [, sgroup, scenario_name ] );返回Vuser执行脚本的信息

+v.S,U?Ht^;hE'f0

 

Z&?tJF?9s0

 

8_/h;~d^x0

 

k;p*^t5u:Lt;Tb0

M51Testing软件测试网4W4q8s#Ez

1.      match ( string, regular_expression );寻找字符串里正规表达式的事件

y7K]$]6g _(u z9p0

2.      menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述

B2Z3Q9kQOe2G*M&[l0

3.      menu_get_info ( menu, property, out_value );返回菜单属性的值

{0vK1L3nCB'^{6?0

4.      menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容

8T(L]|6U/e[0

5.      menu_get_item_num ( menu, item, out_position );返回菜单选项的位置51Testing软件测试网3B%m.}-\QfZ"T'O

6.      menu_select_item ( menu;item [ x,y ] );选择一个菜单选项

@pm@)G0

7.      menu_wait_info ( menu, property, value, time );等待菜单属性的值51Testing软件测试网B9J&cjF n6Lf4k3q

8.      method_wizard ( [ object ] );打开java方法的向导51Testing软件测试网#u#cT3~(E!Hv

9.      move_locator_abs ( x, y [, time ] );移动鼠标指针到一个绝对位置

:U&\!A6F7U@Syd0

10.  move_locator_rel ( x, y [, time ] );移动鼠标指针到一个相对位置51Testing软件测试网C5|m\'oq+^9a

11.  move_locator_text ( string, search_area [, x_shift [,y_shift ] ] );移动文本

bj j%vfAC0

12.  move_locator_track ( track_id );按预计的轨迹移动鼠标51Testing软件测试网h"l&Ja A%{L

13.  mtype ( button_input [, technical_id ] );Analog模式下的鼠标输入;51Testing软件测试网/K)C*r!L)RR/i.h

 

$BpHG1W*o0

 

EWJ4Qu q0

N51Testing软件测试网%l| o8|/W@)oy|*K8["Q-j

nargs ( );返回参数通过的个数51Testing软件测试网O O*enaVoL2a

 51Testing软件测试网#^`7V$HO[![

 

{v MqC;m$d0

 51Testing软件测试网8TQ e#Rx3\-n

O

6vfh-~k`n0

1.      obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图51Testing软件测试网3Y,MG2neAo|kY.| p'U

例如:obj_check_bitmap("Remarks:", "Img1", 1);51Testing软件测试网 wf/N6q5N

2.      obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据51Testing软件测试网 e3z v3^_L j n

例如:obj_check_gui ("OK", "list_1.ckl", "gui_1", 1);51Testing软件测试网+o!`(k8?1Mole

3.      obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值

Y;Z1M}$C5o_G0

例如:if (obj_check_info ("Dressings", "nchildren", 5) == E_OK)51Testing软件测试网~;u.dj%A"c

4.      obj_check_text ( object, expected_text [, x1, y1, x2, y2 ] );51Testing软件测试网:VB e-^T

例如:obj_check_text("Price:",FirstPrice)

0a { MsMz0

5.      obj_click_on_text ( object, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在对象里点击文本51Testing软件测试网Pd*r&aM

例如:rc=obj_click_on_text("MS_WINTOPIC",str,TRUE,LEFT))

c+h3[m4@$Y)L0

6.      obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象51Testing软件测试网 d(nA4h9W+L,I w h

例如:obj_drag ("ListBox", 29, 230, LEFT);

0MDa:D-M0

7.      obj_drop ( target_object, x, y );拖动一个对象到目标对象51Testing软件测试网{ Km^ K0S,K

例如:obj_drop ("Edit", 242, 85);51Testing软件测试网#\2F sIr |

8.      obj_exists ( object [, time ] );检查对象是否显示在屏幕上51Testing软件测试网%|3c(b MFJ

例如:obj_exists ("Fries icon") == E_OK

x.`/mT(Wx ^0

9.      obj_find_text ( object, string, result_array [, search_area [, string_def ] ] );在对象里返回字符串的位置

g&un)@.T|-G d%\0

例如:obj_find_text("Cooked",item[i],coord_array,TRUE);51Testing软件测试网zV3|_0vbCU

10.  obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述51Testing软件测试网b3h"H~#T7f$V;N

例如:obj_get_desc ( "{class: push_button, index: "& i & "}", "class label", "class_index","location", desc);51Testing软件测试网at&yEQY UD(z

11.  obj_get_info ( object, property, out_value );返回对象属性的值

cF$k H!N8H{:YB8L4S0

例如:obj_get_info ("Cooked", "label", cooked);

9{CW1p*@xP0v#U w0

12.  obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本

_W~HhK0bx4e:q.YE0

例如:obj_get_text("MS_WINTOPIC", text);

"N5bT|*_#j`qg0

13.  obj_highlight ( object [, flashes ] );高亮显示对象

q9vP7cB;u0

14.  obj_key_type ( object, keyboard_input );java组件发送事件51Testing软件测试网2u wS K:?|%gK

例如:obj_key_type("MyObject", "ABC");

-IB-w~ezdX0

TAG: 自动化测试

 

评分:0

我来说两句

日历

« 2024-05-21  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 16181
  • 日志数: 23
  • 文件数: 2
  • 书签数: 8
  • 建立时间: 2007-05-30
  • 更新时间: 2009-05-15

RSS订阅

Open Toolbar