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

Method and device for generating test cases

A technology of test case generation and test case application in the field of testing, which can solve problems such as long maintenance time, low maintenance efficiency, and low test case generation efficiency, and achieve the effect of improving maintenance efficiency and generation efficiency

Inactive Publication Date: 2010-07-14
HUAWEI DIGITAL TECH SUZHOU
View PDF2 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that: when the test case is written for the subject under test, the test case generation efficiency is low, and the maintenance time is long and the maintenance efficiency 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
  • Method and device for generating test cases
  • Method and device for generating test cases
  • Method and device for generating test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention. A method for generating test cases such as figure 1 shown, including:

[0026] In the prior art, the test case is written for the subject under test, so for different subjects under test, the original test case cannot be reused, and the test case generation efficiency is low; the maintenance of the test case needs to analyze the entire test subject Test cases, long maintenance time and low maintenance efficiency.

[0027] 101: Receive a test case generation command...

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 test cases. The method comprises the following steps: receiving a command for generating a test case, wherein the command for generating the test case appoints the information file of the tested main body of the test case to be generated; analyzing the information file of the tested main body in the command for generating the test case to obtain the information of a constitution unit contained in the tested main body; obtaining an expected execution result of the constitution unit according to the information of the constitution unit; obtaining a test rule corresponding to the constitution unit according to the information of the constitution unit; and constructing the obtained test rule and the expected execution result to obtain a test case of the tested main body. In the scheme of the invention, the test case consists of the test rule of the constitution unit of the tested main body, and test personnel can develop the test rule aiming at the constitution unit and repeatedly use the test rule without the need of developing again, thereby improving the generation efficiency of the test cases.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a method and device for generating test cases. Background technique [0002] A test case is a plan for testing, including all the execution steps of the subject under test and the expected execution results. After the test case is executed by the subject under test, the test result is obtained. The test result is compared with the expected execution result. If the test result meets the expected execution result, the test passes, otherwise the test fails. [0003] In the process of testing hardware, test cases are generally written manually according to the subject under test (for example: single board, equipment, etc.), and then stored in the test case library; when testing is required, enter the search Keywords to query the test cases in the database to get the required test cases; then the test case is executed by the subject under test. [0004] In the process of implementin...

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/36G06F9/44
Inventor 魏长城
Owner HUAWEI DIGITAL TECH SUZHOU
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