Vehicle OTA platform test method and device, electronic equipment and storage medium

By receiving test instructions in the OTA platform, confirming the test scenarios and models, and building a use case set for testing, it solves the problems of long manual testing and low accuracy, and achieves diversified testing and efficient automation of the OTA platform.

CN118779228AActive Publication Date: 2024-10-15CHERY AUTOMOBILE CO LTD

Patent Information

Application Number
CN202410862125.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In the existing technology, manual data processing and testing operations are time-consuming and have low accuracy, which affects the development cycle of the OTA cloud platform. It cannot cover diverse scenario tests and follow the different business logic of multiple models, resulting in manpower and time. The cost increases and the accuracy and usefulness of the test decreases.

Method used

Provide a testing method for the vehicle OTA platform. By receiving test instructions, confirm the target test scenario and car model, build a set of test cases, and use these use case sets to test the OTA platform, generate test reports, and implement different business logic under multiple car models. Targeted assessment to improve the efficiency and accuracy of testing.

Benefits of technology

It has realized the diversification of testing functions and the improvement of automation level of the OTA platform, solved the time and cost problems of manual testing, and improved the accuracy and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779228A_ABST
    Figure CN118779228A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle testing, in particular to a testing method and device for a vehicle OTA platform, electronic equipment and a storage medium, and the method comprises the steps: receiving a current testing instruction of a target OTA platform, confirming a target testing scene and at least one target testing vehicle type of the target OTA platform, obtaining a to-be-tested scene case set of the target OTA platform, and storing the to-be-tested scene case set of the target OTA platform; and testing the target OTA platform by using the to-be-tested scene case set to obtain an operation result of the to-be-tested scene case set, and generating a test report of the target OTA platform according to the operation result. According to the embodiment of the invention, the case set used for testing the OTA platform can be confirmed based on different test scenes of the OTA platform and the to-be-tested vehicle model, and the OTA platform is tested according to the case set to obtain the test report, so that targeted assessment of different business logics under multiple vehicle models is realized, the test efficiency and accuracy are improved, and the test efficiency is improved. The testing functions of the OTA platform are more diversified, and the testing automation level is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle testing technology, and in particular to a testing method, device, electronic device and storage medium for a vehicle OTA (Over-the-Air Technology) platform. Background Art

[0002] With the development of automobile intelligence, the application proportion of OTA cloud upgrade technology in the Internet of Vehicles business has increased accordingly. With the OTA access of different models, there are more and more OTA upgrade scenarios, and the upgrade messages and TBOX feedback results of different models are further differentiated with the changes in scene and configuration parameters, making the testing tasks of the OTA cloud platform more complicated.

[0003] In the related technology, the OTA cloud platform can be tested by manually entering vehicle model data, manually distinguishing the OTA requirements of different vehicle models, manually performing regression testing, and manually checking the reported message parsing fields.

[0004] However, in the related technologies, manual data processing and testing operations are time-consuming and have low accuracy, which affects the development cycle of the platform system. It is impossible to cover diverse scenario tests and follow the different business logics of multiple models, resulting in increased manpower and time costs, and reduced test accuracy and practicality, which needs to be solved urgently. Summary of the invention

[0005] The present application provides a vehicle OTA platform testing method, device, electronic device and storage medium to solve the problems in related technologies, such as manual data processing and testing operations are time-consuming and have low accuracy, affecting the development cycle of the platform system, and failing to cover diverse scenario tests and follow the different business logics of multiple models, resulting in increased manpower and time costs, and reduced test accuracy and practicality.

[0006] The first aspect of the present application provides a testing method for a vehicle OTA platform, comprising the following steps: receiving a current test instruction of a target OTA platform; confirming a target test scenario and at least one target test vehicle model of the target OTA platform based on the current test instruction; confirming a set of test scenario use cases of the target OTA platform according to the target test scenario and the at least one target test vehicle model, testing the target OTA platform using the set of test scenario use cases, obtaining an operating result of the set of test scenario use cases, and generating a test report for the target OTA platform according to the operating result.

