Stability Testing Method, Device, Equipment and Storage Medium for Internet of Vehicles Terminal
Through automated stability testing methods, Selenium tools are used to collect stability parameters of vehicle network terminals, solving the problem of manual recording of test results in the prior art, and improving the standardization of test efficiency and reporting.
Patent Information
- Application Number
- CN202111315944.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-11-08
AI Technical Summary
The stability test of existing Internet of Vehicles terminals (Tboxes) requires manual recording of test results and test duration, resulting in high labor costs, low testing efficiency and inability to generate standard test reports.
By obtaining the stability test task of the Internet of Vehicles terminal, the Selenium tool is used to automatically control the test process, collect stability parameters, and generate stability reports and analysis results.
It reduces labor costs and the chance of human error, improves testing efficiency and standardization of reporting, and reduces testing costs.
Smart Images

Figure CN113886274B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of stability testing of Tbox, and particularly relates to a method, device, equipment and storage medium for stability testing of an Internet of Vehicles terminal. Background Art
[0002] Currently, for the stability testing of an Internet of Vehicles terminal (Tbox), the power supply of the Tbox is manually triggered to perform the switch action, and then the web background logged in to the cloud is used to check whether the Tbox is online, and the test results are judged by the human eye. Moreover, the test results and test duration need to be manually recorded. Since the stability of the Tbox takes a long time and manual operation is prone to fatigue, the test time cost is increased, the test efficiency is reduced, and a standard test report cannot be formed at the same time.
[0003] Application Content
[0004] This application provides a method, device, equipment and storage medium for stability testing of an Internet of Vehicles terminal, so as to solve the problem in the related technology that the test results and test duration need to be manually recorded, reduce the labor cost and the probability of human error, improve the test efficiency, and reduce the test cost.
[0005] The first aspect embodiment of this application provides a method for stability testing of an Internet of Vehicles terminal, including the following steps:
[0006] Obtain a stability test task of the Internet of Vehicles terminal to be tested, where the stability test task includes test items and the number of tests;
[0007] Control the Internet of Vehicles terminal to be tested to perform stability testing according to the stability test task, and use the Selenium tool to collect the stability parameters of the Internet of Vehicles terminal to be tested during the stability testing; and
[0008] Generate a stability report of the Internet of Vehicles terminal to be tested from the stability parameters, and generate a stability analysis result based on the stability report.
[0009] Optionally, the obtaining of the stability test task of the Internet of Vehicles terminal to be tested includes:
[0010] Load the config.ini file, and obtain the number of tests from the config.ini file;
[0011] Based on the number of tests, copy a preset number of test cases from the Source_Testcase directory to the specified Test Case directory, and obtain the test items based on the preset number of test cases.
[0012] Optionally, before collecting the stability parameters of the to-be-tested vehicle networking terminal during the stability test using the Selenium tool, it further includes:
[0013] Disconnect the power supply of the to-be-tested vehicle networking terminal according to the serial port command in the stability test task;
[0014] Use the Selenium tool to open the web background, match the to-be-tested vehicle networking terminal through the vehicle identification number of the vehicle, so as to collect the stability parameters of the to-be-tested vehicle networking terminal.
[0015] Optionally, after disconnecting the power supply of the to-be-tested vehicle networking terminal, it further includes:
[0016] Obtain the test status of the to-be-tested vehicle networking terminal;
[0017] If the to-be-tested vehicle networking terminal is in the online state, store the test status of the to-be-tested vehicle networking terminal in the corresponding parameter log; otherwise, capture a picture of the to-be-tested vehicle networking terminal when it is in the offline state and save it in the corresponding picture directory.
[0018] Optionally, the stability report includes: any one or more of the test report name, number of tests, number of successful tests, number of failed tests, number of test errors of the to-be-tested vehicle networking terminal, screenshots of test run errors and failed screenshots in the picture directory.
[0019] An embodiment of the second aspect of the present application provides a stability test device for a vehicle networking terminal, including:
[0020] An acquisition module, configured to acquire a stability test task of a to-be-tested vehicle networking terminal, where the stability test task includes test items and the number of tests;
[0021] A collection module, configured to control the to-be-tested vehicle networking terminal to perform a stability test according to the stability test task, and use the Selenium tool to collect the stability parameters of the to-be-tested vehicle networking terminal during the stability test; and
[0022] A generation module, configured to generate a stability report of the to-be-tested vehicle networking terminal from the stability parameters, and generate a stability analysis result based on the stability report.
[0023] Optionally, the acquisition module is specifically configured to, including:
[0024] Load the config.ini file, and obtain the number of tests from the config.ini file;
[0025] Copy a preset number of test cases from the Source_Testcase directory to the specified Test Case directory based on the number of tests, and obtain the test project based on the preset number of test cases.
[0026] Optionally, before collecting the stability parameters of the to-be-tested vehicle networking terminal during the stability test using the Selenium tool, the collection module is further configured to:
[0027] Disconnect the power supply of the to-be-tested vehicle networking terminal according to the serial port command in the stability test task;
[0028] Use the Selenium tool to open the web background, match the to-be-tested vehicle networking terminal through the vehicle identification number of the vehicle, and collect the stability parameters of the to-be-tested vehicle networking terminal.
[0029] Optionally, after disconnecting the power supply of the to-be-tested vehicle networking terminal, the collection module is further configured to:
[0030] Obtain the test status of the to-be-tested vehicle networking terminal;
[0031] If the to-be-tested vehicle networking terminal is in an online state, store the test status of the to-be-tested vehicle networking terminal in the corresponding parameter log; otherwise, capture a picture of the to-be-tested vehicle networking terminal when it is in an offline state and save it in the corresponding picture directory.
[0032] Optionally, the stability report includes: any one or more of the test report name, the number of tests, the number of successful tests, the number of failed tests, the number of test errors, the screenshots of test run errors and failed screenshots in the picture directory of the to-be-tested vehicle networking terminal.
[0033] An embodiment of the third aspect of the present application provides a vehicle, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the stability test method of the vehicle networking terminal as described in the above embodiments.
[0034] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program is executed by a processor to implement the stability test method of the vehicle networking terminal as described in the above embodiments.
[0035] Thus, a stable test task for the vehicle networking terminal to be tested can be obtained, and the vehicle networking terminal to be tested is controlled to perform a stability test with the stable test task. The Selenium tool is used to collect the stability parameters of the vehicle networking terminal to be tested during the stability test, and a stability report of the vehicle networking terminal to be tested is generated from the stability parameters, and a stability analysis result is generated based on the stability report. Thus, the problem in the related art that the test results and test duration need to be manually recorded is solved, the labor cost and the probability of human error are reduced, the test efficiency is improved, and the test cost is reduced.
[0036] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0038] Figure 1 FIG. is a flowchart of a method for testing the stability of a vehicle networking terminal according to an embodiment of the present application;
[0039] Figure 2 FIG. is an example diagram of a stability test system for a vehicle networking terminal according to an embodiment of the present application;
[0040] Figure 3 FIG. is a flowchart of a method for testing the stability of a vehicle networking terminal according to an embodiment of the present application;
[0041] Figure 4 FIG. is an example diagram of a stability test device for a vehicle networking terminal according to an embodiment of the present application;
[0042] Figure 5 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0043] Embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present application and should not be construed as limiting the present application.
[0044] The stability test method, device, electronic device, and storage medium of the vehicle networking terminal according to the embodiments of the present application will be described below with reference to the accompanying drawings. In view of the problem of manually recording test results and test duration mentioned in the above background art, the present application provides a stability test method for a vehicle networking terminal. In this method, a stability test task of the vehicle networking terminal to be tested can be obtained, and the stability test of the vehicle networking terminal to be tested can be controlled by the stability test task. The Selenium tool is used to collect the stability parameters of the vehicle networking terminal to be tested during the stability test, and a stability report of the vehicle networking terminal to be tested is generated based on the stability parameters, and a stability analysis result is generated based on the stability report. Thus, the problems of manually recording test results and test duration in the related art are solved, the labor cost and the probability of human error are reduced, the test efficiency is improved, and the test cost is reduced.
[0045] Specifically, Figure 1 FIG. is a schematic flowchart of a stability test method for a vehicle networking terminal provided by an embodiment of the present application.
[0046] In this embodiment, as Figure 2 shown, the stability test system of the vehicle networking terminal involved in the stability test method of the vehicle networking terminal includes: a notebook, a relay, a vehicle networking terminal to be tested, a Web background, and a cloud. Among them, the notebook is the system control core, the relay is the control power switch, the in-vehicle Tbox is an automotive device, the in-vehicle Tbox is connected to the relay. When the relay is closed, the in-vehicle Tbox is connected to the power supply; when the relay is opened, the in-vehicle Tbox is disconnected from the power supply. The selenuim tool is installed on the main control computer to control the web background.
[0047] Specifically, first, the main control computer controls the relay to perform a closing action through the serial port, and the in-vehicle Tbox is connected to the power supply. After the in-vehicle Tbox is powered on, its own status is reported to the cloud through the MQTT protocol. Since the Web background can query whether the in-vehicle Tbox is online, in the embodiments of the present application, the Selenium tool can be used to open the web page, log in, then query the vehicle status through the vin (Vehicle Identification Number) code, and obtain the stability parameters of the in-vehicle Tbox. The stability parameters are used to generate a stability report of the vehicle networking terminal to be tested, and a stability analysis result is generated based on the stability report.
[0048] As Figure 1 shown, the stability test method of the vehicle networking terminal includes the following steps:
[0049] In step S101, a stability test task of the vehicle networking terminal to be tested is obtained, where the stability test task includes test items and the number of tests.
[0050] Optionally, obtaining a stable test task for the vehicle networking terminal to be tested includes: loading the config.ini file and obtaining the number of tests from the config.ini file; copying a preset number of test cases from the Source_Testcase directory to the specified Test Case directory based on the number of tests, and obtaining test items based on the preset number of test cases.
[0051] Among them, the preset number can be a number preset by the user, a number obtained through a finite number of experiments, or a number obtained through a finite number of computer simulations, and no specific limitation is made here.
[0052] Specifically, in the embodiment of the present application, the number of loops in config.ini can be loaded through the main file, and then according to the number of loops, the number of test cases is copied from the Source_Testcase directory to the specified TestCase directory. For example, if the loop is 10,000 times, the program will automatically copy out 50,000 identical cases.
[0053] In step S102, the vehicle networking terminal to be tested is controlled to perform a stability test with the stable test task, and the stability parameters of the vehicle networking terminal to be tested during the stability test are collected by using the Selenium tool.
[0054] Optionally, before collecting the stability parameters of the vehicle networking terminal to be tested by using the Selenium tool, it further includes: disconnecting the power supply of the vehicle networking terminal to be tested according to the serial port command in the stable test task; using the Selenium tool to open the web background, and matching the vehicle networking terminal to be tested through the vehicle identification number of the vehicle to collect the stability parameters of the vehicle networking terminal to be tested.
[0055] Specifically, after the configuration file is loaded, the testcase is loaded into the unittest unit test framework. Through the discover() method under this class, the test case files (test*.py) can be automatically searched according to the test directory start_dir, and the found test cases are assembled into a test suite. Therefore, the test cases found by discover can be directly executed through the run() method. The test cases first disconnect the power supply of the relay device through the serial port command, and at the same time the Tbox is also disconnected from the power supply. Then, the Selenium tool is called to open the web background, and the online status of the Tbox vehicle is queried through the Vin code.
[0056] Thus, the Selenium tool is used to automatically operate the web background, greatly improving the network configuration efficiency.
[0057] Optionally, after disconnecting the power supply of the to-be-tested vehicle networking terminal, it further includes: obtaining the test status of the to-be-tested vehicle networking terminal; if the to-be-tested vehicle networking terminal is in an online state, storing the test status of the to-be-tested vehicle networking terminal to the corresponding parameter log; otherwise, intercepting a picture when the to-be-tested vehicle networking terminal is in an offline state and saving it in the corresponding picture directory.
[0058] Specifically, after the test is completed, if the vehicle is online, the web page will display "Online", and the test result will be recorded in the log; if it fails, the system will intercept a picture of the failure and save it in the corresponding picture directory.
[0059] In step S103, a stability report of the to-be-tested vehicle networking terminal is generated from the stability parameters, and a stability analysis result is generated based on the stability report.
[0060] Optionally, the stability report includes: any one or more of the test report name of the to-be-tested vehicle networking terminal, the number of tests, the number of successful tests, the number of failed tests, the number of test errors, the screenshots of test running errors and failed screenshots in the picture directory.
[0061] Specifically, assuming that 50,000 tests are performed, after the 50,000 - time stability test is completed, the embodiments of the present application can obtain the stability parameters in HTML format to form a stability report of the to-be-tested vehicle networking terminal. The content of the stability report of the to-be-tested vehicle networking terminal includes: any one or more of the test report name of the to-be-tested vehicle networking terminal, the number of tests, the number of running times, the number of passing times, the number of successful tests, the number of failed tests, the number of test errors, the online duration, the screenshots of test running errors and failed screenshots in the picture directory.
[0062] To enable those skilled in the art to further understand the stability test method of the vehicle networking terminal in the embodiments of the present application, the following will be described in detail with specific embodiments.
[0063] Specifically, as Figure 3 shown, the stability test method of the vehicle networking terminal includes the following steps:
[0064] S301, Start.
[0065] S302, Initialize configuration items.
[0066] Among them, after initializing the configuration items, the embodiments of the present application send commands to the relay through the serial port, thereby controlling the on and off of the in - vehicle Tbox through the relay. By this way, the action of manually triggering the on and off of the device is replaced, improving the accuracy and operation efficiency. The in - vehicle Tbox can also transmit instructions to the cloud through the MQTT protocol.
[0067] S303, Run test cases.
[0068] S304. Record the test results.
[0069] S305. Generate a stability test report.
[0070] That is to say, in the embodiment of the present application, the computer can send instructions to the relay through the serial port, control the in-vehicle Tbox to turn on or off through the relay, then log in to the cloud background through the Selenium tool, automatically operate the page through the Selenium tool to query the device status, and query whether the Tbox successfully goes online when powered on. If the Tbox does not go online, the test system will record the log and the screenshot of the failure. Whether the Tbox goes online successfully or fails, a stability report of the to-be-tested vehicle networking terminal is generated, and a stability analysis result is generated based on the stability report.
[0071] According to the stability test method of the vehicle networking terminal proposed by the embodiment of the present application, a stability test task of the to-be-tested vehicle networking terminal can be obtained, the to-be-tested vehicle networking terminal is controlled to perform a stability test with the stability test task, the stability parameters of the to-be-tested vehicle networking terminal during the stability test are collected by using the Selenium tool, a stability report of the to-be-tested vehicle networking terminal is generated from the stability parameters, and a stability analysis result is generated based on the stability report. Thereby, the problems in the related art that manual recording of test results and test duration is required are solved, the labor cost and the probability of human error are reduced, the test efficiency is improved, and the test cost is reduced.
[0072] Next, a stability test device for a vehicle networking terminal according to an embodiment of the present application is described with reference to the accompanying drawings.
[0073] Figure 4 It is a block diagram of a stability test device for a vehicle networking terminal according to an embodiment of the present application.
[0074] As Figure 4 shown, the stability test device 10 for the vehicle networking terminal includes: an acquisition module 100, a collection module 200, and a generation module 300.
[0075] Among them, the acquisition module 100 is used to obtain a stability test task of the to-be-tested vehicle networking terminal, where the stability test task includes test items and the number of tests;
[0076] The collection module 200 is used to control the to-be-tested vehicle networking terminal to perform a stability test with the stability test task, and collect the stability parameters of the to-be-tested vehicle networking terminal during the stability test by using the Selenium tool; and
[0077] The generation module 300 is used to generate a stability report of the to-be-tested vehicle networking terminal from the stability parameters, and generate a stability analysis result based on the stability report.
[0078] Optionally, the obtaining module 100 is specifically configured to include:
[0079] Load the config.ini file and obtain the number of tests from the config.ini file;
[0080] Copy a preset number of test cases from the Source_Testcase directory to the specified Test Case directory based on the number of tests, and obtain test items based on the preset number of test cases.
[0081] Optionally, before collecting the stability parameters of the to-be-tested vehicle networking terminal during the stability test using the Selenium tool, the collecting module 200 is further configured to:
[0082] Disconnect the power supply of the to-be-tested vehicle networking terminal according to the serial port command in the stability test task;
[0083] Use the Selenium tool to open the web background, match the to-be-tested vehicle networking terminal through the vehicle identification number of the vehicle, so as to collect the stability parameters of the to-be-tested vehicle networking terminal.
[0084] Optionally, after disconnecting the power supply of the to-be-tested vehicle networking terminal, the collecting module 200 is further configured to:
[0085] Obtain the test status of the to-be-tested vehicle networking terminal;
[0086] If the to-be-tested vehicle networking terminal is in the online state, store the test status of the to-be-tested vehicle networking terminal in the corresponding parameter log; otherwise, capture a picture when the to-be-tested vehicle networking terminal is in the offline state and save it in the corresponding picture directory.
[0087] Optionally, the stability report includes any one or more of the test report name, number of tests, number of test successes, number of test failures, number of test errors, screenshots of test run errors and failure screenshots in the picture directory of the to-be-tested vehicle networking terminal.
[0088] It should be noted that the foregoing explanation of the embodiments of the stability test method for the vehicle networking terminal also applies to the stability test device for the vehicle networking terminal in this embodiment, and will not be elaborated here.
[0089] The stability testing device for a vehicle networking terminal according to an embodiment of the present application can obtain a stability test task for the to-be-tested vehicle networking terminal, control the to-be-tested vehicle networking terminal to perform stability testing with the stability test task, collect stability parameters of the to-be-tested vehicle networking terminal during the stability testing by using the Selenium tool, generate a stability report for the to-be-tested vehicle networking terminal from the stability parameters, and generate a stability analysis result based on the stability report. Thereby, the problems in the related art that it is necessary to manually record the test results and the test duration are solved, the labor cost and the probability of human error are reduced, the test efficiency is improved, and the test cost is reduced.
[0090] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device may include:
[0091] A memory 501, a processor 502, and a computer program stored on the memory 501 and executable on the processor 502.
[0092] When the processor 502 executes the program, it implements the stability testing method for the vehicle networking terminal provided in the above embodiment.
[0093] Further, the electronic device further includes:
[0094] A communication interface 503 for communication between the memory 501 and the processor 502.
[0095] The memory 501 is used to store a computer program executable on the processor 502.
[0096] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0097] If the memory 501, the processor 502, and the communication interface 503 are implemented independently, the communication interface 503, the memory 501, and the processor 502 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 5 only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
[0098] Optionally, in a specific implementation, if the memory 501, the processor 502, and the communication interface 503 are integrated on a single chip, the memory 501, the processor 502, and the communication interface 503 can communicate with each other through an internal interface.
[0099] The processor 502 may be a central processing unit (CPU for short), or an application specific integrated circuit (ASIC for short), or one or more integrated circuits configured to implement the embodiments of the present application.
[0100] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the stability test method of the vehicle networking terminal as described above is implemented.
[0101] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0102] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless otherwise specifically defined.
[0103] Any process or method description in the flowchart or described in other ways herein can be understood as representing a module, segment, or part of code including one or more executable instructions for implementing a customized logic function or process. The scope of the preferred embodiments of the present application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed, which should be understood by those skilled in the art of the embodiments of the present application.
[0104] It should be understood that each part of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
[0105] Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
Claims
1. A method for testing the stability of a vehicle networking terminal, characterized in that, it includes the following steps: Obtain the stability test task of the vehicle networking terminal to be tested, wherein the stability test task includes test items and the number of tests; Control the vehicle networking terminal to be tested to perform stability testing with the stability test task, and use the Selenium tool to collect the stability parameters of the vehicle networking terminal to be tested during stability testing; and Generate a stability report of the vehicle networking terminal to be tested from the stability parameters, and generate a stability analysis result based on the stability report; Wherein, before using the Selenium tool to collect the stability parameters of the vehicle networking terminal to be tested during stability testing, it further includes: disconnecting the power supply of the vehicle networking terminal to be tested according to the serial port command in the stability test task; using the Selenium tool to open the web background, and matching the vehicle networking terminal to be tested through the vehicle identification number of the vehicle to collect the stability parameters of the vehicle networking terminal to be tested; After disconnecting the power supply of the vehicle networking terminal to be tested, it further includes: obtaining the test status of the vehicle networking terminal to be tested; if the vehicle networking terminal to be tested is in an online state, storing the test status of the vehicle networking terminal to be tested in the corresponding parameter log; otherwise, intercepting a picture of the vehicle networking terminal to be tested when it is in an offline state and saving it in the corresponding picture directory.
2. The method according to claim 1, characterized in that, the obtaining the stability test task of the vehicle networking terminal to be tested includes: Loading the config.ini file and obtaining the number of tests from the config.ini file; Copying a preset number of test cases from the Source_Testcase directory to the specified Test Case directory based on the number of tests, and obtaining the test items based on the preset number of test cases.
3. The method according to any one of claims 1-2, characterized in that, the stability report includes: any one or more of the test report name, the number of tests, the number of successful tests, the number of failed tests, the number of error tests of the vehicle networking terminal to be tested, and the screenshots of test running errors and failed screenshots in the picture directory.
4. A device for testing the stability of a vehicle networking terminal, characterized in that, it includes: An obtaining module, configured to obtain the stability test task of the vehicle networking terminal to be tested, wherein the stability test task includes test items and the number of tests; A collecting module, configured to control the vehicle networking terminal to be tested to perform stability testing with the stability test task, and use the Selenium tool to collect the stability parameters of the vehicle networking terminal to be tested during stability testing; and A generating module, configured to generate a stability report of the vehicle networking terminal to be tested from the stability parameters, and generate a stability analysis result based on the stability report; Before collecting the stability parameters of the to-be-tested vehicle networking terminal during the stability test using the Selenium tool, the collection module is further configured to: disconnect the power supply of the to-be-tested vehicle networking terminal according to the serial port command in the stability test task; open the web background using the Selenium tool, match the to-be-tested vehicle networking terminal through the vehicle identification number of the vehicle, so as to collect the stability parameters of the to-be-tested vehicle networking terminal; After disconnecting the power supply of the to-be-tested vehicle networking terminal, the collection module is further configured to: obtain the test status of the to-be-tested vehicle networking terminal; if the to-be-tested vehicle networking terminal is in an online state, store the test status of the to-be-tested vehicle networking terminal to the corresponding parameter log; otherwise, capture a picture of the to-be-tested vehicle networking terminal when it is in an offline state and save it in the corresponding picture directory.
5. The device according to claim 4, wherein, The obtaining module is specifically configured to include: loading the config.ini file and obtaining the number of tests from the config.ini file; copying a preset number of test cases from the Source_Testcase directory to the specified Test Case directory based on the number of tests, and obtaining the test items based on the preset number of test cases.
6. An electronic device, wherein, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the stability test method of the vehicle networking terminal according to any one of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, wherein, the program is executed by a processor to be used to implement the stability test method of the vehicle networking terminal according to any one of claims 1-3.
Citation Information
Patent Citations
T-Box (Telematics-Box) automatic testing method and system
CN108566323A
Distribution network test processing method, device and system, processor and main control equipment
CN110493812A
Vehicle-mounted terminal automatic test system
CN211860150U