JMeter Interface Test Example (iii)--Add HTTP Authentication

Source: Internet
Author: User
Tags http authentication

1 Modifying user balances

1.1 Function Description

Modify user balance: Need to have HTTP permission authentication, account admin password 123456

1.2 Request address

http://api.nnzhp.cn /setmoney

1.3 Request Method

Post

1.4 Enter the parameter

Parameters

Data type (length)

Is it necessary to pass

Note

Userid

String

Y

User ID

Money

String

Y

Modified value of Balance

1.5 out the ginseng

Parameters

Data type (length)

Note

Code

Int

Status code 200 for success, 500 for exception

Success

String

State

There is a bug in this interface, whether directly or wrongly 500.

JMeter Operation steps:

1. Add an HTTP request, enter the domain name, import the parameter, request the way.

2. Add HTTP Authorization

3. Add authentication information

4. Execute and view execution results

JMeter Interface Test Example (iii)--Add HTTP Authentication

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.