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

Method for generating component testing use cases based on model

A test case generation and test case technology, applied in software testing/debugging and other directions, can solve the problems of high professional technical requirements, complex implementation, low automation and efficiency of users, and achieve easy understanding and use, and process implementation is simple. Effect

Active Publication Date: 2014-08-20
INSPUR COMMON SOFTWARE
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] (1) Test case generation requires a lot of overhead (personnel, time, etc.), and the degree of automation and efficiency are low;
[0007] (2) Changes in software logic cannot be directly reflected in the update of test case sets, and the cost of "on-demand" maintenance is high;
[0008] (3) Although some generation tools have achieved a certain degree of automation, the implementation is too complicated and requires high professional skills for users
Although many scientists at home and abroad have made great efforts to this end, there is still a long way to go from the relevant research results to the smooth practical application.

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 for generating component testing use cases based on model
  • Method for generating component testing use cases based on model
  • Method for generating component testing use cases based on model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0061] In the model-based component test case generation method of the present invention, the platform-independent data object meta-model is as attached figure 1 As shown, the platform-dependent data object metamodel is attached figure 2 As shown, the conversion process between platform-independent and platform-dependent data objects is shown in the attached image 3 shown. Its specific implementation process includes the following steps:

[0062] Step 1: Based on the created UML diagram, manually create an XML description document that reflects the functional logic of the component:

[0063] When creating an XML document, use XML tags with clear semantics for translation and description according to each workflow in the corresponding UML diagram. Use predefined label elements to correspond to elements in the description model, including start nodes, end nodes, intermediate nodes, branch nodes, loop nodes, convergence nodes, parallel nodes, etc. Label elements can be defi...

test Embodiment P

[0084] (1) If the collection PITestCases is not empty, obtain a platform-independent test case PiTC, and turn to the next step (2); otherwise, the processing is completed;

[0085] (2) Obtain the first data object in PiTC, query the platform-independent to platform-related data object value mapping table PItoPSMapTable created in step 3, and use its corresponding platform-related state data to describe the characteristics (pre-execution state, input data set and expected output data collection) to replace the data object in PiTC,

[0086] (2) The steps can be described in detail as:

[0087] A) Obtain the first data object in PiTC; if there is no data object to be processed, turn to (3);

[0088] B) Query PItoPSMapTable, obtain its normal value set and abnormal value set, record the number of abnormal values ​​NUM, and only record 1 for the number of normal values;

[0089] C) Copy NUM+1 PiTC backups, replace the first data object in NUM backup PiTCs with NUM outlier data re...

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 discloses a method for generating component testing use cases based on a model, and belongs to the technical field of software testing, wherein the method is suitable for generating component units and regression testing use cases based on the design model. The method mainly includes the steps of firstly, describing component function logic and data objects based on the XML; secondly, setting up a mapping table of the data objects from the platform irrelative form to the platform related form; thirdly, completing the process of automatically converting the platform irrelative testing use cases to the platform related testing use cases and generating the use cases based on the mapping table. Compared with the prior art, the method has the advantages that the use cases are generated based on the design model and mapping of the data objects, the capacity for tracking and backtracking the process of generating the use cases as required during software testing is improved, the automation degree in the testing use case generation process is increased, the capacity and efficiency of flexibly responding to the software frequently-changing requirement during software testing are improved, and the method has good application and popularization value.

Description

[0001] technical field [0002] The invention relates to the technical field of software testing, in particular to a model-based component (unit) test case generation method. Background technique [0003] In the past ten years, the scale of software has continued to expand, the complexity of software has continued to increase, and the application development environment and development methods of software have changed, such as component technology being widely used. In the context of this "change", users' requirements for software quality are also increasing. Therefore, as an effective means to improve software quality, software testing technology also needs to adapt and develop continuously. Statistics show that about 40% of software testing expenses are invested in test data, including the generation of test cases and the inspection of test results. In addition, the degree of automation of the test process also has a direct impact on the efficiency of test implementation...

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 INSPUR COMMON SOFTWARE
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