、 GUI_save ( file_name ); 保存 guimap 文件 102 、 GUI_save_as ( current_file_name, new_file_name ); 另存为 guimap 文件 103 、 GUI_set_win" name="description" />

Winrunner TSL命令简介(二)

发表于:2008-09-23来源:作者:点击数: 标签:winrunnerWinRunnerWinrunnerTSL命令
101 MI LY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、 GUI_save ( file_name ); 保存 guimap 文件 102 、 GUI_save_as ( current_file_name, new_file_name ); 另存为 guimap 文件 103 、 GUI_set_win

101MILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、GUI_save ( file_name );保存guimap文件

102GUI_save_as ( current_file_name, new_file_name );另存为guimap文件

103GUI_set_window ( window_name );设置guimap里目标识别范围

104GUI_unload ( file );卸载guimap文件

105GUI_unload_all ( )卸载全部的guimap文件

106icon_move ( icon, x, y );移动图标到新位置

107icon_select ( icon );点击鼠标选择图标

108java_activate_method( object, method, retval [ , param1, ... param8 ] );调用请求的java方法

109java_fire_event ( object , class [ , constructor_param1,..., constructor_paramX ] );模拟一个java对象的事件

110jco_create ( object , jco , class [ , constructor_param1 , ... , constructor_param8 ] )创建一个现有java对象的上下文java对象

111jco_free ( object_name );释放内存里指定的jco对象

112jco_free_all();释放全部内存里的jco对象

113jdc_aut_connect ( in_timeout );建立一个winrunnerjava应用程序的连接

114method_wizard ( [ object ] );打开java方法的向导

115obj_key_type ( object, keyboard_input );java组件发送事件

116obj_set_info ( object, property, value );设置对象属性的值

117popup_select_item ( "menu component;menu item" );java活动菜单选择一个选项

118list_activate_item ( list, item [, offset ] );激活列表里某一项

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

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

121list_check_selected ( list, selected_items );检查选中的那项

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

123list_deselect_item ( list, item [, mouse_button  [, offset ]] );取消选定列表的某一项

124list_deselect_range ( list, item1, item2 [, offset ] );取消选定2个选项

125list_drag_item ( source_list, item [, mouse_button ] );拖动源列表的某个选项

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

127list_expand_item ( list, item [, mouse_button ] );显示隐藏的树型图选项

128list_extend_item ( list, item [, button  [, offset ] ] );往指定的列表里添加一个选项

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

130list_extend_range ( list, item1, item2 [, button  [, offset ] ] );添加一定范围的选项

131list_get_checked_items ( list, items, number );返回标记的选项的个数和值

132list_get_info ( list, property, out_value );返回列表属性的值

133list_get_item ( list, item_num, out_value );返回列表选项的内容

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

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

136list_get_item_num ( list, item, out_num );返回列表选项的位置

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

138list_select_item ( list, item [,button  [, offset ] ]);选择一个列表选项

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

140list_select_range ( list, item1, item2 [, button  [, offset ] ]);选定一定范围内全部选项

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

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

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

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

145menu_get_item_num ( menu, item, out_position );返回菜单选项的位置

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

147menu_wait_info ( menu, property, value, time );等待菜单属性的值

148obj_check_bitmap ( object, bitmap, time [, x, y, width, height] );比较对象的位图

149obj_check_gui ( object, checklist, expected_results_file, time );比较当前的gui对象数据

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

151obj_click_on_text ( object, string [ ,search_area  [ , string_def  [ , mouse_button ] ] ] );在对象里点击文本

152obj_drag ( source_object, x, y [, mouse_button ] );从源对象拖动一个对象

153obj_drop ( target_object, x, y );拖动一个对象到目标对象

154obj_exists ( object [, time ] );检查对象是否显示在屏幕上

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

156obj_get_desc ( object, oblig, optional, selector, out_desc );返回对象的物理描述

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

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

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

160obj_mouse_click ( object, x, y [, mouse_button ] );点击一个对象

161obj_mouse_dbl_click ( object, x, y [, mouse_button ] );双击一个对象

162obj_mouse_drag ( object, start_x, start_y, end_x, end_y [,mouse_button ] );在对象上拖动鼠标

163obj_mouse_move ( object, x, y );在对象里移动鼠标指针

164obj_move_locator_text ( object, string [ , search_area  [ , string_def ] ] );在对象里移动鼠标到一个字符串

165obj_type ( object, keyboard_input );用键盘输入对象

166obj_wait_bitmap ( object, bitmap, time [, x, y, width, height] );等待对象位图出现在屏幕

167obj_wait_info ( object, property, value, time );等待对象属性的值

168scroll_check_info ( scroll, property, property_value );检查滚动条的属性值

169scroll_check_pos ( scroll, position );检查滚动条的当前位置

170scroll_drag ( scroll, orientation, position );滚动到指定位置

171scroll_drag_from_min ( scroll, orientation, position );从最小值开始滚动

172scroll_get_info ( scroll, property, out_value );返回滚动条的属性值

173scroll_get_max ( scroll, orientation, out_max );返回滚动条的最大位置

174scroll_get_min ( scroll, orientation, out_min );返回滚动条的最小位置

175scroll_get_selected ( slider, min_value, max_value );返回滚动条的最小和最大值

176scroll_get_pos ( scroll, orientation, out_pos );返回滚动条当前位置

177scroll_line ( scroll, orientation, [ +|- ] lines );滚动指定的几行

178scroll_max ( scroll, orientation );设置滚动条到最大位置

179scroll_min ( scroll, orientation );设置滚动条到最小位置

180scroll_page ( scroll, orientation, [+|-] pages );移动滚动条指定的页数

181scroll_wait_info ( scroll, property, value, time );等待滚动条属性的值

182spin_get_info ( spin, property, out_value );返回旋转属性的值

183spin_get_pos ( spin, out_value );返回旋转对象的位置

184spin_get_range ( spin, out_min_pos, out_max_pos );返回旋转对象的最小与最大位置

185spin_max ( spin [, index ] );设置旋转对象到最大值

186spin_min ( spin [, index ] );设置旋转对象到最小值

187spin_next ( spin [, index ] );设置旋转对象到下一个值

188spin_prev ( spin [, index ] ); 设置旋转对象到前一个值

189spin_set ( spin, item [, index ] );设置选择对象到一个选项值

190spin_wait_info ( spin, property, value, time );等待旋转属性等于指定的值

191static_check_info ( static, property, property_value );检查静态文本对象属性的值

192static_check_text ( static, text, case_sensitive );检查静态文本对象的内容

193static_get_info ( static, property, out_value );返回静态文本对象属性的值

194static_get_text ( static, out_string );返回静态文本对象的内容

195static_wait_info ( static, property, value, time );等待静态文本对象的属性值

196statusbar_get_field_num ( statusbar, field, field_index );返回状态栏区域的数字索引

197statusbar_get_info ( statusbar, property, out_value );返回状态栏的属性值

198statusbar_get_text ( statusbar, field_index, out_text );读取状态栏区域的文本

199statusbar_wait_info ( statusbar, property, value, time );等待状态栏属性的值

200tab_get_info ( tab, property, out_value );返回tab属性的值

原文转自:http://www.ltesting.net