|
#include "web_api.h"
现在要录制一个从网页中点击“下载”,然后系统弹出“另存为”窗口,将文件保存在本地并覆盖原文件的操作,现在录制完成后,运行脚本没有报错,但脚本中也没有记录下弹出窗口的操作,看本地硬盘中的文件也不是运行脚本所重新下载的文件。现在非常着急,怎样可以顺利录制到这个过程,并且在运行脚本后保存的文件可以被更新。在此先谢谢了。脚本如下:
Action()
{
lr_think_time( 11 );
lr_start_transaction("download");
web_concurrent_start(NULL);
web_url("button.gif_2",
"URL=http://172.16.24.79/cn/images/ctrl/button.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.24.79/cn/resources/index.php?class=zy",
LAST);
web_url("download.php",
"URL=http://172.16.24.79/cn/resources/download.php?id=443",
"Resource=1",
"RecContentType=application/force-download",
"Referer=",
LAST);
web_url("button.gif_3",
"URL=http://172.16.24.79/cn/images/ctrl/button.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.24.79/cn/resources/index.php?class=zy",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("download", LR_AUTO);
return 0;
} |
|