API testing method and system

A test method and tested technology, applied in the field of API testing, to achieve the effect of improving efficiency and increasing test efficiency

Active Publication Date: 2016-04-13
AITIWEIER ELECTRONICS TECH BEIJING
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The object of the present invention is to provide a kind of API testing me

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
  • API testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0047] Example

[0048] Reference figure 1 , The API test method described in this embodiment, the method includes:

[0049] S1, make a test case form and store it;

[0050] S2, capture the instruction to be tested;

[0051] If the instruction is a test objective function instruction, retrieve all cases corresponding to the objective function from the case sheet, and enter S3;

[0052] If the instruction is a test case instruction, call the case number of the case and the function related to the case from the case form, call the running code of the function, and load the case into the Run in the running code and get the actual running result, enter S4;

[0053] S3, starting from the marked case, test the code that runs sequentially according to the number of all cases, and obtain the actual running result of each case;

[0054] S4: Compare the actual running result with the pre-stored prediction result, and display the compared result.

[0055] More detailed explanation:

[0056] (1) Step...

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 an API testing method and system, and relates to the field of API testing. The method comprises the steps of manufacturing and storing a test case form; capturing an instruction needing to be tested; if the instruction is a test objective function instruction, calling all cases corresponding to an objective function from the case form, performing a test beginning from a marked case according to codes sequentially operated on the basis of serial numbers of all the cases, obtaining an actual operating result of each case and executing result comparison and display; if the instruction is a test case instruction, calling test case serial numbers and a function related to the test cases from the test case form, calling an operating code of the function, loading the cases into the operation code for operation, obtaining an actual operating result, and executing result comparison and display. According to the API testing method and system, testing efficiency and testing accuracy are greatly improved, a testing result is effectively recorded, problems and defects existing in an API can be directly checked by checking the test form, and the application development efficiency is improved.

Description

technical field [0001] The invention relates to the field of API testing, in particular to an API testing method and system. Background technique [0002] POS machines that provide data services and management functions for commodity and media transactions and perform non-cash settlement are more and more widely used in market transactions, which in turn drive the rapid development of POS machines. However, the following problems will be encountered in the development of POS machines: API (The abbreviation of Application Programming Interface for application writing interface) The return value of the function is wrong, the wrong parameters are brought in to cause the program to crash, and the API function is not supported. [0003] However, the existing API testing methods cannot comprehensively test all cases, nor can they conduct comprehensive and systematic testing of the API, and most of the existing API testing methods are single, non-automated API testing, resulting in...

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
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688G06F11/3692
Inventor 成源刘福标卢建兴
Owner AITIWEIER ELECTRONICS TECH BEIJING
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