Automatic testing method, device and equipment, readable storage medium and product

Through automated testing methods, the problems of low testing efficiency and low accuracy of atomic orchestration application are solved, efficient and accurate testing operations are achieved, ensuring the matching of atomic item configurations of different models, and potential problems are discovered and repaired in a timely manner.

CN119149414APending Publication Date: 2024-12-17CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411186067.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In the prior art, the testing efficiency of atomic orchestration applications is low and the accuracy is low, the test complexity is high, and manual testing is prone to miss scenes or atomic terms, resulting in the failure to detect and repair potential problems in a timely manner.

Method used

Using an automated test method, by obtaining the test case set associated with the object to be tested, convert the test cases into signal data based on the preset atomic mapping list, generate test scenario data, simulate the test environment, and perform automated test operations in this environment. Make sure that the execution action matches the trigger condition and generate a detailed test report to evaluate the test effectiveness.

Benefits of technology

Improve the testing efficiency and accuracy of atomic orchestration applications, avoid configuration mismatch problems caused by different configuration differences in different models during manual testing, ensure the accuracy and consistency of test cases, promptly discover problems in the test and automatically supplement them. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149414A_ABST
    Figure CN119149414A_ABST
Patent Text Reader

Abstract

The invention relates to an automatic testing method, device and equipment, a readable storage medium and a product. The method comprises the following steps: acquiring a test case set associated with a to-be-tested object; for each test case, the test case is converted into signal data based on a preset atomic mapping list, and the atomic mapping list comprises identification information of a plurality of preset atomic items and parameter information associated with the preset atomic items; generating test scene data according to the signal data, and simulating a test environment according to the test scene data; and performing test operation on the to-be-tested object in the test environment to obtain a test result so as to determine whether the execution action can be normally executed or not when the trigger condition associated with the test case is met. The simulation of the test scene can be automatically realized, and the automatic test operation can be carried out in the test scene. And a tester does not need to manually create a test case, construct a test scene and manually test. And the test efficiency and the test accuracy of the atomic arrangement application are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile testing technology, and in particular to an automated testing method, device, equipment, readable storage medium and product. Background Art

[0002] The atomic orchestration application is based on user car-using habits and travel scenarios, combined with the soft switch control capabilities of existing automobile components, to choreograph scenario-based car-using modes such as travel, leisure, shopping, and in-car entertainment. It improves the user's perception of the car, reduces the user's learning and usage costs, and improves the convenience and fun of car use.

[0003] In order to improve the use effect of atomic orchestration applications, you first need to create test cases associated with atomic orchestration applications and test the atomic orchestration applications. Currently, testers generally create test cases and test scenarios for multiple scenarios and multiple atomic items based on actual experience, and conduct detailed testing and verification of the atomic execution capabilities of each scenario card.

[0004] However, the test operations of atomic orchestration applications using the above method often have high test complexity and large test combing volume, and manual test operations often have low test efficiency and low test accuracy. Summary of the invention

[0005] One of the purposes of the present invention is to provide an automated testing method to solve the technical problems in the prior art that manual atomic orchestration application testing is inefficient and has low test accuracy; a second purpose is to provide an automated testing device; a third purpose is to provide an electronic device; a fourth purpose is to provide a computer-readable storage medium; and a fifth purpose is to provide a computer program product.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0007] An automated testing method, comprising:

[0008] Acquire a test case set associated with the object to be tested, wherein the test case set includes multiple test cases, and the test case includes at least one trigger condition atomic item and at least one execution action atomic item;

[0009] For each test case, convert the test case into signal data based on a preset atom mapping list, wherein the atom mapping list includes identification information of a plurality of preset atom items and parameter information associated with the preset atom items;

[0010] generating test scenario data according to the signal data, and simulating a test environment according to the test scenario data;

[0011] A test operation is performed on the object to be tested in the test environment to obtain a test result to determine whether the execution action can be performed normally when the trigger condition associated with the test case is met.

[0012] According to the above technical means, the simulation of the test scenario can be realized automatically, and the automated test operation can be performed in the test scenario. There is no need for the tester to manually create test cases, build test scenarios, and perform manual test operations. The test efficiency and test accuracy of the atomic orchestration application are improved.

[0013] Furthermore, the obtaining of a test case set associated with the object to be tested includes:

[0014] Acquire an atom list associated with the object to be tested, wherein the atom list includes a plurality of atomic items associated with the object to be tested;

[0015] Determine whether there is a historical use case set currently and obtain the processing result;

[0016] A test case set associated with the object to be tested is constructed based on the processing result and the atomic list.

[0017] According to the above technical means, by creating atomic lists for different objects to be tested, it is possible to create test case sets for different objects to be tested, thereby avoiding the problem of mismatch between vehicle atomic items and application atomic items due to differences in configurations and interfaces of different vehicle models during manual testing, thereby improving the accuracy of the test.

[0018] Furthermore, the constructing a test case set associated with the object to be tested based on the processing result and the atomic list includes:

[0019] If there is no historical use case set, combining the atomic items in the atomic list according to the preset use case generation conditions and the preset test case structure to obtain multiple test cases;

[0020] If a historical use case set exists, an editing operation is performed on the historical use cases in the historical use case set based on the atomic list to obtain the test case set, wherein the editing operation includes one or more of a adding operation, a deleting operation, and an updating operation.

[0021] According to the above technical means, by creating a test case set based on the atomic list when no historical case set exists, and editing the historical case set based on the atomic list when a historical case set exists, the matching degree between the test case set and the atomic list can be ensured, thereby improving the accuracy of the test.

[0022] Furthermore, the test case further includes at least one target pre-state atomic item; the atomic items in the atomic list are combined according to the preset test case generation conditions and the preset test case structure to obtain multiple test cases, including:

