loadrunner 函数说明(转载)

上一篇 / 下一篇  2012-01-20 14:08:03 / 个人分类:lr

// button_press函数激活指定的推按钮。
int button_press ( LPCSTR button );

// button_set 函数将按钮状态设置为 ON 或 OFF。
int button_set ( LPCSTR button, int state );

// close_session 函数关闭所有打开的窗口并结束
// 当前的 Baan 会话。在 Baan 模板中创建的此函数

// 出现在脚本的 vuser_end 部分中。
int close_session();

// edit_get_text 函数返回在指定 edit 对象中
// 找到的所有文本。若要从特定块中读取文本,

// 请使用 edit_get_block。
int edit_get_text ( LPCSTR edit, char *out_string );

// edit_set 函数使用指定的字符串设置 edit 对象的
]i.X1Q0X6u^ p72047// 内容。该字符串将替换任何现有字符串。
d0ii|2m72047int edit_set ( LPCSTR edit, LPCSTR text );

ae9?e5`+PP9N7204751Testing软件测试网M!Tc7}Q9Uf3g#W

// edit_set_insert_pos 函数将光标放置
// 在 edit 对象内的指定位置。
int edit_set_insert_pos (LPCSTR edit, int row, int column );

// edit_set_selection 函数突出显示指定文本。
int edit_set_selection ( LPCSTR edit, int start_row, int start_column, int end_row, int end_column );

// edit_type 函数将文本字符串输入到 edit
// 对象中。该文本字符串不会替换现有字符串;
// 它替换的是位于当前光标位置的指定文本。
int edit_type ( LPCSTR edit, LPCSTR text );

// init_session 函数通过指定登录数据和配置
// 信息打开 Baan 连接。此函数向 Baan 服务器
// 呈现包含在 Baan Configuration 部分中
// 的信息。

int init_session ( char * host, char * user, char *password, char *BSE, char *Bshell_name, char * settings );

// list_activate_item 函数双击列表中的项目。
// 项目可由其逻辑名称指定。
int list_activate_item ( LPCSTR list, LPCSTR item );

// list_collapse_item 函数隐藏展开的 TreeView
// 列表中的子项,例如文件夹中的各个文件。
int list_collapse_item (LPCSTR list, LPCSTR item );

// list_expand_item 函数显示展开的
// TreeView 列表中所隐藏的子项,例如

// 文件夹中的各个文件。
int list_expand_item (LPCSTR list, LPCSTR item );

// list_get_selected 函数返回列表中的选定
// 项目。它既查找标准列表,也查找多选项列表。
int list_get_selected (LPCSTR list, LPCSTR out_item, LPCSTR out_num );

// list_select_item 函数从列表中选择项目
// (在项目上执行一次鼠标单击)。项目可由51Testing软件测试网~[b b9_I7K
// 其名称或数字索引指定。索引被指定为一个
-H"M9_I@w y^J72047// 字符串,并前置有字符 #。列表中的第一个
$D$[q,n|(o72047// 项目编号为 0。例如,列表中的第三个项目51Testing软件测试网'Q"^2[.{d(Tq x?6i
// 将表示为 "#2"。51Testing软件测试网nb*yoX_-oG
int list_select_item ( LPCSTR list, LPCSTR item );51Testing软件测试网D}b A/|)M(x`i3z

51Testing软件测试网]'Dfm5Ww\#J.IS

// menu_select_item 函数根据菜单
d1das7Ne,o!Q72047// 的逻辑名称和项目名称从菜单中选择
:v [2X$n$~A Frk72047// 项目。注意,菜单和项目表示为单个
2i*?6ZgK1J\|*S72047// 字符串,并使用分号分隔。51Testing软件测试网)z!@#|_%N.uC6V
int menu_select_item ( LPCSTR menu_item );51Testing软件测试网UkXaR

51Testing软件测试网\W3wzrR(D

// obj_get_info 函数检索指定属性的值,
4bC'Js&UbJ72047// 并将其存储在 out_value 中。
`1B&fA:L7LK2bJ |72047int obj_get_info ( LPCSTR object, LPCSTR property, char *out_value );51Testing软件测试网+f4x G?] o

+|.c#rWegQ0C&v&j/bE/M72047// obj_get_text 函数从指定的对象
Y)CCeW,Mh72047// 或对象区域中读取文本。
a"i d:m5fq5s72047int obj_get_text (LPCSTR object, LPCSTR out_text );

T"J\8M^.b*JqF l72047

5\K[Vuo,d\72047// obj_mouse_click 函数在对象内的
BsH*?2k,\"}$`.S6z72047// 指定坐标处单击鼠标。51Testing软件测试网7SsB3Me[
int obj_mouse_click ( LPCSTR object, int x, int y, [mouse_button] );

E&w5I$M @7204751Testing软件测试网7`?6ydV)[`bUg

// obj_mouse_dbl_click 函数在对象内的
9c}7}p-_%O ^h72047// 指定坐标处双击鼠标。51Testing软件测试网iN+y BNcAU_0r'o
int obj_mouse_dbl_click ( LPCSTR object, int x, int y, [mouse_button] );51Testing软件测试网^2fr5xOU1e

51Testing软件测试网U!C9\Jf6a1~4y

// obj_mouse_drag 函数在 GUI51Testing软件测试网 vr'Mc;_AK
// 对象中执行鼠标拖动操作。指定的
.CV Yo!?9@72047// 坐标是相对于 GUI 对象(而非51Testing软件测试网PhPp(V#O c2r'~
// 屏幕)的左上角。
}/RfS)V1y!R!L72047int obj_mouse_drag (LPCSTR object, int start_x, int start_y, int end_x, int end_y, [ ButtonT mouse_button] );

Wq D@s"v5p0qf#Y72047

