51Testing软件测试论坛
标题:
求大神指导
[打印本页]
作者:
紫苏苏
时间:
2017-4-11 16:52
标题:
求大神指导
初学者对webserver进行朱测测试,录制脚本回放脚本时运行正常,在controller中运行时总是报错,不知道哪里问题
Action()
{
lr_rendezvous("同时登陆");
lr_start_transaction("登陆注册事件");
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_link("sign up now",
"Text=sign up now",
"Snapshot=t2.inf",
LAST);
lr_think_time(44);
web_reg_find("Search=Body",
"Text=Thank you",
LAST);
web_submit_form("login.pl",
"Snapshot=t3.inf",
ITEMDATA,
"Name=username", "Value={user}", ENDITEM,
"Name=password", "Value={pwd}", ENDITEM,
"Name=passwordConfirm", "Value={pwd}", ENDITEM,
"Name=firstName", "Value=1", ENDITEM,
"Name=lastName", "Value=1", ENDITEM,
"Name=address1", "Value=1", ENDITEM,
"Name=address2", "Value=1", ENDITEM,
"Name=register.x", "Value=48", ENDITEM,
"Name=register.y", "Value=10", ENDITEM,
LAST);
lr_end_transaction("登陆注册事件",LR_AUTO);
return 0;
}
作者:
jingzizx
时间:
2017-4-12 08:03
几个问题:
1、报错是什么,要具体
2、脚本回放正常,不代表脚本正确,要查看脚本是否真正发送了请求;
3、看你设置的集合点,不知有没有影响
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2