CN116016268A - TBOX automatic test method and device, electronic equipment and storage medium - Google Patents

TBOX automatic test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116016268A
CN116016268A CN202211530127.5A CN202211530127A CN116016268A CN 116016268 A CN116016268 A CN 116016268A CN 202211530127 A CN202211530127 A CN 202211530127A CN 116016268 A CN116016268 A CN 116016268A
Authority
CN
China
Prior art keywords
test
target
tbox
instruction information
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211530127.5A
Other languages
Chinese (zh)
Inventor
张雷
肖天琪
熊超
钱亚容
申广俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Commercial Vehicle Co Ltd
Original Assignee
Dongfeng Commercial Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Commercial Vehicle Co Ltd filed Critical Dongfeng Commercial Vehicle Co Ltd
Priority to CN202211530127.5A priority Critical patent/CN116016268A/en
Publication of CN116016268A publication Critical patent/CN116016268A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The application relates to a TBOX automatic test method, a TBOX automatic test device, electronic equipment and a storage medium, and relates to the technical field of vehicle-mounted terminal test, wherein the method comprises the following steps: the automatic test platform obtains instruction information which can be identified by a target TBOX corresponding to the target test operation instruction based on the target test operation instruction; acquiring a test script based on the instruction information; and automatically testing the target TBOX based on the test script to obtain an automatic test result. The automatic test platform simulates instruction information which can be identified by a target TBOX corresponding to an actual test operation instruction according to the actual test operation instruction, and acquires a test script based on the instruction information; when an automatic test start button on the automatic test platform is triggered, the target TBOX is automatically tested based on the test script, so that the manual test step of a tester is skipped, and the test efficiency of the target TBOX is improved.

Description

