Automatic correction method for interface test case

An interface testing and test case technology, applied in software testing/debugging, error detection/correction, instruments, etc., to solve the problems of not timely and inaccurate notification of interface changes to testers, and poor timeliness and accuracy of interface test case revisions.

Pending Publication Date: 2022-03-01
多点(深圳)数字科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, after the current interface changes, testers need to manually change the corresponding test cases. In this way, it often occurs that the interface change notification testers are not timely and inaccurate, resulting in poor timeliness and accuracy of interface test case corrections.

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
  • Automatic correction method for interface test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0024] An automatic correction method of an interface test case of the present invention comprises the following steps:

[0025] Step S1: The system captures the change information in the two git versions through commands, and stores the captured information into the file file1.

[0026] Among them, the grabbing command uses git diff in this embodiment >>file1 to achieve.

[0027] Step S2: Determine whether there is an interface change in the change information in file1 through keywords, if yes, filter out the change points, and proceed to step S3; if no, complete the correction. Among them, the change points in the change information are filtered through @RequestMapping, @RequestParams and @RequestBody of SpringMVC keywords SpringMVC at the location of the code of the web project interface.

[0028] Step S3: Establish a mapping relationship for the request url, request method, and request parameter data before and after the change point obtained in step S2, and ...

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 an automatic correction method for an interface test case, which is characterized by comprising the following steps of: S1, capturing change information in two git versions by a system through a command, and storing the captured information into a file 1; s2, judging whether the change information in the file 1 has an interface change or not through a keyword, if so, screening out a change point, and entering S3; if not, finishing the correction and the like. The interface change mapping relation is obtained by capturing the git code submission record, and then the test case of the corresponding interface is automatically corrected according to the mapping relation, so that automatic correction of the interface test case is realized, and the problems that the interface change is not timely and inaccurate to inform a tester and the test efficiency is high are well solved. And after the interface is changed, a tester needs to manually change a corresponding test case, so that the correction timeliness and accuracy of the interface test case are poor.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to an automatic correction method for an interface test case. Background technique [0002] During the software development process, the software interface is constantly changing, such as adding new interfaces, deleting interfaces, changing interface addresses, changing interface request methods, changing interface request parameters, and so on. The change of the interface is notified by the development to the test, and the use case of the test project is modified after the test. However, at present, after the interface is changed, testers need to manually change the corresponding test cases, so that the interface change notification to the testers is often not timely and inaccurate, resulting in poor timeliness and accuracy of interface test case corrections. [0003] Therefore, it is urgent to develop a method that can establish a relationship between the development...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 吴海波
Owner 多点(深圳)数字科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products