[0007] Optionally, in one embodiment of the present application, confirming the set of use cases of scenarios to be tested of the target OTA platform based on the target test scenario and the at least one target test vehicle model includes: when the target test scenario is a functional test scenario, confirming the functional use case level of the functional test scenario by the current test instruction; based on the functional use case level and the at least one target test vehicle model, extracting corresponding functional test cases from a pre-built functional scenario library, and obtaining the set of use cases of scenarios to be tested from the functional test cases.

[0008] Optionally, in one embodiment of the present application, the method of confirming the set of use cases of scenarios to be tested of the target OTA platform based on the target test scenario and the at least one target test vehicle model includes: when the target test scenario is a stress test scenario, confirming the execution quantity and timeout mark of each target test vehicle model in the at least one target test vehicle model by the current test instruction; constructing virtual vehicles corresponding to each target test vehicle model based on the execution quantity, and extracting stress test cases corresponding to each target test vehicle model from a pre-constructed stress scenario library, and obtaining the set of use cases of scenarios to be tested from the stress test cases, the timeout marks and the virtual vehicles.

[0009] Optionally, in one embodiment of the present application, confirming the set of use cases of scenarios to be tested of the target OTA platform based on the target test scenario and the at least one target test vehicle model includes: when the target test scenario is a compatible test scenario, obtaining each compatible test vehicle model of the target OTA platform based on the at least one target test vehicle model, and confirming the compatible use case level of each compatible test vehicle model by the current test instruction; based on each compatible test vehicle model and the compatible use case level, extracting corresponding compatible test cases from a pre-built compatible scenario library, and obtaining the set of use cases of scenarios to be tested from the compatible test cases.

[0010] Optionally, in one embodiment of the present application, the running results include the number of use cases in the test scenario use case set, gateway uplink and downlink time and execution log, and the test pass status and use case number of each use case in the test scenario use case set.

[0011] A second aspect of the present application provides a testing device for a vehicle OTA platform, including: a receiving module for receiving a current test instruction of a target OTA platform; a confirmation module for confirming a target test scenario and at least one target test vehicle model of the target OTA platform based on the current test instruction; a testing module for confirming a set of test scenario use cases of the target OTA platform according to the target test scenario and the at least one target test vehicle model, testing the target OTA platform using the set of test scenario use cases, obtaining an operating result of the set of test scenario use cases, and generating a test report for the target OTA platform according to the operating result.

[0012] Optionally, in one embodiment of the present application, the test module includes: a first confirmation unit, used to confirm the functional use case level of the functional test scenario by the current test instruction when the target test scenario is a functional test scenario; a first extraction unit, used to extract corresponding functional test cases from a pre-built functional scenario library based on the functional use case level and the at least one target test vehicle model, and obtain the set of use cases for the scenario to be tested from the functional test cases.

[0013] Optionally, in one embodiment of the present application, the test module includes: a second confirmation unit, used to confirm the execution quantity and timeout mark of each target test vehicle model in the at least one target test vehicle model by the current test instruction when the target test scenario is a stress test scenario; a second extraction unit, used to construct a virtual vehicle corresponding to each target test vehicle model based on the execution quantity, and extract stress test cases corresponding to each target test vehicle model from a pre-constructed stress scenario library, and obtain the set of scenario case studies to be tested from the stress test cases, the timeout marks and the virtual vehicles.

[0014] Optionally, in one embodiment of the present application, the test module includes: a third confirmation unit, used to obtain each compatible test vehicle model of the target OTA platform based on the at least one target test vehicle model when the target test scenario is a compatible test scenario, and confirm the compatible use case level of each compatible test vehicle model by the current test instruction; a third extraction unit, used to extract corresponding compatible test cases from a pre-built compatible scenario library based on each compatible test vehicle model and the compatible use case level, and obtain the set of use cases for the scenario to be tested from the compatible test cases.

[0015] Optionally, in one embodiment of the present application, the running results include the number of use cases in the test scenario use case set, gateway uplink and downlink time and execution log, and the test pass status and use case number of each use case in the test scenario use case set.

