20171213-python Automation-Interface test-jmeter-post-login

Source: Internet
Author: User

Interface 2: Login

Request Method: Post

Request URL:http://api.nnzhp.cn/api/user/login

1. Open JMeter, right click on test Plan, select Add-threads-thread Group

2, click on Thread Group, right-add sampler-http request

3,http Request page, server name or IP field input: api.nnzhp.cn; mode selection Psot; path input:/api/user/login

Click Parameters, click the Add button, name Input: Username value input: xxx;passwd value input: XXX

4, click on Thread Group, right-add listener-View results tree, click the toolbar green small arrow to execute the script

5, click View Results tree, view request URL and response data

POST Http://api.nnzhp.cn/api/user/login

POST Data:
Username=xxxpasswd=xxx

{
"Error_code": 0,
"Login_info": {
"Login_time": "20171213110841",
"Sign": "Cd2b43f1688e472e3a516b5a2c6831e8",
"UserId": 8
}
}

20171213-python Automation-Interface test-jmeter-post-login

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.