Method and device for generating test case, testing method and testing equipment

A technology for generating test cases and test cases, applied in the field of test case generation devices and test script clients, it can solve problems such as inconsistency, increase writing time, and inability to achieve test effects, and achieves enhanced effectiveness, reduced threshold and complexity. performance, and the effect of shortening the writing time

Active Publication Date: 2015-05-20
新奇点智能科技集团有限公司
View PDF6 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, testers usually code test cases manually when testing. Testers who write test cases not only need to understand the design principles of the tested code, but also need to be able to read the tested code, so the requirements for tester skills are increased. , which undoubtedly increases the writing time
[0005] Moreover, in many module testing schemes, test cases are written after the code to be tested is written, and the writing of test cases sometimes needs to refer to specific implementations, which easily leads to inconsistencies between the written test cases and the tested code. Can't play a good test effect

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
  • Method and device for generating test case, testing method and testing equipment
  • Method and device for generating test case, testing method and testing equipment
  • Method and device for generating test case, testing method and testing equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0076] refer to image 3 , provides a flow chart of the steps of a method for generating test cases provided in Embodiment 2 of the present application, which may specifically include the following steps:

[0077] Step 301, generate a message template according to the data structure of the message defined in the interface document of the code to be tested;

[0078] Step 302, list the configuration of message and message in the excel form according to the design of test case;

[0079] Among them, the above-mentioned steps of listing the message and the configuration of the message in the excel table according to the design of the test case may specifically include:

[0080] Substep 321, according to the design of described test case, list each described message that sub-process comprises in excel form, and define the combination mode between each described sub-process in excel form, to combine several by the mode of splicing The sub-processes are spliced ​​into a complete tes...

Embodiment 3

[0091] The method for generating the test case of the present embodiment is described above figure 1 On the basis of the illustrated embodiments, the following optional technical solutions may be further included.

[0092] Specifically, the above-mentioned method of this embodiment may also include: according to the enumeration type and macro definition in the above-mentioned interface document, storing the corresponding relationship between the enumeration type, the macro definition and the value in a dictionary;

[0093] Then, the above-mentioned step of filling in the content of the above-mentioned message in the copy of the above-mentioned message template may specifically include: filling in the content of the above-mentioned message by using the enumerated types and macro definitions in the above-mentioned dictionary.

[0094] In this embodiment, the dictionary can be used to store the correspondence between macro definitions and values. In this way, when writing test ca...

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 embodiment of the invention provides a method and device for generating a test case, a testing method and testing equipment. The method for generating the test case comprises the steps that a message template is generated according to a data structure of a message defined by an interface document of a code to be tested; the message and configurations of the message are listed in an excel table according to the design of the test case; a VBA script in the excel table is invoked, and the message is linked to a transcript of the message template; a configuration file of the test case is generated according to the configurations of the message; the content of the message is filled in the transcript of the message template. By means of the method and device for generating the test case, the testing method and the testing equipment, the threshold and complexity for generating the test case are reduced, and therefore the compiling time of the test case is shortened.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a method for generating test cases, a device for generating test cases, a test script client and a test method. Background technique [0002] Unit testing is after the software development is completed, the developer writes the test code of the software code according to the logic coverage, code coverage, initial value, critical value, expected value and other conditions to detect the correctness of the software code, thereby helping developers Find problems and improve software quality. [0003] Currently, there are two common unit testing methods: one is the instrumentation method, which adds detection points in the tested code to monitor the running results of the tested code; the other is the server / client model method, which is used in the test The terminal receives the data sent by the tested code to monitor the execution of the tested code; among them, the server...

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
Inventor 姚少林
Owner 新奇点智能科技集团有限公司
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