2u7ZO%uNg72047// obj_type 函数指定将 keyboard_input
x/{ @W6d `\+m@72047// 发送到的目标对象。51Testing软件测试网)Y$~4i0FDm%G
int obj_type ( LPCSTR object, unsigned char keyboard_input, [unsigned char modifier ] );51Testing软件测试网"J#V'W2O ~1ST

51Testing软件测试网4Q5l1JR?1c)h

// obj_wait_info 函数等待对象51Testing软件测试网)}4t(o"R!Lr*J
// 属性达到指定值,然后继续51Testing软件测试网,kH;RL.u
//测试运行。如果未达到指定
2Mm%h$}T~72047// 值,则函数将一直等到时间
.gp:w9w e72047// 到期,然后再继续测试。
G m*aJ U3h3`,f_72047int obj_wait_info (LPCSTR object, LPCSTR property, LPCSTR value, UINT time );51Testing软件测试网2ob5k I%iCk

51Testing软件测试网QH0a_{ Ii4h

// scroll_drag_from_min 函数将滚动屏51Testing软件测试网;_Vw C^2p*KYN|
// 移动到与最小位置相距指定距离的位置。
Umsl B NN72047int scroll_drag_from_min ( LPCSTR object, [int orientation], int position );

jy*{!|Q^tk'y@1z6u72047

&^ dA+j/AJ72047// scroll_line 函数滚动指定行数。51Testing软件测试网u IP[ V R
// 此函数可用于滚动栏和滑块对象。
c0yV(z H4F0Kb72047int scroll_line ( LPCSTR scroll, [ScrollT orientation], int lines );

~ ecgke7204751Testing软件测试网$C.Q0V;V7V+x

// scroll_page 函数将滚动屏移动指定页数。51Testing软件测试网'UV$eh$P5aCtM
int scroll_page ( LPCSTR scroll, [ScrollT orientation], int pages );

oC!f+Kn%z thh7204751Testing软件测试网2Sy mk9q

// set_default_timeout 函数设置回放51Testing软件测试网q,jx.ji(X
// 期间 Baan Vuser 函数的超时期间段。51Testing软件测试网!X1{0W5f"IAV;Y)}#D
// 例如,当脚本执行 set_window 函数
)z`P:T df;i I0z?72047// 时,如果窗口在指定超时时间段内没有51Testing软件测试网7zU`*BJ4ZLP
// 出现,则会生成错误。51Testing软件测试网'XZ^ RY-c
void set_default_timeout ( long time );51Testing软件测试网S%d'E9iZfxp

51Testing软件测试网cm'h o+h"R-O\

// set_exception 函数指定在发生异常时51Testing软件测试网B'V0X,v H*W4Tra
// 应执行的操作。应指定要调用以处理异常
Ny9M4v_$D.`&P F72047// 窗口的函数。51Testing软件测试网]K0fk/d)d3E s I)[
void set_exception ( LPCSTR title, long function );

(\f3|MBL EK7204751Testing软件测试网srMO5S8K:kFN5G

// set_think_time 函数指定脚本执行
1Vr$Dal0I C]72047// 期间要使用的思考时间范围。运行脚本51Testing软件测试网[ke/JD
// 时,LoadRunner使用指定范围内的
1M xe H\#v"c["}!p3D72047// 随机思考时间,并在每个操作完成后
M~5G } m:g9v+V8[72047// 暂停该思考时间长度。
"Q$W#hmr\nb72047void set_think_time ( USHORT start_range, USHORT end_range );51Testing软件测试网2bxQg Aa/M;x%})h

51Testing软件测试网p$M5g)u0YCst

// set_window 函数将输入定向到
4H V)` z"M8Z;K0a2x8^72047// 当前应用程序窗口并在 GUI 图中51Testing软件测试网*r2hU8LYG4E
// 设置对象标识范围。51Testing软件测试网$j8cNm+K
int set_window ( LPCSTR window [, int timeout ] );

7ABp~5dR7204751Testing软件测试网 eY|'l0]

// start_session 函数在 Baan51Testing软件测试网h)C H n t3]
// 服务器上开始指定的会话。
oVN)q o%g*g)Y$? N72047int start_session ( LPCSTR session );51Testing软件测试网y/{dw,zD

51Testing软件测试网/y'u!b3Je)D/A,oJ

// static_get_text 函数返回在指定
!YLL6Xij5]5`h_72047// 静态 text 对象中找到的所有文本。
Zh/S~ RdqX/t8`72047int static_get_text ( LPCSTR static_obj, LPCSTR out_string );

zi S-uag;z9c.iA x7204751Testing软件测试网iF*B(r9H:E;x

// tab_select_item 函数选择一个选项卡项目。
.v,Kx,XW'P`$|72047int tab_select_item ( LPCSTR tab, LPCSTR item );51Testing软件测试网f.I.e|&vl

ny2n OaD3fw72047// tbl_activate_cell 函数在指定表单元格中51Testing软件测试网u4` V Kx7D#Oa`u|^3j
// 按 Enter 键。如果指定了列名,LoadRunner51Testing软件测试网:oZdLA H
// 将直接从数据库中获取该名称。51Testing软件测试网qA*U_o v#w,Ai0`Y
int tbl_activate_cell (LPCSTR table, LPCSTR row, LPCSTR column );51Testing软件测试网a` Kp7V

M:t&_(pn4W^72047// tbl_get_cell_data 函数根据
3HsV'\ jpTJ72047// 单元格包含的数据类型获取表中
Zh-\G+qI%_k d72047// 指定单元格的内容。如果指定了
uy l5\,]72047// 列名,将从数据库自身(而非应用
N"g ^ MT(U1L I72047// 程序)中获取该名称。51Testing软件测试网5mK9UI*Z d
int tbl_get_cell_data (LPCSTR table, LPCSTR row, LPCSTR column, LPCSTR out_text );51Testing软件测试网5r#m5afj\h(FC*P7x

51Testing软件测试网8Z B qM_$e

// tbl_get_selected_cell 函数51Testing软件测试网;?2M2q'Pc2d/yC
// 检索焦点所在的表单元格的行号和51Testing软件测试网obF P(p8fCS3B
// 列名。注意,列名取自数据库自身,
bjW[ |/gX1PU72047// 而非应用程序。51Testing软件测试网#BF1Ihw&O(K
int tbl_get_selected_cell (LPCSTR table, char *out_row, char *out_column );51Testing软件测试网8}A o#Tu3Q6RYq

hB5@A6nXN!c*Z72047// tbl_press_zoom_button 函数51Testing软件测试网5tl^ s#m&M
// 激活指定表单元格的缩放窗口。51Testing软件测试网3YF C)h;W1m
int tbl_press_zoom_button ( LPCSTR table, LPCSTR row, LPCSTR column );51Testing软件测试网? D-ff9D[ zN|E

U1B qR w72047// tbl_set_cell_data 函数根据单元格
2o@3sb%si},e72047// 包含的数据类型使用指定数据设置单元格51Testing软件测试网$\9\)Qq,DU{7@'~
// 的值。如果指定了列名,LoadRunner51Testing软件测试网,_iHP#_;c(dG N'T1lD
// 将直接从数据库中获取该名称。51Testing软件测试网@ Ea1E?f kA
int tbl_set_cell_data (LPCSTR table, LPCSTR row, LPCSTR column, LPCSTR data );51Testing软件测试网Pn$R-E XPg:H

51Testing软件测试网W;O'aU1m6g

// tbl_set_selected_cell 函数将焦点
qk~fqoQ72047// 设置到表中的指定单元格上。指定列名时,51Testing软件测试网KZ9V |&rq VC;n ^ G
// LoadRunner 将直接从数据库中获取该名称。
8sEM/z P+Y(gtG:Q~72047int tbl_set_selected_cell (LPCSTR table, LPCSTR row, LPCSTR column );

xpu-r,omWI'Z7`72047

;mBT~gF)G_ H72047// tbl_set_selected_row 函数选择表中的指定行。
P C L8oi8E&d72047int tbl_set_selected_row (LPCSTR table, LPCSTR row );51Testing软件测试网6H8U6g#QJ T

uT9F"j]2|2e:k$oxg72047// tbl_set_selected_rows 函数选择指定行范围。51Testing软件测试网4x}sJ8bRs(B
int tbl_set_selected_rows(LPCSTR table, LPCSTR from_row , LPCSTR to_row );51Testing软件测试网_0X6jop9xbL1P

51Testing软件测试网D;c(\hmC!_9X o3j

// tbl_wait_selected_cell 函数等待51Testing软件测试网*R9JZ](N @3t Q
// 表单元格显示后,再继续脚本执行。
-p X5A$A[ cK72047int tbl_wait_selected_cell (LPCSTR table, char *row, char *column, UINT time );51Testing软件测试网(_7wcaId

3wP1\|zzu)PU72047// toolbar_button_press 函数激活工具栏中的按钮。
-`~BQ2p%L"U%k72047int toolbar_button_press (LPCSTR toolbar, LPCSTR button );51Testing软件测试网9Zs0l$bgQ(f

Mjl{ },V2_J#z72047// type 函数描述发送给用于测试
LS ih C.Y72047// 的应用程序的键盘输入。
^isV3O:_E72047int type (LPCSTR keyboard_input );

'c/U9gs9n6oT72047

(x']9g#D3kw9Y c6Vq6F72047// win_activate 函数通过向指定窗口51Testing软件测试网D.k C M;H/];|
// 授予焦点并将其升到显示器最上端,
#x)Q%nU#V8k AL7W72047// 使其成为活动窗口(等价于单击窗口
3U Q-c1_7Z/W#y(cr72047// 标题栏)。所有后续输入都将提交给
;^:Nd0V8m$g72047// 此窗口。
e8~&@5u(r+R72047int win_activate (LPCSTR window );51Testing软件测试网K YDEd7A

Xx2x#o,H\*ZG72047// win_close 函数关闭指定窗口。51Testing软件测试网'iMw_+d"w[7k;Y
int win_close ( LPCSTR window );51Testing软件测试网*~l-k&CG

51Testing软件测试网-LJ8pTc|b Wd

// win_get_info 函数检索指定属性的值51Testing软件测试网-JKN n'f{
// 并将其存储在 out_value 中。51Testing软件测试网0q7~#L,U6J
int win_get_info ( LPCSTR window, LPCSTR property, char *out_value );51Testing软件测试网3Ao:o*\R"[#~{

51Testing软件测试网3~(]S.X@+T-hu9w'`

// win_get_text 函数从指定窗口或51Testing软件测试网(rVH8J%L-gY
// 窗口区域读取文本。51Testing软件测试网:X2k.B#Z!\8x(|Fl
int win_get_text ( LPCSTR window, LPCSTR out_text );

;Y;\Q)pD aA7204751Testing软件测试网?!O}#N8B(v@ v s;i

// win_max 函数将指定窗口51Testing软件测试网qC/U8T%u;t3c @Jo
// 最大化以充满整个屏幕。51Testing软件测试网*t@ _6V(`
int win_max (LPCSTR window );51Testing软件测试网!}L?*b/I2D

