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

Interface comparison test method and device

A test method and interface technology, applied in the computer field, can solve the problems of high replacement risk of new and old systems, affecting the accuracy of test results, and inability to cover test cases, and achieve the effect of reducing replacement risk, reducing impact, and increasing flexibility.

Pending Publication Date: 2021-10-01
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The test process cannot cover all test cases, which affects the accuracy of the test results and leads to a greater risk of replacing the old and new systems; during the test process, it is necessary to compare the return values ​​of the old and new interfaces in real time, which affects the performance of the old system; every time a new interface is compared, Both need to modify the code of the old system before going online

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
  • Interface comparison test method and device
  • Interface comparison test method and device
  • Interface comparison test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0038] figure 1 It is a schematic diagram of main steps of an interface comparison testing method according to an embodiment of the present invention. Such as figure 1 As shown, the interface comparison test method of the embodiment of the present invention mainly includes the following steps:

[0039]Step S101: When the original interface receives a call request, trigg...

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 interface comparison test method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: when an original interface receives a calling request, triggering an agent class to intercept the original interface, and obtaining a first request parameter and a first return value of the calling request, wherein the proxy class is an object which is generated according to configured interface interception information and is used for intercepting an original interface; assembling the first request parameter according to the parameter format of the comparison interface to obtain a second request parameter, calling the comparison interface and transmitting the second request parameter to the comparison interface to obtain a second return value; and comparing the first return value with the second return value to obtain a comparison result. According to the embodiment, when the original interface receives the calling request, the agent class is used for intercepting the original interface to obtain the first return value, then the comparison interface is called to obtain the second return value, and the difference between the two return values is compared, so that all original interfaces to be tested can be covered, and the accuracy of a test result is ensured.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an interface comparison test method and device. Background technique [0002] Due to the needs of technology and business development, business systems need to be updated iteratively. The iterative update of the business system involves the replacement of the old and new systems. Due to the online use of the old system, the conventional replacement method is to develop a new system, and the new interface of the new system needs to adapt to the interface of the old system. The new interface is tested and passed. Then replace it as a whole. [0003] In the course of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0004] The test process cannot cover all test cases, which affects the accuracy of the test results and leads to a greater risk of replacing the old and new systems; during the test process, it is n...

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/3688
Inventor 冯英龙
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD