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

Method and system for verifying interface returning data

A technology that returns data and interfaces, applied in the computer field, can solve the problems of json type changes, etc., and achieve the effects of improving test efficiency, simplifying the logic of writing verification, and being easy to read and maintain

Active Publication Date: 2018-05-29
CHANJET INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The return value of the interface is generally in the format of json (JavaScript Object Notation, JavaScript Object Markup Language). The json type has many changes, so it is difficult to think of a general method for verification

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 and system for verifying interface returning data
  • Method and system for verifying interface returning data
  • Method and system for verifying interface returning data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] 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.

[0061] 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.

[0062] Refer below Figure 1 to Figure 15 A method for verifying data returned by an interface, a system for verifying data returned by an interface, a computer device, and a computer-readable stora...

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 a method and a system for verifying interface returning data, computer equipment and a computer readable storage medium. The method for verifying the interface returning data comprises the following steps that: obtaining the interface returning data; searching a main body path data group matched with a preset path data group in the returning data by layer; comparing at leastone first element data group which forms the main body path data group, and determining a last layer of first element data group; and according to whether a practical value and an expected value corresponding to the last layer of first element data group are matched or not, determining whether the interface is normally operated or not. By use of the method, a statement way is used for carrying out write verification, a background code analyzes and is in charge of verification execution, so that research and development personnel do not need to use a high-level language to compile codes, compiling verification logic is simplified, so that the code is clear and is easy in reading and maintaining, test efficiency is improved, and the verification standardization of the interface returning data is realized.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for verifying returned data of an interface, a system for verifying returned data of an interface, computer equipment, and a computer-readable storage medium. Background technique [0002] Many interface test cases of the http (Hyper Text Transfer Protocol, Hypertext Transfer Protocol) protocol in Internet testing are written in xml (Extensible Markup language, Extensible Markup Language) format, but how to verify the returned results of the interface in xml is a difficult problem, because it cannot Validate the returned results of different organizational structures freely like a programming language. There are many advantages of writing use cases in xml, but one difficulty is how to declare the verification of the return value of the interface in xml. The return value of the interface is generally in the format of json (JavaScript Object Notation, JavaScript...

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/22H04L29/08
CPCG06F11/221H04L67/02
Inventor 侯海佳
Owner CHANJET INFORMATION TECH CO LTD
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