[0023] Selecting a target trigger condition atomic item and a target pre-condition atomic item in the atomic list according to the use case generation condition;

[0024] Screening multiple execution action atomic items that match the target trigger condition atomic item and the target pre-state atomic item in the atomic list;

[0025] Randomly determining a preset number of target execution action atomic items from the multiple execution action atomic items;

[0026] The test case is constructed based on the target trigger condition atomic item, the target pre-state atomic item and a preset number of target execution action atomic items.

[0027] According to the above technical means, by generating target trigger condition atomic items and target pre-state atomic items based on preset use case generation conditions, target execution action atomic items that match the target trigger condition atomic items and target pre-state atomic items are obtained in the atomic list, thereby ensuring the matching degree between the execution action and the trigger condition and pre-state in the test case, thereby improving the accuracy of the test case.

[0028] Furthermore, the converting the test case into signal data based on a preset atom mapping list includes:

[0029] Performing a split operation on the test case according to a preset test case splitting condition to obtain a plurality of to-be-converted atomic items associated with the test case;

[0030] For each atomic item to be converted, determining parameter information associated with the atomic item to be converted in the atomic mapping list, wherein the parameter information includes one or more of definition information, attribute information, and numerical information associated with the atomic item to be converted;

[0031] Based on preset conversion parameters, a data conversion operation is performed on the parameter information associated with each of the atomic items to be converted to obtain the signal data, wherein the data conversion operation includes one or more of format conversion, data type conversion, unit conversion, and range conversion.

[0032] According to the above technical means, by pre-establishing an atom mapping list, the conversion operation of signal data can be quickly implemented based on the atom mapping list, thereby improving the test efficiency.

[0033] Furthermore, for each atomic item to be converted, after determining the parameter information associated with the atomic item to be converted in the atomic mapping list, the method further includes:

[0034] If the atom mapping list does not include the identification information of the atom item to be converted, marking the atom item to be converted according to a preset marking symbol;

[0035] Feedback information is generated according to all marked atomic items to be converted associated with the test case, and the feedback information is sent to a preset cloud server so that a user can perform a data correction operation based on the feedback information.

[0036] According to the above technical means, when there is no atomic item to be converted in the atomic mapping list, feedback information is generated, so that data correction operations can be performed based on the feedback information to ensure the success rate of the next conversion operation.

[0037] Further, generating test scenario data according to the signal data includes:

[0038] The signal data is transmitted to a preset cloud server based on a preset transmission protocol, so that a preset orchestration system in the cloud server generates test scenario data based on the signal data, wherein the test scenario data is a test environment that can be simulated and displayed on the front end;

[0039] Obtain the test scenario data sent by the cloud server.

[0040] According to the above technical means, by pre-building a transmission protocol, the signal data transmission operation can be quickly performed based on the transmission protocol. In addition, by integrating an atomic orchestration application in a cloud server, the test scenario data can be generated based on the atomic orchestration application, thereby improving the efficiency and accuracy of the test operation.

[0041] Further, simulating the test environment according to the test scenario data includes:

[0042] Performing data analysis on the test scenario data to determine the current pre-condition and trigger conditions;

[0043] The pre-condition and the trigger condition are converted into CAN signal data, and based on the CAN signal data, a preset vehicle computer associated with the object to be tested is controlled to simulate the test environment.

[0044] Further, the performing a test operation on the object to be tested under the test environment to obtain a test result includes:

[0045] Determining the execution action of the object to be tested under the test environment;

[0046] Determine whether the execution action matches the execution action atomic item in the test case to obtain a test result.

[0047] Further, the determining whether the execution action matches the execution action atomic item in the test case, after obtaining the test result, further includes:

[0048] Generate a test report based on the test results, test cases and data flows during the test;

[0049] The test report is uploaded to a preset cloud server so that the user can perform data analysis and data update operations based on the test report.

[0050] According to the above technical means, when the execution action does not match the execution action atomic item in the test case, a detailed test report is generated to evaluate the test effect and discover potential problems. By monitoring the test execution status and results, problems and anomalies in the test are discovered in a timely manner, and corresponding measures are taken to automatically supplement the use case set, and accurate tests are performed on the abnormal problem multiple times, so that more problems can be exposed through an abnormal problem using this method.

[0051] Furthermore, the present invention also provides an automated testing device, comprising:

[0052] An acquisition module, used for acquiring a test case set associated with the object to be tested, wherein the test case set includes a plurality of test cases, and the test case includes at least one trigger condition atomic item and at least one execution action atomic item;

[0053] A conversion module, for converting each test case into signal data based on a preset atomic mapping list, wherein the atomic mapping list includes identification information of a plurality of preset atomic items and parameter information associated with the preset atomic items;

[0054] A processing module, used to generate test scenario data according to the signal data, and simulate a test environment according to the test scenario data;

[0055] The test module is used to perform a test operation on the object to be tested under the test environment to obtain a test result so as to determine whether the execution action can be performed normally when the trigger condition associated with the test case is met.

[0056] Furthermore, the present invention also provides an electronic device, comprising: a processor and a memory;

[0057] The memory stores computer-executable instructions;

[0058] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the automated testing method as described in any one of the above aspects.

[0059] Furthermore, the present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the automated testing method as described in any one of the above aspects is implemented.

[0060] Furthermore, the present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the automated testing method as described in any one of the above aspects is implemented.

[0061] Beneficial effects of the present invention:

[0062] The present invention can automatically implement the test operation of the atomic arrangement application, improve the test efficiency, and improve the test accuracy;

[0063] The present invention can conveniently manage the atomic item configuration information of different vehicle models by creating atomic lists corresponding to different test objects, thereby ensuring the accuracy and consistency of test cases generated based on the atomic lists;

[0064] The present invention generates a detailed test report to evaluate the test effect and discover potential problems. By monitoring the test execution and results, problems and anomalies in the test are discovered in a timely manner, and corresponding measures are taken to automatically supplement the use case set, and accurate tests are performed on the abnormal problem multiple times, so that more problems can be exposed through one abnormal problem. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 The system architecture on which the present invention is based;

[0066] Figure 2 A schematic diagram of a flow chart of an automated testing method provided by an embodiment of the present invention;

[0067] Figure 3 A schematic diagram of a flow chart of an automated testing method provided by another embodiment of the present invention;

[0068] Figure 4 A schematic diagram of constructing a test case set provided by an embodiment of the present invention;

[0069] Figure 5 A schematic diagram of a flow chart of an automated testing method provided by another embodiment of the present invention;

[0070] Figure 6 A test case conversion diagram provided by an embodiment of the present invention;

[0071] Figure 7 A schematic diagram of a flow chart of an automated testing method provided by another embodiment of the present invention;

[0072] Figure 8 A schematic diagram of the structure of an automated testing device provided by an embodiment of the present invention;

[0073] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0074] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0075] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0076] In order to solve the technical problems that the existing atomic orchestration application solutions require testers to manually create test cases and test scenarios, and that manual testing causes low testing efficiency and high testing difficulty, the present invention provides an automated testing method, device, equipment, readable storage medium and product.

[0077] It should be noted that the automated testing method, apparatus, device, readable storage medium and product provided by the present invention can be applied to any testing scenario of an object to be tested.

[0078] In the related art, in order to implement the test operation of the atomic orchestration application, the tester generally creates test cases and test scenarios based on multiple test scenarios and thousands of atomic items, and then performs detailed testing and verification based on the atomic execution capability of the test scenario. However, the atomic orchestration application involves the status monitoring, triggering, control and other operations of thousands of components of the whole vehicle, which makes the overall architecture of the system complex. Manual testing operations of the atomic orchestration application are often cumbersome and the testing efficiency is low. In addition, because the system involves multiple scenarios and thousands of atomic items, testers need to manually create test scenarios and perform detailed testing and verification of the atomic execution capability of each test scenario, resulting in a large testing workload. During the combing process, testers are prone to miss certain scenarios or atomic items during the test, resulting in potential problems not being discovered and fixed in time.

[0079] In the process of solving the above technical problems, the inventors found through research that in order to improve the efficiency and accuracy of atomic orchestration application testing, a test case set can be automatically constructed based on a preset atomic list. Data conversion operations are performed for each test case to generate signal data. In addition, test scenario data can be automatically generated based on the signal data, so a test environment can be simulated based on the test scenario data, and automatic test operations can be performed under the test environment. Automated orchestration application testing is achieved without the need for users to manually perform orchestration and test operations.

[0080] In addition, due to the differences in configurations and interfaces of different car models, it is necessary to ensure that the atomic items of the actual vehicle and the atomic item configurations of the application end are accurately matched. In order to improve the accuracy of atomic orchestration application testing, for different objects to be tested, an atomic list associated with the object to be tested can be constructed. Then, based on the atomic list, a test case set that matches the configuration and interface of the object to be tested can be created. This improves the accuracy of atomic orchestration application testing.

[0081] Figure 1 The system architecture on which the present invention is based, such as Figure 1 As shown, the system architecture on which the present invention is based at least includes a desktop testing tool 11 , a testing application 12 , a cloud server 13 , an atomic orchestration application 14 , and a simulation application 15 .

[0082] Based on the above system architecture, the desktop testing tool 11 can initiate automated testing operations based on the test cases in the test case set. It can convert the test cases into signal data and transmit it to the test application 12. The test application 12 can send the signal data to the cloud server 13 according to the preset protocol to complete the creation of the test scenario data. After creating the test scenario data, the cloud server 12 can synchronize the test scenario data to the atomic orchestration application 14. After the synchronization is completed, the desktop testing tool 11 can start the automated testing steps and transmit the preconditions and trigger conditions involved in the use case to the simulation application 15, so that the simulation application 15 simulates the test environment. Then, the test operation can be performed in this test environment.

[0083] Figure 2 A flow chart of an automated testing method provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes:

[0084] Step 201: Acquire a test case set associated with the object to be tested, wherein the test case set includes a plurality of test cases, and the test case includes at least one trigger condition atomic item and at least one execution action atomic item.

[0085] In this embodiment, in order to implement the test operation of the atomic arrangement application associated with the object to be tested, a test case set associated with the object to be tested can be obtained. The object to be tested includes but is not limited to vehicles of different models and devices in the vehicle, such as windows, doors, front and rear of the vehicle, etc., and the present invention does not limit this.

[0086] Optionally, due to the differences in configurations and interfaces of different objects to be tested, in order to accurately perform test operations on different objects to be tested, different test case sets can be set for different objects to be tested. The test case set can be constructed based on the atomic list associated with the object to be tested, and the test case set can be constructed in combination with the atomic list and the product requirements of the object to be tested.

[0087] The test case set may include multiple test cases. The test case includes at least one trigger condition atomic item and at least one execution action atomic item. The multiple test cases in the test case set may cover all atomic orchestration applications associated with the object to be tested, thereby enabling a more comprehensive test of the object to be tested.

[0088] As an implementable method, the test case may also include at least one trigger condition atomic item, at least one pre-state atomic item, and at least one execution action atomic item. Taking a practical application as an example, the test case may be to turn on the vehicle air conditioner when the vehicle speed reaches 50 miles per hour and the door is closed. Among them, the vehicle speed of 50 miles per hour is the trigger condition atomic item, the door closed is the pre-state atomic item, and turning on the vehicle air conditioner is the execution action atomic item.

[0089] Taking practical application as an example, the test case may be turning on the car air conditioner when the vehicle is traveling at a speed exceeding 50 miles per hour and the door is closed.

