Vehicle testing method and device, readable storage medium and vehicle

By automatically generating test cases and automatically conducting remote testing, the problem of low vehicle testing efficiency is solved, efficient automated testing is achieved, and human resource consumption is reduced.

CN118689773APending Publication Date: 2024-09-24CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410841144.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Vehicle testing efficiency is low. Existing technology relies on manual testing, resulting in excessive consumption of human resources and low efficiency and test coverage.

Method used

By obtaining the test tasks of the vehicle, test cases are automatically generated, and the vehicle is automatically tested remotely based on the test cases to avoid excessive human resources.

Benefits of technology

It improves vehicle testing efficiency, realizes automated testing, reduces human resource consumption, and improves test coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689773A
    Figure CN118689773A
Patent Text Reader

Abstract

The invention discloses a vehicle testing method and device, a readable storage medium and a vehicle. The method comprises the steps that a test task of a vehicle is acquired, and the test task comprises at least one to-be-tested item; based on the test task, generating a test case of the vehicle; based on the test case, the vehicle is tested, test results are obtained, the test results at least comprise an initial test result and a target test result, the initial test result is used for indicating the state of the vehicle in the test process, and the target test result is used for indicating the test completion condition of the vehicle. The technical problem of low vehicle testing efficiency is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle testing, and in particular to a vehicle testing method, a device, a readable storage medium and a vehicle. Background Art

[0002] At present, with the continuous development of vehicle-mounted software and hardware performance, the vehicle's electronic and electrical architecture is changing from distributed control to centralized control, and vehicle functions are also developing from in-vehicle implementation to vehicle-cloud collaboration. The softwareization of vehicles has led to the continuous increase in software functions and volume, and the remote upgrade function has become a powerful technical guarantee for the rapid iteration of software versions. Remote upgrade testing is different from traditional testing. Its functions need to be implemented through network communication protocols, involving almost all controllers of the vehicle, and data interaction between the vehicle and the cloud. The test process will involve calls to remote servers, and multi-bus data and vehicle status must be monitored at the same time. If the test platform has many models and bench testing is also involved, it is difficult to realize remote upgrade automation testing. Therefore, ensuring the test efficiency of the vehicle is the top priority of vehicle remote upgrades.

[0003] In the related technologies, remote upgrade testing is mainly performed by testers manually on a test bench or a real vehicle. Since manual testing requires a lot of manpower, the human resources are consumed too high, and the efficiency and test coverage are low. Therefore, there is a technical problem of low vehicle testing efficiency.

[0004] With respect to the above-mentioned technical problem of low vehicle testing efficiency, no effective solution has been proposed so far. Summary of the invention

[0005] Embodiments of the present invention provide a vehicle testing method, a device, a readable storage medium and a vehicle, so as to at least solve the technical problem of low vehicle testing efficiency.

[0006] According to one aspect of an embodiment of the present invention, a vehicle testing method is provided. The method may include: obtaining a vehicle test task, wherein the test task includes at least one item to be tested; generating a vehicle test case based on the test task; testing the vehicle based on the test case to obtain a test result, wherein the test result includes at least an initial test result and a target test result, wherein the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the test completion status of the vehicle.

[0007] Optionally, generating a test case for the vehicle based on the test task includes: determining a plurality of items to be tested in the test task; filtering the items to be tested to obtain valid items to be tested; and generating a test case for the vehicle based on the valid items to be tested.

[0008] Optionally, filtering the items to be tested to obtain valid items to be tested includes: matching multiple items to be tested to obtain similarity matching values, wherein the similarity matching values ​​are used to indicate the degree of similarity between the items to be tested; and determining valid items to be tested based on the similarity matching values.

[0009] Optionally, determining a valid item to be tested based on the similarity matching value includes: in response to the similarity matching value being less than a similarity matching threshold, determining the item to be tested as a valid item to be tested.

[0010] Optionally, based on the test case, the vehicle is tested to obtain test results, including: generating a test instruction corresponding to the test case; sending the test instruction to the test software; obtaining the test result sent by the test software, wherein the test result is obtained by the test software testing the vehicle in response to the test instruction.

[0011] Optionally, based on the test case, the vehicle is tested to obtain a test result, including: generating a remote test signal corresponding to the test case, wherein the remote test signal is used to indicate a signal for remotely operating the vehicle; based on the remote test signal, the vehicle is tested to obtain a target test result for the vehicle.

