|
如下面的脚本所示:一个login模块里有两个 web_submit_data,除了第二个最后面多了几句外,其他内容都一样。我是一名学生,刚刚接触LR,也许这个问题很很菜鸟,但我想不明白,请各位大神抽点时间解惑一下哈~~~麻烦了!- login()
- {
- web_submit_data("AdminAction!UserLogin.action;jsessionid=4EDEBD2502A69904FA3BF400B8483DA6",
- "Action=http://192.168.1.40:8080/ZCSS2/AdminAction!UserLogin.action;jsessionid={JSESSIONID3}",
- "Method=POST",
- "EncType=multipart/form-data",
- "RecContentType=text/html",
- "Referer=http://192.168.1.40:8080/ZCSS2/login.jsp",
- "Snapshot=t12.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=role", "Value=申报用户", ENDITEM,
- "Name=account", "Value=name90", ENDITEM,
- "Name=psw", "Value=123456", ENDITEM,
- "Name=rand", "Value=1", ENDITEM,
- "Name=action:AdminAction!UserLogin.x", "Value=34", ENDITEM,
- "Name=action:AdminAction!UserLogin.y", "Value=12", ENDITEM,
- LAST);
- web_submit_data("AdminAction!UserLogin.action;jsessionid=4EDEBD2502A69904FA3BF400B8483DA6_2",
- "Action=http://192.168.1.40:8080/ZCSS2/AdminAction!UserLogin.action;jsessionid={JSESSIONID3}",
- "Method=POST",
- "EncType=multipart/form-data",
- "RecContentType=text/html",
- "Referer=http://192.168.1.40:8080/ZCSS2/login.jsp",
- "Snapshot=t13.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=role", "Value=申报用户", ENDITEM,
- "Name=account", "Value=name90", ENDITEM,
- "Name=psw", "Value=123456", ENDITEM,
- "Name=rand", "Value=1", ENDITEM,
- "Name=action:AdminAction!UserLogin.x", "Value=34", ENDITEM,
- "Name=action:AdminAction!UserLogin.y", "Value=12", ENDITEM,
- EXTRARES,
- "Url=rsmenu.js", "Referer=http://192.168.1.40:8080/ZCSS2/left.jsp", ENDITEM,
- "Url=images/title.gif", "Referer=http://192.168.1.40:8080/ZCSS2/welcome.jsp", ENDITEM,
- "Url=images/bg4.gif", "Referer=http://192.168.1.40:8080/ZCSS2/welcome.jsp", ENDITEM,
- LAST);
- return 0;
- }
复制代码 |
|