LR录制了删除用户操作,对于删除的用户如何参数化来删除下一个用户
lr_start_transaction("删除用户");web_submit_data("userManager_batchDeleteUsers.action",
"Action=http://192.168.1.247:8101/SDBConsole/userManager_batchDeleteUsers.action",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.247:8101/SDBConsole/userManager_Serach.action",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=Id", "Value=42", ENDITEM,
LAST);
web_submit_data("userManager_queryUsers.action_6",
"Action=http://192.168.1.247:8101/SDBConsole/userManager_queryUsers.action",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.247:8101/SDBConsole/userManager_Serach.action",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=userQueryParam.codeOrName", "Value=", ENDITEM,
"Name=userQueryParam.orgName", "Value=", ENDITEM,
"Name=currPage", "Value=1", ENDITEM,
"Name=pageSize", "Value=15", ENDITEM,
"Name=sortName", "Value=userId", ENDITEM,
"Name=sortOrder", "Value=asc", ENDITEM,
LAST);
lr_end_transaction("删除用户",LR_AUTO);
请问我的LR录制了删除用户操作,对于删除的用户如何参数化来删除下一个用户? "Name=Id", "Value=42", ENDITEM,
参数化这个Value的值:需要从数据库中查询出来,作为这里参数化的值。 参数化 做这个操作之前,还需要造一批数据出来。如果没有用户可删除,loadrunner是会报错的。
页:
[1]