如何处理 Jmeter 中的 post 方法进行负载测试? [英] How to handle post method in Jmeter for load testing?
本文介绍了如何处理 Jmeter 中的 post 方法进行负载测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在应用服务器上使用 jmeter 执行负载测试 post 方法.我在应用程序服务器上使用 jmeter 多次执行负载测试获取请求.我不知道如何处理 jmeter 中的 post 方法进行负载测试?.
发布 HTTP 请求:
<前>POST 的内容类型是application/x-www-form-urlencoded"请求:http://localhost:8080/configserver/execute?command=LoginPOST参数:数据={"email": "user@domain.com",密码":12345"}输出:{状态代码":0",状态消息": "",结果": {"user_id": "1","session_token": "abcd"}} 解决方案
配置如下;
阅读:
并阅读本教程:
I want to perform load testing post method using jmeter on application server. I performed load testing many times get request using jmeter on application server. I don't know how to how to handle post method in jmeter for load testing?.
POST HTTP REQUEST:
Content-Type for POST is "application/x-www-form-urlencoded" REQUEST : http://localhost:8080/configserver/execute?command=Login POST Parameter: data={ "email": "user@domain.com", "password": "12345" } Output: { "status_code": "0", "status_message": "", "result": { "user_id": "1", "session_token": "abcd" } }
解决方案
Configuration would be the following;
Read this:
And read this tutorial:
这篇关于如何处理 Jmeter 中的 post 方法进行负载测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文