[0012] Optionally, the vehicle is tested based on the test case to obtain a test result, including: generating a simulation test signal corresponding to the test case, wherein the simulation test signal is used to instruct the test software to simulate the user's operation to generate a signal for testing the vehicle; based on the simulation test signal, the vehicle is tested to obtain an initial test result of the vehicle.

[0013] According to another aspect of an embodiment of the present invention, a vehicle testing device is also provided. The device may include: an acquisition unit, used to acquire a test task of a vehicle, wherein the test task includes at least one item to be tested; a generation unit, used to generate a test case of the vehicle based on the test task; a test unit, used to test the vehicle based on the test case to obtain a test result, wherein the test result includes at least an initial test result and a target test result, wherein the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the test completion status of the vehicle.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the vehicle testing method in an embodiment of the present invention.

[0015] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein when the program is run, the vehicle testing method in the embodiment of the present invention is executed.

[0016] According to another aspect of an embodiment of the present invention, a vehicle is further provided, and the vehicle is used to execute the vehicle testing method of the embodiment of the present invention.

[0017] In an embodiment of the present invention, a test task of a vehicle is obtained, wherein the test task includes at least one item to be tested; based on the test task, a test case of the vehicle is generated; based on the test case, the vehicle is tested to obtain a test result, wherein the test result includes at least an initial test result and a target test result, wherein the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the completion of the vehicle test. That is to say, in an embodiment of the present invention, a test case is automatically generated according to the test task of the vehicle, so that the vehicle is automatically tested remotely according to the test case, avoiding excessive human resources, thereby solving the technical problem of low vehicle testing efficiency and achieving the technical effect of improving vehicle testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 is a flow chart of a vehicle testing method according to an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of a vehicle remote upgrade automation test case automation software according to an embodiment of the present invention;

[0021] Figure 3 is a flow chart of a method for automatically generating test cases according to an embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of a remote upgrade according to an embodiment of the present invention;

[0023] Figure 5 is a schematic diagram of a vehicle testing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, functional component or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, functional components or devices.

[0026] Example 1

[0027] According to an embodiment of the present invention, an embodiment of a vehicle testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] Figure 1 is a flow chart of a vehicle testing method according to an embodiment of the present invention, such as Figure 1 As shown, the method may include the following steps:

[0029] Step S101, obtaining a vehicle test task.

[0030] In the technical solution provided in the above step S101 of the present invention, the test task includes at least one item to be tested. For example, when the test task is an acceleration performance test, the at least one item to be tested may be whether the vehicle accelerates when the accelerator pedal is stepped on.

[0031] In this embodiment, the test task of the vehicle is obtained, for example, from the cloud. This is only an example and does not limit the specific method of obtaining the test task of the vehicle.

[0032] Optionally, accurately acquiring the vehicle's test tasks can improve the vehicle's test efficiency and also ensure the accuracy and reliability of the test results.

[0033] Step S102: Generate a vehicle test case based on the test task.

[0034] In the technical solution provided in the above step S102 of the present invention, after the test task of the vehicle is acquired in step S101, a test case of the vehicle is generated according to the test task.

[0035] In this embodiment, test cases are generated according to the test tasks, for example, test cases for vehicles are generated in an automated manner, which is only an illustrative example and does not limit the specific method for generating test cases for vehicles.

[0036] Optionally, by determining a plurality of items to be tested in the test task, the items to be tested are filtered to obtain valid test items, thereby determining the test cases of the vehicle according to the valid items to be tested.

[0037] For example, multiple items to be tested are matched to obtain similarity matching values, wherein the similarity matching values ​​are used to indicate the degree of similarity between the items to be tested. According to the similarity matching values, valid items to be tested are determined, and the valid items to be tested are determined as test cases of the vehicle.

[0038] Step S103: testing the vehicle based on the test case to obtain a test result.

[0039] In the technical solution provided in the above step S103 of the present invention, the test results at least include an initial test result and a target test result, the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the test completion status of the vehicle.

[0040] In this embodiment, after the test case of the vehicle is generated in step S102, the vehicle is tested according to the test case of the vehicle to obtain a test result.

[0041] Optionally, a test instruction corresponding to the test case is generated, and the test instruction is sent to the test software. In response to the test software receiving the test instruction, the vehicle is tested according to the test instruction to obtain a test result.

[0042] For example, a remote test signal is generated, wherein the remote test signal is used to indicate a signal for remotely operating a vehicle; the vehicle is tested according to the remote test signal to obtain a target test result of the vehicle.

