Verification method, device, device and readable storage medium of interface return parameter

A verification method and parameter technology, applied in the field of communication, can solve the problems of cumbersome operation, high cost, poor readability, etc.
CN108089985BActive Publication Date: 2020-09-29CHINA PING AN LIFE INSURANCE CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA PING AN LIFE INSURANCE CO LTD
Publication Date
2020-09-29

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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