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

A method for automatic testing for test models based on functional block diagrams

A function block diagram and test model technology, applied in software testing/debugging, etc., can solve problems such as the inability to clearly express the causal diagram model, the inability to extract boundaries in causal diagram modeling, and the inability to generate automated test scripts, etc., so as to improve the level of writing Efficiency, high test efficiency, and the effect of improving quality

Active Publication Date: 2017-11-03
ZHUZHOU CSR TIMES ELECTRIC CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The test method based on causal diagram modeling is highly logical, expressing requirements clearly and easily, and it not only considers the logical combination between inputs, but also considers the constraint relationship between inputs, and can avoid input through constraint relationships. Combination explosion reduces the number of test cases, but the test method based on the causal diagram model has the following disadvantages: (1), the test method based on the causal diagram model is not sensitive to the timing relationship, when the requirement involves timing (delay, pulse) relationship When , the causal graphical model cannot express clearly
(2) The test based on the causal diagram model is not sensitive to the boundary. When there is a comparison logic (greater than, equal to, greater than or equal to, less than, less than or equal to), the causal diagram modeling cannot extract the corresponding boundary, and the boundary can only be extracted manually
(3) The test method based on the causal diagram model is not sensitive to the operation logic. When there are operation logics (addition, subtraction, multiplication, division, modulo, and remainder), the causality diagram model cannot identify these operation logics, and cannot Unable to test decomposition of operation logic
(4) The test method based on the causal diagram model cannot identify the transition relationship between the state of the software and the state, so it can only generate test cases, but cannot generate executable automated test scripts

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
  • A method for automatic testing for test models based on functional block diagrams
  • A method for automatic testing for test models based on functional block diagrams
  • A method for automatic testing for test models based on functional block diagrams

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Such as Figure 5 As shown, the steps of the method for automatically generating test cases based on the function block diagram test model in this embodiment include:

[0051] 1) Extract the input and output, logical relationship and constraint relationship in the requirement specification of the embedded software, and establish a function block diagram test model based on the class function block diagram language according to the input output, logic relationship and constraint relationship in the requirement specification of the software;

[0052] 2) Establish conversion rules for converting the function block diagram test model into a data combination table;

[0053] 3) Extract the basic data from the function block diagram test model, and then perform data derivation on the basis of the basic data according to the conversion rules, so as to convert the function block diagram test model into a data combination table;

[0054] 4) Generate test cases according to the d...

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 automatically generating test cases based on a function block diagram test model. The steps include: extracting input and output, logical relations and constraint relations in the requirement specification of embedded software, and according to the input and output in the requirement specification of the software , logical relationship and constraint relationship establish a function block diagram test model based on a function block diagram language; establish conversion rules for converting the function block diagram test model into a data combination table; extract basic data from the function block diagram test model, and then Data derivation is performed on the basis of the basic data according to the conversion rules, thereby converting the function block diagram test model into a data combination table; and generating test cases according to the data combination table. The invention has the advantages of high testing efficiency, good quality of test cases, sensitive to timing relationship, sensitive to boundary, sensitive to operation logic, and capable of identifying the state of software and the transfer relationship between states.

Description

technical field [0001] The invention relates to a software testing technology for embedded software development, in particular to a method for automatically generating test cases based on a function block diagram test model. Background technique [0002] Software testing is an important guarantee of software quality. In the field of software testing, the writing of test cases and test scripts has always been an important task of software testing. The quality of test cases and test scripts has an Significant impact, for the same requirements, the quality of test cases and test scripts written by testers of different levels varies greatly, and manual writing of test cases and test scripts is a lot of work and low efficiency. [0003] Model based testing (Model based testing, referred to as MBT) belongs to a testing method in the field of software testing, which automatically generates test cases and test codes by establishing test scenarios or test models (hereinafter referred...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 李宁费巧玲蒋明睿刘鹏翔贺晓梅王朵陈明奎
Owner ZHUZHOU CSR TIMES ELECTRIC 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