TA的每日心情 | 奋斗 2014-12-9 09:46 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
Loadrunner版本9.1,协议选择pop3和smtp,录制foxmail发送邮件,编译通过,运行报错,根据提示,是Logon Session failed! 不知道该怎么解决,请朋友们帮助给出办法和思路
脚本如下:
Action()
{
lr_start_transaction("send");
smtp1 = 0;
smtp_logon_ex(&smtp1, "SmtpLogon",
"URL=smtp://mail.ydtf.com.cn",
"LogonUser=test",
"LogonPass=123456",
"CommonName=LoadRunner User",
LAST);
smtp_send_mail_ex(&smtp1, "SendMail",
"To=test@ydtf.com.cn",
"From=<test@ydtf.com.cn>",
"Subject=hi",
"ContentType=multipart/alternative;",
MAILOPTIONS,
"From: \"test\" <test@ydtf.com.cn>",
"To: \"test\" <test@ydtf.com.cn>",
"X-mailer: Foxmail 6, 15, 201, 23 [cn]",
MAILDATA,
"AttachRawFile=mailnote1_01.dat",
"AttachRawFile=mailnote1_02.dat",
LAST);
smtp_logout_ex(&smtp1);
smtp_free_ex(&smtp1);
lr_end_transaction("send",LR_AUTO);
return 0;
}
编译通过,运行报错:
Action.c(7): Error -86404:Authentication failed for test:123456
Action.c(7): Error -86406ogon Session failed! (See below for details) |
|