|
代码如下:
Action()
{
smtp1 = 0;
smtp_logon_ex(&smtp1, "SmtpLogon",
"URL=smtp://wby@eeloo.com",
"CommonName=LoadRunner User",
LAST);
smtp_send_mail_ex(&smtp1, "SendMail",
"To=wby1@test.eeloo.com",
"Subject=32",
MAILOPTIONS,
"X-mailer: Foxmail 5.0 [cn]",
MAILDATA,
"MessageText=Content-Type: text/plain;\r\n\tcharset=\"gb2312\"\r\n"
"Content-Transfer-Encoding: 7bit\r\n\r\n\r\n",
LAST);
lr_think_time(13);
smtp_logout_ex(&smtp1);
smtp_free_ex(&smtp1);
return 0;
}
单个运行时,execution log提示如下
Ending action vus
Running Vuser...
Starting iteratio
Starting action A
Action.c(5): Smtp
Action.c(5): Smtp
Action.c(10): Smt
Action.c(22): Smt
Action.c(24): Smt
Ending action Act
Ending iteration
Ending Vuser...
Starting action v
Ending action vus
Vuser Terminated.
[ 本帖最后由 feier_y 于 2006-6-12 15:04 编辑 ] |
|