jedichou 发表于 2013-1-29 23:38:31

20080406-Loadrunner-Citrix ICA虚拟用户函数

Citrix products deliver applications across networks. Applications reside on the Citrix server; access to those applications is delivered to remote machines (the Citrix clients) via Citrix's ICA protocol. ICA supports a full GUI interface of the server application on the client side.

LoadRunner records GUI activity on the Citrix client and replays it to the Citrix server.

Currently, events are recorded in analog mode. That is, objects are identified by their coordinate position, and not by a context-sensitive name (e.g."OK_BUTTON"). For example, the parameters of the ctrx_mouse_click function, x_pos and y_pos, specify the pixel coordinates of the mouse click, found, say, within a window dialog's "OK" button.

连接函数
ctrx_connect_server:连接Citrix服务
ctrx_disconnect_server:断开Citrix服务器连接
ctrx_set_connect_opt:设置Citrix ICA服务器选项并连接
ctrx_nfuse_connect:Connects to a Citrix server via an NFUSE portal

鼠标事件函数
ctrx_mouse_click:模拟Client的一个鼠标点击事件
ctrx_mouse_double_click:模拟Client的一个鼠标双击事件
ctrx_mouse_down:模拟一个鼠标“点下”的事件
ctrx_mouse_up:模拟一个鼠标“点击释放”的事件

键盘事件函数
ctrx_key:模拟一个输入非数字字符串的键盘事件
ctrx_type:模拟一个输入数字的键盘事件

选择事件函数
ctrx_list_select_item:从列表中选择一项
ctrx_menu_select_item:从菜单中选择一项

同步事件函数
ctrx_set_waiting_time:设置LoadRunner/Citrix ICA的等待事件
ctrx_set_window:Waits for a window to appear in the Citrix client
ctrx_set_window_exWaits for a window to appear in the Citrix client for a specified amount of time
ctrx_sync_on_bitmapWaits until a bitmap appears
ctrx_sync_on_bitmap_changeWaits until a bitmap changes
ctrx_sync_on_obj_infoWait until the specified object's attributes have the specified value
ctrx_sync_on_windowWaits for a window to become created or active
ctrx_unset_windowWaits for a window to close in the Citrix client
ctrx_wait_for_eventWaits for a specified event to occur
ctrx_win_existChecks if a window is visible on the screen

Citrix通用函数
ctrx_save_bitmapSaves the demarcated bitmap in a buffer.
ctrx_set_exceptionSpecifies exception handling.

信息交互函数
ctrx_button_get_infoRetrieves information about a push button.
ctrx_edit_get_infoRetrieves information about a text edit field.
ctrx_get_bitmap_valueReturns the value of a bitmap as a string
ctrx_get_textRetrieves the text in a rectangle.
ctrx_get_window_nameRetrieves the name of the active window
ctrx_get_window_positionRetrieves the position of a window
ctrx_list_get_infoRetrieves information about a list box.
ctrx_obj_get_infoRetrieves information about an object.
ctrx_get_waiting_timeGets current wait time.
页: [1]
查看完整版本: 20080406-Loadrunner-Citrix ICA虚拟用户函数