Method and device for generating test cases
A test case generation and test case technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as large randomness, low efficiency, and reduced adequacy of Simulink model testing, achieving short time and improving Effects of generating efficiency and improving adequacy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] In this embodiment, a test case generation method is provided, please refer to figure 1 , can include the following steps:
[0048] Step S11: Obtain each breakpoint sequence of the lookup table in the Simulink model under test.
[0049] The breakpoint sequence is used to describe the index of the lookup table, and the elements in the breakpoint sequence divide the interpolation input set into a plurality of sub-data regions.
[0050] In this embodiment, the interpolation input set is a set of input values of the above lookup table. Wherein, the input value of the lookup table is used as an index value of the data in the lookup table, that is, the data in the lookup table corresponding to the input value can be determined according to the input value of the lookup table.
[0051] It should be noted that the elements in the breakpoint sequence are one or several input values in the interpolation input set.
[0052] In this embodiment, the number of breakpoint seque...
Embodiment 2
[0086] In this embodiment, corresponding to the above method embodiments, a device for generating test cases is provided, please refer to Figure 6 , the test case generation device includes: an acquisition unit 51 , a first generation unit 52 and a second generation unit 53 .
[0087] Acquisition unit 51 is used to obtain each breakpoint sequence of the look-up table in the tested Simulink model, and the breakpoint sequence is used to describe the index of the look-up table, and the elements in the breakpoint sequence divide the interpolation input set into a plurality of subsections data area.
[0088] The first generating unit 52 is configured to generate an intermediate sequence corresponding to each of the breakpoint sequences, and the intermediate sequence is composed of representative values of each of the sub-data regions.
[0089] The second generation unit 53 is configured to generate a lookup table test case according to each of the intermediate sequences.
[00...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com