[0016] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle OTA platform testing method as described in the above embodiment.

[0017] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the above-mentioned vehicle OTA platform testing method.

[0018] The fifth aspect of the present application provides a computer program, which implements the above-mentioned vehicle OTA platform testing method when executed.

[0019] The embodiment of the present application can confirm the use case set for testing the OTA platform based on different test scenarios of the OTA platform and the vehicle models to be tested, and test the OTA platform according to the use case set to obtain a test report, thereby realizing targeted assessment of different business logics under multiple vehicle models, improving the efficiency and accuracy of the test, making the test function of the OTA platform more diversified, and the level of test automation higher. Thus, the problems in the related technology that manual data processing and test operations are time-consuming and have low accuracy, affecting the development cycle of the platform system, and failing to cover diverse scenario tests and follow the different business logics of multiple vehicle models, resulting in increased manpower and time costs, and reduced test accuracy and practicality, are solved.

[0020] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0022] Figure 1 A flow chart of a vehicle OTA platform testing method provided according to an embodiment of the present application;

[0023] Figure 2 A schematic diagram of a web-based process of an OTA platform test according to an embodiment of the present application;

[0024] Figure 3 It is a structural schematic diagram of a test device for a vehicle OTA platform according to an embodiment of the present application;

[0025] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0027] The following describes the testing method, device, electronic device and storage medium of the vehicle OTA platform of the embodiment of the present application with reference to the accompanying drawings. In view of the related technologies mentioned in the above background technology, the data processing and test operations based on manual labor are time-consuming and have low accuracy, which affects the development cycle of the platform system, cannot cover the diverse scene tests and follow the different business logics of multiple models, resulting in increased manpower and time costs, and the accuracy and practicality of the test are reduced. The present application provides a testing method for a vehicle OTA platform, in which the use case set for testing the OTA platform can be confirmed based on the different test scenarios and models to be tested of the OTA platform, and the OTA platform is tested according to the use case set to obtain a test report, which realizes the targeted assessment of different business logics under multiple models, improves the efficiency and accuracy of the test, and makes the test function of the OTA platform more diversified, and the test automation level is higher. Thus, the problems that the data processing and test operations based on manual labor in the related technology are time-consuming and have low accuracy, which affects the development cycle of the platform system, cannot cover the diverse scene tests and follow the different business logics of multiple models, resulting in increased manpower and time costs, and the accuracy and practicality of the test are reduced.

[0028] Specifically, Figure 1 A flow chart of a vehicle OTA platform testing method provided in an embodiment of the present application.

[0029] like Figure 1 As shown, the test method of the vehicle OTA platform includes the following steps:

[0030] In step S101 , a current test instruction of a target OTA platform is received.

[0031] It can be understood that in the embodiments of the present application, the target OTA platform may be an OTA Internet of Vehicles platform to be tested, and the specific testing process of the platform in the following steps may be performed on the target OTA platform according to the current test instructions.

[0032] In step S102 , a target test scenario and at least one target test vehicle model of a target OTA platform are confirmed based on the current test instruction.

[0033] It is understood that in the embodiments of the present application, the target test scenarios may include software updates, firmware upgrades, functional tests, performance tests, security tests, and other test scenarios of the OTA Internet of Vehicles platform, such as automated tests of functionality, compatibility, and performance tests, etc. Among them, factors such as hardware configuration, software version, and network compatibility of different target vehicle models may be evaluated to ensure the effectiveness of the test.

[0034] In step S103, a set of test scenario use cases of the target OTA platform is confirmed based on the target test scenario and at least one target test vehicle model, the target OTA platform is tested using the set of test scenario use cases, and the operation results of the set of test scenario use cases are obtained, so as to generate a test report for the target OTA platform based on the operation results.

[0035] It is understandable that in the embodiments of the present application, the key points of the OTA platform test and the target vehicle type can be determined by analyzing the specific needs of the target test scenario and the target vehicle model, and a set of use cases for the scenarios to be tested can be obtained. Among them, the use case can execute the test case for a specific function or scenario and record the test process and results, and collect various data during the test process to obtain the operating results of the use case set of the scenario to be tested, and then analyze and classify the operating results to evaluate the performance indicators of the OTA platform, such as update speed, stability, resource consumption, etc. By formulating a detailed set of test cases, the target test scenarios can be fully covered, the comprehensiveness of the test can be ensured, and the repeatability and comparability of the test can be improved.

[0036] Optionally, in one embodiment of the present application, a set of use cases for scenarios to be tested of a target OTA platform is confirmed based on a target test scenario and at least one target test vehicle model, including: when the target test scenario is a functional test scenario, the functional use case level of the functional test scenario is confirmed by the current test instruction; based on the functional use case level and at least one target test vehicle model, corresponding functional test cases are extracted from a pre-built functional scenario library, and a set of use cases for scenarios to be tested is obtained from the functional test cases.

[0037] During the actual execution process, the functional test scenarios can evaluate the functional operation capabilities of the target OTA platform. A functional scenario library containing various functional test scenarios can be built in advance. Each scenario has a corresponding functional test case. The test scenarios in the scenario library are classified according to the functional case level to facilitate subsequent extraction and matching.

[0038] Specifically, when the target test scenario is a functional test scenario, functional test cases that match the functional use case level and the target test vehicle model can be extracted from the functional scenario library, and the extracted functional test cases can be combined into a test scenario use case set to ensure that all relevant test points are covered.

[0039] Optionally, in one embodiment of the present application, a set of use cases for scenarios to be tested of a target OTA platform is confirmed based on a target test scenario and at least one target test vehicle model, including: when the target test scenario is a stress test scenario, the execution quantity and timeout mark of each target test vehicle model in at least one target test vehicle model are confirmed by the current test instruction; a virtual vehicle corresponding to each target test vehicle model is constructed based on the execution quantity, and stress test cases corresponding to each target test vehicle model are extracted from a pre-constructed stress scenario library, and a set of use cases for scenarios to be tested is obtained from the stress test cases, timeout marks and virtual vehicles.

[0040] During the actual execution process, the stress test scenario can evaluate the carrying capacity of the target OTA platform. A stress scenario library containing various stress test scenarios can be built in advance. Each scenario has a corresponding stress test case. According to the target test vehicle model, the stress test scenarios suitable for the vehicle model are screened out, and the stress test cases that match the target test vehicle model are extracted from the stress scenario library. The extracted stress test cases are combined into a set of scenario cases to be tested.

[0041] Specifically, the number of executions and timeout annotations can be configured for each target test vehicle model according to the test instructions, which is used to create a corresponding virtual vehicle for each target test vehicle model, ensure that each virtual vehicle simulates the hardware and software configuration of the real vehicle, and integrate timeout annotations in the use case set to ensure that timeouts can be identified during the test process. Subsequently, according to the use case set of the scenario to be tested, the test cases can be executed one by one using virtual vehicles, and the test process and results can be recorded. Among them, virtual vehicles and stress test cases can be reused in different test scenarios, which improves the reuse rate of resources.

[0042] Optionally, in one embodiment of the present application, a set of use cases for scenarios to be tested of a target OTA platform is confirmed based on a target test scenario and at least one target test vehicle model, including: when the target test scenario is a compatible test scenario, each compatible test vehicle model of the target OTA platform is obtained based on at least one target test vehicle model, and the compatible use case level of each compatible test vehicle model is confirmed by the current test instruction; based on each compatible test vehicle model and the compatible use case level, corresponding compatible test cases are extracted from a pre-built compatible scenario library, and a set of use cases for scenarios to be tested is obtained from the compatible test cases.

[0043] During the actual implementation process, the compatibility test scenarios can evaluate the compatibility of the target OTA platform with various vehicle models. By pre-building a compatible scenario library containing a variety of compatible test scenarios, each scenario has a corresponding test case. According to each compatible test vehicle model and compatible case level, the compatible test scenarios suitable for the vehicle model are screened out to extract compatible test cases that match the compatible test vehicle model and compatible case level from the compatible scenario library, and the extracted compatible test cases are combined into a scenario case set to be tested.