51Testing软件测试网&T M^ O&V,lV Y

// win_min 函数将指定窗口最小化为图标。51Testing软件测试网 L4p1i{`6XO
int win_min (LPCSTR window );

I a#f+^$t+N7204751Testing软件测试网IJg"} c^,x UO c

// win_mouse_click 函数在选中窗口51Testing软件测试网6\YAF-\:DU?t6{]
// 的指定坐标处执行鼠标单击操作。51Testing软件测试网/N*qhNPe_
int win_mouse_click (LPCSTR window, int x, int y, ButtonT button );

E|-S.{WZ72047

S:C-u(n:H@72047// win_mouse_dbl_click 函数在选中窗口51Testing软件测试网k.oex?[5d
// 的指定坐标处执行鼠标双击操作。51Testing软件测试网N]4Axt ~ u(l`
int win_mouse_dbl_click (LPCSTR window, int x, int y, ButtonT button );

(f On'b_7204751Testing软件测试网8{d @+f;gP*L

// win_mouse_drag 函数在窗口内执行51Testing软件测试网A'? G)~#gL? F A#B
// 鼠标拖动操作。注意,指定的坐标是
bGz&lL.F Z0Id O72047// 相对于窗口(而非屏幕)的左上角。51Testing软件测试网2`$}^t,ks:]
int win_mouse_drag (LPCSTR window, int start_x, int start_y, int end_x, int end_y, ButtonT button );51Testing软件测试网&AI6F)U:A&|'~

l`/S ?C+Z@72047// win_move 函数将窗口移动到新的绝对位置。
#Ar1jJ6u72047int win_move ( LPCSTR window, int x, int y );

bx,c'DZ z q C72047

J6_9q2m1g KggG72047// win_resize 函数更改窗口的位置。
2ufd-N C'A z72047int win_resize ( LPCSTR window, int width, int height );51Testing软件测试网0\%]7TpY8{

51Testing软件测试网([xT?9Sl-G

// win_restore 函数将窗口从图标化51Testing软件测试网?Ww-B'W0s&f {3u1L
// 或最大化状态还原为其原始大小。51Testing软件测试网2y L'Rufn,NE
int win_restore (LPCSTR window );51Testing软件测试网X'\}^Y%l

51Testing软件测试网3k BP3A6Zq'R(o

// win_wait_info 函数等待窗口
y%QSFvR$Hi X72047// 属性达到指定值,然后继续测试
J?d{L)zagf `(h72047// 运行。如果未达到指定值,则函数51Testing软件测试网f|yC tFt
// 将一直等到时间到期,然后再继
_0GV ?/|72047// 续测试。51Testing软件测试网 s%P [ @i(m+^4A }
int win_wait_info (LPCSTR window, LPCSTR property, LPCSTR value, UINT time );

&_"h_ ^ U*f*Z*J7204751Testing软件测试网1H2[7M|IH.Z$M

// win_type 函数指定 keyboard_input51Testing软件测试网h'Vq$j7N#QR/F
// 将发送到的目标窗口。
7H-? K9EGK?vQ72047int win_type (LPCSTR window, LPCSTR keyboard_input );

AN?M l4`H/L Z72047

!@a"}!v:`J9~0Dx72047// ctrx_<obj>_get_info 函数系列将属性51Testing软件测试网 G*Q3`+~$@KP j7{,n5fd
// 的值分配给值缓冲区。ctrx_obj_get_info
pB)a(n%tN2RhWL72047// 是一般函数,它可以适用于任何由录制器51Testing软件测试网H&`Cig I n
// 所标识为对象的对象。
%ouna KC!j@Ei/J72047int ctrx_obj_get_info( const char * window_name, long xpos, long ypos, eObjAttribute attribute, char *value, CTRX_LAST );

0D1Fw+yUy7204751Testing软件测试网L'd$h&r7LN%J

// ctrx_<obj>_get_info 函数系列将属性的值51Testing软件测试网W*g4h7JY9iBL)fN
// 分配给值缓冲区。ctrx_button_get_info51Testing软件测试网#s`5`:Hn8^g;nD
// 获取命令按钮的信息。51Testing软件测试网%S)BO z'v3E5G+b|
int ctrx_button_get_info( const char * window_name, long xpos, long ypos, eObjAttribute attribute, char *value, CTRX_LAST );51Testing软件测试网dt+`bM"qe?

51Testing软件测试网F5{'Hu!_dX!Z ?(q

// ctrx_<obj>_get_info 函数系列将属性的值
oc!eH xM@72047// 分配给值缓冲区。ctrx_edit_get_info51Testing软件测试网M7zL n GO o U.h K
// 获取文本框的信息。51Testing软件测试网cw:f/CLf
int ctrx_edit_get_info( const char * window_name, long xpos, long ypos, eObjAttribute attribute, char *value, CTRX_LAST );

#C,hBBS%}4V"hS72047

8d;cH:_Oe;bf72047// ctrx_<obj>_get_info 函数系列将属性的值
'p8l6L$A.HeS"V72047// 分配给值缓冲区。ctrx_list_get_info51Testing软件测试网7F7H/b:Pf"i M:l
// 获取列表框的信息。51Testing软件测试网&N$bxy+_z
int ctrx_list_get_info( const char * window_name, long xpos, long ypos, eObjAttribute attribute, char *value, CTRX_LAST );51Testing软件测试网AOa:W!J/hp

51Testing软件测试网P'm7t!eLT}v

// ctrx_connect_server 将 Citrix 客户端连接到 Citrix 服务器。51Testing软件测试网%ChB#[/k4Un
int ctrx_connect_server (char * server_name, char * user_name, char * password, char * domain);

WE/ow{:}~g+|&_e72047

~gUJ#Rew[6j_72047// ctrx_disconnect_server 断开客户端与 Citrix 服务器的连接。51Testing软件测试网cK*b*G2ZL9`%Bu.h[
int ctrx_disconnect_server (char * server_name);

3oR Yf3g zU7204751Testing软件测试网InE"G$^Mm*L.z9c

// ctrx_nfuse_connect 使用 NFUSE 应用51Testing软件测试网$_Q Z+|!~"O
// 程序门户建立与 Citrix 服务器的连接。在51Testing软件测试网(r-Te+s!Z q
// 定义 NFUSE 门户的个性化规范的 ICA 文件51Testing软件测试网tT5y:C&u/rm-L
// 中找到的规范将从服务器上下载,在此之后51Testing软件测试网#de2y)u7?y"x$l
// 建立连接。51Testing软件测试网-kgzJcb&m/V
int ctrx_nfuse_connect(char * url);

H,]`hG;T7204751Testing软件测试网 bP*h*Pd

// 使用 ctrx_get_bitmap_value51Testing软件测试网7f3p$^9_0y/MTQ@5{
// 检索位图的哈希字符串值以用于您
p1L"]%NJ oU72047// 的自定义同步函数中。位图坐标由
S1[/Rsj ~V72047// 前四个参数指定。
1jw&c1T%T72047int ctrx_get_bitmap_value (long x_start, long y_start, long width, long height, char * buffer);

k p"S\#n#C!}p C4mVE72047

2L}GyR,t8F72047// ctrx_get_text 将矩形中的文本分配到 text_buffer
qg]t&?4K ~72047// 中。随后,文本可被用于关联。
#N"_ Ap;a l#UFb72047int ctrx_get_text( char *window_name, long xpos, long ypos, long width, long height, char * filename, char * text_buffer, CTRX_LAST );

r8?7C&z ^b7204751Testing软件测试网4eP/A@'rF"i V f7J

// ctrx_get_text_location 在 xpos、51Testing软件测试网)D?D HO*F^
// ypos、width 和 height 指定区域中
#M2F/J9{'a72047// 搜索指定文本。如果找到字符串,当函数
n(G9qU _6jBZX72047// 返回后,xpos 和 ypos 即为找到文本的51Testing软件测试网)HU DD-Y3OF,^2T ]
// 位置。如果未找到字符串,xpos 和 ypos51Testing软件测试网X `v] v{B0Tt
// 则为零。
)`-h"T)a*\ I@r72047int ctrx_get_text_location( LPCSTR window_name, long *xpos, long *ypos, long *width, long *height, LPSTR text, long bMatchWholeWordOnly, LPCSTR filename, CTRX_LAST );51Testing软件测试网 F4da!Q(\Y

~g OYP+|72047// ctrx_get_waiting_time 从运行时设置中获取当前等待51Testing软件测试网~ p#et:?WbN
// 时间,或者通过 ctrx_set_waiting_time 设置的值。51Testing软件测试网:d?6D0C$y \7oUs
int ctrx_get_waiting_time ( long * time );51Testing软件测试网6W FE;`?0Tp?e.G

51Testing软件测试网t!i{ V4s?

// 使用 ctrx_get_window_name 检索51Testing软件测试网.`0o fi c6Iv
// 当前获得焦点的窗口的名称。
yW0I&On+P3YT4Q72047int ctrx_get_window_name (LPSTR buffer);51Testing软件测试网Q+[ I [!I t ~;rJ3N

51Testing软件测试网dC&^@f9L"c

// 使用 ctrx_get_window_position51Testing软件测试网W qN P+]`
// 检索名为 title 变量值的窗口的位置。51Testing软件测试网%MZMu+\%|O!{T
// 如果 title 为 NULL,则函数将检索
3zV%Rp@72047// 当前拥有焦点的窗口的位置。51Testing软件测试网7WV4]&]9@Q\
int ctrx_get_window_position (LPSTR title, long *xpos, long *ypos, long *width, long *height);

-[xGF#us7204751Testing软件测试网D3I_&R];\n{v,H

// ctrx_list_select_item 函数从列表中选择项目。51Testing软件测试网?{I;V8m
// 它支持 ListBox 或 ComboBox 类的列表。
t^,^(fop,z72047int ctrx_list_select_item(char * window_name, long xpos, long ypos, char * item, CTRX_LAST );

,p}%uiiV{7204751Testing软件测试网{K P7h1YB/~WWa

// ctrx_menu_select_item 突出显示51Testing软件测试网a[.Y;Un]"M)Y
// 菜单中的项目,但不激活它。51Testing软件测试网] V,{0h iY4Z9Y
int ctrx_menu_select_item ( char * window_name, char * menu_path, CTRX_LAST) ;51Testing软件测试网}2AF;^"yL

51Testing软件测试网,q7ZnLkn t`

// ctrx_mouse_click 等待窗口 window_name51Testing软件测试网K]+wYv/g8c
// 出现,然后执行鼠标单击操作。
%e |$yZLF:j#Ri72047int ctrx_mouse_click (long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name);51Testing软件测试网(`Z)}-dJ,K9~e L/@5y

51Testing软件测试网dHK6m3fEk

// ctrx_obj_mouse_click 等待窗口 window_name
-}_~|+D `r0R72047// 出现,然后执行鼠标单击操作。51Testing软件测试网2ch"e~9hR
int ctrx_obj_mouse_click (const char * obj_desc, long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name);51Testing软件测试网vh,D!ZsD0N `

"N eu4V ~72047// ctrx_mouse_double_click 等待窗口 window_name51Testing软件测试网!lJM:f` aA
// 出现,然后执行鼠标双击操作。51Testing软件测试网'R/|3nO1U d'vE`KT
int ctrx_mouse_double_click (long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name);

U6rb;E3v V8Z DS7204751Testing软件测试网3WJ1D8rm'j

// ctrx_obj_mouse_double_click 等待窗口 window_name
&`:U8nU?V72047// 出现,然后执行鼠标双击操作。51Testing软件测试网D:H Y)`/d
int ctrx_obj_mouse_double_click (const char * obj_desc, long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name);51Testing软件测试网*_ X-ix9A

51Testing软件测试网a*A7~G qw

// ctrx_mouse_down 等待窗口 window_name
-}7fLO1Y72047// 出现,然后执行按下鼠标按键操作。51Testing软件测试网3ju)]{5v^b;q
int ctrx_mouse_down(long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name);51Testing软件测试网:S#E^1S#UW#Sq

51Testing软件测试网f2[G Me)P:mT

// ctrx_obj_mouse_down 等待窗口 window_name
~%H*Y$y$Le72047// 出现,然后执行按下鼠标按键操作。
:k|-ZFj72047int ctrx_obj_mouse_down(const char * obj_desc, long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name);

.pYz@4A*k8Ry7204751Testing软件测试网~K0t/JN%rs

// ctrx_mouse_up 等待窗口 window_name51Testing软件测试网CX']Jw5]E
// 出现,然后在指定位置执行释放鼠标按键操作。
(bg%s7mT A_4^72047int ctrx_mouse_up(long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name );

O7}9^'g[6{6Mo Y7204751Testing软件测试网2l/l C'f$O

// ctrx_obj_mouse_up 等待窗口 window_name
l[?+~]S72047// 出现,然后在指定位置执行释放鼠标按键操作。
4Z[3}L8\ n},a72047int ctrx_obj_mouse_up(const char * obj_desc, long x_pos, long y_pos, long mouse_button, long key_modifier, char * window_name );51Testing软件测试网I.Ng*w)AE!i)P

