Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method and device for generating test case

A test case and test type technology, applied in the field of test case generation, can solve the problems of high maintenance cost of test cases, manual construction, large granularity of unit test support, etc., to achieve diversification of test methods, reduce maintenance costs, and realize automatic generation. Effect

Active Publication Date: 2014-03-12
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 51 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] But, in the process of realizing the present invention, the inventor finds that the prior art has at least the following problems: (1) at present, for YII (a kind of component-based, high-performance PHP (Hypertext Preprocessing Language) framework for developing large-scale Web applications ) framework’s unit test case automation technology is not mature enough. For example, PHPUNIT (a lightweight PHP test framework) can implement unit tests, but the granularity of unit test support is too large to realize the automatic generation of function test cases. It is still necessary to manually write test cases; (2) When using the test tools that come with the YII framework, it is still necessary to manually construct test data, resulting in a very high cost of test case maintenance after code upgrades; (3) The unit test coverage logic is not comprehensive; ( 4) The supported test method is single

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are only used to explain the present invention, but should not be understood as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents falling within the scope of the spirit and connotation of the appended claims.

[0024] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that the terms "connected" and "con...

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 proposes a method and a device for generating a test case. The method comprises the following steps: obtaining an input instrument and a configuration film, wherein the input instruction comprises a test type parameter; the configuration film comprises a module, class information, function information of the tested function and a test parameter; determining the test type according to the test type parameter, and structuring test data according to the test type and the test parameter; rendering the preset template according to the template, the class information, the function information of the tested function and the test data, so as to generate the test case. By adopting the method disclosed by the embodiment of the invention, on one hand, automatic generation of the function test case is achieved without artificially compiling the test case of the tested function, so as to improve the test accuracy, and on the other hand, the test type is determined according to the test type parameter, and support of a plurality of different test modes is achieved, so that the supported test modes are diversified.

Description

Technical field [0001] The present invention relates to the technical field of software testing, and in particular to a method and device for generating test cases. Background technique [0002] Software testing is an important means to improve the reliability of software products and ensure the quality of software products. Software testing activities have been integrated into all stages of the entire life cycle of software products. Various technical methods and testing tools used in software testing have become increasingly mature, and related testing methods, test cases and testing tools have also been continuously improved. Therefore, software testing It is constantly developing towards standardization. [0003] At present, software testing uses different test cases in different test phases. For example, unit test cases are used in the unit test phase. The test cases are used to test various software usage scenarios and situations to ensure the correct and safe operation of t...

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 BAIDU ONLINE NETWORK TECH (BEIJIBG) 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
Eureka Blog
Learn More
PatSnap group products