51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3118|回复: 1
打印 上一主题 下一主题

[求助] 根据表单中显示的信息计算其相应的结果,是否应该将整个表单每一项的值设置关联?

[复制链接]
  • TA的每日心情
    奋斗
    2018-6-4 17:34
  • 签到天数: 17 天

    连续签到: 1 天

    [LV.4]测试营长

    跳转到指定楼层
    1#
    发表于 2018-3-26 17:16:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    本帖最后由 majiaoren 于 2018-3-26 17:57 编辑

    在loadrunner中 测试某操作响应时间   表单中每一项的信息是从服务器获取出来并重新加载到页面的 ,是否应该将表单中的每一项内容设置关联?
    web_custom_request()方法中"body="哪些是表单的值呢,是针对每一项都设置关联吗?是否可以将整个表单的值全部设置为一个关联?
    选择某人员信息 后,刷新表单中的数据,可修改其对应的信息

    //点击提交按钮根据表单中的值,保存并计算出相应的结果
    web_custom_request("gzjs!jsGz.do",
      "URL=http://192.168.1.51:9080/webgz/business/gzgl/gzjs!jsGz.do",
      "Method=POST",
      "TargetFrame=",
      "Resource=1",
      "Referer=http://192.168.1.51:9080/webgz/business/gzgl/jbxx!loadryinfo.do?leader=5354f3c4-9146-4726-910e-7da4f8a5f3f5&code=503601260000",
      "Snapshot=t30.inf",
      "EncType=application/x-www-form-urlencoded; charset=UTF-8",
      "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=",
      LAST);
    下面是请求
    POST /webgz/business/gzgl/gzjs!jsGz.do HTTP/1.1
    Accept: */*
    Accept-Language: zh-cn
    Referer: http://192.168.1.51:9080/webgz/business/gzgl/jbxx!loadryinfo.do?leader=5354f3c4-9146-4726-910e-7da4f8a5f3f5&code=503601260000
    x-requested-with: XMLHttpRequest
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Accept-Encoding: gzip, deflate
    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)
    Host: 192.168.1.51:9080
    Content-Length: 772
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: JSESSIONID=EBEC7ABE0C04CA903C1B75EA819C04EA
    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=


    下面是响应
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Pragma: No-cache
    Cache-Control: no-cache
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Content-Language: zh-CN
    Content-Length: 1421
    Date: Mon, 26 Mar 2018 02:35:24 GMT
    {'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的每日心情
    奋斗
    2018-6-4 17:34
  • 签到天数: 17 天

    连续签到: 1 天

    [LV.4]测试营长

    2#
     楼主| 发表于 2018-3-26 18:15:44 | 只看该作者
    谁能解答一下?
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-14 13:12 , Processed in 0.060969 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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