TA的每日心情 | 开心 2016-3-8 15:45 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
以下是我录制的脚本,录入人员基本信息后,点击保存,准备参数化,但是不知道在哪如何参数化,请大神们指导,谢谢啦!
感觉应该在web_custom_request("code.html_20", …… 在这下边进行设置
save()
{
lr_think_time(25);
web_url("bg_tuoming.png",
"URL=http://192.168.123.211:8080/his/images/bg_tuoming.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.123.211:8080/his/main.html",
"Snapshot=t7.inf",
LAST);
web_url("personadd.jsp",
"URL=http://192.168.123.211:8080/his//his/input/personadd.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.123.211:8080/his/main.html",
"Snapshot=t8.inf",
"Mode=HTML",
EXTRARES,
"Url=/his/style/easyUI/icons/clear.png", ENDITEM,
"Url=/his/style/easyUI/icons/filesave.png", ENDITEM,
"Url=/his/style/easyUI/icons/upload.png", ENDITEM,
"Url=/his/style/easyUI/default/images/combo_arrow.png", ENDITEM,
"Url=/his/style/easyUI/default/images/datebox_arrow.png", ENDITEM,
"Url=/his/style/easyUI/default/images/pagination_icons.png", ENDITEM,
"Url=/his/style/easyUI/default/images/calendar_arrows.png", ENDITEM,
LAST);
web_custom_request("code.html",
"URL=http://192.168.123.211:8080/his/sys/dict/code.html?dictcode=AAC004&type=box",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.123.211:8080/his/",
"Snapshot=t10.inf",
"Mode=HTML",
"EncType=",
LAST);
…………………………………………
web_custom_request("code.html_20",
"URL=http://192.168.123.211:8080/his/sys/dict/code.html?dictcode=AJA004&type=box",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.123.211:8080/his/",
"Snapshot=t29.inf",
"Mode=HTML",
"EncType=",
EXTRARES,
"Url=/his/his/personreduce/query1.html?zjm=&_=1457580038206&functionlogid=EE52C3F1048DA33DFBEFD8CFA818677E", "Referer=http://192.168.123.211:8080/his/", ENDITEM,
"Url=/his/his/personreduce/query2.html?pageNumber=1&pageSize=20&_=1457580038207&functionlogid=EE52C3F1048DA33DFBEFD8CFA818677E", "Referer=http://192.168.123.211:8080/his/", ENDITEM,
"Url=/his/his/personadd/query2.html?pageNumber=1&pageSize=20&_=1457580038178&functionlogid=EE52C3F1048DA33DFBEFD8CFA818677E", "Referer=http://192.168.123.211:8080/his/", ENDITEM,
"Url=/his/his/personadd/query1.html?aac002=210104198506020030&_=1457580038179&functionlogid=EE52C3F1048DA33DFBEFD8CFA818677E", "Referer=http://192.168.123.211:8080/his/", ENDITEM,
"Url=/his/his/personadd/save1.html?aac002=210104198506020030&aac003=%E7%8E%8B%E5%A4%A7%E7%89%9B&aac004=1&aac005=10&aac007=2016-03-10&aac009=12&aac040=2569.00&aac006=1985-06-02&aac010=&aac011=&aac012=&aac013=&aac014=&aac015=&aac016=&aac019=&aac020=&aac021=&aac024=&aac204=&aae005=&aja004=&aae007=&aae008=&aae009=&aae010=&akc020=156&akc021=&aae006=&bab020=&bab022=&bab023=&_=1457580038180&functionlogid=EE52C3F1048DA33DFBEFD8CFA818677E", "Referer=http://192.168.123.211:8080/his/", ENDITEM,
"Url=/his/his/personadd/query2.html?pageNumber=1&pageSize=20&_=1457580038181&functionlogid=EE52C3F1048DA33DFBEFD8CFA818677E", "Referer=http://192.168.123.211:8080/his/", ENDITEM,
LAST);
lr_start_transaction("保存");
lr_end_transaction("保存",LR_AUTO);
return 0;
} |
|