[0090] Step 202: for each test case, convert the test case into signal data based on a preset atom mapping list, wherein the atom mapping list includes identification information of a plurality of preset atom items and parameter information associated with the preset atom items.

[0091] In this implementation, for each test case in the test case set, the test case may be converted into signal data.

[0092] Optionally, an atom mapping list may be created in advance, wherein the atom mapping list may include identification information of multiple preset atomic items and parameter information associated with the preset atomic items. The parameter information includes but is not limited to the ID, value range, definition information, attribute information, etc. of the preset atomic item.

[0093] Therefore, for each test case, the test case can be decomposed into atomic items, and for each atomic item, parameter information associated with the atomic item is determined in the atomic mapping list, and then information conversion operations are performed based on the parameter information to obtain signal data.

[0094] Step 203: Generate test scenario data according to the signal data, and simulate a test environment according to the test scenario data.

[0095] In this embodiment, in order to enable the front-end desktop testing tool to more intuitively determine the current test case and test situation, after the signal data is generated, the test scenario data can also be generated based on the signal data.

[0096] Further, after the test scenario data is generated, a simulation operation of the test environment can be performed based on the test scenario data, wherein the simulation of the test environment can be performed based on the trigger condition and the pre-condition. In addition, the front-end desktop test tool can also display the test scenario data.

[0097] Step 204: Perform a test operation on the object to be tested under the test environment to obtain a test result to determine whether the execution action can be performed normally when the trigger condition associated with the test case is met.

[0098] In this implementation, after the test environment is constructed, the test case can be tested in the test environment.

[0099] Optionally, in a test environment that matches the trigger condition and the pre-condition state associated with the test case, whether the current execution action of the object to be tested matches the execution action atomic item in the test case.

[0100] Continuing with the above example, after building a test scenario with a driving speed of 50 miles per hour and the car door closed, we can determine whether the current car air conditioner can be turned on automatically to determine whether the atomic orchestration application can be executed normally.

[0101] Taking a practical application as an example, assume that x represents the rear part of the vehicle body, y represents the driving trigger condition (such as "car starts"), and z represents the front state (such as "trunk is open").

[0102] Then, this formula can be concretized as:

[0103] Test scenario data = f(trigger condition ("car starts"), precondition ("trunk is open"), action (x, y, z))

[0104] That is, trigger condition ("car start"): "car start" is selected from the trigger conditions of the driving category.

[0105] Predecessor state ("Trunk is open"): "Trunk is open" is selected from the predecessor states for the rear of the vehicle body. This is a predecessor state related to both the rear of the vehicle body and the trigger condition "Car start".

[0106] Action (x, y, z): Select a preset number of actions from the action atomic item list that are related to the rear part of the vehicle body, the trigger condition "car started" and the preceding state "trunk opened".

[0107] Based on the above information, a new test scenario data can be created, where the car starting is the trigger condition, the trunk opened is the precondition, and the execution action is a series of actions related to these states.

[0108] In order to retrieve the above complex series of actions, these functions can be defined in one of the following possible ways:

[0109] 1. Trigger condition (x): First, define a function C(x), whose input is a region x of the vehicle body, and whose output is the set of all possible trigger conditions in the region. Then, define a selection function S_C, whose input is a set, and whose output is an element randomly selected from the set. Then, the trigger condition can be expressed as S_C(C(x)).

[0110] 2. Precursor state (x, y): First, define a function P(x, y), whose input is an area x of the vehicle body and a trigger condition y, and whose output is the set of all possible precursor states related to x and y. Then, define a selection function S_P, whose input is a set and whose output is one or two elements randomly selected from the set. Then, the precursor state can be expressed as S_P(P(x, S_C(C(x)))).

[0111] 3. Execute action (x, y, z): First, define a function A(x, y, z), whose input is an area x of the vehicle body, a trigger condition y and one or two preconditions z, and whose output is the set of all possible execution actions related to x, y and z. Then, define a selection function S_A, whose input is a set and whose output is one to thirty elements randomly selected from the set. Then, the execution action can be expressed as S_A(A(x, S_C(C(x)), S_P(P(x, S_C(C(x)))))).

[0112] Therefore, the generation formula of test scenario data can be expressed as:

[0113] Test scenario data = (S_C(C(x)), S_P(P(x, S_C(C(x)))), S_A(A(x, S_C(C(x)), S_P(P(x, S_C(C(x))))))).

[0114] The automated testing method provided by the embodiment of the present invention can automatically simulate the test scenario and perform automated testing operations in the test scenario. It is unnecessary for testers to manually create test cases, construct test scenarios, and perform manual testing operations. The test efficiency and test accuracy of atomic orchestration applications are improved.

[0115] Figure 3 A flowchart of an automated testing method provided by another embodiment of the present invention is provided, based on any of the above embodiments, as follows Figure 3 As shown, step 201 includes:

[0116] Step 301: Obtain an atom list associated with the object to be tested, wherein the atom list includes a plurality of atomic items associated with the object to be tested.

[0117] Step 302: Determine whether there is a historical use case set currently and obtain the processing result.

[0118] Step 303: construct a test case set associated with the object to be tested based on the processing result and the atomic list.

[0119] In this embodiment, in order to realize the construction of the test case set, it is first necessary to obtain the atomic list associated with the object to be tested. Among them, the atomic list includes atomic items and their parameters corresponding to each function of the object to be tested. Different objects to be tested may correspond to different atomic lists. It may include multiple trigger condition atomic items, multiple pre-state atomic items, multiple execution action atomic items, etc. of the product.

[0120] Taking practical application as an example, the atomic list may include a pre-state atomic item associated with navigation, and the pre-state atomic item may be associated with state information of a preset arrival time, and control type parameters corresponding to different arrival times, etc.

