能不能把查看资源以接口get方法来处理?
本帖最后由 whiue 于 2016-7-19 10:06 编辑是这样的,调试脚本,查看视频资源时,一直卡在那里停止不前,报警告-26663
查原因,看日志显示卡在下载视频上面了。我能否以接口的形式来代替所录制查看资源的脚本
吗?他们是等同的吗?
所要代替的部分:
web_url("portalView.do_8",
"URL=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.43:8080/skills/portal/portalView.do?feature=resource&action=list&siteKey=0&cleanSession=true&portalId=A&menuNavKey=3088",
"Mode=HTML",
EXTRARES,
"Url=../js/validation/styles/foreStyle.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/common/style.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/skin9/skin9.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../css/basic.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../css/alertMsg.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/jquery-1.7.2.min.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/module1/common/style.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/module1/skin9/skin9.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/simpleModal.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/selectdate.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/cookies.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/panelet12.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/statusbar.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/common.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/validation/lib/prototype-1.6.0.3.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../ckplayer/ckplayer.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/validation/validation_cn_UTF-8.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/panelet.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/My97DatePicker/WdatePicker.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/panelet123.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/panelet45.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/panelet6789.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/panelet1011.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/common/jquery.bxslider.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/function.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/jquery.bxslider.js", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../js/My97DatePicker/skin/WdatePicker.css", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/common/small-pic.gif", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/module1/skin9/logo_zh_CN.gif", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/common/menu-bg1.png", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/common/menu-h1.png", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/common/theicon.png", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../ckplayer/ckplayer.swf", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
LAST);
web_custom_request("frontResourceComment.do_3",
"URL=http://192.168.1.43:8080/skills/resource/frontResourceComment.do?key=363347&randnum=0.11687657316401595",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=UTF-8",
EXTRARES,
"Url=../images/0.0star.gif", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../template/site/skin9/btn_21.gif", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../images/loading.gif", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../images/purdah.gif", "Referer=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0", ENDITEM,
"Url=../ckplayer/language.xml", "Referer=http://192.168.1.43:8080/skills/ckplayer/ckplayer.swf/[]/1", ENDITEM,
"Url=../ckplayer/style.swf", "Referer=http://192.168.1.43:8080/skills/ckplayer/ckplayer.swf/[]/1", ENDITEM,
"Url=http://192.168.1.43:8081/video//2016/07/363347.mp4", "Referer=http://192.168.1.43:8080/skills/ckplayer/ckplayer.swf/[]/1", ENDITEM,
LAST);
接口代替:
web_submit_data("web_submit_data",
"Action=http://192.168.1.43:8080/skills/portal/portalView.do?fwcid=resource&feature=resource&action=view&key=363347&siteKey=0&enterpriseKey=0",
"Method=GET",
"TargetFrame=",
"Referer=",
ITEMDATA,
LAST);
实在不知道怎么解决了,但项目又催得紧,请各位兄弟姐姐们帮忙看看是否可以这样解决或者有更好的建议,先谢谢了 我认为可行,可以直接用接口,毕竟你做的是性能测试。
页:
[1]