Interface testing method, interface testing device, computer device and computer readable storage medium

A technology of interface testing and computer programs, applied in computing, software testing/debugging, error detection/correction, etc., can solve problems such as high threshold, poor readability of test cases, and uneven code quality, so as to lower the threshold and reduce the The effect of writing difficulty

Inactive Publication Date: 2018-05-04
CHANJET INFORMATION TECH CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, interface test dependencies are written in high-level languages ​​such as java or python. It is difficult for test students without programming experience to write interface test cases, and the threshold is high; even if test cases are written, the code quality is uneven; write in high-level languages The readability of test cases is poor, which is not conducive to focusing on business and data
[0003] Moreover, few interface testing frameworks can be used as a general interface framework to solve this scenario-based interface testing requirements. One of the reasons is that the input parameters required by the interface under test may come from one or more input parameters of other interfaces or other interfaces. The return value, and the types of parameters and return values ​​are diverse. Compatibility with these requirements is a great challenge for writing an interface test framework

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 testing method, interface testing device, computer device and computer readable storage medium
  • Interface testing method, interface testing device, computer device and computer readable storage medium
  • Interface testing method, interface testing device, computer device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

[0045] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.

[0046] figure 1 A flow chart of an interface testing method provided by an embodiment of the first aspect of the present invention is shown.

[0047] Such as figure 1 As shown, the interface testi...

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 interface testing method, an interface testing device, a computer device and a computer readable storage medium. The interface testing method includes the steps: loading testing cases, and transforming the testing cases into designated objects; analyzing the designated objects, executing the designated objects according to analysis results, and receiving execution resultsof the designated objects; verifying whether the execution results are matched with expected values of the testing cases or not, and storing the execution results and the matching results into a database to be displayed. According to the interface testing method, the testing cases are loaded, transformed into the designated objects and executed on an interface to be tested, the execution resultsare fed back, matching or mismatching among the execution results and the expected values of the testing cases is verified, the testing cases are transformed, writing can be achieved by the aid of language formats with low writing difficulty, and interface testing cases can be written only by focusing interface definitions, parameters and verification, so that the writing difficulty of the testingcases is reduced.

Description

technical field [0001] The present invention relates to the technical field of interface testing, in particular to an interface testing method, an interface testing device, a computer device and a computer-readable storage medium. Background technique [0002] At present, interface test dependencies are written in high-level languages ​​such as java or python. It is difficult for test students without programming experience to write interface test cases, and the threshold is high; even if test cases are written, the code quality is uneven; write in high-level languages The readability of test cases is poor, which is not conducive to focusing on business and data. [0003] Moreover, few interface testing frameworks can be used as a general interface framework to solve this scenario-based interface testing requirements. One of the reasons is that the input parameters required by the interface under test may come from one or more input parameters of other interfaces or other 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 侯海佳
Owner CHANJET INFORMATION TECH CO 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