[0121] Furthermore, after obtaining the atomic list, it is possible to determine whether there is a historical test case set that has been historically constructed, and obtain a processing result, and then accurately construct a test case set according to the atomic list based on the processing result.

[0122] The automated testing method provided by the embodiment of the present invention creates atomic lists for different objects to be tested, thereby enabling the creation of test case sets for different objects to be tested, thereby avoiding the problem of mismatch between vehicle atomic items and application atomic items configuration due to differences in configurations and interfaces of different vehicle models during manual testing, thereby improving the accuracy of the test.

[0123] Further, based on any of the above embodiments, step 303 includes:

[0124] If there is no historical use case set, the atomic items in the atomic list are combined according to the preset use case generation conditions and the preset test case structure to obtain multiple test cases.

[0125] If a historical use case set exists, an editing operation is performed on the historical use cases in the historical use case set based on the atomic list to obtain the test case set, wherein the editing operation includes one or more of a adding operation, a deleting operation, and an updating operation.

[0126] In this embodiment, if it is determined that no test case set currently exists, a test case set can be created directly based on the atom list, wherein the atomic items in the atom list can be combined based on the preset case generation conditions and the preset test case structure to obtain multiple test cases.

[0127] Optionally, the use case generation condition may be to determine any precondition in the atom list and determine a trigger condition associated with the precondition. Filter the execution actions that match both the precondition and the trigger condition in the atom list. Alternatively, the use case generation condition may be to construct a test case according to the part of the object to be tested and the product requirements, etc., which is not limited by the present invention.

[0128] The test case structure may be a structure including a precondition, a trigger condition, and an execution action.

[0129] As an implementable manner, when it is determined that a historical use case set of historical construction currently exists, an editing operation can be performed on the historical use cases in the historical use case set based on the atomic list to obtain the test case set, wherein the editing operation includes one or more of a adding operation, a deleting operation, and an updating operation. Thus, the test case set can be matched with the atomic list.

[0130] For example, when a new atomic item is added to the atomic list, a new test case can be constructed based on the new atomic item and the atomic items pre-stored in the atomic list; or, when an atomic item in the atomic list is modified, the current test case can be updated based on the modification operation.

[0131] Figure 4 A schematic diagram of constructing a test case set provided by an embodiment of the present invention, such as Figure 4 As shown, after obtaining the atomic list 41, it can be determined whether there is a historical use case set 42. If so, an atomic list comparison operation 43 can be performed to determine the change point 44. For the trigger condition atomic item 45, the pre-state atomic item 46, and the execution action atomic item 47, editing operations such as adding, deleting, and updating are performed based on the change point 44 to obtain a test case set 48. On the contrary, if there is no historical use case set, a test case set 48 can be directly constructed based on the atomic list 41.

[0132] The automated testing method provided by the embodiment of the present invention creates a test case set based on an atomic list when no historical case set exists, and edits the historical case set based on the atomic list when the historical case set exists, thereby ensuring the matching degree between the test case set and the atomic list and improving the accuracy of the test.

[0133] Further, based on any of the above embodiments, the test case further includes at least one target pre-state atomic item; the atomic items in the atomic list are combined according to the preset case generation conditions and the preset test case structure to obtain multiple test cases, including:

[0134] According to the use case generation condition, a target trigger condition atomic item and a target pre-condition state atomic item are selected in the atomic list.

[0135] A plurality of execution action atomic items matching the target trigger condition atomic item and the target pre-state atomic item are screened in the atomic list.

[0136] A preset number of target execution action atomic items are randomly determined from the multiple execution action atomic items.

[0137] The test case is constructed based on the target trigger condition atomic item, the target pre-state atomic item and a preset number of target execution action atomic items.

[0138] In this embodiment, after the atomic list is obtained, the target trigger condition atomic item and the target pre-state atomic item can be selected in the atomic list according to the use case generation condition. For example, any pre-state can be determined in the atomic list, and the trigger condition associated with the pre-state can be determined. A preset number of target execution action atomic items are randomly determined from multiple execution action atomic items. Among them, the preset number can be 30, or the user can also adjust the preset number according to actual needs, and the present invention does not limit this. Construct a test case based on the target trigger condition atomic item, the target pre-state atomic item, and a preset number of target execution action atomic items.

[0139] The automated testing method provided by the embodiment of the present invention generates target trigger condition atomic items and target pre-state atomic items based on preset use case generation conditions, and obtains target execution action atomic items that match the target trigger condition atomic items and the target pre-state atomic items in the atomic list, thereby ensuring the matching degree between the execution action and the trigger condition and the pre-state in the test case, and improving the accuracy of the test case.

[0140] Figure 5 A flowchart of an automated testing method provided by another embodiment of the present invention is provided, based on any of the above embodiments, as follows Figure 5 As shown, step 202 includes:

[0141] Step 501: Split the test case according to a preset test case splitting condition to obtain a plurality of atomic items to be converted that are associated with the test case.

[0142] Step 502: for each atomic item to be converted, determine parameter information associated with the atomic item to be converted in the atomic mapping list, wherein the parameter information includes one or more of definition information, attribute information, and numerical information associated with the atomic item to be converted.

[0143] Step 503: Perform data conversion operations on parameter information associated with each of the to-be-converted atomic items based on preset conversion parameters to obtain the signal data, wherein the data conversion operations include one or more of format conversion, data type conversion, unit conversion, and range conversion.

[0144] In this embodiment, for each test case in the test case set, the test case may be converted into signal data.

[0145] Optionally, since a test case is composed of multiple atomic items, the test case can be split according to preset case splitting conditions to obtain multiple atomic items to be converted that are associated with the test case.

