|
我装好silkperformer后就录制WEB脚本,功能是在“www.baidu.com"随便执行一个查询,但输入查询内容后执行过程就再没有function了,而且重新其它WEB脚本录制function仍为0,检查第一次录制的脚本,发现其后面语句不正确,如下,请帮忙分析解决:
//----------------------------------------------------------------------
// Recorded 07/14/2007 by SilkPerformer Recorder v7.0.0.2364
//----------------------------------------------------------------------
benchmark SilkPerformerRecorder
use "WebAPI.bdh"
dcluser
user
VUser
transactions
TInit : begin;
TMain : 1;
var
dclrand
dcltrans
transaction TInit
begin
WebSetBrowser(WEB_BROWSER_MSIE6);
WebModifyHttpHeader("Accept-Language", "zh-cn");
//WebSetUserBehavior(WEB_USERBEHAVIOR_FIRST_TIME);
//WebSetDocumentCache(true, WEB_CACHE_CHECK_SESSION);
end TInit;
transaction TMain
var
begin
WebCookieSet("BAIDUID=2180A456995AE65B8FE9E0523BCA9FF2; domain=.baidu.com; path=/; expires=Fri, 14 Jul 2017 14:38:54 GMT",
"http://www.baidu.com/");
WebPageUrl("http://www.baidu.com/", "Unnamed page");
WebModifyHttpHeader("Accept-Language", NULL, WEB_MODIFY_OPT_Remove);
WebPageUrl("http://scdown.qq.com/download/Update.htm", "Update.htm");
end TMain;
如上:
WebModifyHttpHeader("Accept-Language", NULL, WEB_MODIFY_OPT_Remove);
WebPageUrl("http://scdown.qq.com/download/Update.htm", "Update.htm");
这两句可能是出现问题所在。 |
|