TBOX automatic test method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of vehicle-mounted terminal testing, in particular to a TBOX automatic testing method, a TBOX automatic testing device, electronic equipment and a storage medium.
Background
TBOX (Telematics-BOX), abbreviated as vehicle-mounted T-BOX, is part of a vehicle networking system; the car networking system comprises a host, a car-mounted T-BOX, a mobile phone intelligent terminal and a background system. The vehicle-mounted T-BOX is mainly used for communicating with a background system/mobile phone APP, and vehicle information display and control of the mobile phone APP are achieved.
In the existing TBOX test technology, the current scheme mainly builds a corresponding test bench based on the topological structure of an actual target vehicle, a tester uses a CAN upper machine tool to send CAN bus data, manually operates an instrument, a power supply and the like to realize relevant test logic, and receives the returned CAN bus data based on upper computer software to judge results.
Since each T-BOX test step by the tester is manually performed by the tester on the operation table. Therefore, the proficiency of the testers is high, a certain upper threshold is provided, each execution result is required to be judged by the testers, and the testers need to judge whether the related CAN message is normal or not based on use cases; each TBOX version iteration requires a regression test of the full use case, and has a large workload, so that the manual test efficiency of the T-BOX is low.
Therefore, how to improve the test efficiency of the T-BOX is a technical problem that needs to be solved at present.
Disclosure of Invention
The application provides a TBOX automatic test method, a TBOX automatic test device, electronic equipment and a storage medium, and the test efficiency of a T-BOX is improved.
To achieve the above object, the present application provides the following aspects.
In a first aspect, the present application provides a TBOX automated test method comprising the steps of:
acquiring instruction information which can be identified by a target TBOX corresponding to a target test operation instruction based on the target test operation instruction;
acquiring a test script based on the instruction information;
and carrying out automatic test on the target TBOX based on the test script to obtain an automatic test result.
Further, the target operation instruction comprises a message sending operation instruction; the method for acquiring the instruction information which can be identified by the target TBOX and corresponds to the target test operation instruction based on the target test operation instruction comprises the following steps:
based on the message sending test instruction, the database of Python is utilized to configure the first test instruction information which can be identified by the target TBOX.
Further, the target test operation instruction comprises an instrument control operation instruction; the method for acquiring the first operation instruction which can be identified by the target TBOX and corresponds to the target test operation instruction based on the target test operation instruction comprises the following steps:
and based on the actual meter control operation instruction, configuring second test instruction information corresponding to the actual meter control operation by using an analog relay.
Further, the target test operation instruction includes a power control operation instruction; the method for acquiring the instruction information which can be identified by the target TBOX and corresponds to the target test operation instruction based on the target test operation instruction comprises the following steps:
and based on the power supply control operation instruction, configuring voltage output third test instruction information of the analog power supply by utilizing an SCPI communication protocol serial port.
Further, the step of obtaining the test script based on the instruction information includes the following steps:
based on the first test instruction information, a test mode corresponding to the test message is obtained; the test modes include a development test mode, an experimental test mode, and an after-market test mode.
The automatic test is carried out on the target TBOX based on the test script, and the method comprises the following steps before an automatic test result is obtained:
based on different test modes, test logic corresponding to the test modes is acquired.
Further, the step of obtaining the test script based on the instruction information includes the following steps:
acquiring operation test data of a target vehicle where the target TBOX is located based on the second test instruction information;
acquiring a test environment power supply voltage for the target TBOX based on the third test instruction information;
and generating a test script based on the test mode, the operation test data and the test environment power supply voltage.
Further, the automatic test is performed on the target TBOX based on the test script to obtain an automatic test result, and the method further comprises the following steps:
based on the test logic, the target TBOX is tested with operational test data and the test environment supply voltage.
In a second aspect, the present application provides a TBOX automated test apparatus, the apparatus comprising:
the instruction information acquisition module is used for acquiring instruction information which can be identified by a target TBOX corresponding to a target test operation instruction based on the target test operation instruction;
the test script acquisition module is used for acquiring a test script based on the instruction information;
and the test module is used for automatically testing the target TBOX based on the test script to acquire an automatic test result.
Further, the instruction information acquisition module is further configured to:
based on the message sending test instruction, the database of Python is utilized to configure the first test instruction information which can be identified by the target TBOX.
Further, the instruction information acquisition module is further configured to:
and based on the actual meter control operation instruction, configuring second test instruction information corresponding to the actual meter control operation by using an analog relay.
Further, the instruction information acquisition module is further configured to:
and based on the power supply control operation instruction, configuring voltage output third test instruction information of the analog power supply by utilizing an SCPI communication protocol serial port.
Further, the test script acquisition module is further configured to:
based on the first test instruction information, a test mode corresponding to the test message is obtained; the test modes comprise a development test mode, an experimental test mode and an after-sales test mode;
the test module is also used for:
based on different test modes, test logic corresponding to the test modes is acquired.
Further, the test script acquisition module further includes:
the test data acquisition sub-module is used for acquiring operation test data of the target vehicle where the target TBOX is located based on the second test instruction information;
the voltage acquisition sub-module is used for acquiring a test environment power supply voltage for the target TBOX based on the third test instruction information;
and the script generation sub-module is used for generating a test script based on the test mode, the operation test data and the test environment power supply voltage.
Further, the test module is further configured to:
the TBOX is tested with the operating test data and the test environment supply voltage based on the test logic.
The beneficial effects that technical scheme that this application provided brought include:
the automatic test platform obtains instruction information which can be identified by a target TBOX corresponding to the target test operation instruction based on the target test operation instruction; acquiring a test script based on the instruction information; and automatically testing the target TBOX based on the test script to obtain an automatic test result. The automatic test platform simulates instruction information which can be identified by a target TBOX corresponding to an actual test operation instruction according to the actual test operation instruction, and acquires a test script based on the instruction information; when an automatic test start button on the automatic test platform is triggered, the target TBOX is automatically tested based on the test script, so that the manual test step of a tester is skipped, and the test efficiency of the target TBOX is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of steps of a TBOX automated test method provided in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a TBOX automatic test method, a TBOX automatic test device, electronic equipment and a storage medium, and the test efficiency of a target TBOX is improved.
In order to achieve the technical effects, the general idea of the application is as follows:
referring to fig. 1, a method for automated TBOX testing, the method comprising the steps of:
s1, acquiring instruction information which can be identified by a target TBOX corresponding to a target test operation instruction based on the target test operation instruction;
s2, acquiring a test script based on the instruction information;
and S3, automatically testing the target TBOX based on the test script to obtain an automatic test result.
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application provides a TBOX automated test method, including the steps of:
s1, acquiring instruction information which corresponds to a target test operation instruction and can be identified by a target TBOX based on the target test operation instruction;
it should be noted that the target TBOX runs in a topology network structure of the target actual vehicle, where the topology network structure includes upper computer software, a display instrument, a whole vehicle controller, and a vehicle network cloud database. The TBOX mainly plays a gateway role of a target actual vehicle and plays a role of a network portal of a whole vehicle topology to interact with the outside; the display instrument is used for displaying the running data of the target actual vehicle; the whole vehicle controller is logically implemented based on instructions sent by the upper computer software, and then data generated by the logic implementation are returned to the upper computer software.
In addition, in the process of the whole installation of the target vehicle, in order to ensure that all functions of the target TBOX are normal before loading, the target TBOX needs to be tested. The testing method is to build a corresponding testing rack based on the topological structure of the target actual target vehicle, wherein the testing rack comprises upper computer software, a power supply, a tested target TBOX, a man-machine interaction borrowing interface of a simulated vehicle end, a vehicle controller and the like; the testing process comprises the following steps: the upper computer software simulates a mobile phone mobile terminal to send an instruction to a target TBOX, after the target TBOX receives the instruction, the target TBOX analyzes service logic in the instruction, and then sends the service logic to a whole vehicle controller of a target vehicle, the whole vehicle controller realizes the service logic, and the obtained target vehicle data is returned to the mobile phone terminal.
Because the testers need to manually operate various testing steps in the test network topology structure, for example, the testers need to manually operate the upper computer software to send instructions to the target TBOX, manually adjust the output voltage and the output current of the power supply, and the like, and the manual operation has high dependence on the testers, the manual test operation can cause lower test efficiency and accuracy.
The target test operation instruction refers to an instruction generated by manually triggering an operation button of each test device in the test network topology structure, and the instruction CAN be transmitted to a target TBOX to be tested through a CAN bus connected with each test device.
The programmable analog device belongs to an analog integrated circuit, and as with the programmable logic device, the internal connection and element parameters of the programmable analog device can be changed by a user through field programming and configuration so as to obtain the required circuit function. Meanwhile, the device can be matched with a corresponding development tool, and the design and the use of the device can be as convenient, flexible and rapid as those of a programmable logic device.
In order to reduce the dependence on testers in the TBOX test process, an automatic test platform is compiled by using a Python programming language and a Python database, each test device is simulated on the automatic test platform by using a programmable simulator, and meanwhile, the simulated programmable software of each type is used for sending instruction information which corresponds to a target test operation instruction and can be identified by the target TBOX.
S2, acquiring a test script based on instruction information;
where a test script generally refers to a series of instructions for a particular test that can be executed by an automated test tool. In order to improve maintainability and reusability of test scripts, the test scripts must be built prior to execution.
The automated test platform can send test instructions based on the messages, and the first test instruction information which can be identified by the target TBOX is configured by utilizing a database of Python; configuring second test instruction information corresponding to the actual meter control operation using the analog relay based on the actual meter control operation instruction; based on the power control operation instruction, the SCPI communication protocol serial port is utilized to configure the voltage output third test instruction information of the analog power supply. The automatic test platform analyzes the parameter index information sent by each test device from the first test instruction information, the second test instruction information and the third test instruction information, and then generates a test script based on the parameter index information.
Specifically, the automatic test platform acquires a test mode corresponding to a message sending test instruction based on first test instruction information, and acquires test logic corresponding to the test mode based on different test modes; acquiring a test environment power supply voltage for the target TBOX based on the third test instruction information; a test script is generated based on the test mode, the operational test data, and the test environment supply voltage.
And S3, automatically testing the target TBOX based on the test script to obtain an automatic test result.
Specifically, the automated test platform tests the target TBOX based on test logic by using operation test data and test environment power supply voltage to obtain an automated test result of the target TBOX.
The automatic test platform obtains instruction information which can be identified by a target TBOX corresponding to the target test operation instruction based on the target test operation instruction; based on the instruction information, a test script is acquired, and based on the test script, an automatic test is performed on the target TBOX, and an automatic test result is acquired. The automatic test platform simulates instruction information which can be identified by a target TBOX corresponding to an actual test operation instruction according to the actual test operation instruction, and acquires a test script based on the instruction information; when an automatic test start button on the automatic test platform is triggered, the target TBOX is automatically tested based on the test script, so that the manual test step of a tester is skipped, and the test efficiency of the target TBOX is improved.
In an embodiment of the application, the step S1 includes the following steps:
s101, sending a test instruction based on a message, and configuring first test instruction information which can be identified by a target TBOX by utilizing a database of Python;
s102, based on an actual instrument control operation instruction, configuring second test instruction information corresponding to the actual instrument control operation by using an analog relay;
s103, based on the power supply control operation instruction, the SCPI communication protocol serial port is utilized to configure the voltage output third test instruction information of the analog power supply.
Specifically, the automated test platform uses the libraries of python-can and python-ics to send and receive relevant messages based on the message sending operation instructions sent by the upper computer software.
For interactive simulation of the instrument, the automatic test platform is based on the actual instrument control operation instruction 5, and artificial operation interaction is simulated by utilizing the switching action of the programming relay control circuit, and the automatic test platform is based on
The serial packet at python and the RS232 serial line control the associated actions of the programmable relay.
For related regulation actions of the power supply and the current, the automatic test platform controls the voltage and current output of the programmable power supply through the serial port by using the scpi protocol based on the power supply control operation instruction.
In this embodiment, the automated test platform generates test instruction information that can be identified by the target TBOX based on the artificial operation instruction 0 of each test device, and may directly convert the use case into the corresponding test script by using programming software, thereby improving the test efficiency of the target TBOX.
In one embodiment, step S2 includes:
based on the first test instruction information, a test mode corresponding to the test message is obtained;
the test modes comprise a development test mode, an experimental test mode and an after-sales test mode. The step S3 comprises the following steps:
based on the different test modes, test logic corresponding to the test modes is obtained.
The development test mode comprises a plurality of executable operation items for realizing logic functions of basic information reading, parameter setting, log grabbing, instruction control, equipment initialization and the like of TBOX in a development stage;
the 0 experiment test mode comprises executable multiple operations for realizing the diagnosis of the working state of main components of TBOX, testing the main performance and preventing defective products from flowing out;
the after-market operation mode includes a variety of operational items that are executable to confirm basic information and operating status of the TBOX and to determine whether the failure it has occurred is a hardware failure or a software failure.
In an application embodiment, different test modes can be bound with the corresponding user information 5, and if the tester uses the user information of different testers on the automatic test platform, the test mode corresponding to the user information can be directly obtained.
In this embodiment of the present application, since the detection requirements of the target TBOX at different stages are different, in the above embodiment, in different operation modes, multiple operation items included on an operation interface displayed by the detection device may overlap, change, or increase, so as to meet the detection requirements of different stages.
In one embodiment, step S2 includes:
acquiring operation test data of a target vehicle where the target TBOX is located based on the second test instruction information; acquiring a test environment power supply voltage for the target TBOX based on the third test instruction information; a test script is generated based on the test mode, the operational test data, and the test environment supply voltage.
The step S3 comprises the following steps:
the target TBOX is tested with the operating test data and the test environment supply voltage based on the test logic.
In this embodiment, the automated test platform directly converts the test cases into the scripts capable of being repeatedly executed to perform the corresponding test work, and when the test needs to be performed on the target TBOX, the corresponding test cases can be directly selected for execution, so that the test efficiency on the target TBOX is improved.
In one embodiment, a method and system for automated testing of TBOX is provided, the system comprising a script management module, an operation interaction module, a report module, and a rights management module. The script management module is used for maintaining test scripts (version management and process tracing) converted by the test cases and comprises independent management and control of scripts of each user; the operation interaction module is used for mainly packaging related execution actions and various additional operations of the script, shielding execution details of the script, enabling a tester who does not know python to easily perform related work, and calling the execution script in the script management module during operation; the report module is used for persisting the corresponding execution process and operation data to the relational database after the execution script is ended, and displaying the result to a user in an imaging mode according to the need; and the permission management module is used for distributing relevant operation permissions and viewing permissions of the report module to testers as required, so as to realize the requirement of minimized permission management.
Aiming at operating the interactive module, the scheme mainly uses web as an interactive portal of the system, and the test script of the scheme is independent of the existence of the interactive module in consideration of decoupling of the test script of the interactive module, and the related test script is acquired by adopting a remote loading mode during execution. In order to simplify the manual operation, the test scripts can be classified according to the service, sampling test can be carried out according to the class or according to a certain rule when the system is used, and meanwhile, the system can carry out certain execution authority isolation based on the role of a login user.
For the report module, the report module reports the corresponding process and result data of the test script execution, wherein the report module performs corresponding statistical analysis based on the reported data, generates report data in a corresponding format as required, and supports report sending and the like in a sharing link mode. The efficiency and the accuracy are better ensured by comparing manual report filling by personnel.
Aiming at the authority management system, in order to ensure the safe execution of use cases, the scheme carries out corresponding authority control on the management of menus, button authorities and scripts of the system, and adopts the RABC (Role-Based Access Control: role-based access control) model management of industry standards for the authority control.
Specifically, the message in the message sending test instruction is taken as an example of an OTA instruction of the test engine to express the implementation process of the automated test details: opening a test platform (an interaction module), selecting an upgrade script of a corresponding controller, clicking for execution, and automatically executing subsequent steps based on logic in the script.
a1. The python's selenium is used to control the browser of the computer to create the corresponding platform task and push the task publication to the vehicle.
a2. The instruction of upgrading confirmation is given to the TBOX through the human interaction process of the switching simulation instrument of the control relay.
a3. And sending vehicle related dynamic data (signals such as vehicle speed, gear and the like) to the CAN bus as required, and verifying whether the judgment logic of the TBOX is correct according to the execution result.
a4. After confirming the upgrade is completed, based on UDS protocol, whether the related information of the controller meets the expectations is obtained (sending message to bus, analyzing the return information of ecu, and essentially receiving and sending message to CAN bus
a5. Report data is generated according to the requirements based on the process data and the result data, and a user can check the execution condition of the application case according to the requirements.
It should be noted that, step numbers of each step in the embodiments of the present application do not limit the order of each operation in the technical solution of the present application.
Based on the same inventive concept as the real-time example of the TBOX automatic test method, the embodiment of the application provides a TBOX automatic test device, which includes:
the instruction information acquisition module is used for acquiring instruction information which can be identified by a target TBOX corresponding to a target test operation instruction based on the target test operation instruction;
the test script acquisition module is used for acquiring a test script based on the instruction information;
and the test module is used for automatically testing the target TBOX based on the test script to acquire an automatic test result.
It should be noted that the target TBOX runs in a topology network structure of the target actual vehicle, where the topology network structure includes upper computer software, a display instrument, a whole vehicle controller, and a vehicle network cloud database. The TBOX mainly plays a gateway role of a target actual vehicle and plays a role of a network portal of a whole vehicle topology to interact with the outside; the display instrument is used for displaying the running data of the target actual vehicle; the whole vehicle controller is logically implemented based on instructions sent by the upper computer software, and then data generated by the logic implementation are returned to the upper computer software.
In addition, in the process of the whole installation of the target vehicle, in order to ensure that all functions of the target TBOX are normal before loading, the target TBOX needs to be tested. The testing method is to build a corresponding testing rack based on the topological structure of the target actual target vehicle, wherein the testing rack comprises upper computer software, a power supply, a tested target TBOX, a man-machine interaction borrowing interface of a simulated vehicle end, a vehicle controller and the like; the testing process comprises the following steps: the upper computer software simulates a mobile phone mobile terminal to send an instruction to a target TBOX, after the target TBOX receives the instruction, the target TBOX analyzes service logic in the instruction, and then sends the service logic to a whole vehicle controller of a target vehicle, the whole vehicle controller realizes the service logic, and the obtained target vehicle data is returned to the mobile phone terminal.
Because the testers need to manually operate various testing steps in the test network topology structure, for example, the testers need to manually operate the upper computer software to send instructions to the target TBOX, manually adjust the output voltage and the output current of the power supply, and the like, and the manual operation has high dependence on the testers, the manual test operation can cause lower test efficiency and accuracy.
The target test operation instruction refers to an instruction generated by manually triggering an operation button of each test device in the test network topology structure, and the instruction CAN be transmitted to a target TBOX to be tested through a CAN bus connected with each test device.
The programmable analog device belongs to an analog integrated circuit, and as with the programmable logic device, the internal connection and element parameters of the programmable analog device can be changed by a user through field programming and configuration so as to obtain the required circuit function. Meanwhile, the device can be matched with a corresponding development tool, and the design and the use of the device can be as convenient, flexible and rapid as those of a programmable logic device.
In order to reduce the dependence on testers in the TBOX test process, an automatic test platform is compiled by using a Python programming language and a Python database, each test device is simulated on the automatic test platform by using a programmable simulator, and meanwhile, the simulated programmable software of each type is used for sending instruction information which corresponds to a target test operation instruction and can be identified by the target TBOX.
Specifically, the automatic test platform acquires a test mode corresponding to a message sending test instruction based on first test instruction information, and acquires test logic corresponding to the test mode based on different test modes; acquiring a test environment power supply voltage for the target TBOX based on the third test instruction information; a test script is generated based on the test mode, the operational test data, and the test environment supply voltage.
Specifically, the automated test platform tests the target TBOX based on test logic by using operation test data and test environment power supply voltage to obtain an automated test result of the target TBOX.
In the embodiment of the application, the automatic test platform acquires instruction information which corresponds to the target test operation instruction and can be identified by the target TBOX based on the target test operation instruction; based on the instruction information, a test script is acquired, and based on the test script, an automatic test is performed on the target TBOX, and an automatic test result is acquired. The automatic test platform simulates instruction information which can be identified by a target TBOX corresponding to an actual test operation instruction according to the actual test operation instruction, and acquires a test script based on the instruction information; when an automatic test start button on the automatic test platform is triggered, the target TBOX is automatically tested based on the test script, so that the manual test step of a tester is skipped, and the test efficiency of the target TBOX is improved.
It should be noted that, the TBOX automatic test device provided in the embodiment of the present application has technical problems, technical means and technical effects corresponding to the TBOX automatic test device, and is similar to the TBOX automatic test method in principle.
In a second aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when executed by a processor, implements the TBOX automated test method of the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program running on the processor, and the processor implements the TBOX automatic test method mentioned in the first aspect when executing the computer program.
It should be noted that in this application, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for automated TBOX testing, said method comprising the steps of:
acquiring instruction information which can be identified by a target TBOX corresponding to a target test operation instruction based on the target test operation instruction;
acquiring a test script based on the instruction information;
and carrying out automatic test on the target TBOX based on the test script to obtain an automatic test result.
2. The TBOX automatic test method of claim 1, wherein the target operation instruction comprises a message sending operation instruction; the method for acquiring the instruction information which can be identified by the target TBOX and corresponds to the target test operation instruction based on the target test operation instruction comprises the following steps:
based on the message sending test instruction, the database of Python is utilized to configure the first test instruction information which can be identified by the target TBOX.
3. The TBOX automated test method of claim 1, wherein the target test operating instructions comprise meter control operating instructions; the method for acquiring the first operation instruction which can be identified by the target TBOX and corresponds to the target test operation instruction based on the target test operation instruction comprises the following steps:
and based on the actual meter control operation instruction, configuring second test instruction information corresponding to the actual meter control operation by using an analog relay.
4. The TBOX automated test method of claim 3, wherein the target test operating instructions comprise power control operating instructions; the method for acquiring the instruction information which can be identified by the target TBOX and corresponds to the target test operation instruction based on the target test operation instruction comprises the following steps:
and based on the power supply control operation instruction, configuring voltage output third test instruction information of the analog power supply by utilizing an SCPI communication protocol serial port.
5. The TBOX automation test method of claim 2, wherein the acquiring test script based on the instruction information comprises the steps of:
based on the first test instruction information, a test mode corresponding to the test message is obtained; the test modes include a development test mode, an experimental test mode, and an after-market test mode.
The automatic test is carried out on the target TBOX based on the test script, and the method comprises the following steps before an automatic test result is obtained:
based on different test modes, test logic corresponding to the test modes is acquired.
6. The TBOX automation test method of claim 5, wherein the acquiring a test script based on the instruction information comprises the steps of:
acquiring operation test data of a target vehicle where the target TBOX is located based on the second test instruction information;
acquiring a test environment power supply voltage for the target TBOX based on the third test instruction information;
and generating a test script based on the test mode, the operation test data and the test environment power supply voltage.
7. The automated TBOX testing method of claim 6, wherein the automated testing of the target TBOX based on the test script, obtaining an automated test result, further comprises the steps of:
based on the test logic, the target TBOX is tested with operational test data and the test environment supply voltage.
8. A TBOX automated test apparatus, said apparatus comprising:
the instruction information acquisition module is used for acquiring instruction information which can be identified by a target TBOX corresponding to a target test operation instruction based on the target test operation instruction;
the test script acquisition module is used for acquiring a test script based on the instruction information;
and the test module is used for automatically testing the target TBOX based on the test script to acquire an automatic test result.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202211530127.5A 2022-11-30 2022-11-30 TBOX automatic test method and device, electronic equipment and storage medium Pending CN116016268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211530127.5A CN116016268A (en) 2022-11-30 2022-11-30 TBOX automatic test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211530127.5A CN116016268A (en) 2022-11-30 2022-11-30 TBOX automatic test method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116016268A true CN116016268A (en) 2023-04-25

Family

ID=86021964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211530127.5A Pending CN116016268A (en) 2022-11-30 2022-11-30 TBOX automatic test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116016268A (en)

Similar Documents

Publication Publication Date Title
CN109039824B (en) Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal
CN109740222B (en) Testing device and system for automobile networking scene
CN101718841B (en) Automatic checking system and method of relaying protection device
CN105528290B (en) Construction method of script-based embedded software simulation and test integrated platform
CN107562969B (en) Method and device for integrating aero-engine control system software
CN104076806B (en) A kind of electric control gear to automobile carries out the method and apparatus of automatic test
CN104483959A (en) Fault simulation and test system
CN105094783A (en) Method and device for testing Android application stability
CN108121326A (en) A kind of fault diagnosis method and system
CN112929236A (en) Broadband micropower wireless protocol interoperability test system for electricity consumption information acquisition system
CN208956067U (en) A kind of car-mounted terminal wireless telecommunication protocol automation test macro
CN111782539A (en) Test and diagnosis integrated development platform based on domestic operating system
CN106628250B (en) JL9 aircraft function modularization comprehensive automatic detection system
CN102707712B (en) Electronic equipment fault diagnosis method and system
CN115373981A (en) OTA (over the air) automatic testing system and method for finished automobile in production line environment
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN111767232B (en) Equipment test program set verification system
CN103576667A (en) Main control panel test method, device and system
CN110989554B (en) Method for establishing hardware-in-loop test case library of new energy vehicle integrated controller
CN112505529A (en) Board-level automatic test system
CN116016268A (en) TBOX automatic test method and device, electronic equipment and storage medium
US20160224456A1 (en) Method for verifying generated software, and verifying device for carrying out such a method
Krisp et al. Automated real-time testing of electronic control units
CN106446400B (en) Method and device for testing performance of electromechanical system
CN112925285A (en) Endurance test system and method for electronic controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination