Method and system for quickly and automatically testing based on swagger

An automated testing and fast technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems that developers spend a lot of time on code testing and low efficiency, so as to ensure software quality, improve speed and work Efficiency and the effect of reducing professionalism requirements
CN111930635AActive Publication Date: 2020-11-13深圳微品致远信息科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
深圳微品致远信息科技有限公司
Publication Date
2020-11-13

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

The invention provides a rapid and automatic test method and system based on a swagger. The method and system for quickly and automatically testing based on swagger comprises the following steps: S1,compiling and designing an REST service interface of an HTTP protocol according to service logic; s2, compiling or automatically generating an interface document of a front-end development docking rear-end interface; s3, compiling or automatically generating an interface test code for testing whether the interface function logic conforms to the business process or not; s4, achieving continuous testing through a continuous integration tool jenkins, and then achieving automation of the interface testing code process. According to the method, the swagger-editior is adopted to automatically generate the interface test code, so that the interface document can be quickly updated, the software quality is guaranteed, the professional requirements on developers are reduced, the interface test speedis increased, the work efficiency is improved, and convenience and quickness are achieved.
Need to check novelty before this filing date? Find Prior Art

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