51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1059|回复: 2
打印 上一主题 下一主题

[求助] 能不能把查看资源以接口get方法来处理?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2016-7-19 10:04:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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/[[DYNAMIC]]/1", ENDITEM,
                "Url=../ckplayer/style.swf", "Referer=http://192.168.1.43:8080/skills/ckplayer/ckplayer.swf/[[DYNAMIC]]/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/[[DYNAMIC]]/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);

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2016-7-19 10:14:02 | 只看该作者
实在不知道怎么解决了,但项目又催得紧,请各位兄弟姐姐们帮忙看看是否可以这样解决或者有更好的建议,先谢谢了
回复 支持 反对

使用道具 举报

  • TA的每日心情
    奋斗
    2018-8-27 15:56
  • 签到天数: 322 天

    连续签到: 1 天

    [LV.8]测试军长

    3#
    发表于 2016-7-19 10:56:43 | 只看该作者
    我认为可行,可以直接用接口,毕竟你做的是性能测试。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-6 23:35 , Processed in 0.063469 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表