Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for rapid automated testing based on swagger

An automated testing and fast technology, applied in software testing/debugging, error detection/correction, creation/generation of source code, etc., can solve problems such as developers spending a lot of time on code testing and low efficiency, to ensure software quality, The effect of increasing speed and work efficiency and reducing professionalism requirements

Active Publication Date: 2021-06-29
深圳微品致远信息科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Because every HTTP interface needs to write interface documents, some projects use showdoc, and some projects use markdown, this method of code writing files is inefficient. Update the interface document; at the same time, in order to ensure the quality of the software, it is necessary to write the interface test code separately, which will cause problems such as low efficiency, causing developers to spend a lot of time on code testing and other work

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 rapid automated testing based on swagger

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The preferred embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0029] like figure 1 As shown, this example provides a method for rapid automated testing based on swagger, including the following steps:

[0030] Step S1, writing and designing the REST service interface of the HTTP protocol according to the business logic;

[0031] Step S2, writing or automatically generating an interface document for connecting the front-end development to the back-end interface;

[0032] Step S3, writing or automatically generating interface test codes for testing whether the interface function logic conforms to the business process;

[0033] Step S4, implement continuous testing through the continuous integration tool jenkins, and then automate the interface testing code process;

[0034] Wherein, in the step S1, the REST service interface of the HTTP protocol is implemented by adding annotation descripti...

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 present invention provides a method and system based on swagger rapid automated testing, said method based on swagger rapid automated testing comprises the following steps: step S1, writing and designing the REST service interface of HTTP protocol according to business logic; step S2, writing or automatically generating the front end Develop interface documents for docking back-end interfaces; step S3, write or automatically generate interface test codes to test whether the interface function logic conforms to business processes; step S4, implement continuous testing through continuous integration tool jenkins, and then integrate interface test codes Processes are automated. The present invention adopts swagger-editor to automatically generate interface test codes, thereby quickly updating interface documents, ensuring software quality, reducing professional requirements for developers, improving the speed and work efficiency of interface testing, and being convenient and fast.

Description

technical field [0001] The invention relates to a test code generation, in particular to a swagger-based rapid automated test method, and to a system adopting the swagger-based rapid automated test method. Background technique [0002] Because every HTTP interface needs to write interface documents, some projects use showdoc, and some projects use markdown, this method of code writing files is inefficient. Update interface documents; at the same time, in order to ensure software quality, interface test codes need to be written separately, which will cause problems such as low efficiency, causing developers to spend a lot of time on code testing and other work. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a convenient swagger-based rapid automated testing method that can improve testing speed and efficiency, and further provide a system using the swagger-based rapid automated testing method. [0004] In this r...

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/36G06F8/30
CPCG06F8/30G06F11/3672
Inventor 周洪峰刘峻源
Owner 深圳微品致远信息科技有限公司