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

Method and device for generating test case, terminal and computer-readable medium

A test case generation and test case technology, applied in the testing field, can solve the problems of low efficiency, huge workload of testers, and time and energy consumption, so as to avoid waste of human resources, shorten writing time, improve writing efficiency and accuracy rate effect

Active Publication Date: 2018-06-15
苏州赛诺威动力技术有限公司
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the number of functional states of the software function to be tested is large, the use of this method will bring a huge workload to the testers, consume a lot of time and energy, be inefficient, and have a high error rate

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, terminal and computer-readable medium
  • Method and device for generating test case, terminal and computer-readable medium
  • Method and device for generating test case, terminal and computer-readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 2 It is a flowchart of a test case generation method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of test case generation. The method can be implemented by a terminal, specifically by software and / or hardware in the terminal. see figure 2 , the test case generation method includes the following steps:

[0033] S210. Construct a test system according to the functions of the software to be tested, and determine at least one migration path of the test system.

[0034] Among them, the test system can be understood as sorting out the functions of the software to be tested, and simplifying and modifying the sorted out functions, so as to obtain a simpler and more general testing model of the software to be tested. Wherein, according to the constructed test system, at least one migration path can be obtained through manual or automatic indexing.

[0035] Optionally, construct a test system according to the functions o...

Embodiment 2

[0102] Figure 4 It is a schematic structural diagram of a test case generation device provided in Embodiment 2 of the present invention, and this embodiment is applicable to test case generation.

[0103] see Figure 4 , the test case generation device in this embodiment includes:

[0104] The test system construction module 410 is configured to construct a test system according to the functions of the software to be tested, and determine at least one migration path of the test system.

[0105] The path matrix forming module 420 is configured to form a path matrix according to the test times and test order of each migration path, wherein the path matrix includes sequentially arranged atomic test case numbers.

[0106] The test case generation module 430 is used to call atomic test cases according to the path matrix and combine them into test cases.

[0107] Optionally, the test system building blocks 410 include:

[0108] A functional system construction unit, used to con...

Embodiment 3

[0124] This embodiment provides a terminal that can be used for generating test cases. Figure 5 It is a schematic structural diagram of a terminal provided in Embodiment 3 of the present invention. see Figure 5 , the terminal includes:

[0125] one or more processors 510;

[0126] memory 520, for storing one or more programs;

[0127] When the one or more programs are executed by the one or more processors 510, the one or more processors 510 implement the test case generation method as proposed in the first embodiment.

[0128] Figure 5 Take a processor 510 as an example; the processor 510 and the memory 520 can be connected by a bus or in other ways, Figure 5 Take connection via bus as an example.

[0129] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the test case generation method in the embodiment of the present inventio...

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 discloses a method and a device for generating a test case, a terminal and a computer-readable medium. The method comprises the steps of constructing a test system according to a function of to-be-tested software, and determining at least one migration path of the test system; forming a path matrix according to test times and a test sequence of each migration path,wherein the path matrix includes atomic test case serial numbers arranged in sequence; and calling atomic test cases according to the path matrix to combine the test case. According to the method andthe device for generating the test case, the terminal and the computer-readable medium, through analysis of the generated path matrix, the atomic test cases are called in sequence and combined into the test case, the writing time of the test case is shortened, the writing efficiency and accurate rate are improved and the waste of manpower resources is avoided.

Description

technical field [0001] Embodiments of the present invention relate to testing technologies, and in particular to a method, device, terminal and computer-readable medium for generating test cases. Background technique [0002] With the development of the information technology industry, the functional complexity of software products has increased significantly, and the functional safety requirements have also increased accordingly, and the software product development cycle has gradually shortened, which has led to a larger test scale for software products, and higher requirements for test quality and test efficiency. come higher. [0003] The test case generation method in the existing software product test case generation method is that the tester screens the atomic test cases to be used in the atomic test case library according to the requirements, and combines each atomic test case according to the order of each test path, and manually writes the test case. use case file...

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/3664G06F11/3684
Inventor 汪冬君郑庆飞
Owner 苏州赛诺威动力技术有限公司
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