[0044] Specifically, a compatible use case level can be configured for each target test vehicle model according to the test instructions, and compatibility testing can be performed based on multiple target test vehicle models selected by the user, thereby evaluating the compatibility of each compatible test vehicle model with the OTA platform.

[0045] Optionally, in one embodiment of the present application, the running results include the number of use cases in the test scenario use case set, gateway uplink and downlink time and execution log, and the test pass status and use case number of each use case in the test scenario use case set.

[0046] During the actual execution process, the running results may include the name of the selected scenario library, the number of use cases in the scenario library, the gateway uplink and downlink time in each scenario, the number of passed and failed use cases in the scenario library, the number of each use case, and the execution log path of the target test scenario.

[0047] like Figure 2 As shown, the working content of the embodiment of the present application is described in detail with a specific embodiment below, which is a web-based flow chart of the OTA platform test of an embodiment of the present application.

[0048] Specifically, use python+vue3.0+selenium+request to develop a test HTML interface. The page includes cascade filtering of test scenarios and filtering of different test types (supporting functional testing, stress testing and compatibility testing).

[0049] Furthermore, in the functional test scenario, you can select JX65 model-multiple upgrades-differential upgrades-xxx use cases or JX65 model-multiple upgrades-differential upgrades-xxx use cases~xxx use cases. If the user does not select the use case level, the scenarios under the title of all scenario libraries will be executed by default. If only the model is selected, all scenarios under the model will be executed by default. In the stress test scenario, select the model-quantity-gateway timeout, such as jx65 model-1000-10S, and then filter and issue. In the compatibility test scenario, the user selects multiple models. After multiple selections, the scenario library under each model can be mapped and the scenario use case can be executed.

[0050] After the user selects a scenario, he can submit the execution with one click. After the execution, the running results will be displayed, including the name of the selected scenario library, the number of use cases in the scenario library, the gateway uplink and downlink time in each scenario, the number of passes, the number of failures, and the scenario use case number; the execution log path. After the test result information is displayed on the Html page, an allure test report is generated by default, and the output content of the allure test report supports custom template extensions.

[0051] Among them, during the execution of scenario test, you can use Python language to write scenario library scenario execution code, obtain the parameters obtained on the interface to the scenario library title, or map the use case number to the Python component; rely on Python's underlying request and selenium to execute the scenario automation code to simulate the interface or interface to issue instructions, Python generates the corresponding proto according to the protocol list, generates the corresponding message format and sends it to the platform server through the MQTT protocol; use Python language to capture gateway logs, database storage field values, and interface result text to determine the use case execution results under the scenario use case, for example, you can compare whether the interface script is consistent with the test scenario; return the test comparison results. After the test results and verification content are returned, they are displayed on the page of the test tool website for easy viewing by testers; the test results are stored in the database according to the test time and test scenario. After integrating Jenkins, the code is continuously updated and continuously integrated, and combined with Allure to generate interface reports.

[0052] According to the vehicle OTA platform testing method proposed in the embodiment of the present application, the use case set for testing the OTA platform can be confirmed based on the different test scenarios of the OTA platform and the vehicle models to be tested, and the OTA platform can be tested according to the use case set to obtain a test report, thereby achieving targeted assessment of different business logics under multiple vehicle models, improving the efficiency and accuracy of the test, making the test function of the OTA platform more diversified, and the level of test automation higher. Thus, the problems in the related technology that manual data processing and test operations are time-consuming and have low accuracy, affecting the development cycle of the platform system, failing to cover diverse scenario tests and follow the different business logics of multiple vehicle models, resulting in increased manpower and time costs, and reduced test accuracy and practicality are solved.

[0053] Next, a test device for a vehicle OTA platform proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.

[0054] Figure 3 It is a structural schematic diagram of a test device for a vehicle OTA platform according to an embodiment of the present application.

[0055] like Figure 3As shown, the vehicle OTA platform testing device 10 includes: a receiving module 100 , a confirmation module 200 and a testing module 300 .