[0043] For another example, a simulation test signal is generated, wherein the simulation test signal is used to instruct the test software to simulate the user's operation to generate a signal for testing the vehicle; based on the simulation test signal, the vehicle is tested to obtain an initial test result of the vehicle.

[0044] It should be noted that the above embodiments can be executed by a vehicle testing device.

[0045] In the above steps S101 to S103 of the present invention, a test task of the vehicle is obtained, wherein the test task includes at least one item to be tested; based on the test task, a test case of the vehicle is generated; based on the test case, the vehicle is tested to obtain a test result, wherein the test result includes at least an initial test result and a target test result, wherein the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the completion of the vehicle test. That is to say, in an embodiment of the present invention, a test case is automatically generated according to the test task of the vehicle, so that the vehicle is automatically tested remotely according to the test case, avoiding excessive human resources, thereby solving the technical problem of low vehicle testing efficiency and achieving the technical effect of improving vehicle testing efficiency.

[0046] The above method of this embodiment is further introduced below.

[0047] As an optional implementation method, generating a vehicle test case based on a test task includes: determining multiple items to be tested in the test task; filtering the items to be tested to obtain valid items to be tested; and generating a vehicle test case based on the valid items to be tested.

[0048] In this embodiment, a plurality of items to be tested in the test task are determined, and the items to be tested are filtered to obtain valid items to be tested, thereby generating a test case for the vehicle according to the valid items to be tested.

[0049] Optionally, filtering the test items can ensure that valid test items are obtained from multiple test items, avoiding repeated testing of multiple test items, thereby improving test efficiency.

[0050] As an optional implementation manner, filtering the items to be tested to obtain valid items to be tested includes: matching multiple items to be tested to obtain similarity matching values, wherein the similarity matching values ​​are used to indicate the degree of similarity between the items to be tested; and determining valid items to be tested based on the similarity matching values.

[0051] In this embodiment, a plurality of items to be tested are matched to obtain similar matching values, and then valid items to be tested are determined according to the similar matching values.

[0052] Optionally, valid test items of the vehicle are determined by similar matching values, thereby avoiding duplication of test items and improving test efficiency.

[0053] As an optional embodiment, determining a valid item to be tested based on the similarity match value includes: in response to the similarity match value being less than a similarity match threshold, determining the item to be tested as a valid item to be tested.

[0054] In this embodiment, when the similarity matching value is less than the similarity matching threshold, the item to be tested is determined as a valid test item.

[0055] For example, assuming that the similarity matching threshold is 80%, the similarity matching value between matching item a and matching item b is 70%, since 70%<80%, that is, the similarity matching value is less than the similarity matching threshold, based on this, matching item a is determined as a valid test item.

[0056] As an optional implementation method, a vehicle is tested based on a test case to obtain a test result, including: generating a test instruction corresponding to the test case; sending the test instruction to the test software; and obtaining the test result sent by the test software, wherein the test result is obtained by the test software testing the vehicle in response to the test instruction.

[0057] In this embodiment, a test instruction corresponding to the test case is generated, and the test instruction is sent to the test software. For example, the test instruction is sent to the test software by file transfer, database synchronization, application programming interface (API) call, etc. This is only an illustrative example and does not limit the specific method of sending the test software.

[0058] Optionally, after the test software receives the test instruction, it tests the vehicle according to the test instruction to obtain the test result.

[0059] As an optional implementation method, a vehicle is tested based on a test case to obtain a test result, including: generating a remote test signal corresponding to the test case, wherein the remote test signal is used to indicate a signal for remotely operating the vehicle; based on the remote test signal, the vehicle is tested to obtain a target test result for the vehicle.

[0060] In this embodiment, a remote test signal is generated, and the vehicle is tested according to the remote test signal to obtain a target test result of the vehicle.

[0061] Optionally, the target test results can be used to determine whether the vehicle test is successful, and a comprehensive assessment and inspection of the entire vehicle can be performed to ensure that the vehicle meets predetermined quality standards.

[0062] As an optional implementation method, a vehicle is tested based on a test case to obtain a test result, including: generating a simulation test signal corresponding to the test case, wherein the simulation test signal is used to indicate a signal generated by the test software to test the vehicle by simulating the user's operation; based on the simulation test signal, the vehicle is tested to obtain an initial test result of the vehicle.

[0063] In this embodiment, a simulation test signal is generated, and the vehicle is tested according to the simulation test signal to obtain an initial test result of the vehicle.

