|
测试公司用户添加和删除的功能,录制脚本是采用自动参数化,一个用户添加后,系统会自动为它配置一个ID号,删除时通过ID删除该主机,但是录制完脚本后发现,用户ID可以自动获取,但是删除时的ID号不没有变化
报以下错误:Action.c(2243): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://172.16.4.37/megatrust_db/host_config/host_delete" [MsgId: MERR-26612]
Action.c(2243): web_submit_data("host_delete") highest severity level was "ERROR", 948 body bytes, 372 header bytes [MsgId: MMSG-26388]
查看脚本
web_submit_data("host_delete",
"Action=http://172.16.4.37/megatrust_db/host_config/host_delete",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.4.37/megatrust_db/megatrust/index",
"Snapshot=t591.inf",
"Mode=HTTP",
ITEMDATA,
"Name=id_arr", "Value=10728,", ENDITEM,
LAST)
发现Value=10728这个值应该是每次执行时都与主机ID相同,但录制的脚本这里成为固定值了,该如何处理呢 |
|