51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 4273|回复: 4
打印 上一主题 下一主题

[原创] Day3-7测试积点任务

[复制链接]
  • TA的每日心情
    无聊
    3 天前
  • 签到天数: 523 天

    连续签到: 5 天

    [LV.9]测试副司令

    跳转到指定楼层
    #
    发表于 2018-9-4 11:09:06 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
    1测试积点
    问题:
    在loadrunner中 测试某操作响应时间   表单中每一项的信息是从服务器获取出来并重新加载到页面的 ,是否应该将表单中的每一项内容设置关联?
    web_custom_request()方法中"body="哪些是表单的值呢,是针对每一项都设置关联吗?是否可以将整个表单的值全部设置为一个关联?
    选择某人员信息 后,刷新表单中的数据,可修改其对应的信息

    //点击提交按钮根据表单中的值,保存并计算出相应的结果
    1. web_custom_request("gzjs!jsGz.do",
    2.   "URL=http://192.168.1.51:9080/webgz/business/gzgl/gzjs!jsGz.do",
    3.   "Method=POST",
    4.   "TargetFrame=",
    5.   "Resource=1",
    6.   "Referer=http://192.168.1.51:9080/webgz/business/gzgl/jbxx!loadryinfo.do?leader=5354f3c4-9146-4726-910e-7da4f8a5f3f5&code=503601260000",
    7.   "Snapshot=t30.inf",
    8.   "EncType=application/x-www-form-urlencoded; charset=UTF-8",
    9.   "Body=action=&type=zz&sfxg=0&leader=5354f3c4-9146-4726-910e-7da4f8a5f3f5&a0150=1&a01%5B'leader_code'%5D=5354f3c4-9146-4726-910e-7da4f8a5f3f5&sfxg=0&a01%5B'a0103'%5D=01&a01%5B'a0101'%5D=%E8%80%81%E5%A4%A7&a01%5B'a0184'%5D=513721198702245152&a01%5B'a0107'%5D=1987-02-24&a01%5B'a0104'%5D=1&a01%5B'a0134'%5D=2010-01-01&a03=2016-01%E5%89%AF%E5%A4%84%E3%80%80%E9%A2%86%E5%AF%BC%E8%81%8C%E5%8A%A1&a12=2010-01%E5%A4%A7%E5%AD%A6&a01%5B'a0135'%5D=2010-01-01&a01%5B'a0136'%5D=04&a01%5B'a0194'%5D=2010-01&a19=&gl=&gl=9&gltsny=2010-01&a65=&a17=&a67=&a68=&a10=&a01%5B'a0132'%5D=503601260000&a0132text=%E5%A5%89%E8%8A%82%E5%8E%BF%E4%BA%BA%E5%8A%9B%E8%B5%84%E6%BA%90%E5%92%8C%E7%A4%BE%E4%BC%9A%E4%BF%9D%E9%9A%9C%E5%B1%80&a01%5B'a0141'%5D=&a01%5B'a0189'%5D=&a01%5B'a0150'%5D=on&a01%5B'a0117'%5D=",
    10.   LAST);
    11. 下面是请求
    12. POST /webgz/business/gzgl/gzjs!jsGz.do HTTP/1.1
    13. Accept: */*
    14. Accept-Language: zh-cn
    15. Referer: http://192.168.1.51:9080/webgz/business/gzgl/jbxx!loadryinfo.do?leader=5354f3c4-9146-4726-910e-7da4f8a5f3f5&code=503601260000
    16. x-requested-with: XMLHttpRequest
    17. Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    18. Accept-Encoding: gzip, deflate
    19. User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
    20. Host: 192.168.1.51:9080
    21. Content-Length: 772
    22. Connection: Keep-Alive
    23. Cache-Control: no-cache
    24. Cookie: JSESSIONID=EBEC7ABE0C04CA903C1B75EA819C04EA
    25. action=&type=zz&sfxg=0&leader=5354f3c4-9146-4726-910e-7da4f8a5f3f5&a0150=1&a01%5B'leader_code'%5D=5354f3c4-9146-4726-910e-7da4f8a5f3f5&sfxg=0&a01%5B'a0103'%5D=01&a01%5B'a0101'%5D=%E8%80%81%E5%A4%A7&a01%5B'a0184'%5D=513721198702245152&a01%5B'a0107'%5D=1987-02-24&a01%5B'a0104'%5D=1&a01%5B'a0134'%5D=2010-01-01&a03=2016-01%E5%89%AF%E5%A4%84%E3%80%80%E9%A2%86%E5%AF%BC%E8%81%8C%E5%8A%A1&a12=2010-01%E5%A4%A7%E5%AD%A6&a01%5B'a0135'%5D=2010-01-01&a01%5B'a0136'%5D=04&a01%5B'a0194'%5D=2010-01&a19=&gl=&gl=9&gltsny=2010-01&a65=&a17=&a67=&a68=&a10=&a01%5B'a0132'%5D=503601260000&a0132text=%E5%A5%89%E8%8A%82%E5%8E%BF%E4%BA%BA%E5%8A%9B%E8%B5%84%E6%BA%90%E5%92%8C%E7%A4%BE%E4%BC%9A%E4%BF%9D%E9%9A%9C%E5%B1%80&a01%5B'a0141'%5D=&a01%5B'a0189'%5D=&a01%5B'a0150'%5D=on&a01%5B'a0117'%5D=
    复制代码
    下面是响应
    1. HTTP/1.1 200 OK
    2. Server: Apache-Coyote/1.1
    3. Pragma: No-cache
    4. Cache-Control: no-cache
    5. Expires: Thu, 01 Jan 1970 00:00:00 GMT
    6. Content-Language: zh-CN
    7. Content-Length: 1421
    8. Date: Mon, 26 Mar 2018 02:35:24 GMT
    9. {'success':true,'message':'淇濆瓨璁$畻鎴愬姛!','jsonList':[{"leader_code":"5354f3c4-9146-4726-910e-7da4f8a5f3f5","a0101":"鑰佸ぇ","a0107":"1987-02-24","a0184":"513721198702245152","lxgl":0,"xl":null,"bsglxxnx":0,"bdqzw":"018","bdqrzsj":"2016-01-01","bdyy":"09","bdhzw":"018","bdhjb":"1020","bdhdc":"7102","bdhgzhj":3093,"bdhyzze":105,"bdhbfe":0,"bz":null,"status":"1","bdqzwgz":1455,"bdqzwgzzxsj":"2016-02-01","bdqjbgz":1533,"bdqjbgzzxsj":"2016-02-01","bdqjbqsnd":2016,"bdqdcqsnd":2015,"user_id":4,"flag":"1","cssj":"2018-04","clsj":"2018-03-23","gzdw":null,"bdhzwgzzxrq":"2016-02-01","bdhjbqsnd":2016,"bdhdcqsnd":2017,"zwgzlb":"1","bdhjbbdje":null,"bdhzwbdje":null,"bdqjx":null,"bdqjxjt":null,"bdhjx":null,"bdhjxjt":null,"jxjtzxrq":null,"bdqjxjtzxrq":null,"syqgz":null,"bdhjbgzzxrq":"2017-01-01","tgnx":null,"rznx":null,"qxsj":null,"slqgz":null,"slqgzzxsj":null,"bdhrzsj":"2016-01-01","bdhzwgz":1455,"bdhjbgz":1638,"bdqjb":"1020","bdqdc":"7101","bdqzwgw":null,"bdhzwgw":null,"add_flag":null,"zxrq":"2017-01-01","zctgjb":null,"zctgdc":null,"bdqtg10":null,"bdhtg10":null,"id":9,"gdfs":null,"jssj":null,"bsdw":null,"gzbdmclx":"0","bdqjxgz":null,"bdhjxgz":null,"bdqblgz":null,"bdhblgz":null,"cur_gz_flag":null,"tgqrzsj":null,"all_cur_gz_flag":"1","bdqfdgz":null,"bdhfdgz":null,"bdqtgjttgc30":null,"bdhtgjttgc30":null,"bssj":null,"shsj":null,"shjg":null,"bf_flag":null,"mclx":null,"p_flag":"2","fileid":null,"jbdc":"20-2"}]}
    复制代码


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

    使用道具 举报

  • TA的每日心情
    擦汗
    2020-10-23 14:19
  • 签到天数: 51 天

    连续签到: 1 天

    [LV.5]测试团长

    4#
    发表于 2018-9-5 15:01:30 | 只看该作者
    看你需要去做关联
    回复

    使用道具 举报

  • TA的每日心情
    开心
    3 天前
  • 签到天数: 473 天

    连续签到: 2 天

    [LV.9]测试副司令

    3#
    发表于 2018-9-5 14:31:07 | 只看该作者
    对于那些每次都有变动的设置关联
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    前天 08:24
  • 签到天数: 2807 天

    连续签到: 6 天

    [LV.Master]测试大本营

    2#
    发表于 2018-9-5 12:11:02 | 只看该作者
    不是,根据你使用进行关联参数化
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    3 天前
  • 签到天数: 1511 天

    连续签到: 5 天

    [LV.Master]测试大本营

    1#
    发表于 2018-9-5 10:52:07 | 只看该作者
    这个看你请求报文里面的参数要求了。如果需要的,都要做参数化。
    回复

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-11 00:29 , Processed in 0.066863 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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