[0146] Furthermore, an atomic mapping list can be created in advance, wherein the atomic mapping list may include identification information of multiple preset atomic items and parameter information associated with the preset atomic items. The parameter information includes, but is not limited to, the ID, value range, definition information, attribute information, etc. of the preset atomic item. By pre-establishing the atomic mapping list, the parameter information associated with the atomic item to be converted can be determined in the atomic mapping list for each atomic item to be converted. Based on the preset conversion parameters, a data conversion operation is performed on the parameter information associated with each atomic item to be converted to obtain signal data, wherein the data conversion operation includes one or more of format conversion, data type conversion, unit conversion, and range conversion.

[0147] The automated testing method provided by the embodiment of the present invention can quickly implement the conversion operation of signal data based on the atom mapping list by pre-establishing the atom mapping list, thereby improving the testing efficiency.

[0148] Further, based on any of the above embodiments, after step 502, the method further includes:

[0149] If the atom mapping list does not include the identification information of the atom item to be converted, a marking operation is performed on the atom item to be converted according to a preset marking symbol.

[0150] Feedback information is generated according to all marked atomic items to be converted associated with the test case, and the feedback information is sent to a preset cloud server so that a user can perform a data correction operation based on the feedback information.

[0151] In this embodiment, for each atomic item to be converted, if the atomic item to be converted and the parameter information of the atomic item to be converted are not recorded in the atomic mapping list, the atomic item to be converted can be marked by a preset marking symbol. For example, an empty signal can be generated or the signal can be marked as "missing" or "undefined".

[0152] Furthermore, for each marked atomic item to be converted associated with the test case, feedback information can be generated based on all marked atomic items to be converted associated with the test case, and the feedback information can be sent to a preset cloud server so that the user can perform data correction operations based on the feedback information.

[0153] Figure 6 A test case conversion diagram provided by an embodiment of the present invention, such as Figure 6 As shown, for each test case 61, the test case 61 can be disassembled to obtain at least one corresponding atomic item to be converted. It is determined whether the atomic item to be converted 62 is included in the atomic mapping list. If it is included, the test case is converted into an atomic signal 63 based on the parameter information recorded in the atomic mapping list, and the atomic signal 63 is transmitted to the test application 64 after data conversion. On the contrary, if the atomic item to be converted is not included, the atomic item to be converted is marked as abnormal 65, and finally all the atomic items to be converted with abnormal markings are transmitted to the cloud server 66, so that manual data correction operations can be performed based on the abnormal data stored in the cloud server 66.

[0154] The automated testing method provided by the embodiment of the present invention generates feedback information when there is no atomic item to be converted in the atomic mapping list, thereby being able to perform data correction operations based on the feedback information to ensure the success rate of the next conversion operation.

[0155] Optionally, based on any of the above embodiments, step 203 includes:

[0156] The signal data is transmitted to a preset cloud server based on a preset transmission protocol, so that a preset orchestration system in the cloud server generates test scenario data based on the signal data, wherein the test scenario data is a test environment that can be simulated and displayed on the front end.

[0157] Obtain the test scenario data sent by the cloud server.

[0158] In this embodiment, in order to realize the construction of test scenario data, the signal data can be transmitted to a preset cloud server based on a preset transmission protocol, so that the preset orchestration system in the cloud server generates test scenario data based on the signal data, wherein the test scenario data is a test environment that can be simulated and displayed on the front end. The test scenario data sent by the cloud server is obtained.

[0159] As an implementable method, the test application can establish a communication connection with the orchestration application in the cloud server, so the data format of the orchestration application to create the test scenario data can be constructed, and the signal data can be transmitted to the orchestration application based on the data format to realize the construction of the test scenario data.

[0160] As an implementable method, the test application can establish a communication connection with the preset orchestration application in the cloud server through the preset data transmission module. The required data format is reported through the test application to realize authentication and data conversion, and the orchestration application is notified to construct the test scenario data.

[0161] The automated testing method provided by the embodiment of the present invention can quickly perform signal data transmission operations based on the transmission protocol by pre-constructing the transmission protocol. In addition, by integrating the atomic orchestration application in the cloud server, the test scenario data can be generated based on the atomic orchestration application, thereby improving the efficiency and accuracy of the test operation.

[0162] Optionally, based on any of the above embodiments, step 203 includes:

[0163] Perform data analysis on the test scenario data to determine the current pre-condition and trigger conditions.

[0164] The pre-condition and the trigger condition are converted into CAN signal data, and based on the CAN signal data, a preset vehicle computer associated with the object to be tested is controlled to simulate the test environment.

[0165] In this embodiment, after the test scenario data is constructed, the test scenario data can be synchronized to the simulation application. Thus, the simulation application can perform data analysis operations on the test scenario data to determine the current pre-condition and trigger conditions. The pre-condition and trigger conditions are converted into CAN signal data, and the preset vehicle simulation test environment associated with the object to be tested is controlled based on the CAN signal data.

[0166] Optionally, the desktop test tool starts to execute the automated function use case, and after the cloud server feeds back the test scenario data, it can notify the simulation application to start the model test environment. The model application parses the test scenario data, disassembles the pre-state signal, queries the signal database and translates it into relevant CAN signal data, and completes the signal simulation through the model application to meet the test environment and test conditions of the function use case.

[0167] Figure 7 A flowchart of an automated testing method provided by another embodiment of the present invention is provided, based on any of the above embodiments, as follows Figure 7 As shown, step 204 includes:

[0168] Step 701: Determine the execution action of the object to be tested in the test environment.

[0169] Step 702: Determine whether the execution action matches the execution action atomic item in the test case to obtain a test result.

[0170] In this embodiment, after the test environment is constructed, a test operation may be performed in the test environment.