[0064] Optionally, initial test results help identify issues and make improvements early in testing, improving test efficiency and reducing risks.

[0065] It should be noted that the above embodiments can be executed by a vehicle testing device.

[0066] In this embodiment, a test task of a vehicle is obtained, wherein the test task includes at least one item to be tested; based on the test task, a test case of the vehicle is generated; based on the test case, the vehicle is tested to obtain a test result, wherein the test result includes at least an initial test result and a target test result, wherein the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the completion of the vehicle test. That is to say, in the embodiment of the present invention, a test case is automatically generated according to the test task of the vehicle, so that the vehicle is automatically tested remotely according to the test case, avoiding excessive human resources, thereby solving the technical problem of low vehicle testing efficiency and achieving the technical effect of improving vehicle testing efficiency.

[0067] Example 2

[0068] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.

[0069] At present, with the continuous development of vehicle-mounted software and hardware performance, the vehicle's electronic and electrical architecture is changing from distributed control to centralized control, and vehicle functions are also developing from in-vehicle implementation to vehicle-cloud collaboration. The softwareization of vehicles has led to the continuous increase in software functions and volume, and the remote upgrade function has become a powerful technical guarantee for the rapid iteration of software versions. Remote upgrade testing is different from traditional testing. Its functions need to be implemented through network communication protocols, involving almost all controllers of the vehicle, and data interaction between the vehicle and the cloud. The test process will involve calls to remote servers, and multi-bus data and vehicle status must be monitored at the same time. If the test platform has many models and bench testing is also involved, it is difficult to realize remote upgrade automation testing. Therefore, ensuring the test efficiency of the vehicle is the top priority of vehicle remote upgrades.

[0070] In the related art, remote upgrade testing is mainly performed by testers on a test bench or a real vehicle. Since manual testing requires a lot of manpower, the human resource consumption is too high, and the efficiency and test coverage are low. Therefore, there is a technical problem of low vehicle testing efficiency. There is no effective solution to the above technical problem of low vehicle testing efficiency.

[0071] However, the embodiment of the present invention proposes an automatic method for remotely upgrading test cases of vehicles, which automatically generates test cases according to test tasks, and the test software sends the test cases to the intermediate test software, which tests the vehicle according to the test cases and returns the test status and test results of the vehicle by wireless and wired means. The technical problem of low vehicle test efficiency is solved, and the technical effect of improving vehicle test efficiency is achieved.

[0072] The embodiments of the present invention are further described below.

[0073] Figure 2 is a schematic diagram of a vehicle remote upgrade automation test case automatic software according to an embodiment of the present invention, such as Figure 2 As shown, the software includes: test software 201, agent software 202, CANoe 203, user equipment (UE) control engineering 204, and test cabinet and real vehicle 205.

[0074] Vector Controller Area Network Open Environment (CANoe) 203 is used to control the test logic and test environment of a single test unit, and is supplemented by other control software to simulate the operation of the tester to realize the automation of the vehicle-side OTA (Over-The-Air) process.

[0075] Alternatively, CANoe is an open environment based on the vector Controller Area Network (CAN) for developing, testing and analyzing vehicle communication networks. CANoe can simulate various nodes and communication messages in the vehicle network to help engineers with system integration and verification.

[0076] Optionally, CANoe provides a user-friendly interface that allows users to easily configure and manage all aspects of the vehicle communication network. Users can create and edit CAN network configurations, define nodes and messages, set communication parameters, etc. In addition, CANoe also provides a wealth of simulation and analysis tools, including signal waveform display, network load analysis, diagnostic functions, etc., to help users quickly locate and solve communication problems.

[0077] Optionally, through CANoe, engineers can simulate various situations of vehicle communication networks in a virtual environment to perform system-level testing and verification. This virtual simulation environment can greatly reduce testing time and cost and improve system reliability and safety.

[0078] Optionally, vehicle-side OTA (Over-The-Air) refers to the technology of remotely updating and upgrading the vehicle's software and systems through wireless networks. Through vehicle-side OTA, vehicle manufacturers can remotely update the vehicle's software and systems without having to bring the vehicle back to the service center to improve the vehicle's performance, safety and user experience. The development of vehicle-side OTA technology can help vehicle manufacturers launch new features and fix bugs more quickly, while also providing car owners with a more convenient way to maintain and upgrade their vehicles.

[0079] Optionally, the advantages of vehicle-side OTA are:

