TSL Online Reference(L-W)
上一篇 / 下一篇 2007-06-01 10:20:04 / 个人分类:自动化测试
L、
1. length ( string );计算字符串里字符的个数
2. list_activate_item ( list, item [, offset ] );激活列表里某一项
3. list_check_info ( list, property, property_value );检查列表属性的值
4. list_check_item ( list, item_num, item_content );检查列表某项的内容
例如:
if (list_check_item("Drinks",0, "Apple Juice")!=E_OK)
report_msg("the first drink should be apple juice");
5. list_check_selected ( list, selected_items );检查选中的那项
6. list_collapse_item ( list, item [, mouse_button ] );隐藏树型图里的选项
7. list_deselect_item ( list, item [, mouse_button [, offset ]] );取消选定列表的某一项
8. list_deselect_range ( list, item1, item2 [, offset ] );取消选定一定范围内的选项
9. list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项
10. list_drop_on_item ( target_list, target_item );把一个对象关联到目标列表的选项
11. list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项
12. list_extend_item ( list, item [, button [, offset ] ] );往指定的列表里添加一个选项
13. list_extend_multi_items ( list, item_list, [, mouse_button [, offset ] ] );添加多个选项
14. list_extend_range ( list, item1, item2 [, button [, offset ] ] );添加一定范围的选项
15. list_get_checked_items ( list, items, number );返回标记的选项的个数和值
16. list_get_column_header ( listview_object, in_column_index, out_header_value );返回列表图的行标题
例如:list_get_column_header ("Contents of 'arch'",1,col_header);
17. list_get_info ( list, property, out_value );返回列表属性的值
18. list_get_item ( list, item_num, out_value );返回列表选项的内容
19. list_get_item_coord ( list, item, out_x, out_y, out_width, out_height );返回列表选项的四个坐标
20. list_get_item_info ( list, item, state, out_value );返回列表选项的状态
21. list_get_item_num ( list, item, out_num );返回列表选项的位置
22. list_get_selected ( list, out_item, out_num );返回列表里选定选项的数字和字符串值
23. list_get_subitem ( list, item, subitem_index, subitem );返回列表图子目录的值
例如:list_get_subitem ("SysListView32", "#"&i,7,value); # Item Number 3;
24. list_rename_item ( list, item );激活列表项的标签以便重命名
25. list_select_item ( list, item [,button [, offset ] ]);选择一个列表选项
26. list_select_multi_items ( list, item_list [, mouse_button [, offset ] ] );选择一个列表的多个选项
27. list_select_range ( list, item1, item2 [, button [, offset ] ]);选定一定范围内全部选项
28. list_set_item_state ( list, item, value [, button ] );设置制定列表中的图标的状态
例如:list_set_item_state ("SysListView32", items_arr[i], OFF);
29. list_wait_info ( list, property, value, time );等待列表属性的值
30. load ( module_name [,1/0 [,1/0 ] ] );载入一个编译过的模块
31. load_16_dll ( pathname );加载16位的动态链接包
32. load_dll ( pathname [, load_action ] );加载16位的动态链接包
33. log ( x );返回自然对数
34. lov_get_item ( list, column, row, out_value );在Oracle应用程序中返回一个列表项的值
35. lov_select_item ( list, item );在Oracle应用程序中返回一个列表项的值
36. lr_whoami ( vuser [, sgroup, scenario_name ] );返回Vuser执行脚本的信息
M、
1. match ( string, regular_expression );寻找字符串里正规表达式的事件
2. menu_get_desc ( menu, oblig, optional, selector, out_desc );返回菜单的物理描述
3. menu_get_info ( menu, property, out_value );返回菜单属性的值
4. menu_get_item ( menu, item_number, out_contents );返回菜单选项的内容
5. menu_get_item_num ( menu, item, out_position );返回菜单选项的位置
6. menu_select_item ( menu;item [ x,y ] );选择一个菜单选项
7. menu_wait_info ( menu, property, value, time );等待菜单属性的值
8. method_wizard ( [ object ] );打开java方法的向导
9. move_locator_abs ( x, y [, time ] );移动鼠标指针到一个绝对位置
10. move_locator_rel ( x, y [, time ] );移动鼠标指针到一个相对位置
11. move_locator_text ( string, search_area [, x_shift [,y_shift ] ] );移动文本
12. move_locator_track ( track_id );按预计的轨迹移动鼠标
13. mtype ( button_input [, technical_id ] );Analog模式下的鼠标输入;
N、
nargs ( );返回参数通过的个数
O、
1. obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图
例如:obj_check_bitmap("Remarks:", "Img1", 1);
2. obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据
例如:obj_check_gui ("OK", "list_1.ckl", "gui_1", 1);
3. obj_check_info ( object, property, property_value [, timeout ] );检查gui对象属性的值
例如:if (obj_check_info ("Dressings", "nchildren", 5) == E_OK)
4. obj_check_text ( object, expected_text [, x1, y1, x2, y2 ] );
例如:obj_check_text("Price:",FirstPrice)
5. obj_click_on_text ( object, string [ ,search_area [ , string_def [ , mouse_button ] ] ] );在对象里点击文本
例如:rc=obj_click_on_text("MS_WINTOPIC",str,TRUE,LEFT))
6. obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象
例如:obj_drag ("ListBox", 29, 230, LEFT);
7. obj_drop ( target_object, x, y );拖动一个对象到目标对象
例如:obj_drop ("Edit", 242, 85);
8. obj_exists ( object [, time ] );检查对象是否显示在屏幕上
例如:obj_exists ("Fries icon") == E_OK
9. obj_find_text ( object, string, result_array [, search_area [, string_def ] ] );在对象里返回字符串的位置
例如:obj_find_text("Cooked",item[i],coord_array,TRUE);
10. obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述
例如:obj_get_desc ( "{class: push_button, index: "& i & "}", "class label", "class_index","location", desc);
11. obj_get_info ( object, property, out_value );返回对象属性的值
例如:obj_get_info ("Cooked", "label", cooked);
12. obj_get_text ( object, out_text [, x1, y1, x2, y2 ] );读取对象的文本
例如:obj_get_text("MS_WINTOPIC", text);
13. obj_highlight ( object [, flashes ] );高亮显示对象
14. obj_key_type ( object, keyboard_input );向java组件发送事件
例如:obj_key_type("MyObject", "ABC");
相关阅读:
- 我的个人博客-专注于测试自动化和性能测试 (rickyzhu, 2007-2-01)
- 《软件测试》 自动化测试学习笔记 (caicai1724, 2007-5-16)
- 自动化测试的7个步骤--文章摘要 (caicai1724, 2007-5-17)
- 《有效软件测试-提高测试水平的50条建议》之自动化测试学习笔记【更新中】 (caicai1724, 2007-5-21)
- 测试自动化与软件过程改进 (51testing, 2007-5-23)
- Choosing a test automation framework (cat_zhang, 2007-5-30)
- TSLonline Reference (A-J) (jerrymy, 2007-6-01)
TAG: 自动化测试