Application programming interface automatic test method, system, device and storage medium

An application programming interface, automated testing technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problem that the efficiency of API testing cannot be improved, test cases cannot be reused, and test case writing is time-consuming and laborious, etc. problems, to achieve flexible testing and maintenance, improve test efficiency, and improve the effect of reuse

Active Publication Date: 2018-02-23
上海携程金融信息服务有限公司
View PDF14 Cites 58 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Nowadays, as the tasks of API testing become more and more heavy, the requirements of API testing are getting higher and higher, and sometimes the test results need to be accurate to the second. In addition, considering the short test cycle, manual testing has been difficult to solve the existing API testing needs
[0004] Although there are some methods for automated testing of APIs in the prior art, the existing methods still require test users to write test cases separately for each test task, and then convert the test cases into executable scripts
For some cases where the test user's own code writing ability is not strong, the writing of test cases is very time-consuming and laborious
In addition, other test users cannot directly take over the existing test cases, and the test cases cannot be reused, resulting in the lack of improvement in the efficiency of API testing.

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
  • Application programming interface automatic test method, system, device and storage medium
  • Application programming interface automatic test method, system, device and storage medium
  • Application programming interface automatic test method, system, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0074] Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities ...

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 provides an application programming interface automatic test method, system and device, and a storage medium. The application programming interface automatic test method includes the following steps: obtaining Excel files to be processed; obtaining test case data from the Excel files according to a preset format, wherein the test case data includes a test name corresponding to each test case, an application programming interface service address, an interface name, test modes, test request parameters, and verification methods; and executing each test case according to the test case data. The method simplifies the writing method of the test case, and the tester can complete the the writing method of the test case by only filling in the corresponding position data in Excel, without the need of understanding the code itself. The existing test report of a preset format is modified into the test report corresponding to each test case according to the data in the Excels, which improves the conversion rate of the test case, and improves the reuse rate of the test case through the reuse of the test report.

Description

technical field [0001] The invention relates to the technical field of interface testing, in particular to an application programming interface automatic testing method, system, equipment and storage medium which simplifies the way of writing test cases and improves testing efficiency. Background technique [0002] API (Application Programming Interface), that is, application programming interface, also known as application programming interface or application programming interface, is some predefined functions, the purpose of which is to provide applications and developers with access to a set of examples based on certain software or hardware. program without accessing the source code, or understanding the details of the inner workings. [0003] API testing is to test and verify various aspects of the application programming interface provided by the system, such as calling the application programming interface and verifying whether the expected result can be returned under...

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/3684G06F11/3688
Inventor 罗年洁刘万红
Owner 上海携程金融信息服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products