Software test system, method and apparatus
A software testing and functional testing technology, applied in the direction of software testing/debugging, can solve the problems of low testing efficiency, inability to combine system software and system software, etc., to achieve the effect of improving the efficiency of debugging
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] A software testing system is provided in this embodiment, such as figure 1 As shown, it includes a switch 1 and a controller 2, one end of the switch 1 is connected to the power supply 4 through a pull-up resistor 3, and the other end of the switch 1 is connected to an input end of the controller 2, so The controller 2 is used to monitor and obtain the switching value of the switch 1, the controller 2 judges whether the switching value meets the bottom layer software test threshold or the system software test threshold, and executes the corresponding bottom layer software test or System software testing.
[0037] In this embodiment, the bottom layer software test threshold is a switch value of low level, and the system software test threshold is a switch value of high level. Its corresponding software test method, combined with the toggle switch 1 on the hardware, can switch between the bottom software test and the system software test at will through the combination o...
Embodiment 2
[0040] The present invention provides a kind of software testing method, can be used in the controller (CPU) of the software testing system in embodiment 1, comprise two sets of codes in this controller (CPU), one set is the underlying code, when the switch is opened The one that runs is the underlying code; the other is the system code, which runs when the switch is closed. It is defined when the software in the controller is initialized. When the switch value is set low (0), select the underlying software test and the corresponding test CANID for testing; when the switch value is set high (1), select the system software test and Official CANID is tested. Through the flexible switching software, it is convenient to find errors and problems, such as errors in some registers of the hardware and so on.
[0041] The software testing method in the present embodiment, flow chart such as figure 2 shown, including the following steps:
[0042] S1. Monitor and obtain the switching...
Embodiment 3
[0083] This embodiment provides a software testing device, the structural block diagram is as follows Figure 5 shown, including:
[0084] The monitoring acquisition unit 01 monitors and acquires the switching value of the switch;
[0085] The first judging unit 02 judges whether the switch quantity satisfies the bottom layer software test threshold, and if so, executes the bottom layer software test unit, and the bottom layer software test unit includes at least an IO function test subunit and a first CAN communication function test subunit ;
[0086] The second judging unit 03 judges whether the switching quantity satisfies the system software test threshold, and if so, executes the system software test unit, and the system software test unit includes at least a vehicle test subunit and a second CAN communication function test subunit .
[0087] Wherein, the underlying software test unit also includes a clock function test subunit, a watchdog function test subunit, a diag...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 