Test method and device based on automatically generated case, equipment and storage medium

A technology for automatically generating and testing methods, applied in software testing/debugging, error detection/correction, instrumentation, etc., which can solve problems such as content and coverage differences of use cases, failure to achieve coverage, etc., and achieve the effect of reducing writing time

Pending Publication Date: 2020-03-27
PING AN ASSET MANAGEMENT CO LTD
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to overcome the problem that manual writing of test cases in the prior art will lead to large differences in the content and coverage of use cases, and cannot achieve 100% coverage, and proposes a test method based on automatically generated use cases , devices, equipment and storage media, automatically generate test cases and corresponding test data by analyzing the rules of several templates, so as to greatly reduce the difference rate of the content and coverage of use cases

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 method and device based on automatically generated case, equipment and storage medium
  • Test method and device based on automatically generated case, equipment and storage medium
  • Test method and device based on automatically generated case, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0048] First, the present invention proposes a test method based on automatically generated use cases.

[0049] In the first embodiment, if figure 1 As shown, the described test method based on automatically generated use cases includes the following steps:

[0050] Step 01: Responding to the user's list selection operation, take out the test list selected by the user from the preset test lists.

[0051] The test list is preset in the system, and each test point is listed in the list, and the user can select by clicking with the mouse.

[0052] A test point refers to a certain business parameter in a test functional requirement.

[0053] There is a one-to-one correspondence between the test list and the requirements. Each test list corresponds to a requirement number. A test list contains multiple test points. The test poin...

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 a test method based on an automatically generated case, and belongs to the field of test case generation. The test method comprises the following steps: in response to a list selection operation of a user, taking out a selected test list from a plurality of preset test lists; in response to a data item selection operation of a user, obtaining a corresponding demand templatenumber from the test list; obtaining a corresponding demand template from a plurality of preset demand templates according to the demand template number, and obtaining configuration information of the data item and a corresponding rule template number from the corresponding demand template; obtaining a corresponding rule template from a plurality of preset rule templates according to the rule template number, and obtaining a data rule from the corresponding rule template; and generating and storing a test case according to the configuration information of the data item and the data rule. According to the test method, the test cases and the corresponding test data are automatically generated by analyzing the rules in the template, so that the writing time of the cases and the preparation time of the test data are reduced.

Description

technical field [0001] The invention relates to the field of test case generation, and relates to a test method, device, equipment and storage medium based on automatic generation of use cases. Background technique [0002] In the process of application service development, it is necessary to test the completed code, so as to troubleshoot potential problems in time and improve the stability of the system before the application goes online. This requires generating test cases to complete code testing. [0003] In traditional software testing, test case writing is a necessary and core task in the testing process. Testers need to spend a lot of time and energy to write test cases, and test case writing takes up a lot of testers' daily work. Most of the time, and the writing content of test cases will also vary due to different people. [0004] Therefore, the current manual test case writing makes testers have a heavy workload, and different testers have different understandin...

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/3684G06F11/3688
Inventor 王福彬
Owner PING AN ASSET MANAGEMENT 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