51Testing软件测试网5[(d%K5`3o'_6U \4gs

// ctrx_set_window 是同步函数,它等待
'X/l H cd?0^3b1uz72047// 窗口出现,然后 Vuser 才在该窗口中模拟51Testing软件测试网^7XFl*kz)E
// 任何键盘或鼠标活动。
5qT@y \C H72047int ctrx_set_window (char * window_name);51Testing软件测试网 kp9QOko1Q4~

51Testing软件测试网i^_9\;eu"Sg9t+p;|~

// ctrx_set_window_ex 是同步函数,它至多51Testing软件测试网?:Ci%]h&L
// 等待 time 秒,若窗口出现,Vuser 将在该
m {8hC'T72047// 窗口中模拟任何键盘或鼠标活动。
#tnv.Dx-Zz5`H72047int ctrx_set_window_ex (char * window_name, long time);

a6bQ8})y w fI+Q9|7204751Testing软件测试网:}BZyMM

// ctrx_key 模拟用户在 Citrix 客户端中
!PW/Hwq#bw6N@7g q7j72047// 按下非字母数字键。51Testing软件测试网.uqh O,{Cw
int ctrx_key (char * key, long int key_modifier);

?4md+BYR!TRw72047

0[{.~*vL g(yrV[72047// 函数 ctrx_type 模拟用户键入字母数字字符。
)Q7\!Wk1s w72047int ctrx_type (char * data);51Testing软件测试网V Z ]'F*|DIm8C

Y1~DD8qA72047// ctrx_save_bitmap 将位图保存为文件。
KF2d/} Rad72047// 该文件将保存在 Vuser 结果日志目录中。
[p x\qNfj@5|72047int ctrx_save_bitmap( long x_start, long y_start, long width, long height, const char * file_name );51Testing软件测试网#uq b9bb[/y

)MLl:F~N'fV d/~72047// ctrx_set_connect_opt 在建立 Citrix 客户端51Testing软件测试网,zy/A0n:pL` ca
// 与 Citrix 服务器的连接之前设置连接选项,然后
:?D*?1L @j72047// 执行与服务器的连接。
5Jd9n|X,n%B72047int ctrx_set_connect_opt (eConnectionOption option, char * value);51Testing软件测试网M c]DkE W^