[0080] First, it provides a more flexible upgrade method: the vehicle-side OTA can remotely upgrade the vehicle's software through wireless networks, without the need for users to go to the vehicle's location for upgrades, greatly improving convenience.

[0081] Second, save time and cost: Vehicle-side OTA can perform software upgrades without affecting the normal use of the vehicle, reducing the time and cost of parking for maintenance.

[0082] Third, improve safety: Vehicle-side OTA can update the vehicle's software in a timely manner, fix security vulnerabilities and bugs, and improve the safety and stability of the vehicle.

[0083] Fourth, support personalized customization: vehicle-side OTA can customize software upgrades according to user needs to meet the personalized needs of different users.

[0084] Fifth, improve user experience: vehicle-side OTA can push the latest functions and services in a timely manner to improve user experience and satisfaction.

[0085] The test software 201 is the control core, which controls multiple test units in parallel and controls the OTA background through an interface to realize the automation of the cloud OTA process.

[0086] The test cabinet and the real vehicle 205 can have a built-in test industrial computer, a programmable power supply, and a vibration (Vibration Testing Chamber, referred to as VT) test chassis. After being connected to the OTA test bench, its function is to power the bench, simulate the input and output signals and bus signals required for OTA testing, send ADB (Android Debug Bridge) control instructions, and collect and record test data.

[0087] Alternatively, an industrial computer is a computer device specifically used in the field of industrial control, which usually has higher stability and reliability and can operate in harsh industrial environments. Industrial computers are usually used to monitor and control industrial equipment such as production lines, equipment and robots to achieve automated production and optimization of production processes. Testing industrial computers mainly includes testing their performance, stability, reliability and security to ensure their normal operation in industrial environments. Common industrial computer testing contents include hardware testing, software testing, communication interface testing, system stability testing, etc. By conducting comprehensive testing on industrial computers, their stability and reliability in industrial production can be ensured, and production efficiency and product quality can be improved.

[0088] Optionally, a programmable power supply is a power supply device that can control the output voltage, current and power through programming. It usually has a digital control interface and can be remotely controlled and adjusted through a computer or other device. Programmable power supplies are widely used in the research and development, production and testing of electronic equipment, and can provide stable and reliable power output to meet the power needs of different devices. Its advantages include precision control, high efficiency and energy saving, easy integration and automation. Programmable power supplies have important application value in communications, electronics, aerospace and other fields.

[0089] Optionally, a VT test chassis is a housing used to mount and protect test equipment. It usually has a durable housing with an internal space that can accommodate test equipment and related accessories. A VT test chassis usually has good heat dissipation performance and can effectively protect the test equipment from the external environment. It also usually has a design that is easy to use, such as interfaces that are easy to install and connect test equipment. VT test chassis are often used in various test applications, such as electronic product testing, communication equipment testing, etc.

[0090] Optionally, ADB is a tool for communication and control between computers and Android devices. Here are some commonly used ADB control commands:

[0091] Optionally, the control command adb devices indicates listing connected Android devices.

[0092] Optionally, the control instruction adb shell indicates entering a command line mode of the device.

[0093] Optionally, the control command adb reboot indicates restarting the device.

[0094] Optionally, the control instruction adb install indicates installing an application.

[0095] Optionally, the control instruction adb uninstall indicates uninstalling the application.

[0096] Optionally, the control instruction adb push indicates pushing a local file to a device.

[0097] Optionally, the control instruction adb pull indicates pulling a file from the device to a local device.

[0098] Optionally, the control command adb logcat indicates viewing the system log of the device.

[0099] Optionally, the control instruction adb forward indicates establishing port forwarding.

[0100] Optionally, the control instruction adb shell am start -n / indicates starting a specified activity of a specified application.

[0101] The agent software 202 (CANoe AGENT) is the interface software between the test software and the test project. Its function is to exchange data with the test software, receive control instructions from the test software, transmit data to the test software, and control the running and stopping of the test project to realize automated testing.

[0102] UE control engineering 204 simulates this process by controlling clicks on the screen through ADB commands. After the vehicle computer opens the ADB permission, the current vehicle computer display interface is captured through the ADB command, and then the position to be clicked is found through the image recognition algorithm. Then, the screen coordinates are clicked through the ADB command to realize the process of the tester manually clicking the screen, thereby realizing the automated testing of human-computer interaction and remote upgrades.

