Web Interface test Tool---poster and postman

Source: Internet
Author: User
Tags soap soapui

Original: http://www.cnblogs.com/fnng/p/5797121.html

There is a lot of time in the work of writing and maintaining interface automation test cases. I'm going to tidy up some interface-related tools first.

A simple docking of Web port testing related tools/technology to do a division.

Functional testing of the HTTP/SOAP protocol interface:

1. Browser URL (GET request) http://127.0.0.1:8000/login/?username=zhangsan&password=123456

2, browser plug-in: Poster, Postman simple interface test.

3. Independent Interface Tools: Jmeter (SOAP supported), Robot Framework (Requestslibrary), SoapUI (SOAP protocol)

4, write code (Interface test Framework): Urllib, URLLIB2, requests (URLLIB3) + unittest + Htmltestrunner + pymysql.

Performance testing of the HTTP protocol interface:

1. Interface performance test tools: LoadRunner, Jmeter, SoapUI

2, Write code: Requests + Threading---> (can test the encrypted interface)

Poster

Poster is a plugin for the Firefox browser that is used primarily to simulate outgoing and HTTP requests. With the popularity of Chrome, it also has a chrome version: Chrome Poster

The installation in the Fiefox browser is very simple. First, open the Fiefox browser, the menu bar "Tools" and "Add Components", search "poster", click "Install" in the search example table, then restart the browser.

Open method: Menu bar "Tools"-"Poster". Such as.

Send GET Request: Http://127.0.0.1:8000/polls/questions

Send POST request: http://127.0.0.1:8000/polls/question_vote/

Add the parameters for the post request in the parameters tag, "name" is the parameter name, "value" is the argument value. Then click on the "Add/change" button to add.

Then, switch to the "Content to Send" tab and click on the "Body from Parameters" button to add the parameters for the POST request. Then, click on the "POST" button to send the POST request.

Postman

Postman is a powerful Web page debug with a Chrome plugin that sends Web HTTP requests.

Postman Official website: http://www.getpostman.com/

(Note: Scientific Internet is required to install)

When the installation is complete, click "More Tools" and "extensions" in the upper right corner of the Chrome browser.

For example, indicates that postman is already installed. Next you can find the Postman program Open in the System menu bar.

For example, the Postman main interface. Postman are used in a similar way to poster.

Get interface: http://127.0.0.1:8000/polls/question_option?qid=1

Post interface: http://127.0.0.1:8000/polls/question_vote/

It should be noted that the parameters of the GET request are spliced directly behind the interface (? qid=1), and the Post interface parameters need to be added to the body tag.

Compared to poster, the Postman function is more powerful, the application is also extensive, online easy to find the use of tutorials.

Web Interface test Tool---poster and postman

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.