Automated test assembly and method
By setting up multiple bus interfaces and controllers on the test cabinet, automated testing is achieved, and the problem of low manual testing efficiency is solved, testing efficiency and accuracy is improved, and it is suitable for multi-channel testing of complex vehicle-mounted networks.
Patent Information
- Application Number
- CN202411129453.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-26
AI Technical Summary
The prior art has low manual testing efficiency in on-board networks, making it difficult to cope with the large-scale and multi-channel testing needs of complex electronic systems.
An automated test component is designed, including multiple bus input and output interfaces, and the connection of the bus interface is controlled by the controller to realize automated testing. Electronic devices send test cases and instructions, and the test equipment executes and generates results.
Improves testing efficiency, allows flexible multi-task testing and quick switching of test objects, reduces the need for frequent connection changes, reduces the risk of poor contact, and improves signal transmission accuracy and comprehensiveness of test results.
Smart Images

Figure CN119024812A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to an automated testing component and method. Background Art
[0002] With the increasing popularity of smart cars and electric cars, the number of electronic control units in cars has increased dramatically. These electronic control units communicate through various on-board communication buses and work together to complete complex control functions. Before the vehicle leaves the factory, it is necessary to test each electronic control unit in the on-board network and the various communication buses connected to it to ensure that the vehicle is in a normal state. At present, manual testing is usually used to test the on-board network, but this method requires test engineers to execute test cases one by one, which is time-consuming. With the increasing complexity of vehicle electronic systems, manual testing has become difficult to cope with large-scale, multi-channel testing needs. Therefore, it is necessary to provide an automated testing component and method. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide an automated testing component and method to improve the problem of low efficiency of automated testing in the prior art.
[0004] To achieve the above-mentioned purpose and other related purposes, the present invention provides an automated testing component, which includes: an input end of a test cabinet that is a bus input interface of a plurality of different bus categories, each of which has at least one bus input interface, and each bus input interface is connected to a corresponding bus to be tested in a system to be tested; an output end of the test cabinet that is a bus output interface of a plurality of different bus categories, each of which has one bus output interface; an electronic device for sending test cases and test instructions; a controller, which is arranged in the test cabinet and is communicatively connected to the electronic device, and is used to receive the test instructions sent by the electronic device, and select the corresponding bus input interface in the test cabinet to be connected to the bus output interface; a test device, which is connected to the output end of the test cabinet and is communicatively connected to the electronic device, and is used to receive and execute the test cases sent by the electronic device, and generate and send test results.
[0005] In one embodiment of the present invention, the controller includes a control panel and a plurality of switch units electrically connected thereto; the control panel is arranged on the end face of the test cabinet and is communicatively connected to the electronic device; a plurality of switch units are arranged inside the test cabinet and are connected between the input end and the output end of the test cabinet; the control panel controls the switch unit connected to the input interface of the bus to be tested to be connected to the corresponding bus output interface based on the test instruction.
[0006] In one embodiment of the present invention, the electronic device is further used to send a disconnection instruction; and the control panel is further used to disconnect the corresponding switch unit when receiving the control instruction of the electronic device.
[0007] In one embodiment of the present invention, the control panel is further used to save the state of the switch unit corresponding to each test instruction, and disconnect the connected switch unit after receiving the test result.
[0008] In one embodiment of the present invention, the bus input / output interface at least includes a controller area network bus input / output interface, a FlexRay bus input / output interface, a local interconnect network bus input / output interface and an on-board diagnostic bus input / output interface.
[0009] In one embodiment of the present invention, the automated testing component further includes a USB hub, the USB hub is disposed on the testing cabinet, and the electronic device and the testing device are communicatively connected via the USB hub.
[0010] In an embodiment of the present invention, when the test device performs tests of multiple bus types at the same time, the test device also sends the corresponding test results to the electronic device according to the order of the generated test results.
[0011] In one embodiment of the present invention, the controller is also used to send a connection success message to the electronic device after the bus input interface is connected to the bus output interface. After the electronic device receives the connection success message, it sends the test case to the test device through the test cabinet.
[0012] In one embodiment of the present invention, the electronic device is further used to receive the test result sent by the test device and generate a test report.
[0013] In one embodiment of the present invention, an automated testing method is also provided, which uses the automated testing components described in any one of the above items for testing, and the method includes: connecting the bus to be tested to the bus input interface corresponding to the test cabinet; the electronic device selects the corresponding test case and sends it to the test device; the electronic device sends a test instruction to the controller; the controller controls the bus input interface connected to the bus to be tested to be connected to the corresponding bus output interface based on the test instruction, so as to achieve connectivity between the test device and the bus to be tested; the test device tests the bus to be tested according to the test case and generates a test result.
[0014] As described above, an automated testing component and method of the present invention has the following beneficial effects: by setting a bus input interface and output interface of multiple different bus categories on the test cabinet, when a certain bus to be tested needs to be tested, a test instruction is sent to the controller in the test cabinet through an electronic device, and the controller controls the corresponding input interface and output interface to be connected, thereby realizing the reception and transmission of the bus signal to be tested. The electronic device sends the test case to the test equipment, so that the test equipment tests the bus to be tested and generates test results through the connected input and output interfaces according to the content of the test case. By setting a bus input interface of multiple different bus categories on the test cabinet, and each bus category has at least one bus input interface, the test cabinet can test multiple different categories of buses at the same time without frequently changing the connection. This allows testers to perform multi-task testing more flexibly, quickly switch test objects, and improve test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Shows an overall schematic diagram of an automated testing component provided by an embodiment of the present invention;
[0016] Figure 2 Shows a schematic diagram of the structure of a test cabinet provided by an embodiment of the present invention;
[0017] Figure 3 A schematic diagram showing a first end surface of a test cabinet provided by an embodiment of the present invention;
[0018] Figure 4 A schematic diagram showing a second end surface of a test cabinet provided by an embodiment of the present invention;
[0019] Figure 5 Shown is a flow chart of an automated testing method provided by an embodiment of the present invention.
[0020] Component number description:
[0021] 100, test cabinet; 101, bus input interface; 102, bus output interface; 103, control panel; 104, switch unit; 105, first USB interface; 106, second USB interface; 107, USB hub; 108, Ethernet interface; 200, electronic equipment; 300, test equipment; 301, communication interface; 400, system to be tested. DETAILED DESCRIPTION
[0022] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0023] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0024] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0025] The present invention provides an automated test component. By arranging bus input interfaces and output interfaces of multiple bus categories on a test cabinet, when a certain bus to be tested needs to be tested, a test instruction is sent to a controller in the test cabinet through an electronic device, and the controller controls the corresponding input interface and output interface to be connected, thereby realizing the reception and transmission of the bus signal to be tested. The electronic device sends a test case to a test device, so that the test device tests the bus to be tested and generates a test result through the connected input and output interfaces according to the content of the test case. By arranging bus input interfaces of multiple bus categories on the test cabinet, and each bus category has at least one bus input interface, the test cabinet can test multiple different categories of buses at the same time without frequently changing the connection. This allows testers to perform multi-task testing more flexibly, quickly switch test objects, and improve the efficiency of testing.
[0026] See also Figure 1 The automated test assembly includes a test cabinet 100, an electronic device 200, a test device 300 and a controller, wherein:
[0027] See also Figure 1 and Figure 2The input end of the test cabinet 100 is a bus input interface 101 of multiple bus categories, each of which has at least one bus input interface 101. Each bus input interface 101 is connected to the bus to be tested of the corresponding bus category in the system to be tested 400. The output end of the test cabinet 100 is a bus output interface 102 of multiple bus categories, each of which has one bus output interface 102. Specifically, the test cabinet 100 is a box structure, and a bus input interface 101 of multiple bus categories is provided on one end face of the test cabinet 100, and each of which has at least one bus input interface 101. These bus input interfaces 101, as the input end of the test cabinet 100, are directly connected to the bus to be tested of the corresponding bus category in the system to be tested 400. Among them, the system to be tested 400 includes but is not limited to the frame system, the powertrain system, and the body electronic system, etc. Those skilled in the art can make an adaptive selection based on the actual test requirements, which is not limited here. On the other end face of the test cabinet 100, there is an output end, which has bus output interfaces 102 of multiple bus categories corresponding to the input end, and each bus category has one bus output interface 102. After the signal of the bus to be tested enters the test cabinet 100 from the bus input interface 101 of the corresponding category, it is output from the bus output interface 102 of the corresponding category to the test equipment 300 through the relevant regulation of the controller. In this way, the bus signals of different bus categories have clear input and output paths, which avoids interference between signals of different bus categories and improves the accuracy of signal transmission during the test. In addition, since each bus category in the test cabinet 100 has at least one bus input interface 101, compared with the prior art, each bus category has only one bus input interface 101, which greatly reduces the number of repeated plugging and unplugging during the test. This method of the present invention can connect multiple buses to be tested at the same time, avoiding the risk of poor contact caused by frequent plugging and unplugging of the buses to be tested.
[0028] The electronic device 200 is used to send test cases and test instructions. Test software (such as Vector's CANoe software) is installed in the electronic device 200, and the test software is used to generate and manage test cases. In the test case, the required test conditions, steps, expected results and other information are predefined, and the test case is used to verify whether the function of the system to be tested 400 is compliant. The test instruction contains the bus category required for the current test, signal path information, and the bus input interface 101 and bus output interface 102 that need to be connected. Among them, the electronic device 200 includes but is not limited to a personal computer, a PLC controller, a server or an embedded system.
[0029] The controller is arranged in the test cabinet 100 and is connected to the electronic device 200 for communication, and is used to receive the test instructions sent by the electronic device 200, and select the corresponding bus input interface 101 in the test cabinet 100 to be connected to the bus output interface 102. Specifically, an Ethernet interface 108 is provided on the test cabinet 100, and the interface is connected to the electronic device 200 via Ethernet to receive the test cases and test instructions sent by the electronic device 200. The controller is connected to the electronic device 200 via Ethernet via the Ethernet interface 108 of the test cabinet 100, and is used to receive the test instructions from the electronic device 200. The electronic device 200 selects the signal path, executes the specific test cases, etc. through these test instructions to control the test process. Specifically, when the electronic device 200 communicates with the controller, the electronic device 200 sends the test instructions to the controller connected to the Ethernet of the electronic device 200 via the Ethernet interface 108. The controller reads the test instruction, determines the bus category of the current bus to be tested, and selects and connects the corresponding bus input interface 101 and bus output interface 102 in the test cabinet 100 according to the bus category, so that the test signal of the bus to be tested enters the test cabinet 100 from the system to be tested 400 through the bus input interface 101, and is transmitted to the test equipment 300 from the bus output interface 102 of the corresponding bus category. In addition, the electronic device 200 also sends the test case to the Ethernet interface 108 of the test cabinet 100 via Ethernet, and the processor inside the test cabinet 100 converts the test case into a data format suitable for USB transmission, and then sends it to the test equipment 300 through the second USB interface 106, so that the test equipment 300 performs relevant tests and realizes the communication connection between the electronic device 200 and the test equipment 300.
[0030] The test equipment 300 is connected to the output end of the test cabinet 100 and is connected to the electronic device 200 for communication, and is used to receive and execute the test cases sent by the electronic device 200, and generate and send the test results. During the test, the electronic device 200 generates test cases based on specific test requirements, and sends the test cases to the test equipment 300 through the test cabinet 100. After receiving the test cases, the test equipment 300 tests the system to be tested 400 according to the corresponding content. At this time, since the controller has been connected to the corresponding bus input interface 101 and the bus output interface 102, the relevant test signals from the bus to be tested enter the test cabinet 100 through the bus input interface 101 of the corresponding category of the test cabinet 100, and then enter the test equipment 300 through the bus output interface 102 of the same bus category. It can be understood that the end face of the test equipment 300 has a communication interface 301 of the same bus category as the bus output interface 102, and the communication interface 301 is electrically connected to the bus output interface 102 of the corresponding category, and is used to receive these test signals and perform tests. Exemplarily, when the bus output interface 102 of the test cabinet 100 is a controller area network bus output interface, a FlexRay bus output interface, or a local interconnect network bus output interface, the test device 300 is correspondingly provided with the communication interface 301 of the above three bus categories. The types of the test device 300 include, but are not limited to, Vector test equipment, Schwarz test equipment, AVL test equipment, etc. Preferably, in order to improve the reliability and compatibility of the test device 300 and meet complex test requirements, the test device 300 is a Vector test device.
[0031] Furthermore, in one embodiment of the present invention, the electronic device 200 is also used to receive the test results sent by the test device 300 and generate a test report. After the test device 300 executes the test case, it sends the generated test results back to the electronic device 200, and the electronic device 200 analyzes the test results, determines whether the test results meet expectations, and generates a test report. By automatically receiving the test results and generating the report by the electronic device 200, manual intervention is greatly reduced, the efficiency and accuracy of the test are improved, and the test process is made more efficient.
[0032] Furthermore, in order to be compatible with various communication protocols in the automotive electronic system and improve the universality of the test, in one embodiment of the present invention, the bus input / output interface at least includes a controller area network bus input / output interface, a FlexRay bus input / output interface, a local interconnect network bus input / output interface, and an onboard diagnostic bus input / output interface. For example, Figure 2As shown, 24 controller area network (CAN) bus input interfaces, 1 FlexRay bus input interface, 25 local interconnect network (LIN) input interfaces, and 1 on-board diagnostics (OBD) bus input interface are arranged on one end face of the test cabinet 100. By arranging a plurality of bus input interfaces 101 of different bus categories on the test cabinet 100, and at least one bus input interface 101 of each bus category, the test cabinet 100 can be connected to a plurality of systems to be tested 400 at the same time, without frequently changing the connection. The test personnel can perform multi-task testing more flexibly, quickly switch the test object, and improve the efficiency of the test. In addition, this method can perform parallel testing on a plurality of buses to be tested of a plurality of different bus categories at the same time, instead of testing them one by one in turn. Not only the whole test process is accelerated, but also the interaction between different buses can be captured at the same time to ensure the comprehensiveness of the test results.
[0033] In one embodiment of the present invention, the automated test component further includes a USB hub 107, which is disposed on the test cabinet 100, and the electronic device 200 is communicatively connected with the test device 300 through the USB hub 107. Specifically, two independent USB interfaces are disposed on the end face of the test cabinet 100, namely, a first USB interface 105 and a second USB interface 106. The electronic device 200 is communicatively connected with the test cabinet 100 through the first USB interface 105, and the test device 300 is communicatively connected with the test cabinet 100 through the second USB interface 106. The other ends of the first USB interface 105 and the second USB interface 106 are connected through the USB hub 107, thereby realizing the communication between the electronic device 200 and the test device 300. The USB hub 107 concentrates the signals of multiple USB interfaces into one communication channel, and through the hub, the first USB interface 105 and the second USB interface 106 are interconnected, thereby realizing the data transmission and the exchange of control signals between the electronic device 200, the test cabinet 100 and the test device 300. Through the USB interface, data can be transmitted between the electronic device 200, the test cabinet 100 and the test equipment 300 in a high-speed and stable manner. The USB hub 107 also ensures that multiple test equipment 300 can be connected to one electronic device 200 at the same time and exchange data through a unified channel, simplifying the communication architecture.
[0034] In one embodiment of the present invention, when the test device 300 performs tests of multiple different bus categories at the same time, the test device 300 also sends the corresponding test results to the electronic device 200 according to the order of the generated test results. When the electronic device 200 sends test instructions of multiple different bus categories, the controller will connect the bus input interface 101 of the corresponding bus category and the bus output interface 102 of the same category according to these test instructions to ensure that the test signal can be correctly transmitted. After the connection is successful, the electronic device 200 sends the test case to the test cabinet 100 through the Ethernet interface 108, and the test cabinet 100 sends it to the test device 300 through the second USB interface 106. The test device 300 parses the received test case, determines the bus category of the bus to be tested, and performs corresponding tests on multiple buses to be tested at the same time according to the determined category. After the test is completed, the test results are converted into a format suitable for USB transmission, and each test result is sent to the test cabinet 100 through the second USB interface 106 according to the order in which the test results are generated. Multiple test results are transmitted in an orderly manner to avoid confusion between different test results. After receiving the test results, the second USB interface 106 triggers the USB hub 107 to send the test results to the electronic device 200 in sequence through the first USB interface 105 .
[0035] In one embodiment of the present invention, the controller includes a control panel 103 and a plurality of switch units 104 electrically connected thereto, the control panel 103 is arranged on the end face of the test cabinet 100 and is connected to the electronic device 200 in communication, the plurality of switch units 104 are arranged inside the test cabinet 100 and are connected between the input end and the output end of the test cabinet 100, and the control panel 103 controls the switch unit 104 connected to the bus input interface to be tested to be connected to the corresponding bus output interface based on the test instruction. The control panel 103 is installed on the end face of the test cabinet 100 and is connected to the electronic device 200 in communication through the Ethernet interface 108 on the test cabinet 100. The switch unit 104 is installed inside the test cabinet 100, each switch unit 104 corresponds to a bus input interface 101 respectively, and is electrically connected to the corresponding bus input interface 101, the bus output interface 102 and the control panel 103, so that under the control of the control panel 103, the switch unit 104 realizes the conduction or disconnection between the corresponding bus input interface 101 and the bus output interface 102. Wherein, the switch unit 104 includes but is not limited to a relay, a semiconductor switch or a mechanical switch, etc., but in order to realize the connection between the switch unit 104 and the control panel 103, the bus input interface 101, and the bus output interface 102, the switch unit 104 should be a single-pole double-throw switch. Wherein, the control port of the switch unit 104 is connected to the control panel 103 for receiving a control signal, the input port is connected to the bus input interface 101, and the output port is connected to the bus output interface 102. Specifically, during the test, the electronic device 200 sends a test instruction to the control panel 103 through the Ethernet interface 108 on the test cabinet 100, and the control panel 103 receives and parses the test instruction, determines the corresponding bus category and the bus input interface 101 and the bus output interface 102 to be connected, and activates the switch unit 104 corresponding to the interface, thereby establishing the correct circuit connection between the corresponding bus input interface 101 and the bus output interface 102. After the connection is established, the electronic device 200 generates a test case through the test software and sends it to the test equipment 300. The test device 300 parses the test case, and sends the test signal in the test case to the corresponding bus to be tested through the connected circuit, and the bus to be tested executes the test signal and generates a response signal. The response signal is returned to the test cabinet 100 through the bus input interface 101, and is sent to the test device 300 through the connected circuit. The test device 300 receives and processes the response signal, generates a test result, and sends it to the electronic device 200, so that the electronic device 200 generates a test report according to the test result.
[0036] In one embodiment of the present invention, the electronic device 200 is also used to send a disconnection instruction, and the control panel 103 is also used to disconnect the corresponding switch unit 104 when receiving the control instruction of the electronic device 200. After receiving the test result sent by the test device 300 and before sending a new test instruction, the electronic device 200 will send a disconnection instruction to the control panel 103. Alternatively, the electronic device 200 sends a disconnection instruction to the control panel 103 while sending a new test instruction. The control panel 103 parses the disconnection instruction, determines the switch unit 104 that needs to be disconnected, and performs the disconnection operation, thereby ensuring that the old circuit connection is disconnected in time to avoid signal interference between the new and old signals. The corresponding switch unit 104 is activated according to the new instruction to establish a new circuit connection path. In this way, not only can signal interference be effectively avoided, but also hardware resources can be released in time by disconnecting the switch unit 104 that is no longer used, thereby improving test efficiency.
[0037] Further, in order to reduce the dependence on the electronic device 200 and improve the overall response speed, in another embodiment of the present invention, the control panel is also used to save the state of the switch unit 104 corresponding to each test instruction, and disconnect the connected switch unit 104 after receiving the test result. After receiving the new test instruction, the control panel 103 first queries the state of the switch unit 104 corresponding to the previous test instruction from the memory of the control panel 103, so as to determine which switch units 104 were activated in the last test, and whether these activated switch units 104 still need to remain connected in the current test. According to the above analysis, the control panel 103 will disconnect the switch unit 104 that does not need to be connected in the current test, and save the latest state of the switch unit 104 to the memory to ensure that the new test instruction can be executed in an interference-free environment. Exemplarily, if the switch unit 104 required for the current test is different from that in the last test, the control panel 103 will keep the switch unit 104 that needs to be connected unchanged and disconnect the switch unit 104 that is not currently required. In this way, the control panel 103 can quickly determine which switch units 104 need to be operated based on the current state record, which greatly reduces the processing time and improves the test efficiency. In addition, the control panel 103 intelligently disconnects the switch units 104 that are not currently needed and keeps the state of the switch units 104 that are currently needed unchanged, which reduces the frequent switching of the switch units 104 and reduces the wear of the switch units 104.
[0038] In one embodiment of the present invention, the controller is further configured to send a connection success message to the electronic device 200 after connecting the bus input interface 101 to the bus output interface 102. After receiving the connection success message, the electronic device 200 sends the test case to the test device 300 through the test cabinet 100. Through this confirmation feedback, the electronic device 200 can be sure that the signal path has been correctly established, avoiding starting the test when the path is not ready, thereby reducing the risk of test failure or misoperation.
[0039] like Figures 2 to 3 As shown, the test cabinet 100 is a box structure, which can be applied to BHC and other test items. A plurality of functional interfaces are provided on the first end surface thereof to support different test requirements and power supply connection needs. Specifically, Figure 3The structural diagram of the first end face, the leftmost is the power panel, which is used to provide power supply for the test equipment 300. The panel supports 12VDC power input and has a built-in anti-reverse connection design to protect the test equipment 300. When the power supply of the test equipment 300 is connected to the test cabinet 100 through the power interface PWRIN, the indicator light PWR RDY lights up, indicating that the test equipment 300 is successfully connected to the power supply. After pressing the power-on button PWR, the corresponding indicator light (PWR) lights up, indicating that the test equipment 300 is powered on successfully. In addition, the power panel also has a 5A fuse to prevent current overload. The second panel on the left side of the first end face is the bus panel to be tested, in which the CAN bus output interface 102, the LIN bus output interface 102 and the FR bus output interface 102 are respectively connected to the communication interface 301 of the corresponding category of the test equipment 300 to send the signal of the bus to be tested to the test equipment 300. The third panel on the left side of the first end face is a USB panel, which is provided with multiple USB interfaces, and each interface is connected through a USB hub 107. Exemplarily, a USB type-T interface may be included as an input interface (i.e., a first USB interface 105, for connecting to an electronic device 200), and two pairs of USB3.0 interfaces (i.e., a second USB interface 106, for connecting to different test devices 300) as extended output interfaces to support the connection of multiple USB devices. The fourth panel is a routing control and IO panel, on which the CAN.Ctrl panel is used as a control panel 103, which is used to control the corresponding switch unit 104 when the test cabinet 100 is connected to a multi-channel CAN bus to switch and select which CAN bus needs to be tested. It is understandable that, in addition to CAN.Ctrl, the test cabinet 100 may also be provided with LIN.Ctrl (not shown in the figure), FR.Ctrl (not shown in the figure), etc. according to actual needs. The A / DIO panel is used to provide input and output interfaces for analog and digital signals. The fifth panel on the left is an Ethernet panel, which has an Ethernet interface 108ETH and an on-board diagnostic interface OBD, wherein the Ethernet interface 108 is used to connect to the electronic device 200, and the on-board diagnostic interface is used to connect to the system under test 400. The subsequent sixth to eighth panels are routing panels, which respectively manage the signal routing of the CAN bus, FlexRay bus and LIN bus of the system under test 400. The last one is a cascade panel, which is used to realize the cascade connection of multiple cabinets and support signal and power transmission between multiple cabinets, wherein the output signal of the previous test cabinet 100 is input to the current cabinet through EXT.IN and input to the next cabinet through EXT.Out.
[0040] like Figure 2 and Figure 4As shown, the second end face of the test cabinet 100 adopts a stainless steel reinforcement rib design with a length of about 426mm and a height of about 173mm to enhance the structural strength of the panel and provide support for plug-in and pull-out force. In addition, the second end face is also equipped with a 12VDC banana head interface output, which is limited by a 2.0A fuse to ensure safe current transmission. Finally, the OBD interface is used to connect to the vehicle gateway to provide connection support for vehicle diagnostic testing.
[0041] In one embodiment of the present invention, an automated testing method is further provided. The automated testing method uses the aforementioned automated testing component to perform testing. The method includes:
[0042] S1. Connect the bus to be tested to the bus input interface corresponding to the test cabinet;
[0043] S2, the electronic device selects a corresponding test case and sends it to the test device;
[0044] S3, the electronic device sends a test instruction to the controller;
[0045] S4, the controller controls the bus input interface connected to the bus to be tested to communicate with the corresponding bus output interface based on the test instruction, so as to achieve the connection between the test device and the bus to be tested;
[0046] S5. The test device tests the bus to be tested according to the test case and generates a test result.
[0047] See also Figure 1 , after connecting the bus to be tested to the corresponding bus input interface 101, the electronic device 200 obtains the information of the bus to be tested currently connected in the test cabinet 100 through the Ethernet interface 108 of the test cabinet 100, and selects the test case that matches the type of the bus to be tested according to the bus input interface 101 information obtained from the test cabinet 100. Among them, the test case contains specific test steps, signal sequences and expected results, etc., which are suitable for the test requirements of this type of bus. The electronic device 200 sends the test case to the test equipment 300 through the internal communication network of the test cabinet 100 (such as through USB transmission) through the test cabinet 100. In addition, the electronic device 200 also sends the corresponding test instructions to the controller of the test cabinet 100. After the controller receives the test instructions sent by the electronic device 200, it parses the instruction content, determines the bus input interface 101 and output interface that need to be connected, and activates the corresponding switch unit 104 to make the input interface and the output interface conductive. After the test equipment 300 receives the test case and confirms that the signal path is established, it starts to execute the instructions in the test case, tests the bus to be tested and generates test results.
[0048] Each step in the above automated testing method can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above steps can be embedded in or independent of a processor in a computer device in a hardware format, or can be stored in a memory in a computer device in a software format, so that the processor can call the operations corresponding to each of the above modules.
[0049] It should be noted that, in order to highlight the innovative part of the present invention, steps that are not closely related to solving the technical problem proposed by the present invention are not introduced in this embodiment, but this does not mean that there are no other steps in this embodiment.
[0050] In summary, the present invention discloses an automated test component and method. By setting a bus input interface and output interface of multiple bus categories on the test cabinet, when a certain bus to be tested needs to be tested, the electronic device sends a test instruction to the controller in the test cabinet, and the controller controls the corresponding input interface and output interface to be connected, thereby realizing the reception and transmission of the bus signal to be tested. The electronic device sends the test case to the test equipment, so that the test equipment tests the bus to be tested and generates a test result through the connected input and output interfaces according to the content of the test case. By setting a bus input interface of multiple bus categories on the test cabinet, and each bus category has at least one bus input interface, the test cabinet can test multiple different categories of buses at the same time without frequently changing the connection. It allows testers to perform multi-task testing more flexibly, quickly switch test objects, and improve the efficiency of testing. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0051] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An automated testing component, characterized in that: The components include: The input end of the test cabinet is a bus input interface of multiple bus types, each bus input interface has at least one, and each bus input interface is connected to the corresponding bus to be tested in the system to be tested. The output end of the test cabinet is a bus output interface of multiple bus types, each bus output interface has one; Electronic equipment for sending test cases and test instructions; A controller, arranged in the test cabinet and connected to the electronic device for receiving a test instruction sent by the electronic device and selecting a corresponding bus input interface and a bus output interface in the test cabinet for connection; The test equipment is connected to the output end of the test cabinet and is in communication connection with the electronic device, and is used to receive and execute the test cases sent by the electronic device, and generate and send the test results.
2. The automated testing component according to claim 1, characterized in that: The controller includes a control panel and a plurality of switch units electrically connected thereto; The control panel is arranged on the end surface of the test cabinet and is communicatively connected with the electronic equipment; A plurality of switch units are arranged inside the test cabinet and connected between an input end and an output end of the test cabinet; The control panel controls the switch unit connected to the input interface of the bus to be tested to connect with the corresponding bus output interface based on the test instruction.
3. The automated testing component according to claim 2, characterized in that: The electronic device is also used to send a disconnection instruction; The control panel is also used to disconnect the corresponding switch unit when receiving a control instruction from the electronic device.
4. The automated testing component according to claim 2, characterized in that: The control panel is also used to save the state of the switch unit corresponding to each test instruction, and disconnect the connected switch unit after receiving the test result.
5. The automated testing component according to claim 1, characterized in that: The bus input / output interface at least includes a controller area network bus input / output interface, a FlexRay bus input / output interface, a local interconnect network bus input / output interface and an on-board diagnostic bus input / output interface.
6. The automated testing component according to claim 1, characterized in that: The automated testing component further comprises a USB hub, which is arranged on the testing cabinet, and the electronic device is communicatively connected with the testing device via the USB hub.
7. The automated testing component according to claim 1, characterized in that: When the test device performs tests of multiple bus types at the same time, the test device also sends the corresponding test results to the electronic device according to the order of the generated test results.
8. The automated testing component according to claim 1, characterized in that: The controller is also used to send a connection success message to the electronic device after the bus input interface is connected to the bus output interface. After the electronic device receives the connection success message, it sends the test case to the test device through the test cabinet.
9. The automated testing component according to claim 1, characterized in that: The electronic device is also used to receive the test result sent by the test device and generate a test report.
10. An automated testing method, characterized in that: The test method uses the automated test component according to any one of claims 1 to 9 for testing, and the method comprises: Connect the bus to be tested to the corresponding bus input interface of the test cabinet; The electronic device selects a corresponding test case and sends it to the test device; The electronic device sends a test instruction to the controller; The controller controls the bus input interface connected to the bus to be tested to communicate with the corresponding bus output interface based on the test instruction, so as to achieve the connection between the test device and the bus to be tested; The testing device tests the bus to be tested according to the test case and generates a test result.
