How to handle post method in Jmeter for load testing?

喜夏-厌秋 提交于 2020-05-25 08:01:23

问题


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"
      }
    }

回答1:


Configuration would be the following;

Config

Read this:

  • http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

And read this tutorial:

  • http://jmeter.apache.org/usermanual/build-adv-web-test-plan.html


来源:https://stackoverflow.com/questions/25585197/how-to-handle-post-method-in-jmeter-for-load-testing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!