3qZ K%B B:|72047// ctrx_set_exception 定义当不规则51Testing软件测试网O}c6V(Bri+?
// 事件发生时要执行的操作。此事件必须
Vj$W:s[LH2O]E|O72047// 与名为 window_title 的窗口(通常
U3?NF,}72047// 为弹出式对话框)的外观相关联。当窗口51Testing软件测试网Y#o5jC ~|
// 出现时,将调用 handler 函数。51Testing软件测试网!z6Q1C ^,_V
void ctrx_set_exception ( char * window_title, long handler, [void *context]);

~h!j;OYj0d"R?72047

:_~8_Xza72047// ctrx_set_waiting_time 更改51Testing软件测试网g?a-F|
// 同步函数默认 60 秒的等待时间。51Testing软件测试网Sn6_ iJ3k5n4dG
int ctrx_set_waiting_time (long time);

Ajgo%l72047

6Lh^w#~)q72047// ctrx_sync_on_bitmap 是同步函数,51Testing软件测试网)r:~9^1q x
// 它等待指定位图出现,然后再继续执行。
Wh,b%U;L dX72047int ctrx_sync_on_bitmap (long x_start, long y_start, long width, long height, char * hash);51Testing软件测试网;JM1S2]7O

6Z`9sk t{\72047// ctrx_sync_on_bitmap_change 是同步
YsjL e9]:y72047// 函数,它等待指定位图改变,然后再继续执行。51Testing软件测试网n&_4^S0swQ
// 该函数通常用在窗口改变而窗口名称保持51Testing软件测试网8Zcnfbz ir
// 不变的情况下。如果窗口名称改变,51Testing软件测试网/M@ RqP}/a
// 则 ctrx_set_window 将被自动51Testing软件测试网Qa?,KA+J)g)r]"vF
// 生成。51Testing软件测试网/oN"Zq h t8d-L#u
int ctrx_sync_on_bitmap_change (long x_start, long y_start, long width, long height, <extra_args>, CTRX_LAST);

){h!S%@G/lR:{V`72047

