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

Interface test case generation method, apparatus, electronic device, and storage medium

A technology for interface testing and test cases, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., can solve problems such as taking up a lot of time, single and repetitive operations, and improving the difficulty of implementing interface test automation. Achieve the effect of reducing repetitive operations and saving time

Inactive Publication Date: 2019-01-22
上海精数信息科技有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to cope with frequently changing system development requirements, testers need to spend a lot of manpower on maintaining interface test cases, many of which are single and repetitive operations
Especially when the number or type of interface fields changes, it takes a lot of time to modify and debug the corresponding test cases, and the tight development cycle may cause this part of the interface to not be fully tested, thus improving the implementation of the interface. Difficulty of test automation

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 test case generation method, apparatus, electronic device, and storage medium
  • Interface test case generation method, apparatus, electronic device, and storage medium
  • Interface test case generation method, apparatus, electronic device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar structures in the drawings, and thus their repeated descriptions will be omitted.

[0056] Various embodiments provided by the present invention are described below with reference to the accompanying drawings.

[0057] see first figure 1 , figure 1 A flow chart of a method for generating an interface test case according to an embodiment of the present invention is shown. figure 1 A total of 5 steps are shown:

[0058] Step S101: Acquiring interface configuration information of the interface to be tested, ...

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 test case generation method, an apparatus, an electronic device and a storage medium. The method comprises the following steps: acquiring interface configuration information of an interface to be tested, wherein the configuration information comprises field value setting of at least one field; generating an effective field value list and an invalid field value list according to the field value setting of the field, wherein the effective field value in the effective field value list conforms to the field value setting, and the invalid field value in the invalid field value list does not conform to the field value setting; generating a positive test case by traversing the effective field value list; traversing the invalid field value list to generate a negative test case; and combining positive test cases and negative test cases of each field of the interface to be tested to generate an interface test case list of the interface to be tested. The methodand the device provided by the invention automatically generate and maintain test cases, reduce repetitive labor, lighten the daily work burden of testers, and save unnecessary maintenance cost.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a method, device, electronic equipment and storage medium for generating interface test cases. Background technique [0002] In the context of today's system design, REST (Representational State Transfer, Representational State Transfer) style interfaces are more and more widely used, and the demand for this type of interface testing is also growing. [0003] In the traditional interface testing mode, testers need to use various interface request tools or manually write interface request codes, and testers also need to maintain a large number of test cases and test data. For REST-style interfaces, non-business logic interface tests have certain logic rules, and for the same type of field configuration information, the similarity of test cases is very high. [0004] In order to cope with frequently changing system development requirements, testers need to spend a lo...

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/3684
Inventor 潘林圣侍小欣
Owner 上海精数信息科技有限公司
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