App Interface Automation test java+testng (iii) HTTP interface Test Example

Source: Internet
Author: User
Tags testng

"Turn from" http://www.cnblogs.com/findyou/p/5388853.html

Directory

3.1 HTTP interface (GET) test instance
3.1.1 To be tested Interface Description 3.1.2 New Java Project
1. Project Catalog description 2. Common.java Source code 3.getcityweathe.java source code 4.urlconnection.java
Source code 3.1.3 Write test Case
1. Test Case 2. Simplified use case
3.1.4 Execution of test cases
3.1.1 Description of the interface to be tested 1. National Weather Weather
Forecast Interface Example: Beijing climate

  1. Address of the interface: http://www.weather.com.cn/data/cityinfo/101010100.html
  2. Request Method: GET
  3. Request Result:
11

App Interface Automation test java+testng (iii) HTTP interface Test Example

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.