TZ@OkPg L72047// ctrx_sync_on_obj_info 被调用时,执行将暂停,
qs%B4J5D~&]72047// 直到指定对象的属性具有指定的值。
{(N4}1|v1S_gZD Oth72047int ctrx_sync_on_obj_info ( char * window_name, long xpos, long ypos, eObjAttribute attribute, char * value, <CTRX_LAST> );51Testing软件测试网.@2Z.Z[x5SHKo

x-p C{wP72047// ctrx_sync_on_window 是同步函数,
8\9TRVVy1Zf u72047// 它等待窗口被创建或变为活动的。
)KMl$UO72047int ctrx_sync_on_window (char * window_name, eWindowEvent event, long x_start, long y_start, long width, long height, char * filename, <CTRX_LAST>);51Testing软件测试网 x#]-SysO-fM&d

51Testing软件测试网~c2[b ] H

// ctrx_unset_window 是同步函数,它等待
4oEc"RiiSe x_72047// 窗口被关闭,然后脚本才继续执行。
,B,p {3ua}hd72047int ctrx_unset_window (char * window_name);51Testing软件测试网0v)fi&s2[(}-v

51Testing软件测试网7M7R9gDm3j

// ctrx_wait_for_event 是同步函数,
x&y$pjs-ky7C72047// 它等待事件发生。
DC,wX*b1a+fjx72047int ctrx_wait_for_event (char * event);51Testing软件测试网G5Wh@{ `[

51Testing软件测试网z#[;xP@3?

// 如果窗口存在,ctrx_win_exist 返回 E_OK(零)。
T`$F2X/ip,J72047// 在 window_name 中可以使用通配符 (*)。51Testing软件测试网/A.yNQ"Z"iP
int ctrx_win_exist (char * window_name, long waiting_time);

lX!``$f*LU M*H7204751Testing软件测试网N*Q7hsj7X5Ym

// 有关 memchr 的详细信息,请参考 C 语言文档。51Testing软件测试网3XV6Q3w_
void *memchr ( const void *s, int c, size_t n );

gU;DS m7204751Testing软件测试网;p5C\C:^ S

// 有关 memcmp 的详细信息,请参考 C 语言文档。
Pm9eH c6Vs|r72047int memcmp ( const void *s1, const void *s2, size_t n );51Testing软件测试网 [IL.|9R JS

W cG GS2hFD0O4U72047// memcpy 函数从 src 缓冲区中将 n 个51Testing软件测试网lQ;k9u%q#lq
// 字符复制到 dest 缓冲区。51Testing软件测试网tc}9NRXR
void *memcpy ( void *dest, const void *src, size_t n );51Testing软件测试网Y7E:Tv[4l!I

51Testing软件测试网d~^&eF!s,J7H%nT

// 函数 memmove(以及所有不返回 integer 类型51Testing软件测试网1MVR.Jg
// 的函数)必须明确在 Vugen 脚本中声明。51Testing软件测试网!|&u`{}7a
void *memmove ( void *dest, const void *src, size_t n );

q eF3i-SM72047

(h [3} l\7z a7^72047// 有关 memset 的详细信息,请参考 C 语言文档。
9t `yM)b0e(a72047void *memset ( void *buffer, int c, size_t n );

*y Z `V\n a)VCP7204751Testing软件测试网MMDcZZ*Ye)R T

// 有关 getenv 的详细信息,请参考 C 语言文档。
3b2F4E&H9o72047char *getenv ( const char *varname );51Testing软件测试网VsADR

(f0][7z&xM*O*?72047// 有关 putenv 的详细信息,请参考 C 语言文档。
d9c;m)yCL72047int putenv ( const char *envstring );

)_5r`A@:G$xY*oo7204751Testing软件测试网wud0E)nLC"e'k

// 有关 system 的详细信息,请参考 C 语言文档。
li5@P!^{c72047int system ( const char *string );

lh2?6]!PA72047

,@xr;zS!`JV72047// 有关 calloc 的详细信息,请参考 C 语言文档。51Testing软件测试网lz/aI} S
void *calloc ( size_t num elems, size_t elem_size );

y-RQ2r:|"w\&v$v7204751Testing软件测试网srnP)?r z3PR.X

// 有关 free 的详细信息,请参考 C 语言文档。
(\R'Y ^m)u72047void free ( void *mem_address );

,y:k/?v _K F;Ax72047

6rSM/\1JSS{5y!m72047// 有关 malloc 的详细信息,请参考 C 语言文档。51Testing软件测试网2gv xA5ukw
void *malloc ( size_t num_bytes );

um(Bh9N+Ay7204751Testing软件测试网!m ^p"K(fF[+D.k!P&i

// 有关 realloc 的详细信息,请参考 C 语言文档。51Testing软件测试网"qGx])X
void *realloc ( void *mem_address, size_t size );51Testing软件测试网!@;? u3Ne9RU2j ?

51Testing软件测试网 `xuO9Mz

// 有关 abs 的详细信息,请参考 C 语言文档。51Testing软件测试网;U U&{bfz1r
int abs ( int n );

R,z'bxGqs5]72047

8U!i @1@8q72047// 限制:cos 函数在 AIX 平台中无法使用。
.aqF;\O|7S72047double cos ( double x );

$~0`'q(h,vVb72047

Z{o-jm o72047// 函数 floor(以及所有不返回 int 值的函数)51Testing软件测试网.QE @l8p'OEv
// 必须明确在 Vugen 脚本中声明。限制:此51Testing软件测试网*N2g$d(po.{ bj
// 函数在 AIX 平台中无法使用。
oUH.z j]72047double floor ( double x );51Testing软件测试网d']v&D(jM(YK

+YiWR-}oixcg72047// 在调用 rand 前,请调用 srand 以51Testing软件测试网6pW-ENn:siZ^y
// 播种伪随机数生成器51Testing软件测试网o\(K w2E
int rand ( void );

~6~4eC`g7204751Testing软件测试网-Jd8u']3VQ

// 限制:sin 函数在 AIX 平台中无法使用。51Testing软件测试网pQ7{X&d%b7s \!~H
double sin ( double x );

4B-\ T3g,u7204751Testing软件测试网qA?/k(m+e?x

// 函数 sqrt(以及所有不返回 int 值的
EI!bZ%e~72047// 函数)必须明确在 Vugen 脚本中声明。
&r1G?!|T72047// 限制:sqrt 函数在 AIX 平台中
`a E!J!}6k72047// 无法使用。
3W1u'}+C l72047double sqrt ( double x );51Testing软件测试网-N{ p$~b(r

51Testing软件测试网 h \{kF IPwTQB

// 在调用 rand 前,请调用 srand 以51Testing软件测试网4n%N1?6N5|7K!@$e
// 播种伪随机数生成器51Testing软件测试网&|cm5A4y r
int srand ( time );

l'JR"v1_ xq7204751Testing软件测试网I&T-M+Z]&@+vIw

// 有关 fclose 的详细信息,请参考 C 语言文档。51Testing软件测试网i\$I/X7~'j(A&R
int fclose ( FILE *file_pointer );51Testing软件测试网)m!fI3``

51Testing软件测试网/bIQN#j1Z

// 请不要在脚本中包括操作系统头文件(例如,stdio.h)。51Testing软件测试网 }#h8^ f1K3D$IF
// 但是,这样将导致某些类型(包括 feof 使用的 FILE
o2P XJ\Z1YG1`9\O72047// 类型)未经定义。这时,请使用 long 替代 FILE51Testing软件测试网#C9]E$@#m;o;vhT1`6p
// 类型。
(?fp6sX:G&clP0w~_72047int feof ( FILE *file_pointer );51Testing软件测试网x$P*N9FJ;kUnG7hC

51Testing软件测试网oL |X!_7x8i-Q

// 有关 ferror 的详细信息,请参考 C 语言文档。51Testing软件测试网,O9I7? C_g
int ferror ( FILE *file_pointer );

j1{hJ6vc)M#j JEU7204751Testing软件测试网G V1Dv,~BG$Y

// 请不要在脚本中包括操作系统头文件(例如,51Testing软件测试网Io1o6H1o
// stdio.h)。但是,这样会导致某些类型
wld5j7T kFl72047// (包括 fgetc 使用的 FILE 类型)未经定义。51Testing软件测试网rR{f4C}od2H
// 这时,请使用 long 替代 FILE 类型。51Testing软件测试网] Bg"U`(}*V*mC
int fgetc ( FILE *file_pointer );

s0Q#S-yJ(} H72047

+GW3| uk,ivrO72047// 请不要在脚本中包括操作系统头文件(例如,51Testing软件测试网g,Y!_Kvn
// stdio.h)。但是,这样会导致某些类型51Testing软件测试网iY s-U5F*lmn
// (包括 fgets 使用的 FILE 类型)未经定义。
M3AT^'l~72047// 这时,请使用 long 替代 FILE 类型。
JG A(_ m]+X(\8\Y72047char *fgets ( char *string, int maxchar, FILE *file_pointer );

Vu7M F#T`R72047

;IDn(B~J&i6n72047// 通过将 t 或 b 字符添加到 fopen 的 access_mode
F$h|*Y7e}R\72047// 参数,此访问模式字符串还将用于指定打开文件的方式51Testing软件测试网1ymx2jY+r&r2W0^
// (文本还是二进制)。51Testing软件测试网X nA9oUF"J
FILE *fopen ( const char *filename, const char *access_mode );

vh9j6e5U tO'Q:g7204751Testing软件测试网6V-IH&ep@

// 有关 fprintf 的详细信息,请参考 C 语言文档。51Testing软件测试网o| I6?;c,wR9fm
int fprintf ( FILE *file_pointer, const char *format_string [, args ] );

K@YUsqU72047

6Wan c3^+_%v#w72047// 请不要在脚本中包括操作系统头文件(例如,
d$GX0ky$uj~72047// stdio.h)。但是,这样会导致某些类型
w Pnp&n?"F4q Us72047// (包括 fputc 使用的 FILE 类型)未经定义。
"P+MN#r+UdT72047// 这时,请使用 long 替代 FILE 类型。51Testing软件测试网ze F xI(QE'^f/m
int fputc ( int c, FILE *file_pointer );51Testing软件测试网M[CRn @)v

0C$dx$`{ n&x72047// 请不要在脚本中包括操作系统头文件(例如,51Testing软件测试网b_-[P6z1cQ
// stdio.h)。但是,这样会导致某些类型
.{j&o x*d/@)?72047// (包括 fread 使用的 FILE 类型)未经定义。51Testing软件测试网_ |.J'vaQJq
// 这时,请使用 long 替代 FILE 类型。
.` Rh4Fi72047size_t fread ( void *buffer, size_t size, size_t count, FILE *file_pointer );51Testing软件测试网,c,]K.N N:W Dd

E1O0`[N:?1m y&T72047// 有关 fscanf 的详细信息,请参考 C 语言文档。
)J1I)Ccn%zn72047int fscanf ( FILE *file_pointer, const char *format string [, args] );51Testing软件测试网:h5V2T_y

bUzkk K0yO72047// 有关 fseek 的详细信息,请参考 C 语言文档。
3tw5| ? @!ny$h_72047int fseek ( FILE *file_pointer, long offset, int origin );51Testing软件测试网[.vC5} rC

51Testing软件测试网 Oj:JY mc;e5J([

// 请不要在脚本中包括操作系统头文件(例如,51Testing软件测试网^ w9l-bAx:W m5A_|
// stdio.h)。但是,这样会导致某些类型
7})md-_b H72047// (包括 fwrite 使用的 FILE 类型)未经定义。
o-~fqbH o(v72047// 这时,请使用 long 替代 FILE 类型。
4gy t8N&li_[K72047size_t fwrite ( const void *buffer, size_t size, size_t count, FILE *file_pointer );

iD+e` e5\7204751Testing软件测试网.x.E^caep

// 有关 rewind 的详细信息,请参考 C 语言文档。51Testing软件测试网0G;^ Y,AzY
void rewind ( FILE *file_pointer );51Testing软件测试网q#y$l.KVEO}

51Testing软件测试网J PH WX/q

// 有关 sprintf 的详细信息,请参考 C 语言文档。51Testing软件测试网0l^d-i I'M
int sprintf ( char *string, const char *format_string[, args] );51Testing软件测试网%y _(w#|8j9y\:WF_

5LKo C&g)jT.f/n.o0b72047// 有关 sscanf 的详细信息,请参考 C 语言文档。51Testing软件测试网Iv\%f }u ? f
int sscanf ( const char *buffer, const char *format_string, args );

,O/?X-x(^7K G|7204751Testing软件测试网:_UWOApA G

// 有关 chdir 的详细信息,请参考 C 语言文档。
!x4hV8B _w^72047int chdir ( const char *path );

(g0VL0pZGyx72047

.iR6V+BHF^!k BJw72047// chdrive 将当前工作驱动器更改为 drive(表示新驱动器
O e%\,pvPv72047// 的 integer 类型值)。例如,1 = A、2 = B,依此类推。51Testing软件测试网:EtI*YOXYxP
int chdrive ( int drive );51Testing软件测试网| }D'Tad5B

/oW#I0U$QX | f2mPd72047// 有关 getcwd 的详细信息,请参考 C 语言文档。51Testing软件测试网9y"}d2Ou!\
char *getcwd ( char *path, int numchars );

i(b8f.AB)E7204751Testing软件测试网/h#fCv]Du)Q:z

// getdrive 函数返回表示驱动器字母
2X _.wxXv72047// 的 integer 类型值:1 = A、2 = B,依此类推。
f1RS Y L@72047int getdrive ( void );51Testing软件测试网6|vb1a!l q2h {y

51Testing软件测试网wXf `j_tX:[

// 有关 mkdir 的详细信息,请参考 C 语言文档。51Testing软件测试网^/O*t2vt9\
int mkdir ( const char *path );51Testing软件测试网 B3W_I/L Uum

51Testing软件测试网%['qEz%{

// 有关 remove 的详细信息,请参考 C 语言文档。
,gby2{ uH"I a72047int remove ( const char *path );51Testing软件测试网c-O*M{ p4j\

w ssH*ke72047// 有关 rmdir 的详细信息,请参考 C 语言文档。
bb m~u72047int rmdir ( const char *path );

DN_(ZTM:dU72047

"qj)rj[ xD72047// 根据系统时钟,time 函数返回从世界标准
|~'e2vWM72047// 时间 1970 年 1 月 1 日子夜 (00:00:00)
+sZGk/mWo72047// 作为开始所经过的秒数。返回值存储在 timeptr51Testing软件测试网C[Yg-R)l_ E
// 所给出的位置。如果 timeptr 为 NULL,则51Testing软件测试网:Cl2tx+N I x8L
// 该值不会被存储。51Testing软件测试网 u"Vh e[cWpV
time_t time ( time_t *timeptr );

P;F:tGjm;e72047

K+F Y[ Nm*F[%y72047// 在 Unix 下,ctime 不是线程级安全函数。所以,请使用 ctime_r。51Testing软件测试网%J J:c*^R
// 有关详细信息,请参阅平台相关文档。51Testing软件测试网 HE9Rz+E.TY
char *ctime ( const time_t *time );

8O"p(gR/V7204751Testing软件测试网x%]3f"F~s2X6E

// 有关 ftime 的详细信息,请参考 C 语言文档。51Testing软件测试网li]*W.bs
void ftime ( struct _timeb *time1 );

~0xrG(]1X72047

7}*k/Oh:GW72047// 在 Unix 下,localtime 不是线程级安全函数。51Testing软件测试网)h_v/V7fl
// 所以,请使用 localtime_r。有关详细信息,请
:G,_%Cs;C/Z72047// 参阅平台相关文档。51Testing软件测试网#bj'P(|Z:v
struct tm *localtime ( const time_t *time );

9hAuN(mf7204751Testing软件测试网1z G gZ/A6h

// 在 Unix 下,gmtime 不是线程级安全函数。所以,请使用 gmtime_r。51Testing软件测试网1w'fWM^D7Q\
// 有关详细信息,请参阅平台相关文档。51Testing软件测试网o~.j'd7U1ij6O
struct tm *gmtime ( const time_t *time );51Testing软件测试网tp Z%MP0X)K)lO

51Testing软件测试网T$h-R*@9nQ

// 在 Unix 下,asctime 不是线程级安全函数。所以,请使用 asctime_r。
7qf(Sd:_f;n72047// 有关详细信息,请参阅平台相关文档。51Testing软件测试网dg| { `.kQr`
char *asctime ( const struct tm *time );

/K.Q u?P.X&\I72047

'PS8b,Q!S72047// 通过停止在第一个非数字字符上,atof 只
L:VpTPy)A!T/|]72047// 读取字符串的初始位置。函数 atof(以及
d'` U__-AB&S72047// 所有不返回 integer 类型值的函数)
T&a7SC'jx!s&V72047// 必须明确在 Vugen 脚本中声明。51Testing软件测试网T Q.U)ihZ}#z5F-m3[
double atof ( const char *string );51Testing软件测试网7y+f_}m&a

51Testing软件测试网R z0z2yFu1]i@$A

// 通过停止在第一个非数字字符上,atoi 只51Testing软件测试网f%MH DYr}
// 读取字符串的初始位置。51Testing软件测试网&EqaoC$t
int atoi ( const char *string );

? L1v)[7Ii"{/O U6c72047

3`,z$cjJ)H:\7K72047// 通过停止在第一个非数字字符上,atol 只51Testing软件测试网T'x5T] cl
// 读取字符串的初始位置。函数 atol(以及51Testing软件测试网tx'P wO,~G
// 所有不返回 integer 类型值的函数)必须
)R&aQOs:}pc'R:r72047// 明确在 Vugen 脚本中声明。51Testing软件测试网,xVB#v vjM:N
long atol ( const char *string );

W8TtnqD72047

"U3e OLn1~m9^vE72047// itoa 将 value 的数字转换为以 radix 作为51Testing软件测试网lX$x`/D[O`p
// 基数的字符串 str。通常,radix 是 10。
4I J?y%CNhOl j(Pw72047int itoa ( int value, char *str, int radix );

i _Q(V ^+]aO4n"o72047

{\WnW u72047// 通过停止在第一个非数字字符上,strtol51Testing软件测试网*C qS;v mk!G#m Z e
// 只扫描字符串�


TAG:

 

评分:0

我来说两句

日历

« 2024-05-15  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 37074
  • 日志数: 104
  • 建立时间: 2011-10-10
  • 更新时间: 2012-04-12

RSS订阅

Open Toolbar