Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for verifying data returned by an interface

A technology that returns data and interfaces, applied in the computer field, can solve the problem of many changes in json types, and achieve the effect of standardization, simplified logic, and clear code.

Active Publication Date: 2021-05-04
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 data returned by an interface
  • Method and system for verifying data returned by an interface
  • Method and system for verifying data returned by an interface

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 for verifying the returned data of the interface, a system for verifying the returned data of the interface, computer equipment and a computer-readable storage medium. Wherein, the method for verifying the returned data of the interface includes: obtaining the returned data of the interface; finding the main path data group in the returned data layer by layer that matches the preset path data group; comparing at least one first element that constitutes the main path data group The data group is to determine the first element data group of the last layer; determine whether the interface is running normally according to whether the actual value corresponding to the first element data group of the last layer matches the expected value. The invention writes the verification in a declarative way, and the background code is analyzed and responsible for the verification execution, so that the research and development personnel do not need to write codes in a high-level language, which simplifies the logic of writing verification, makes the code clearer, easier to read and maintain, and improves testing. Efficiency, realizing the standardization of the verification of the returned data of the interface.

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/22H04L29/08
CPCG06F11/221H04L67/02
Inventor 侯海佳
Owner CHANJET INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More