Method, device and system of test application program interface

A technology of application program interface and program interface, which is applied in the computer field, can solve the problems of heavy workload and low accuracy of testing application program interface

Inactive Publication Date: 2013-06-05
ALIBABA GRP HLDG LTD
View PDF4 Cites 71 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the present application proposes a method, device and system for testing application programming interfaces to solve the problems of heavy workload and low accuracy of testing application programming interfaces in the prior art

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
  • Method, device and system of test application program interface
  • Method, device and system of test application program interface
  • Method, device and system of test application program interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Specific embodiments of the present application will be described in detail below. It should be noted that the embodiments described here are for illustration only, and are not intended to limit the present application. Moreover, in the following description, different "one embodiment" or "embodiment" do not necessarily refer to the same embodiment. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.

[0031] see figure 1 As shown, it is a flow chart of a method for testing an application program interface provided according to an embodiment of the present application. The method of this embodiment is used for testing the API set on the server by the client.

[0032] Wherein, a test platform may be provided on the client, and the test platform includes, for example, a browser and a device with data processing capabilities, and serves as a man-machine interface in the form of a page to...

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 discloses a method, a device and a system of a test application program interface, wherein the method of the test application program interface is used in an application program interface arranged on a server by a client test and comprises the following steps: S1, receiving parameter information and assertion of the application program interface through a human-computer interface of a client, S2, according to a communication protocol between the client and the server, packaging the parameter information to be interface test data which confirm to the communication protocol and sending the interface test data to the server, S3, receiving return data processed by the server, and S4, analyzing the return data through the assertion and displaying a test result through the human-computer interface. According to the method, the device and the system of the test application program interface, a tester needs not to write a test code, the test data are input through a page table and the test result can be displayed through the page table directly, and workload of the tester is lightened and accuracy is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device and system for testing an application program interface. Background technique [0002] At present, in the application program interface (interface for short) functional test, testers need to manually write test cases, or write test cases in the form of configuration files for use case management; write sql statements to prepare test data; perform pure visual inspection on the returned results , or with the help of test code comparison. [0003] For example, in the prior art, the JTester framework is generally used for automatic testing of Java interfaces, and JTester is a Java-based unit testing framework similar to JUnit. For the automated testing of each interface, functional testers need to use JTester to manually write different Java test codes, and prepare test case files according to the specific format of JTester. The test case files are prepa...

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/36H04L29/06
Inventor 李志宁
Owner ALIBABA GRP HLDG LTD
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