[0103] Optionally, UE control engineering refers to the engineering technology for controlling and managing user equipment in the field of wireless communication. UE refers to terminal equipment in a mobile communication network, such as mobile phones, tablet computers, etc. In a wireless communication system, UE control engineering involves work such as UE access, authentication, positioning, mobility management, resource allocation, and service quality control.

[0104] Optionally, the goal of UE control engineering is to ensure that user equipment can stably and efficiently access and use the wireless communication network while ensuring network performance and service quality. To achieve this goal, UE control engineering needs to use various technical means and algorithms, such as access control, mobility management, power control, load balancing, etc., to optimize the use of network resources and improve user experience.

[0105] Optionally, UE control engineering is an important part of wireless communication systems, directly affecting the user's communication experience and network performance. With the continuous development and popularization of mobile communication technology, UE control engineering is also constantly evolving and improving to meet user needs for communication services.

[0106] Figure 3 is a flow chart of a method for automatically generating test cases according to an embodiment of the present invention. Figure 3 As shown, the test case automatic generation method includes the following steps:

[0107] Step S301, generating a test set.

[0108] In this embodiment, a test set is generated according to the test task of the vehicle, and the number of variables combined in the test set is reduced to a smaller set that covers most cases; then a generator is used to generate a sufficient number of test sets with high coverage.

[0109] Optionally, the test set can be generated by the following steps:

[0110] First, determine the size of the test set: determine how many samples are needed to constitute the test set. Usually, the size of the test set should be large enough to ensure that the accuracy of the model can be fully evaluated.

[0111] Second, determine the sample distribution of the test set: According to the characteristics of the data and the application scenarios of the model, determine the distribution ratio of samples of each category in the test set to ensure that the test set can comprehensively cover samples of different categories.

[0112] Third, randomly select samples: randomly select samples from the original data set to construct a test set to ensure that the samples in the test set are representative and random.

[0113] Fourth, data partitioning: Divide the test set into feature data and label data so that the model can make predictions on the feature data and compare them with the label data.

[0114] Fifth, data preprocessing: preprocess the feature data in the test set, such as data normalization, missing value filling, etc., to ensure that the model can correctly process the data in the test set.

[0115] Sixth, evaluate model performance: Use the test set to evaluate the performance of the trained model, compare the model's prediction results with the real labeled data in the test set, and evaluate the model's accuracy and generalization ability.

[0116] Optionally, the above steps can generate a complete test set to evaluate the performance and generalization ability of the model.

[0117] Step S302, calling the iterative enumeration interface.

[0118] In this embodiment, after the test set is generated according to step S301, the iterative enumeration interface is called.

[0119] Step S303, executing the test case.

[0120] In this embodiment, the test case is executed using the interface called in step S302.

[0121] Step S304, filtering invalid test cases.

[0122] In this embodiment, invalid test cases are filtered out by matching the test cases.

[0123] Alternatively, invalid test cases generally refer to those test cases that do not meet the test objectives or cannot produce valid test results. Filtering invalid test cases is to ensure the effectiveness and efficiency of the testing process.

[0124] Optionally, here are some ways to filter invalid test cases:

[0125] First, check whether the test cases meet the test objectives and requirements: Make sure that the functions and scenarios involved in the test cases are consistent with the project requirements and objectives.

[0126] Second, check whether the test cases can produce valid test results: Test cases should be able to verify whether the system functions work as expected, rather than meaningless operations or tests.

[0127] Third, check if the test cases are repeated or redundant: Avoid including duplicate test cases to avoid wasting time and resources.

[0128] Fourth, check whether the test case contains invalid input or operation: Make sure that the input and operation of the test case are valid and reasonable, and do not contain invalid data or operations.

[0129] Sixth, check whether the test cases cover all key functions and scenarios: Make sure that the test cases can cover all key functions and scenarios of the system in order to comprehensively test the stability and reliability of the system.

[0130] Optionally, through the above method, invalid test cases can be effectively filtered out to improve test efficiency and quality.

[0131] Step S305, printing the test results.

[0132] In this embodiment, the final test results are printed.

[0133] Figure 4 is a schematic diagram of a remote upgrade according to an embodiment of the present invention, such as Figure 4 As shown, the hybrid power device includes: a controller 401 , a switch 402 , a test cabinet 403 and a speed measuring vehicle host 404 .

[0134] In this embodiment, the three parts transmit control instructions and data information through a wireless network, and can also realize parallel testing, and can be uniformly managed on the server side. For each part, a test cabinet 403 is used to provide its test environment, and the object to be tested is a real vehicle or a test cabinet 403.

