Test case generation method and device, electronic equipment and storage medium

A test case, test page technology, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., to achieve the effect of improving cheapness, reducing learning and writing maintenance costs

Pending Publication Date: 2021-03-26
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Therefore, in order to reduce the work intensity of testers, the current test cases are generated using a specific DSL language. The automated test DSL language is an automated test case written in natural language. Although the use of this language greatly reduces the cost of learning, writing and maintenance, it is necessary for There are still certain requirements for testers, and testers must receive DSL language training before they can use it correctly

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0058] The invention provides a method for generating test cases. refer to figure 1 As shown, it is a schematic flowchart of a method for generating test cases provided by an embodiment of the present invention. The method may be performed by a device, and the device may be implemented by software and / or hardware.

[0059]In this embodiment, the method for generating test cases includes:

[0060] S1: Use a webpage plug-in to generate a recording component in the page to be collected;

[0061] The process of step S1 includes:

[0062] S11: Obtain a webpage plug-in;

[0063] S12: Inject a collection script in the page to be collected through the webpage plug-in; wherein, the webpage plug-in can be any plug-in adapted to the browser supported by the webpage to be collected, and in this embodiment, the webpage plug-i...

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 relates to the technical field of system testing, and provides a test case generation method, which comprises the following steps of: generating a recording component in a page to be acquired by adopting a webpage plug-in, loading an exclusion interface on the recording component, excluding carousel data in the page to be acquired, converting the page to be acquired into a full testpage, loading a recording switch on the recording assembly, recording the full-test page in batches, obtaining attribute data in the page to be collected, intercepting and obtaining switching data through an interception interface in the full-test page, and combining the switching data of the user with the attribute data to generate a DSL language test case; and automatically adopting the specificDSL language to generate the test case. The learning, writing and maintenance cost is reduced, an operator can directly look up and modify the generated DSL, and the management convenience of the test case is improved.

Description

technical field [0001] The invention relates to the technical field of system testing, and relates to a method for generating test cases, in particular to a method for generating test cases, a device, electronic equipment and a computer-readable storage medium. Background technique [0002] Testing is an indispensable and important part of product development iterations, and functional testing is the most important part of the testing process. The importance of functional testing in product development is manifested in all aspects, including the verification of functions by developers during development. Correctness, testers ensure the correctness of product functions after development, and ensure product stability after launch. [0003] Automated testing is inseparable from the writing of test cases. The maintenance and writing iterations of test cases often require a lot of manpower, especially in the Internet industry where iterations are particularly frequent, and the wr...

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 CHINA PING AN PROPERTY INSURANCE 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