Model-in-loop test method and device

A test method and test device technology, applied in software test/debugging, error detection/correction, instruments, etc., can solve the problems of inconvenient test execution traceability, maintenance and modification, rigid editing of test cases, etc., to achieve convenient traceability and satisfaction Functional Requirements and Effects of Coverage

Pending Publication Date: 2019-08-06
CH AUTO TECH CORP CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the following two methods are usually used to design test cases: one is to use the components of the Matrix Laboratory (Matlab) to generate test cases, but this method can only verify the rationality of the logic from the coverage The other is to design test cases according to functional requirements, for example, write a large number of test cases in Excel, and then import them into the test input module (Signal Builder), but if the test cases are not satisfied during the import process When the import format is required, the test input module cannot successfully load the test case, so it is necessary to only follow the fixed format when writing the test case. For example, only edit the test case in Excel to include the test time and test input. If there are more One attribute information (such as: expected output), then it does not meet the test case import format requirements, so this method makes editing test cases too rigid, which is not convenient for traceability, maintenance and modification of test execution

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
  • Model-in-loop test method and device
  • Model-in-loop test method and device
  • Model-in-loop test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0057] Embodiments of the present invention provide a model-in-the-loop testing method, such as figure 1 As shown, the method optimizes the method of importing test case data to the test model during the model-in-the-loop test process, and this embodiment of the present invention provides the following specific steps:

[0058] 101. Acquire test case data from the test case template.

[0059] Among them, the test case data includes one or more ...

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 model-in-the-loop test method and device, and relates to the technical field of embedded system testing. The method for importing the test case data into the test model is optimized; meanwhile, attribute information of the imported test case data can be flexibly increased according to test requirements during importing, the designed test case can meet the function requirement and the coverage degree, and testers can perform traceability, maintenance and alteration easily; according to the main technical scheme, the method comprises: obtaining test case data from a test case template, wherein the test case data comprise at least one set of test cases, each set of test cases corresponds to one function requirement, and the test cases comprise a plurality of piecesof attribute information; generating a test input module corresponding to the test case data by calling a preset script, wherein the test input module is loaded with the test case data; and calling the test input module, executing the test case data loaded in the test input module, and outputting a test report. The method and device are applied to the optimization model in-loop test.

Description

technical field [0001] The invention relates to the technical field of embedded system testing, in particular to a model-in-the-loop testing method and device. Background technique [0002] Model-in-the-Loop (MIL) testing is a test and verification method in the development and design process using Model-based (MBD), which is aimed at testing from model to requirements. MIL testing is usually used to verify the implementation of functions and ensure that the model can accurately and completely capture the requirements. It is a common method for engineers to verify algorithms. [0003] When conducting MIL testing, the first critical step is the design of test cases. At present, the following two methods are usually used to design test cases: one is to use the components that come with the Matrix Laboratory (Matlab) to generate test cases, but this method can only verify the rationality of the logic in terms of coverage The other is to design test cases according to function...

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
CPCG06F11/3684
Inventor 王克坚郭清锋
Owner CH AUTO TECH CORP 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
Try Eureka
PatSnap group products