Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 method and system, thus solve the aforementioned problems existing 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
  • API testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0048] refer to figure 1 , the API testing method described in the present embodiment, the method comprises:

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

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

[0051] If the instruction is an instruction to test the objective function, all cases corresponding to the objective function are retrieved from the case form and enter S3;

[0052] If the instruction is an instruction of a test case, transfer the case number of the case and the function related to the case from the case form, transfer 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 cases, testing the codes that are sequentially run according to the numbers of all cases, and obtaining the actual running results of each case;

[0054] S4, comparing the actual operation result with the pre-stored prediction result, and displaying the compared resul...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products