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

Verification method and device for returned parameters of interface, equipment and readable storage medium

A verification method and parameter technology, applied in the field of communication, can solve problems such as high cost, cumbersome operation, and poor readability

Active Publication Date: 2018-05-29
CHINA PING AN LIFE INSURANCE CO LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of the present invention is to provide a verification method, device, equipment and readable storage medium for interface return parameters, aiming to solve the problems of high cost, cumbersome operation and poor readability in the prior art for manually writing codes for verification. The problem

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
  • Verification method and device for returned parameters of interface, equipment and readable storage medium
  • Verification method and device for returned parameters of interface, equipment and readable storage medium
  • Verification method and device for returned parameters of interface, equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0046] The invention provides a method for verifying interface return parameters.

[0047] Please refer to figure 1 , figure 1 It is a schematic flow chart of the first embodiment of the method for verifying the parameters returned by the interface of the present invention. In this embodiment, the method for verifying the parameters returned by the interface includes:

[0048] Step S10, obtain a plurality of return parameters returned by the interface to be verified and expected parameters corresponding to the interface to be verified, wherein the returned parameters include the actual path and the return value matching the actual path, and the expected parameters include the expected path and the expected path matching expectations.

[0049]With the development of communication technology, various application sof...

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 a verification method and device for returned parameters of an interface, equipment and a readable storage medium. The method comprises the steps of obtaining multiple returnedparameters returned by the interface to be verified and corresponding expected parameters; storing an actual key-value pair formed by an actual path and a returned value which are included in the returned parameters and an expected key-value pair formed by an expected path and an expected value which are included in the expected parameters in a hashmap; traversing the hashmap to compare the actual path with the expected path, compare the returned value with the expected value and compare all the returned parameters and the expected parameters one by one; when all the returned parameters are compared with the expected parameters, verifying the returned parameters of the interface to be verified. According to the scheme, the hashmap is traversed to compare the returned parameters with the expected parameters, and the returned parameters of the interface to be verified are verified. The situation that verification codes are written for verification is avoided, the testing workload is reduced, the verification operation is simplified, and the testing efficiency is improved.

Description

technical field [0001] The present invention mainly relates to the technical field of communication, in particular to a method, device, equipment and readable storage medium for checking parameters returned by an interface. Background technique [0002] Computers, mobile phones and other devices can communicate with the server to achieve multiple functions, and various functions are realized by calling multiple interfaces through program codes, such as the login interface that realizes the login function of web pages or APPs. Each function needs to be tested on the interface before being put into the market. During the test process, the test result will be returned, and the test result will be verified to determine whether the interface can realize its function according to the verification result. At present, when verifying the returned test results, the tester writes the verification code, which requires a high ability of the tester and takes a lot of time and cost; at th...

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/364G06F11/3668
Inventor 何新荣
Owner CHINA PING AN LIFE INSURANCE 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