jmeter cookie管理器 使用方法---新手学习记录1

首先得抓包:

我已post方法为例:

POST /api/datasources/lemontest/jaql HTTP/1.1
Host: 192.168.1.107:8081
Content-Length: 916
Accept: application/json, text/plain, */*
Origin: http://192.168.1.107:8081
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Content-Type: application/json;charset=UTF-8
Referer: http://192.168.1.107:8081/app/main
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: .prism_anonymous=5ed18247-0dfd-44a2-a9a1-5c8c0a3f3c00; .ASPXANONYMOUS=f-nPsWhD0gEkAAAAMWQ1Mjg0OGQtYTNjZC00OTA5LWFkNjQtZTkyMDk3NjEwMThj59X-3-thT3wJWqh5IB82pXP7m1A1; .prism=kvtKlAxSMYpO3MmnKh3SFAKWjeLDomp090Npi7uVwSH3g9NbgmL8gNOd1L1lJPa%2BEejc3%2BMwdJyHiUaGla4sZRezNjpDPzmCfEKWIkVyV8GeW7SCG69cXfRTrAHqkxoKzBzMQKYv%2B%2B2AQtVJf1G20jbBFGAOh9rVdGUXAbyGw5o%2BHc9uovcw3yeYFOY6f0jqYPCUOvMOqqaxliF%2BqeqTXJcKGkg0fEdjlqKlrVAOwVZg1sAoYwyEiLtf8QKD1tWT

{"datasource":{"title":"lemontest","id":"aLOCALHOST_aLEMONTEST","address":"LocalHost","database":"alemontest"},"metadata":[{"jaql":{"table":"attendance_signin","column":"LocationDescription","dim":"[attendance_signin.LocationDescription]","datatype":"text","merged":true,"agg":"count","title":"签到总数"},"format":{"mask":{"type":"number","abbreviations":{"t":true,"b":true,"m":true,"k":false},"separated":true,"decimals":"auto","isdefault":true},"color":{"color":"#00cee6","type":"color"}},"source":"value"},{"jaql":{"table":"attendance_signin","column":"EmployeeId","dim":"[attendance_signin.EmployeeId]","datatype":"numeric","merged":true,"title":"EmployeeId","filter":{"explicit":true,"multiSelection":true,"members":["146"]},"collapsed":true},"panel":"scope"}],"isMaskedResult":true,"format":"json","widget":"57de59d5f6b9d3a416000084;","dashboard":"57de57f6f6b9d3a41600007a;签到","offset":0,"count":50000}

 第一步.选择中文

2.添加一个线程组

3.添加cookie管理器 http

4.添加http请求

5.添加debug调试,非必添加项

6.添加查看结果树

7.点击运行即可发送成功。

 

posted @ 2016-10-09 18:07  知乎神者  阅读(1253)  评论(0编辑  收藏  举报