Unlock instant, AI-driven research and patent intelligence for your innovation.

An automated test method for API interface

A technology of API interface and automated testing, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problem of high cost of API interface unit testing, shorten the software development cycle, reduce implementation costs, and reduce costs

Inactive Publication Date: 2019-02-15
深圳竹云科技股份有限公司
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to provide an automated testing method for an API interface in view of the defects in the prior art, so as to solve the problem that the API interface unit test cost is too high due to manual maintenance of the API interface unit test code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An automated test method for API interface
  • An automated test method for API interface
  • An automated test method for API interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0015] Such as figure 1 As shown, the automated testing method flow of the API interface is:

[0016] S1 prepares an API interface description file, S11 formulates a set of API interface description standards, S12 generates an API interface description independent of the API interface program, and the API interface description is in JSON format;

[0017] S2 generates an API interface unit test code template, where the code template includes replaceable content and fixed content. The replaceable content is expressed as a list and interpolation, and the list and interpolation are subsequently repla...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an automated test method of an API interface. The flow of the automated test method of the API interface is to prepare an API interface description file, generate an API interface unit test code template, write an API interface unit test code generation program, and write a unit test scheduling program. By adopting the method of the invention, the interface unit test codeis not maintained for the api interface, the cost of the api interface unit test is reduced, and the api interface automation unit test is convenient to be realized.

Description

technical field [0001] The present invention relates to an automatic testing method of words, more specifically, relates to an automatic testing method of an API interface. Background technique [0002] During software development, unit testing of software is an important task, and unit testing can help ensure the quality of software. In traditional software development, units are often divided on the boundary of classes or functions, and the unit test is to test the classes or functions. In the current software design process, modules are often loosely coupled. Modules interact through API interfaces. It is reasonable to test a single API interface as a unit. The software development framework will provide a document in json format called the API interface description file, which is generally provided online. The API interface can be unit tested by developing a unit test page or an API interface unit test program according to the API interface description file. One of th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3672
Inventor 张立杰谢坚
Owner 深圳竹云科技股份有限公司