Unlock instant, AI-driven research and patent intelligence for your innovation.

Division method and test method of testable function in test unit

A test function and test unit technology, which is applied in software test/debugging, error detection/correction, electrical digital data processing, etc., can solve the problems of large number of units, aggravated test workload, low test efficiency, etc., to improve testability performance, improving reusability issues, and ensuring integrity and reliability

Active Publication Date: 2022-03-22
HUIZHOU DESAY SV AUTOMOTIVE
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) The number of units of the module is huge, and the testability of the test unit is low, resulting in low test efficiency;
[0004] (2) The unit test case of the module has low reusability, and continuous modification increases the test workload;

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
  • Division method and test method of testable function in test unit
  • Division method and test method of testable function in test unit
  • Division method and test method of testable function in test unit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] The method for dividing testable functions in a test unit provided by this embodiment is used to test the functions in the test unit. Generally, in the prior art, it only tests some specific functions, and the test is not complete. The system There may be potential bugs. When the stability requirements are high, all functions in the test unit will be tested, and the number of test cases in this test method will greatly increase, and the test efficiency is low and the workload is heavy. The division method provided in this embodiment is to divide the functions in the test unit through specific logic, and test the divided small units, which can not only ensure the coverage of the test function, but also greatly reduce the number of test cases. The number, so as to obtain a higher test efficiency.

[0037] Specifically, for the convenience of description, the test unit mentioned in this embodiment refers to the tested software code module, which includes several reentrant...

Embodiment 2

[0049] On the basis of Embodiment 1, this embodiment also provides a function testing method, including the following steps:

[0050] A10, utilize the division method of embodiment 1 to divide the testable function in the test unit;

[0051] A20, establish a test case queue corresponding to the function in the test queue;

[0052] A30. Execute the test cases according to the order of the test queue.

[0053] Wherein in testing process, also comprise monitoring step, described monitoring step comprises following sub-step:

[0054] A41. Monitor whether all testable functions in the test unit have changed, and if so, execute step A42;

[0055] A42. Determine whether the function interface corresponding to the change function is a key function interface, if so, return to step A10, otherwise ignore.

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 present invention relates to a method for dividing testable functions in a test unit, comprising the following steps: S10, obtaining the function call relationship of the test object; S20, dividing the priority according to the reentrancy among the functions to be tested; S30, according to the function logic Divide all reentrant functions into multiple reentrant small units, and each reentrant small unit has a unique key function interface; S40, divide the reentrant small units and non-reentrant functions into Build the test queue and complete the division. At the same time, a test method is also provided based on the above division method. The beneficial effects of the present invention include: under the condition that the input condition of the key function interface is guaranteed to be constant, when the reentrant small unit has a change in the internal function, the reentrant The reentrant small unit test case does not need to be modified, which greatly improves the reusability of the reentrant small unit test case. The integrity and reliability of the unit test are guaranteed in the specific unit test.

Description

technical field [0001] The invention relates to the field of application function testing, in particular to a method for dividing testable functions in a test unit and a testing method. Background technique [0002] With the rapid development of software, the complexity of software is also increasing. As an important means to ensure the reliability of software code, unit testing has been paid more and more attention and popularity. In the work of unit testing, if each function in the software module is unit tested separately, a large number of units to be tested will inevitably be generated, and when any function interface is modified, it is necessary to rewrite the corresponding Test cases, the work of unit testing will be very heavy. Therefore, in the prior art, for complex program modules, unit testing has the following disadvantages: [0003] (1) The number of units of the module is huge, and the testability of the test unit is low, resulting in low test efficiency; ...

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
CPCG06F11/3688G06F11/3692
Inventor 方加强胡嘉维温耀军
Owner HUIZHOU DESAY SV AUTOMOTIVE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More