Automatic test method and system

A technology for automated testing and test cases, applied in the computer field, can solve problems such as difficulty in covering all scenarios, expired test cases, omission of service interfaces to be tested, etc., to achieve automatic maintenance, reduce maintenance costs, and optimize test methods.

Pending Publication Date: 2020-06-02
SHISHI TONGYUN TECH CHENGDU CO LTD
View PDF15 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the daily iterative development process, it is often the case that the service interface to be tested is added or updated. Using the method of manually maintaining test cases, it is easy to have problems such as missing the newly added service interface to be tested or the expiration of the test case.
In addition, in the existing technology, the input and collection of use case data required by test cases generally needs to be done manually, and usually it is not real data generated in the actual production environment, but a sample constructed by testers based on experience. example data, and it is difficult to guarantee comprehensive coverage of all scenarios
Even if the real data generated in the production environment is used as the use case data of the test case, since the data in the production environment will change at any time, the timely update of the use case data cannot be conveniently completed

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 test method and system
  • Automatic test method and system
  • Automatic test method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Hereinafter, exemplary embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0067] figure 1 Shows the flowchart of the automated test method provided by the embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0068] Step S101: Read the annotation information of the service interface under test in the target system, register the service interface under test according to the annotation information, and generate a test case corresponding t...

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 test method and system, and the method comprises the steps: reading annotation information of a to-be-tested service interface in a target system, registering theto-be-tested service interface according to the annotation information, and generating a test case corresponding to the to-be-tested service interface; intercepting a service call request sent to thetarget system by the client, and obtaining request log data corresponding to the service call request; matching the to-be-tested service interface corresponding to the test case with a service interface in the request log data, and determining case data of the test case; and inputting the case data into the test case, and executing the test case to obtain a test result. According to the technicalscheme provided by the invention, automatic maintenance of the test case and the case data is realized, the maintenance cost is greatly reduced, improvement of the coverage rate of the test case is facilitated, the timeliness of the case data is ensured, the test accuracy is effectively improved, and the scene coverage is more comprehensive.

Description

Technical field [0001] The invention relates to the field of computer technology, in particular to an automated testing method and system. Background technique [0002] In the existing testing technology, white box testing is usually carried out through unit testing, and there is rarely a standardized integration test environment. In integration testing, test cases and use case data (or test data) generally require manual work. Maintenance requires a lot of manpower and time costs. Test quality mainly depends on the coverage of test cases and the timeliness of use case data. Among them, the coverage of test cases depends on the tester's interface collection of the system under test. However, in the daily iterative development process, there are often new or updated service interfaces to be tested. Manual maintenance of test cases can easily cause problems such as missing new service interfaces to be tested or expired test cases. In addition, in the prior art, the input and coll...

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/3684G06F11/3688
Inventor 黄华松
Owner SHISHI TONGYUN TECH CHENGDU CO LTD
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