[0135] Optionally, the controller 401 is used to monitor and adjust the operation of the hybrid power system to ensure its normal operation.

[0136] Optionally, the switch 402 is used to transmit data between the controller and the test cabinet to achieve fast exchange and transmission of information.

[0137] Optionally, the test cabinet 403 is a device for testing and detecting the hybrid power system, and can detect the performance and operation of the system.

[0138] Optionally, the speed measuring vehicle host 404 is a main component of the hybrid power system, including components such as an engine, a battery, and an electric motor, and is the core of the entire hybrid power system.

[0139] Optionally, the controller can automatically adjust the power distribution between the engine and the motor according to the vehicle's operating conditions and driving requirements to achieve optimal fuel economy and performance. At the same time, the controller can also monitor various system parameters, such as battery status, temperature, pressure, etc., as well as detect faults in the system and take appropriate measures to repair them in a timely manner to ensure the safety and reliability of the system.

[0140] Alternatively, switches are often used in data centers, enterprise networks, and other places that require high-speed data transmission. Switches have multiple ports and can connect multiple devices at the same time. Through the forwarding table inside the switch, data packets can be quickly forwarded to the target device to achieve fast communication between devices. Using a switch between the transmission controller and the test cabinet can improve data transmission speed and network stability, ensuring the security and accurate transmission of data.

[0141] Optionally, the test cabinet usually includes various sensors, instruments, controllers and data acquisition systems, which can monitor and record various parameters of the system, such as temperature, pressure, flow, etc. The test cabinet can also perform various load tests on the system to simulate the operation under different working conditions to evaluate the stability and reliability of the system. The test cabinet can promptly discover problems in the system and make corresponding adjustments and improvements to ensure that the performance and safety of the hybrid system are in the best state.

[0142] Optionally, the tachometer vehicle host achieves optimal energy utilization efficiency by coordinating and controlling the work between the engine and the motor, thereby improving the vehicle's fuel economy and performance. When the vehicle is driving, the tachometer vehicle host will intelligently adjust the working state of the engine and the motor according to factors such as the vehicle's speed, load, and driving conditions to ensure that the vehicle always maintains the best power output and fuel consumption. The performance and stability of the tachometer vehicle host directly affect the working effect of the entire hybrid system, so the quality and matching of each key component must be strictly controlled during the design and manufacturing process.

[0143] In this embodiment, test cases are automatically generated according to the test tasks, and the test software sends the test cases to the intermediate test software. The intermediate test software tests the vehicle according to the test cases and returns the test status and test results of the vehicle by wireless and wired means. The technical problem of low vehicle test efficiency is solved, and the technical effect of improving vehicle test efficiency is achieved.

[0144] Example 3

[0145] According to an embodiment of the present invention, a vehicle testing device is also provided. It should be noted that the vehicle testing device can be used to execute the vehicle testing method in embodiment 1.

[0146] Figure 5 FIG. 1 is a schematic diagram of a vehicle testing device according to an embodiment of the present invention. Figure 5 As shown, the vehicle testing device 500 may include: an acquisition unit 501 , a generation unit 502 and a testing unit 503 .

[0147] The acquisition unit 501 is used to acquire a test task of the vehicle, wherein the test task includes at least one item to be tested.

[0148] The generating unit 502 is used to generate a test case for the vehicle based on the test task.

[0149] The test unit 503 is used to test the vehicle based on the test case and obtain the test result, wherein the test result includes at least an initial test result and a target test result, the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the test completion status of the vehicle.

[0150] Optionally, the generating unit 502 may include: a first determining module for determining a plurality of items to be tested in the test task; a filtering module for filtering the items to be tested to obtain valid items to be tested; and a first generating module for generating a test case for the vehicle based on the valid items to be tested.

[0151] Optionally, the generation module may include: a matching submodule, used to match multiple items to be tested to obtain similarity matching values, wherein the similarity matching values ​​are used to indicate the degree of similarity between the items to be tested; and a first determination submodule, used to determine valid items to be tested based on the similarity matching values.

[0152] Optionally, the first determining submodule may also be configured to determine the item to be tested as a valid item to be tested in response to the similarity matching value being less than a similarity matching threshold.

[0153] Optionally, the test unit 503 may include: a second generation module, used to generate test instructions corresponding to the test case; a sending module, used to send the test instructions to the test software; and an acquisition module, used to obtain the test results sent by the test software, wherein the test results are obtained by the test software responding to the test instructions and testing the vehicle.

