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

Test case generation method and device, equipment and storage medium

A test case generation and test case technology, applied in the field of data processing, can solve problems such as low code coverage, waste of manpower, and low efficiency, and achieve the effects of reducing costs, improving generation efficiency, and improving user experience

Active Publication Date: 2018-11-06
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in practical applications, most of the developers interpret the content of the software source code and manually set the test cases. This test case generation method not only wastes manpower, high cost, and low efficiency, but also uses the generated test cases for testing. When the code coverage is low

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
  • Test case generation method and device, equipment and storage medium
  • Test case generation method and device, equipment and storage medium
  • Test case generation method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0045] Each embodiment in this application is mainly aimed at related technologies. When testing the developed software, most of the software source code content is interpreted by the developer, and the test cases are manually set. This test case generation method not only wastes manpower and costs. High efficiency, low efficiency, and when the generated test cases are used to test the source files, the code coverage is relatively low. A test case generation method is proposed.

[0046] In the embodiment of the present appli...

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 a test case generation method and device, equipment and a storage medium. The method comprises the steps that a target source code file is traversed, and various method blocks contained in a target source code are acquired; the various method blocks are subjected to parsing processing separately, and various non-logical expressions and logical operators which are contained in the various method blocks respectively are determined, wherein the logical operators are connected with the various non-logical expressions; various test case frameworks corresponding to the variousmethod blocks are generated according to the various non-logical expressions and the logical operators corresponding to the various non-logical expressions; and test cases corresponding to the targetsource code are generated according to the various test case frameworks. According to the method, the test case frameworks corresponding to the method blocks are generated by parsing the method blocks contained in the source code, and the test cases corresponding to the source code are automatically generated according to the test case frameworks; and accordingly, the test case generation efficiency is improved, the code coverage is widened, the cost needed for manually setting the test cases can be reduced, and the user experience is improved.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a test case generation method, device, equipment and storage medium. Background technique [0002] After the new version of the software is developed, in order to ensure the stability and accuracy of the software, the software needs to be tested. The new version software is used as the test object. When testing the test object, it is necessary to analyze the function points of the test object to be tested, design test cases according to the function points to be tested, and then use the designed test cases to test the test object. [0003] At present, in practical applications, most of the developers interpret the content of the software source code and manually set the test cases. This test case generation method not only wastes manpower, high cost, and low efficiency, but also uses the generated test cases for testing. , the code coverage is low. Contents o...

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/3684
Inventor 贾金莉
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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