[0056] Wherein, the receiving module 100 is used to receive the current test instruction of the target OTA platform;

[0057] The confirmation module 200 is used to confirm a target test scenario and at least one target test vehicle model of a target OTA platform based on a current test instruction.

[0058] The test module 300 is used to confirm the test scenario use case set of the target OTA platform according to the target test scenario and at least one target test vehicle model, test the target OTA platform using the test scenario use case set, obtain the operation results of the test scenario use case set, and generate a test report for the target OTA platform according to the operation results.

[0059] Optionally, in one embodiment of the present application, the test module 300 includes:

[0060] The first confirmation unit is used to confirm the functional use case level of the functional test scenario according to the current test instruction when the target test scenario is a functional test scenario.

[0061] The first extraction unit is used to extract corresponding functional test cases from a pre-built functional scenario library based on the functional test case hierarchy and at least one target test vehicle model, and obtain a set of scenario use cases to be tested from the functional test cases.

[0062] Optionally, in one embodiment of the present application, the test module 300 includes:

[0063] The second confirmation unit is used to confirm the execution quantity and timeout mark of each target test vehicle model in at least one target test vehicle model according to the current test instruction when the target test scenario is a stress test scenario.

[0064] The second extraction unit is used to construct a virtual vehicle corresponding to each target test vehicle model based on the execution quantity, and extract the stress test cases corresponding to each target test vehicle model from the pre-built stress scenario library, and obtain the set of scenario cases to be tested from the stress test cases, timeout annotations and virtual vehicles.

[0065] Optionally, in one embodiment of the present application, the test module 300 includes:

[0066] The third confirmation unit is used to obtain each compatible test model of the target OTA platform based on at least one target test model when the target test scenario is a compatible test scenario, and confirm the compatible use case level of each compatible test model according to the current test instruction.

[0067] The third extraction unit is used to extract corresponding compatible test cases from a pre-built compatible scenario library based on each compatible test vehicle model and compatible case level, and obtain a set of scenario use cases to be tested from the compatible test cases.

[0068] Optionally, in one embodiment of the present application, the running results include the number of use cases in the test scenario use case set, gateway uplink and downlink time and execution log, and the test pass status and use case number of each use case in the test scenario use case set.

[0069] It should be noted that the aforementioned explanation of the embodiment of the testing method for the vehicle OTA platform is also applicable to the testing device for the vehicle OTA platform of this embodiment, and will not be repeated here.

[0070] According to the vehicle OTA platform test device proposed in the embodiment of the present application, the use case set for testing the OTA platform can be confirmed based on the different test scenarios of the OTA platform and the vehicle models to be tested, and the OTA platform can be tested according to the use case set to obtain a test report, thereby realizing the targeted assessment of different business logics under multiple vehicle models, improving the efficiency and accuracy of the test, making the test function of the OTA platform more diversified, and the level of test automation higher. Thus, the problems in the related technology that manual data processing and test operations are time-consuming and have low accuracy, affecting the development cycle of the platform system, failing to cover diverse scenario tests and follow the different business logics of multiple vehicle models, resulting in increased manpower and time costs, and reduced test accuracy and practicality are solved.

[0071] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0072] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .

[0073] When the processor 402 executes the program, the vehicle OTA platform testing method provided in the above embodiment is implemented.

[0074] Furthermore, the electronic device further comprises:

[0075] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0076] The memory 401 is used to store computer programs that can be executed on the processor 402 .

[0077] The memory 401 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0078] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0079] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0080] The processor 402 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0081] 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 vehicle OTA platform testing method as described above is implemented.

[0082] This embodiment also provides a computer program, which implements the above vehicle OTA platform testing method when executed.

[0083] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction 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 do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0084] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0085] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0086] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0087] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, 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, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0088] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0089] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0090] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A vehicle OTA platform testing method, characterized in that: The following steps are involved: Receive the current test instructions of the target OTA platform; Confirming a target test scenario and at least one target test vehicle model of the target OTA platform based on the current test instruction; Confirm the test scenario use case set of the target OTA platform according to the target test scenario and the at least one target test vehicle model, test the target OTA platform using the test scenario use case set to be tested, obtain the running results of the test scenario use case set to be tested, and generate a test report for the target OTA platform according to the running results.

