TA的每日心情 | 擦汗 1 小时前 |
---|
签到天数: 527 天 连续签到: 4 天 [LV.9]测试副司令
|
1测试积点
问题:
在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"}]}
复制代码
|
|