|
LR脚本中需要选择多个用户,于是脚本中有如下语句:
web_submit_data("empcmpgroup.do",
"Action=http://192.168.29.164:9083/zh/employeegroup/empcmpgroup.do",
.....................
"Name=condition(unitCode)", "Value=", ENDITEM,
"Name=condition(employeeStatus)", "Value=", ENDITEM,
"Name=curPage", "Value=1", ENDITEM,
"Name=pageSize", "Value=10", ENDITEM,
"Name=employeeIDs", "Value=74123906", ENDITEM,
"Name=employeeIDs", "Value=73632797", ENDITEM,
"Name=employeeIDs", "Value=72793189", ENDITEM,
"Name=bottomPageSizeSelect", "Value=10", ENDITEM,
EXTRARES,
"Url=../css/print.css", ENDITEM,
"Url=../images/logo.gif", ENDITEM,
"Url=../images/expand.gif", ENDITEM,
"Url=../images/arr.gif", ENDITEM,
LAST);
蓝字标示的地方value值用参数替换,最多需要做100个这样的值。也不能用100个参数啊。
我还想到用一个参数,每次循环取,但是问题是:在这部分代码之后,还有一处需要引用与此相同的参数。如果循环取就取不到相同的参数了。
大家有没有什么好办法?? |
|