2. The method according to claim 1, characterized in that The step of confirming a set of test scenario use cases of the target OTA platform according to the target test scenario and the at least one target test vehicle model includes: In the case where the target test scenario is a functional test scenario, the functional use case level of the functional test scenario is confirmed by the current test instruction; Based on the functional use case hierarchy and the at least one target test vehicle model, corresponding functional test cases are extracted from a pre-built functional scenario library, and the scenario use case set to be tested is obtained from the functional test cases.

3. The method according to claim 1, characterized in that The step of confirming a set of test scenario use cases of the target OTA platform according to the target test scenario and the at least one target test vehicle model includes: In the case where the target test scenario is a stress test scenario, the current test instruction confirms the execution quantity and timeout mark of each target test vehicle model in the at least one target test vehicle model; Based on the execution quantity, virtual vehicles corresponding to each target test vehicle model are respectively constructed, and stress test cases corresponding to each target test vehicle model are extracted from a pre-constructed stress scenario library, and the set of scenario cases to be tested is obtained from the stress test cases, the timeout annotations and the virtual vehicles.

4. The method according to claim 1, characterized in that: The step of confirming a set of test scenario use cases of the target OTA platform according to the target test scenario and the at least one target test vehicle model includes: In the case where the target test scenario is a compatible test scenario, obtaining each compatible test vehicle model of the target OTA platform based on the at least one target test vehicle model, and confirming the compatible use case level of each compatible test vehicle model by the current test instruction; Based on each compatible test vehicle model and the compatible use case level, corresponding compatible test cases are extracted from a pre-built compatible scenario library, and the set of scenario use cases to be tested is obtained from the compatible test cases.

5. The method according to claim 1, characterized in that The operation result includes the number of use cases in the test scenario use case set, gateway uplink and downlink time and execution log, and the test pass status and use case number of each use case in the test scenario use case set.

6. A test device for a vehicle OTA platform, characterized in that: include: A receiving module, used to receive the current test instruction of the target OTA platform; A confirmation module, configured to confirm a target test scenario and at least one target test vehicle model of the target OTA platform based on the current test instruction; A testing module is used to confirm the set of test scenario use cases of the target OTA platform according to the target test scenario and the at least one target test vehicle model, test the target OTA platform using the set of test scenario use cases, obtain the running results of the set of test scenario use cases, and generate a test report for the target OTA platform according to the running results.

7. The device according to claim 6, characterized in that The test module includes: A first confirmation unit, configured to confirm, when the target test scenario is a functional test scenario, a functional use case level of the functional test scenario by the current test instruction; The first extraction unit is used to extract corresponding functional test cases from a pre-built functional scenario library based on the functional test case hierarchy and the at least one target test vehicle model, and obtain the scenario case set to be tested from the functional test cases.

8. The device according to claim 6, characterized in that The test module includes: A second confirmation unit, configured to confirm, when the target test scenario is a stress test scenario, the execution quantity and timeout mark of each target test vehicle model in the at least one target test vehicle model by the current test instruction; The second extraction unit is used to construct virtual vehicles corresponding to each target test vehicle model based on the execution quantity, and extract stress test cases corresponding to each target test vehicle model from a pre-constructed stress scenario library, and obtain the set of scenario cases to be tested from the stress test cases, the timeout annotations and the virtual vehicles.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle OTA platform testing method as described in any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle OTA platform testing method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • OTA small-flow flash test system and method

    CN115408268A

  • Vehicle OTA method giving consideration to performance test and storage medium

    CN116668432A

  • Vehicle-mounted application test method and system, electronic equipment and storage medium

    CN117076316A

  • OTA function test system and test method based on automobile framework

    CN117269648A

  • OTA test method, device and equipment and storage medium

    CN117370199A

Cited By

  • OTA upgrade test method, device and equipment

    CN119883915A

  • Ota upgrade test method, apparatus and device

    CN119883915B