[0171] Optionally, the test environment can be created based on the trigger conditions and preconditions in the test case, so the execution action of the object to be tested in the test environment can be determined. Determine whether the execution action matches the execution action atomic item in the test case to obtain the test result. If the execution action matches the execution action atomic item in the test case, it can indicate that the atomic orchestration application associated with the test case can run normally. Otherwise, it indicates that the atomic orchestration application cannot run normally and needs to be adjusted.

[0172] Further, based on any of the above embodiments, after step 702, the method further includes:

[0173] A test report is generated based on the test results, test cases, and data flows during the test process.

[0174] The test report is uploaded to a preset cloud server so that the user can perform data analysis and data update operations based on the test report.

[0175] In this embodiment, in order to facilitate the subsequent review and update of test cases, a test report can be generated based on the test results, test cases, and data flows during the test process. The test report is uploaded to a preset cloud server so that users can perform data analysis and data update operations based on the test report. The test report lists the execution results, abnormal conditions, and possible causes of problems for each test case, helping developers to quickly locate and fix problems.

[0176] For example, users can call the test report on the cloud server, analyze the atomic items and test cases with problems, and update the data of the atomic list and test case set based on the analysis results.

[0177] As an implementable approach, for a test case whose test result is a test failure, a use case set improvement operation can be performed based on the test case.

[0178] The automated testing method provided by the embodiment of the present invention generates a detailed test report for evaluating the test effect and discovering potential problems when the execution action does not match the execution action atomic item in the test case. By monitoring the test execution status and results, problems and anomalies in the test are discovered in a timely manner, and corresponding measures are taken to automatically supplement the use case set, and accurate tests are performed on the abnormal problem multiple times, so that more problems can be exposed through one abnormal problem using this method.

[0179] Figure 8A schematic diagram of the structure of an automated testing device provided by an embodiment of the present invention, such as Figure 8 As shown, the device includes: an acquisition module 81, a conversion module 82, a processing module 83 and a testing module 84. Among them, the acquisition module 81 is used to obtain a test case set associated with the object to be tested, and the test case set includes multiple test cases, and the test case includes at least one trigger condition atomic item and at least one execution action atomic item. The conversion module 82 is used to convert the test case into signal data based on a preset atomic mapping list for each test case, and the atomic mapping list includes identification information of multiple preset atomic items and parameter information associated with the preset atomic items. The processing module 83 is used to generate test scenario data according to the signal data and simulate the test environment according to the test scenario data. The testing module 84 is used to perform a test operation on the object to be tested under the test environment to obtain a test result to determine whether the execution action can be performed normally when the trigger condition associated with the test case is met.

[0180] Further, based on any of the above embodiments, the acquisition module is used to: acquire an atom list associated with the object to be tested, wherein the atom list includes multiple atomic items associated with the object to be tested. Determine whether there is a historical use case set currently, and obtain a processing result. Construct a test case set associated with the object to be tested based on the processing result and the atom list.

[0181] Further, based on any of the above embodiments, the acquisition module is used to: if there is no historical use case set, then combine the atomic items in the atomic list according to the preset use case generation conditions and the preset test case structure to obtain multiple test cases. If there is a historical use case set, then edit the historical use cases in the historical use case set based on the atomic list to obtain the test case set, wherein the editing operation includes one or more of a new operation, a deletion operation, and an update operation.

[0182] Further, based on any of the above embodiments, the test case also includes at least one target pre-state atomic item; the acquisition module is used to: select a target trigger condition atomic item and a target pre-state atomic item in the atomic list according to the use case generation condition. Screen multiple execution action atomic items that match the target trigger condition atomic item and the target pre-state atomic item in the atomic list. Randomly determine a preset number of target execution action atomic items from the multiple execution action atomic items. Construct the test case based on the target trigger condition atomic item, the target pre-state atomic item, and the preset number of target execution action atomic items.

[0183] Further, on the basis of any of the above embodiments, the conversion module is used to: split the test case according to preset use case disassembly conditions to obtain multiple atomic items to be converted associated with the test case. For each atomic item to be converted, determine the parameter information associated with the atomic item to be converted in the atomic mapping list, wherein the parameter information includes one or more of the definition information, attribute information, and numerical information associated with the atomic item to be converted. Perform a data conversion operation on the parameter information associated with each of the atomic items to be converted based on preset conversion parameters to obtain the signal data, wherein the data conversion operation includes one or more of the format conversion, data type conversion, unit conversion, and range conversion.

[0184] Further, based on any of the above embodiments, the device further includes: a marking module, which is used to mark the atomic item to be converted according to a preset marking symbol if the atomic mapping list does not include the identification information of the atomic item to be converted. A transmission module, which is used to generate feedback information according to all the marked atomic items to be converted associated with the test case, and send the feedback information to a preset cloud server so that the user can perform data correction operations based on the feedback information.

[0185] Further, based on any of the above embodiments, the processing module is used to: transmit the signal data to a preset cloud server based on a preset transmission protocol, so that a preset orchestration system in the cloud server generates test scenario data based on the signal data, wherein the test scenario data is a test environment that can be simulated and displayed on the front end. The test scenario data sent by the cloud server is obtained.

[0186] Further, based on any of the above embodiments, it is used to: perform data analysis operations on the test scenario data to determine the current pre-condition and trigger conditions. Convert the pre-condition and trigger conditions into CAN signal data, and control a preset vehicle computer associated with the object to be tested to simulate the test environment based on the CAN signal data.

[0187] Further, based on any of the above embodiments, the test module is used to: determine the execution action of the object to be tested in the test environment, determine whether the execution action matches the execution action atomic item in the test case, and obtain a test result.

[0188] Further, based on any of the above embodiments, the device further includes: a generation module for generating a test report based on the test results, test cases, and data flows during the test process; a transmission module for uploading the test report to a preset cloud server so that the user can perform data analysis and data update operations based on the test report.

[0189] In order to implement the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the automated testing method described in any of the above embodiments is implemented.