[0154] Optionally, the test unit 503 may also include: a third generation module, used to generate a remote test signal corresponding to the test case, wherein the remote test signal is used to indicate a signal for remote operation of the vehicle; and a second test module, used to test the vehicle based on the remote test signal to obtain a target test result of the vehicle.

[0155] Optionally, the test unit 503 may also include: a fourth generation module, used to generate a simulation test signal corresponding to the test case, wherein the simulation test signal is used to indicate the test software to simulate the user's operation to generate a signal for testing the vehicle; a third test module, used to test the vehicle based on the simulation test signal to obtain an initial test result of the vehicle.

[0156] In this embodiment, a test task of a vehicle is obtained, wherein the test task includes at least one item to be tested; based on the test task, a test case of the vehicle is generated; based on the test case, the vehicle is tested to obtain a test result, wherein the test result includes at least an initial test result and a target test result, wherein the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the completion of the vehicle test. That is to say, in the embodiment of the present invention, a test case is automatically generated according to the test task of the vehicle, so that the vehicle is automatically tested remotely according to the test case, avoiding excessive human resources, thereby solving the technical problem of low vehicle testing efficiency and achieving the technical effect of improving vehicle testing efficiency.

[0157] Example 4

[0158] According to an embodiment of the present invention, a computer-readable storage medium is further provided. The storage medium includes a stored program, wherein the program executes the vehicle testing method in Embodiment 1.

[0159] Example 5

[0160] According to an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the vehicle testing method in Embodiment 1 is executed when the program is run.

[0161] According to an embodiment of the present invention, a vehicle is further provided. The vehicle is used to execute the vehicle testing method in Embodiment 1.

[0162] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0163] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0164] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0166] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent functional component, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software functional component, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program codes.

[0168] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A vehicle testing method, It is characterized in that include: Acquire a test task for the vehicle, wherein the test task includes at least one item to be tested; Based on the test task, generating a test case for the vehicle; Based on the test case, the vehicle is tested to obtain test results, wherein the test results at least include an initial test result and a target test result, the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the test completion status of the vehicle.

2. The method according to claim 1, It is characterized in that Based on the test task, a test case for the vehicle is generated, including: Determining a plurality of items to be tested in the test task; Filtering the items to be tested to obtain valid items to be tested; Based on the valid items to be tested, a test case for the vehicle is generated.

3. The method according to claim 2, It is characterized in that The items to be tested are filtered to obtain valid items to be tested, including: Matching the plurality of items to be tested to obtain a similarity matching value, wherein the similarity matching value is used to indicate the degree of similarity between the items to be tested; Based on the similar matching value, the valid item to be tested is determined.

4. The method according to claim 3, It is characterized in that Determining the valid item to be tested based on the similar matching value includes: In response to the similarity matching value being less than a similarity matching threshold, the item to be tested is determined as the valid item to be tested.

5. The method according to claim 1, It is characterized in that Based on the test case, the vehicle is tested to obtain a test result, including: Generate a test instruction corresponding to the test case; Sending the test instruction to the test software; Acquire a test result sent by the test software, wherein the test result is obtained by the test software testing the vehicle in response to the test instruction.

6. The method according to claim 1, It is characterized in that Based on the test case, the vehicle is tested to obtain a test result, including: generating a remote test signal corresponding to the test case, wherein the remote test signal is used to indicate a signal for remotely operating the vehicle; Based on the remote test signal, the vehicle is tested to obtain the target test result of the vehicle.

7. The method according to claim 1, It is characterized in that Based on the test case, the vehicle is tested to obtain a test result, including: Generate a simulation test signal corresponding to the test case, wherein the simulation test signal is used to instruct the test software to simulate the user's operation to generate a signal for testing the vehicle; The vehicle is tested based on the simulated test signal to obtain the initial test result of the vehicle.

8. A vehicle testing device, It is characterized in that include: An acquisition unit, configured to acquire a test task of the vehicle in response to a vehicle failure, wherein the test task includes at least one item to be tested; A generating unit, configured to generate a test case for the vehicle based on the test task; A test unit is used to test the vehicle based on the test case to obtain a test result, wherein the test result includes at least an initial test result and a target test result, the initial test result is used to indicate the state of the vehicle during the test, and the target test result is used to indicate the test completion status of the vehicle.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 7 when running.

11. A vehicle, It is characterized in that The vehicle is used to perform the method according to any one of claims 1 to 7.