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

Generation method and apparatus for test case, and electronic equipment

A test case generation and use case technology, applied in software testing/debugging, error detection/correction, electrical digital data processing, etc., can solve the problems of low efficiency of manual construction, achieve rapid construction and improve efficiency

Active Publication Date: 2017-04-26
ALIBABA (CHINA) CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the prior art, when the software function to be tested is tested, it is often necessary to construct a test case according to the incoming parameters input by the tester and other data (such as a database) stored in advance. High requirements, and the efficiency of artificial construction is also very 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
  • Generation method and apparatus for test case, and electronic equipment
  • Generation method and apparatus for test case, and electronic equipment
  • Generation method and apparatus for test case, and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0068] Use case 1: adminName="zhangsan" (traverse discrete values) - b.1 (valid use case)

example 2

[0069] Use case 2: adminName="lisi" (traverse discrete values) - b.2 (valid use case)

[0070] Use case 3: adminName=null (basic string verification) - b.3 (invalid use case)

[0071] Use case 4: adminName="" (basic string verification) - b.4 (invalid use case)

example 5

[0072] Use case 5: adminName="qf5tk" (not in the discrete range) - b.5 (invalid use case)

[0073] Meta attribute: Date birthday=["1990-01-01 00:00:00"-${now}], with the following empirical rules:

[0074] Use case 1: birthday="1998-07-15 20:23:00" (random number within the range) - c.1 (valid use case)

[0075] Use case 2: birthday="1990-01-01 00:00:00" (boundary value) - c.2 (valid use case)

[0076] Use case 3: birthday="${now}" (boundary value) - c.3 (valid use case)

[0077] Use case 4: birthday="${now}+60" (the next minute of the boundary value) - c.4 (invalid use case)

[0078] Use case 5: birthday="1989-12-30 23:59:00" (last minute of boundary value) - c.5 (invalid use case)

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

Embodiments of the invention provide a generation method and apparatus for a test case, and electronic equipment. The generation method comprises the steps of decomposing a composite attribute to obtain a composite attribute set; traversing the composite attribute set to screen out a public composite attribute set and a personalized composite attribute set, and generating a public composite attribute use case set by the public composite attribute set; decomposing the personalized composite attribute set to obtain an element attribute set; decomposing element attributes in the element attribute set to obtain an element attribute empirical rule set; and generating a personalized composite attribute use case set according to the element attribute empirical rule set. By adoption of the embodiments, the electronic equipment can automatically generate the test case according to an input passing parameter transfer composite attribute and a pre-stored depending composite attribute by combination with the empirical rule in a test process, the test case can be configured rapidly, and the test case configuration efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a test case generation method, device and electronic equipment. Background technique [0002] In the prior art, when the software function to be tested is tested, it is often necessary to construct a test case according to the incoming parameters input by the tester and other data (such as a database) stored in advance. High requirements, while the efficiency of artificial construction is also very low. Contents of the invention [0003] In view of this, the purpose of the embodiments of the present invention is to provide a test case generation method, the method comprising: [0004] Decomposing the combination attribute to obtain a combination attribute set, wherein the combination attribute includes the input parameter passing combination attribute and the pre-stored dependency combination attribute; [0005] Traversing the combined attribute set to filter out a p...

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
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 方圆
Owner ALIBABA (CHINA) CO LTD
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