[0190] In order to implement the above embodiments, an embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the automated testing method as described in any of the above embodiments is implemented.

[0191] In order to implement the above embodiment, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;

[0192] The memory stores computer-executable instructions;

[0193] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the automated testing method as described in any of the above embodiments.

[0194] Fig. 9 The electronic device 900 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (Portable Media Players, PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0195] like Fig. 9 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0196] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0197] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present invention are executed.

[0198] It should be noted that the computer-readable medium of the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0199] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0200] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0201] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0202] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0203] The units involved in the embodiments of the present invention may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0204] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0205] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art on the basis of the present invention are within the protection scope of the present invention.

Claims

1. An automated testing method, characterized in that: include: Acquire a test case set associated with the object to be tested, wherein the test case set includes multiple test cases, and the test case includes at least one trigger condition atomic item and at least one execution action atomic item; For each test case, convert the test case into signal data based on a preset atom mapping list, wherein the atom mapping list includes identification information of a plurality of preset atom items and parameter information associated with the preset atom items; generating test scenario data according to the signal data, and simulating a test environment according to the test scenario data; A test operation is performed on the object to be tested in the test environment to obtain a test result to determine whether the execution action can be performed normally when the trigger condition associated with the test case is met.

2. The method according to claim 1, characterized in that: The step of obtaining a test case set associated with the object to be tested includes: Acquire an atom list associated with the object to be tested, wherein the atom list includes a plurality of atomic items associated with the object to be tested; Determine whether there is a historical use case set currently and obtain the processing result; A test case set associated with the object to be tested is constructed based on the processing result and the atomic list.

3. The method according to claim 2, characterized in that The step of constructing a test case set associated with the object to be tested based on the processing result and the atomic list includes: If there is no historical use case set, combining the atomic items in the atomic list according to the preset use case generation conditions and the preset test case structure to obtain multiple test cases; If a historical use case set exists, an editing operation is performed on the historical use cases in the historical use case set based on the atomic list to obtain the test case set, wherein the editing operation includes one or more of a adding operation, a deleting operation, and an updating operation.

4. The method according to claim 3, characterized in that The test case also includes at least one target pre-state atomic item; the atomic items in the atomic list are combined according to the preset test case generation conditions and the preset test case structure to obtain multiple test cases, including: Selecting a target trigger condition atomic item and a target pre-condition atomic item in the atomic list according to the use case generation condition; Screening multiple execution action atomic items that match the target trigger condition atomic item and the target pre-state atomic item in the atomic list; Randomly determining a preset number of target execution action atomic items from the multiple execution action atomic items; The test case is constructed based on the target trigger condition atomic item, the target pre-state atomic item and a preset number of target execution action atomic items.

5. The method according to claim 1, characterized in that The converting the test case into signal data based on a preset atom mapping list includes: Performing a split operation on the test case according to a preset test case splitting condition to obtain a plurality of to-be-converted atomic items associated with the test case; For each atomic item to be converted, determining parameter information associated with the atomic item to be converted in the atomic mapping list, wherein the parameter information includes one or more of definition information, attribute information, and numerical information associated with the atomic item to be converted; Based on preset conversion parameters, a data conversion operation is performed on the parameter information associated with each of the atomic items to be converted to obtain the signal data, wherein the data conversion operation includes one or more of format conversion, data type conversion, unit conversion, and range conversion.

6. The method according to claim 5, characterized in that After determining the parameter information associated with each atomic item to be converted in the atomic mapping list, the method further includes: If the atom mapping list does not include the identification information of the atom item to be converted, marking the atom item to be converted according to a preset marking symbol; Feedback information is generated according to all marked atomic items to be converted associated with the test case, and the feedback information is sent to a preset cloud server so that a user can perform a data correction operation based on the feedback information.

7. The method according to claim 1, characterized in that The generating test scenario data according to the signal data comprises: The signal data is transmitted to a preset cloud server based on a preset transmission protocol, so that a preset orchestration system in the cloud server generates test scenario data based on the signal data, wherein the test scenario data is a test environment that can be simulated and displayed on the front end; Obtain the test scenario data sent by the cloud server.

8. The method according to claim 1, characterized in that The simulating the test environment according to the test scenario data includes: Performing data analysis on the test scenario data to determine the current pre-condition and trigger conditions; The pre-condition and the trigger condition are converted into CAN signal data, and based on the CAN signal data, a preset vehicle computer associated with the object to be tested is controlled to simulate the test environment.

9. The method according to any one of claims 1 to 8, characterized in that: The performing a test operation on the object to be tested under the test environment to obtain a test result includes: Determining the execution action of the object to be tested under the test environment; Determine whether the execution action matches the execution action atomic item in the test case to obtain a test result.

10. The method according to claim 9, characterized in that The determining whether the execution action matches the execution action atomic item in the test case, after obtaining the test result, further includes: Generate a test report based on the test results, test cases and data flows during the test; The test report is uploaded to a preset cloud server so that the user can perform data analysis and data update operations based on the test report.

11. An automated testing device, characterized in that: include: An acquisition module, used for acquiring a test case set associated with the object to be tested, wherein the test case set includes a plurality of test cases, and the test case includes at least one trigger condition atomic item and at least one execution action atomic item; A conversion module, for converting each test case into signal data based on a preset atomic mapping list, wherein the atomic mapping list includes identification information of a plurality of preset atomic items and parameter information associated with the preset atomic items; A processing module, used to generate test scenario data according to the signal data, and simulate a test environment according to the test scenario data; The test module is used to perform a test operation on the object to be tested under the test environment to obtain a test result so as to determine whether the execution action can be performed normally when the trigger condition associated with the test case is met.

12. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the automated testing method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the automated testing method according to any one of claims 1 to 10 is implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the automated testing method according to any one of claims 1 to 10 is implemented.