Test method, device and test equipment for vehicle instrument screen
Through semantic recognition and image recognition technology driven by voice commands, test cases are automatically matched and compared, which solves the problem of inefficient manual operation in vehicle instrument screen testing and improves the efficiency and accuracy of automated testing.
Patent Information
- Application Number
- CN202410801272.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
AI Technical Summary
In the testing of vehicle instrument screens, manually selecting or creating test cases is inefficient, especially when the number of test cases is large, resulting in a decrease in test efficiency and accuracy.
The voice test instructions are converted into test text, the semantic recognition model is used to match target test cases, and the image recognition model is used to compare test screenshots and standard display images to automatically output test results, reducing human operations and misjudgments.
It improves the automation and efficiency of vehicle instrument screen testing, enhances the accuracy and output efficiency of test results, and avoids inefficiency and errors caused by human search and judgment.
Smart Images

Figure CN118733453A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle testing, and more specifically, to a vehicle instrument panel testing method, device and testing equipment in the vehicle field. Background Art
[0002] Automobiles are generally equipped with a vehicle instrument panel, which is used to display various indicator lights according to bus signals, such as various signal indicator lights, various alarm or fault indicator lights, etc. At present, when testing the vehicle instrument panel, testers generally manually input or create test cases, or manually select test cases to be tested from multiple available test cases, and then test the vehicle instrument panel based on the test cases. However, there are many test cases to be tested on the vehicle instrument panel, and manually selecting test cases or manually creating test cases will result in low test efficiency. Summary of the invention
[0003] The present application provides a vehicle instrument panel test method, device and test equipment, which can improve the degree of automation of vehicle instrument panel testing and improve the test efficiency of vehicle instrument panel testing.
[0004] In a first aspect, a method for testing a vehicle instrument panel is provided, the method comprising:
[0005] When receiving a voice test instruction, converting the voice test instruction into a test text;
[0006] Determining a target test case for the vehicle instrument screen that matches the test text;
[0007] Performing a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen;
[0008] The test screenshot is compared with a standard display image corresponding to the target test case, and a target test result corresponding to the voice test instruction is output.
[0009] In the above technical scheme, the embodiment of the present application provides an automated testing method for a vehicle instrument panel: by receiving voice test instructions and converting the voice test instructions into test text to automatically match the corresponding target test case, the vehicle instrument panel can be controlled to perform content display testing based on the target test case; after obtaining the test screenshot, it can be compared with the standard display image to output the target test result. The entire test process does not require manual operation by the user, only the voice test instruction needs to be input, and the corresponding target test case can be automatically matched, avoiding the problem of low test efficiency caused by manual search for test cases when there are many test cases, so as to improve the degree of automation of the test process; moreover, the test equipment can output the test results by comparing the test screenshot and the standard display image, and there is no need for the user to judge the test results with the human eye, thereby improving the output accuracy and efficiency of the test results.
[0010] In combination with the first aspect, in some possible implementations, determining the target test case of the vehicle instrument screen that matches the test text includes: inputting the test text into a semantic recognition model to obtain multiple candidate probability values output by the semantic recognition model, the candidate probability values representing the similarity between the test text and each candidate test case; and determining the candidate test case whose candidate probability value is greater than a probability threshold as the target test case of the vehicle instrument screen that matches the test text.
[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the content display test of the vehicle instrument screen based on the target test cases includes: if the number of the target test cases is greater than the quantity threshold, sorting each of the target test cases according to the candidate probability value to obtain a first test order; executing each of the target test cases according to the first test order to perform a content display test on the vehicle instrument screen.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the content display test of the vehicle instrument screen based on the target test case also includes: if the number of the target test cases is greater than the quantity threshold, determining the test position where the target keyword corresponding to the target test case is located in the test text; based on the test position, determining a second test order for each of the target test cases; and executing each of the target test cases in accordance with the second test order to perform a content display test on the vehicle instrument screen.
[0013] In the above technical solution, when semantic recognition is performed on the test text to identify the target test case that matches the test text, considering that there may be multiple target test cases that match the test text, and different test cases need to specify the corresponding test order, two methods for determining the test order of multiple target test cases are also proposed. The test order is determined according to the degree of matching with the test text; or the test order is determined according to the test position of the target keyword corresponding to the target test case in the test text. In the case of matching multiple target test cases, the test order of each test case can also be determined according to certain rules, avoiding the impact of disordered testing on the output of subsequent test results, and improving the test efficiency and accuracy of automated testing.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the candidate test cases whose candidate probability values are greater than the probability threshold are determined as the target test cases of the vehicle instrument screen that matches the test text, including: determining the candidate test cases whose candidate probability values are greater than the probability threshold as the first test cases; when the number of the first test cases is greater than the quantity threshold, displaying each of the first test cases; if a deletion operation is received for the second test case in the first test cases, determining the third test case remaining after the deletion, and determining the third test case as the target test case of the vehicle instrument screen that matches the test text; if no deletion operation is received for the first test case, determining each of the first test cases as the target test case of the vehicle instrument screen that matches the test text.
[0015] In the above technical scheme, in order to further improve the test accuracy of the vehicle instrument screen, when there are multiple candidate test cases whose candidate probability values are greater than the probability threshold, by displaying each candidate test case, the tester can remove the test cases that do not need to be tested through a simple deletion operation, thereby improving the accuracy of the determined target test cases.
[0016] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: if a cancel operation on the first test case is received, displaying a target prompt message, the target prompt message including the test text; when a confirmation operation on the test text is received, obtaining a standard test case corresponding to the test text; and updating the semantic recognition model based on the standard test case and the test text.
[0017] In the above technical scheme, if the tester determines that the candidate test case does not match the required test case, in order to clarify the cause of the mismatch and improve the accuracy of subsequent tests, the test text is displayed so that the cause of the mismatch can be determined through the user's confirmation operation on the test text. If the cause of the mismatch is incorrect semantic recognition, the standard test case and test text are obtained, the semantic recognition model is updated, and the semantic recognition accuracy of the subsequent semantic recognition model is improved, thereby improving the test accuracy of the vehicle instrument screen.
[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the comparing the test screenshot and the standard display image corresponding to the target test case, and outputting the target test result corresponding to the voice test instruction, includes: inputting the test screenshot and the standard display image corresponding to the target test case into an image recognition model, and outputting the target similarity between the test screenshot and the standard display image; when the target similarity is greater than or equal to a similarity threshold, displaying correctness as the target test result and outputting it; when the target similarity is less than the similarity threshold, identifying the difference image area between the test screenshot and the standard display image; and determining the display error and the difference image area as the target test result.
[0019] In the above technical scheme, the present application also proposes the provision of an image recognition model, so that the test results of the test screenshots can be identified through the image recognition model, thereby improving the accuracy and efficiency of determining the test results; avoiding the problem of inefficient manual identification of test results when the number of tests is large; in addition, when determining display errors, the difference image area can also be identified and output, providing testers with richer test results, improving the efficiency of testers in analyzing test results, and further improving the degree of automation of the test process.
[0020] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: determining the test number of the target test case based on the test text; performing a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen, including: performing a content display test on the vehicle instrument screen based on the test number and the target test case, and obtaining multiple test screenshots of the vehicle instrument screen under the test number; comparing the test screenshots with the standard display images corresponding to the target test case, and outputting the target test results corresponding to the voice test instructions, including: comparing each of the test screenshots with the standard display images corresponding to the target test case, determining a first display number of correct display and a second display number of incorrect display; determining the first display number and the second display number as the target test result.
[0021] In the above technical solution, the application also proposes to identify the test times of the target test case, and perform content display test based on the test times and the target test case, and when outputting the target test result, the correct display times and the incorrect display times can be counted. Multiple repeated automated tests of the target test case can be realized through a single voice command input, and the test results can be automatically counted for the tester, further improving the automation level of the instrument test.
[0022] In a second aspect, a vehicle instrument panel testing device is provided, the device comprising:
[0023] A speech-to-text module is used to convert the speech test instruction into a test text when receiving the speech test instruction;
[0024] A first determination module is used to determine a target test case of the vehicle instrument screen that matches the test text;
[0025] A testing module, used to perform a content display test on the vehicle instrument screen based on the target test case, and obtain a test screenshot of the corresponding content display effect of the vehicle instrument screen;
[0026] A result output module is used to compare the test screenshot with the standard display image corresponding to the target test case, and output the target test result corresponding to the voice test instruction.
[0027] In combination with the second aspect, in some possible implementations, the first determination module is also used to: input the test text into a semantic recognition model to obtain multiple candidate probability values output by the semantic recognition model, wherein the candidate probability values represent the similarity between the test text and each candidate test case; and determine the candidate test case whose candidate probability value is greater than a probability threshold as the target test case of the vehicle instrument screen that matches the test text.
[0028] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the test module is also used to: if the number of the target test cases is greater than the quantity threshold, sort each of the target test cases according to the candidate probability value to obtain a first test order; execute each of the target test cases according to the first test order to perform content display test on the vehicle instrument screen.
[0029] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the test module is also used to: if the number of the target test cases is greater than the quantity threshold, determine the test position where the target keyword corresponding to the target test case is located in the test text; based on the test position, determine the second test order of each of the target test cases; and execute each of the target test cases according to the second test order to perform content display test on the vehicle instrument screen.
[0030] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the first determination module is also used to: determine the candidate test cases whose candidate probability is greater than the probability threshold as first test cases; when the first test cases are greater than the quantity threshold, display each of the first test cases; if a deletion operation is received for the second test case in the first test case, determine the third test case remaining after the deletion, and determine the third test case as the target test case of the vehicle instrument screen that matches the test text; if no deletion operation is received for the first test case, determine each of the first test cases as the target test case of the vehicle instrument screen that matches the test text.
[0031] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the device also includes: a display module, which is used to display a target prompt message if a cancel operation on the first test case is received, and the target prompt message includes the test text; an acquisition module, which is used to obtain the standard test case corresponding to the test text when a confirmation operation on the test text is received; and a training module, which is used to update the semantic recognition model based on the standard test case and the test text.
[0032] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the result output module is also used to: input the test screenshot and the standard display image corresponding to the target test case into an image recognition model, and output the target similarity between the test screenshot and the standard display image; when the target similarity is greater than or equal to a similarity threshold, display correctness as the target test result and output it; when the target similarity is less than the similarity threshold, identify the difference image area between the test screenshot and the standard display image; determine the display error and the difference image area as the target test result and output them.
[0033] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the device also includes: a second determination module, used to determine the test number of the target test case based on the test text; the testing module is also used to: perform a content display test on the vehicle instrument screen based on the test number and the target test case, and obtain multiple test screenshots of the vehicle instrument screen under the test number; the result output module is used to: compare each of the test screenshots with the standard display image corresponding to the target test case, determine the first display number of correct display and the second display number of incorrect display; determine the first display number and the second display number as the target test result and output them.
[0034] In a third aspect, a test device is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the test device executes the vehicle instrument screen test method in any possible implementation of the above aspects.
[0035] In a fourth aspect, a computer program product is provided, which includes: a computer program code, when the computer program code is run on a computer, the computer executes the vehicle instrument screen testing method described in the above aspect.
[0036] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the vehicle instrument screen testing method described in the above aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0038] Figure 2 is a schematic flow chart of a vehicle instrument panel testing method provided in an embodiment of the present application;
[0039] Figure 3 is a schematic flow chart of another vehicle instrument panel testing method provided in an embodiment of the present application;
[0040] Figure 4 is a schematic flow chart of another vehicle instrument panel testing method provided in an embodiment of the present application;
[0041] Figure 5 is a schematic flow chart of another vehicle instrument panel testing method provided in an embodiment of the present application;
[0042] Figure 6It is a schematic diagram of a vehicle instrument panel testing process provided by an embodiment of the present application;
[0043] Figure 7 It is a structural schematic diagram of a vehicle instrument panel testing device provided in an embodiment of the present application;
[0044] Figure 8 It is a structural schematic diagram of a testing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0046] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0047] Figure 1 This is a schematic diagram of an implementation environment provided by the embodiment of the present application. Figure 1 As shown, the implementation environment includes a test device 110 and a vehicle 120 .
[0048] Among them, the vehicle 120 is equipped with a vehicle instrument screen, which is used to display various indicator lights according to the bus signal, such as various signal indicator lights (vehicle speed, rotation speed value), various alarms (high water temperature alarm) or fault indicator lights, etc.; the test equipment 110 is a device for performing display testing on the vehicle instrument screen in the vehicle 120.
[0049] The test device 110 and the vehicle 120 are connected via a wired or wireless network, so that the test device 110 sends a test instruction containing a test case to the vehicle 120, controls the vehicle 120 to perform a display test on the vehicle instrument screen, and the vehicle 120 feeds back a test screenshot to the test device 110.
[0050] Figure 2 is a schematic flow chart of a vehicle instrument panel testing method provided in an embodiment of the present application. It should be understood that the method can be applied to Figure 1 In the test device 110.
[0051] For example, Figure 2 As shown, the method 200 includes:
[0052] Step 201, upon receiving a voice test instruction, convert the voice test instruction into a test text.
[0053] In the related art, when testing a vehicle instrument screen, the tester generally manually inputs or creates test cases, or manually selects test cases to be tested from multiple available test cases, and then tests the vehicle instrument screen based on the test cases. However, there are many test cases to be tested on the vehicle instrument screen, and manually selecting test cases or manually creating test cases will result in low testing efficiency. In order to further improve the test automation and test efficiency of the vehicle instrument screen, in an embodiment of the present application, a semantic recognition function is introduced for semantic recognition. The tester only needs to issue a voice command to match the corresponding target test case through the semantic recognition function to control the vehicle instrument screen for automated display testing.
[0054] In a possible implementation, when the test platform receives a voice test instruction from a tester, it can use speech-to-text technology to first convert the voice test instruction into a test text, and then determine the target test case that the tester needs to test based on the test text.
[0055] Step 202 : determining a target test case of the vehicle instrument panel that matches the test text.
[0056] Among them, the test platform is pre-configured with several candidate test cases related to the vehicle instrument screen display. By executing the candidate test cases, it can be used to trigger the vehicle instrument screen to display content. Correspondingly, after receiving the tester's voice test command and converting it into a test text, the target test case of the vehicle instrument screen is first matched from multiple candidate test cases based on the test text, and then the content display test is performed based on the target test case.
[0057] Methods for matching target test cases: keyword matching or similarity matching; or a neural network model for semantic recognition.
[0058] Step 203 , performing a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen.
[0059] After obtaining the target test case, the test equipment can transmit the target test case to the vehicle, triggering the vehicle instrument screen to display the content according to the signal corresponding to the target test case. In order to determine whether the content display is correct, it is also necessary to take a screenshot of the content display effect of the vehicle instrument screen, obtain the test screenshot and feed it back to the test equipment, and the corresponding test equipment obtains the test screenshot of the corresponding content display effect of the vehicle instrument screen.
[0060] For example, if the tester issues a voice test command: "Test vehicle speed 100km / h", the test text corresponding to the voice test command matches the target test case of "indicator light signal showing vehicle speed 100km / h", and a content display test is performed based on the target test case to obtain a test screenshot of the vehicle speed display effect on the vehicle instrument screen after receiving the target test case.
[0061] Step 204 , compare the test screenshot with the standard display image corresponding to the target test case, and output the target test result corresponding to the voice test instruction.
[0062] In order to avoid the need for testers to visually judge whether the test screenshot is correct, the test equipment is pre-configured with standard display images corresponding to each candidate test case. After obtaining the test screenshot corresponding to the target test case, the standard display image corresponding to the target test case can be obtained, and the difference between the standard display image and the test screenshot can be compared, so as to output the target test result corresponding to the voice test instruction.
[0063] Optionally, if the standard display image is Figure 1 If the standard display image is different from the test screenshot, the correct target test result can be output; otherwise, if the standard display image is different from the test screenshot, an incorrect target test result can be output.
[0064] Optionally, when outputting the target test results corresponding to the voice test instructions, the target test cases, test screenshots, test time and other test log information corresponding to the vehicle instrument screen display test can also be output simultaneously.
[0065] In summary, the embodiment of the present application provides an automated testing method for a vehicle instrument panel: by receiving voice test instructions and converting the voice test instructions into test text to automatically match the corresponding target test case, the vehicle instrument panel can be controlled to perform content display testing based on the target test case; after obtaining the test screenshot, it can be compared with the standard display image to output the target test result. The entire test process does not require manual operation by the user, and only requires the input of voice test instructions, which can automatically match the corresponding target test case, avoiding the problem of low test efficiency caused by manual search for test cases when there are many test cases, so as to improve the degree of automation of the test process; moreover, the test equipment can output the test results by comparing the test screenshots and the standard display images, and there is no need for the user to judge the test results with the human eye, thereby improving the output accuracy and efficiency of the test results.
[0066] When determining the target test case that matches the test text, a semantic recognition model is introduced for matching. The target test case that matches the test text is determined by analyzing the similarity between the test text and each candidate test case.
[0067] Figure 3 is a schematic flow chart of another vehicle instrument panel testing method provided in an embodiment of the present application. It should be understood that this method can be applied to Figure 1 In the test device 110.
[0068] For example, Figure 3 As shown, the method 300 includes:
[0069] Step 301, upon receiving a voice test instruction, convert the voice test instruction into a test text.
[0070] The implementation of step 301 may refer to step 201 , and this embodiment will not be described in detail here.
[0071] Step 302: input the test text into the semantic recognition model to obtain a plurality of candidate probability values output by the semantic recognition model, wherein the candidate probability values represent the similarity between the test text and each candidate test case.
[0072] The test device is pre-configured with a trained semantic recognition model, which can be used to determine a target test case that matches the test text.
[0073] During the training process of the semantic recognition model, several training data pairs are obtained, and the training data pairs include sample text and its corresponding sample test case. The sample text is input into the semantic recognition model to obtain the predicted probability that the sample text output by the semantic recognition model belongs to each candidate test case, and the predicted test case corresponding to the sample text is determined based on the predicted probability. Then, by comparing the difference between the predicted test case and the sample test case, the semantic recognition model is trained so that the semantic recognition model has the ability to recognize the test case matched by the input text.
[0074] Corresponding to the model application stage, the test text can also be input into the trained semantic recognition model, and the semantic recognition model will perform semantic analysis on the test text to output the candidate probability value of each candidate test case corresponding to the test text. The candidate probability value can also represent the similarity between the test text and each candidate test case.
[0075] Step 303: determine the candidate test cases whose candidate probability values are greater than the probability threshold as target test cases of the vehicle instrument screen that match the test text.
[0076] The larger the candidate probability value, the greater the match between the test text and the candidate test case. Conversely, the smaller the candidate probability value, the smaller the match between the test text and the candidate test case. A probability threshold is set accordingly, and the candidate test case with a candidate probability value greater than the probability threshold can be determined as the target test case of the vehicle instrument screen that matches the test text.
[0077] Specifically, if there are multiple candidate test cases whose candidate probability values are all greater than the probability threshold, the multiple candidate test cases can be used as target test cases to perform automated testing on the multiple test cases at the same time.
[0078] Optionally, the candidate test case with the largest candidate probability value may also be determined as the target test case for the vehicle instrument screen that matches the test text.
[0079] Optionally, in order to avoid an error in the semantic recognition model leading to an error in matching the target test case, thereby leading to an invalid test. After determining the target test case, a test prompt message can be displayed on the test interface of the test device. The test prompt message is used to remind the user that a display test of the target test case is about to be performed, so that the user can confirm whether the target test case is matched correctly. Correspondingly, after receiving a confirmation operation on the test prompt message, the subsequent test steps of performing a content display test on the vehicle instrument screen based on the target test case are continued to be executed; if a cancel operation on the test prompt message is received, it indicates that the target test case is incorrectly matched, and the subsequent test steps of performing a content display test on the vehicle instrument screen based on the target test case are stopped.
[0080] Step 304 , performing a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen.
[0081] After the target test case is determined, a content display test can be performed on the vehicle instrument screen based on the target test case, and corresponding test screenshots can be obtained.
[0082] Optionally, in order to obtain test screenshots, a screenshot function of the vehicle instrument screen is developed, so that when performing content display testing, the screenshot function can be called to take a screenshot of the content display effect to obtain a test screenshot.
[0083] Step 305 , input the test screenshot and the standard display image corresponding to the target test case into the image recognition model, and output the target similarity between the test screenshot and the standard display image.
[0084] In order to improve the accuracy of the test results, the test equipment is pre-configured with a trained image recognition model that has the ability to analyze the similarity between input images.
[0085] Among them, the training process of the image recognition model is: prepare a number of sample test images and sample display images in advance, and set the standard true similarity between the two; input the sample test images and the sample display images into the image recognition model, and the image recognition model performs similarity analysis, outputs the predicted similarity between the two, and compares the difference between the predicted similarity and the true similarity, trains the image recognition model, and enables the image recognition model to have the ability to analyze the similarity of the input images.
[0086] Corresponding to the model application stage, the test screenshot and the standard display image corresponding to the target test case can be input into the image recognition model, and the image recognition model compares and analyzes the similarity between the test screenshot and the standard display image, and outputs the target similarity between the test screenshot and the standard display image.
[0087] Step 306: When the target similarity is greater than or equal to the similarity threshold, correct is displayed as the target test result and output.
[0088] A similarity threshold is set, and when the target similarity is greater than or equal to the similarity threshold, it means that the test screenshot and the standard display image are basically consistent, and it can be determined that the target test result corresponding to the target test case is displayed correctly. Exemplarily, the similarity threshold can be 95%.
[0089] Step 307 , when the target similarity is less than the similarity threshold, identifying the difference image area between the test screenshot and the standard display image; determining the display error and the difference image area as the target test result and outputting them.
[0090] On the contrary, if the target similarity is less than the similarity threshold, it means that there is a difference between the test screenshot and the standard display image, and the display error can be determined as the target test result corresponding to the target test case.
[0091] Optionally, when the similarity is low, in order to make it easier for testers to distinguish which specific position is displayed incorrectly, the difference image area between the test screenshot and the standard display image can continue to be identified, and the difference image area can also be output as the target test result.
[0092] In this embodiment, by setting a semantic recognition model and an image recognition model, the corresponding target test case is automatically matched according to the test text, and the test results are automatically output, thereby improving the accuracy and efficiency of determining the test results; avoiding the problem of inefficient manual identification of test results when the number of tests is large; in addition, when determining display errors, the difference image area can also be identified and output, providing testers with richer test results, improving the efficiency of testers in analyzing test results, and further improving the degree of automation of the test process.
[0093] Taking into account the possibility that the similarity between the test text and multiple candidate test cases may be greater than the probability threshold, this may be caused by an incorrect recognition of the semantic recognition model, or the voice test instruction input by the user may correspond to multiple test cases. In order to improve the test accuracy of the automated test, targeted confirmation operations are also provided.
[0094] Figure 4 is a schematic flow chart of another vehicle instrument panel testing method provided in an embodiment of the present application. It should be understood that this method can be applied to Figure 1 In the test device 110.
[0095] For example, Figure 4 As shown, the method 400 includes:
[0096] Step 401, upon receiving a voice test instruction, convert the voice test instruction into a test text.
[0097] Step 402: input the test text into the semantic recognition model to obtain a plurality of candidate probability values output by the semantic recognition model, wherein the candidate probability values represent the similarity between the test text and each candidate test case.
[0098] The implementation of step 401 and step 402 can refer to the above embodiment, and this embodiment will not be described in detail here.
[0099] Step 403: determine the candidate test case whose candidate probability is greater than the probability threshold as the first test case.
[0100] When determining the target test cases, first determine the candidate test cases whose candidate probabilities are greater than the probability threshold, determine the candidate test cases as first test cases, and then process them separately according to the number of first test cases.
[0101] Step 404: When the number of first test cases is greater than the threshold, display each first test case.
[0102] Among them, the quantity threshold is 1. When the number of first test cases is greater than the quantity threshold, it means that there are multiple candidate test cases that match the test text. At this time, there may be two situations. One is that the voice test instruction itself corresponds to multiple test cases, and the other is a matching error. In order to improve the test accuracy, when the number of first test cases is greater than the quantity threshold, each first test case can be displayed in the test interface of the test device so that the user can confirm the target test case.
[0103] Step 405 , if a deletion operation is received for the second test case in the first test case, a third test case remaining after the deletion is determined, and the third test case is determined as a target test case for the vehicle instrument screen that matches the test text.
[0104] Optionally, when displaying each first test case, a delete control of each first test case can also be displayed, so that when the tester determines that there is no need to test a certain test case, the test case can be directly deleted. Correspondingly, if a delete operation is received for the second test case in the first test case, the third test case remaining after the deletion is determined, and the third test case is determined as the target test case of the vehicle instrument screen matching the test text.
[0105] Step 406: If no deletion operation is received for the first test case, each first test case is determined as a target test case of the vehicle instrument screen that matches the test text.
[0106] If no deletion operation is received for the first test case, it indicates that the tester intends to test multiple target test cases, and correspondingly, each first test case can be determined as a target test case for the vehicle instrument screen that matches the test text.
[0107] Optionally, if a cancel operation on the first test case is received when the first test case is displayed, it means that all the first test cases are matched incorrectly. In this case, there may be two reasons: one is that there is an error in matching the test text with the target test case, and the other is that there is an error in converting the voice test instruction to the test text. In order to determine which reason causes the matching error, the target prompt information can continue to be displayed in the test interface of the test device, and the target prompt information includes the test text, so that the target reason causing the matching error can be determined through the judgment result of the test text.
[0108] Specifically, if a confirmation operation for the test text is received, indicating that there is no error between the voice test command and the test text, then the target reason for the incorrect matching is the process of the test text matching the target test case, that is, the semantic recognition model is not accurate enough, and the corresponding standard test case corresponding to the test text can be further obtained, so as to update the semantic recognition model based on the standard test case and the test text to improve the accuracy of subsequent semantic recognition. Among them, the standard test case can be obtained by input by the tester.
[0109] If a close operation, a cancel operation, or a feedback operation is received on the test text, it means that the test text is incorrect, that is, there is an error between the conversion of the voice test instruction and the test text. Then, a standard test text can be obtained so as to correct the speech-to-text model based on the difference between the standard test text and the test text.
[0110] Step 407 , performing a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen.
[0111] The number of target test cases may be one or more. In the case of multiple target test cases, the test order of each target test case needs to be considered.
[0112] In an illustrative example, step 407 may also include step 407A and step 407B.
[0113] Step 407A: if the number of target test cases is greater than the number threshold, sort the target test cases according to the candidate probability value to obtain a first test sequence.
[0114] In the case where the number of target test cases is greater than the quantity threshold, on the one hand, each target test case can be sorted according to the candidate probability value to obtain the first test order, and the larger the candidate probability value, the earlier the test order, and the smaller the candidate probability value, the later the test order. Among them, the quantity threshold can be 1.
[0115] Exemplarily, if the target test cases include: test case 1, test case 2 and test case 3, and the candidate probability value between the test text and test case 1 is 96%, the candidate probability value between the test text and test case 2 is 98%, and the candidate probability value between the test text and test case 3 is 97.5%; then the first test order of each target test case is: test case 2>test case 3>test case 1.
[0116] Step 407B: Execute each target test case according to the first test sequence to perform a content display test on the vehicle instrument screen.
[0117] After obtaining the first test sequence corresponding to multiple target test cases, the content display test of the vehicle instrument screen can be performed based on each target test case in the order indicated by the first test sequence to obtain test screenshots of the corresponding content display effect of the vehicle instrument screen under each target test case.
[0118] Optionally, in the case of matching multiple target test cases, the tester may predefine the test order of each target test case in the voice test instruction. Correspondingly, in another exemplary example, step 407 may also include steps 407C to 407E.
[0119] Step 407C: if the number of target test cases is greater than the number threshold, determine the test position of the target keyword corresponding to the target test case in the test text.
[0120] When the number of target test cases is greater than the number threshold, the test positions of the target keywords corresponding to the target test cases in the test text may also be determined to determine the second test sequence corresponding to each target test case.
[0121] Step 407D: Determine a second test order for each target test case based on the test position.
[0122] The earlier the test position is, the more likely the tester wants to test the test case first. Correspondingly, the second test order of each target test case can be determined based on the target keyword being located before and after the test position in the test text. The earlier the test position is, the earlier the test order is; the later the test position is, the later the test order is.
[0123] For example, if the test text is "After testing the vehicle speed at 100 km / h, test the water temperature over-high alarm", it corresponds to two target test cases: test case 1 ~ "display vehicle speed", test case 2 ~ display water temperature over-high alarm; the target keywords of each target test case are "vehicle speed, water temperature", then based on the test position of the target keywords in the test text, the second test order of the target test cases is determined as: test case 1>test case 2.
[0124] Step 407E: Execute each target test case according to the second test sequence to perform a content display test on the vehicle instrument screen.
[0125] After obtaining the second test sequence corresponding to multiple target test cases, the content display test of the vehicle instrument screen can be performed based on each target test case in the order indicated by the second test sequence to obtain test screenshots of the corresponding content display effect of the vehicle instrument screen under each target test case.
[0126] Step 408, comparing the test screenshot with the standard display image corresponding to the target test case, and outputting the target test result corresponding to the voice test instruction.
[0127] The implementation of step 408 may refer to the above embodiment, and will not be described in detail in this embodiment.
[0128] In this embodiment, when semantic recognition is performed on the test text to identify the target test case that matches the test text, considering that there may be multiple target test cases that match the test text, and different test cases need to specify the corresponding test order, two methods for determining the test order of multiple target test cases are also proposed. The test order is determined according to the degree of matching with the test text; or the test order is determined according to the test position of the target keyword corresponding to the target test case in the test text. In the case of matching multiple target test cases, the test order of each test case can also be determined according to certain rules, avoiding the disorder of the test order and affecting the output of subsequent test results, thereby improving the test efficiency and accuracy of the automated test.
[0129] In other possible implementations, multiple tests may be performed to determine the display stability of the vehicle instrument panel. During the test, the tester may also specify the number of tests for the target test case.
[0130] Figure 5 is a schematic flow chart of another vehicle instrument panel testing method provided in an embodiment of the present application. It should be understood that this method can be applied to Figure 1 In the test device 110.
[0131] For example, Figure 5 As shown, the method 500 includes:
[0132] Step 501, upon receiving a voice test instruction, convert the voice test instruction into a test text.
[0133] Step 502: Determine a target test case of the vehicle instrument panel that matches the test text.
[0134] The implementation of step 501 and step 502 can refer to the above embodiment, and this embodiment will not be described in detail here.
[0135] Step 503: Determine the number of tests of the target test case based on the test text.
[0136] After matching the target test case, keyword recognition can also be performed on the test text to determine the number of tests for the target test case. This keyword recognition is used to identify the target number.
[0137] Optionally, after the test times of the target test case are identified, they can also be displayed on the test interface of the test device, and the tester can manually confirm whether the test times are correct; optionally, a test times editing control can also be provided to allow the user to modify the test times through the editing control when the test times are identified incorrectly.
[0138] In other possible implementations, after a target test case matching the test text is identified, an input control is displayed, and the tester inputs the number of tests of the target test case, and the number of tests of the target test case is correspondingly obtained.
[0139] Optionally, if there are multiple target test cases, the target number in the test text that is closest to the target keyword corresponding to the target test case is determined as the number of tests corresponding to the target test case. Exemplarily, if the test text is "After testing the vehicle speed display 50 times, test the water temperature over-alarm 30 times." It corresponds to two target test cases: test case 1 ~ "display vehicle speed", test case 2 ~ display water temperature over-alarm; the target keywords of each target test case are "vehicle speed, water temperature over-alarm", then based on the test position of the target keyword in the test text, the "50 times" closest to the vehicle speed is determined as the number of tests corresponding to test case 1, and the "40 times" closest to the water temperature over-alarm is determined as the number of tests corresponding to test case 2.
[0140] Step 504 , performing a content display test on the vehicle instrument screen based on the test number and the target test case, and obtaining a plurality of test screenshots of the vehicle instrument screen under the test number.
[0141] After obtaining the test times corresponding to the target test case, that is, when the vehicle instrument screen is displayed the number of times based on the target test case, the display times are controlled based on the test times, and multiple test screenshots are obtained for each test time.
[0142] Step 505 , comparing each test screenshot with a standard display image corresponding to the target test case, and determining a first display number of correct displays and a second display number of incorrect displays.
[0143] Since each target test case has been tested multiple times and multiple test screenshots have been obtained, when determining the target test result, it is necessary to compare the similarity between each test screenshot and the standard display image corresponding to the target test case, and obtain the sub-test results corresponding to each test screenshot, and the sub-test results include correct display or incorrect display. The sub-test results corresponding to each test screenshot are counted to obtain the first display number of correct display and the second display number of incorrect display, and then determine the final target test result based on the first display number and the second display number.
[0144] Step 506: determine the first display number and the second display number as target test results and output them.
[0145] In a possible implementation, the first display number and the second display number are directly determined as target test results; optionally, a first correct display ratio and a second incorrect display ratio are respectively calculated based on the first display number and the second display number, and the first ratio and the second ratio are also used as target test results; optionally, in the case of display errors, it is also necessary to output the corresponding test screenshots and the target test number with display errors.
[0146] In this embodiment, the application also proposes to identify the test times of the target test case, and perform content display test based on the test times and the target test case, and when outputting the target test result, the correct display times and the incorrect display times can be counted. Multiple repeated automated tests of the target test case can be realized through a single voice command input, and the test results can be automatically counted for the tester, further improving the automation level of the instrument test.
[0147] Figure 6 It is a schematic diagram of the test process of a vehicle instrument screen provided by an embodiment of the present application. The tester inputs a voice test instruction, which is saved as an audio file through Python. The semantic recognition converts the audio file into a test text, and the API calls the semantic recognition model 601, inputs the test text into the semantic recognition model 601, and returns the matching result-the target test case; further, the Python project encapsulates the target test case and transmits it to the test tool 602, so that it can be broadcast to notify the vehicle instrument screen 603 later; the corresponding vehicle instrument screen 603 returns the effect picture (ie, the test screenshot); finally, the API calls the AI big model (image recognition model) 604, inputs the effect picture into the AI big model 604, and obtains the test result through the analysis of the AI big model 604. Return the test results and the effect picture transmitted by the vehicle instrument screen 603 during the test, and output the test log.
[0148] Figure 7 It is a structural schematic diagram of a vehicle instrument panel testing device provided in an embodiment of the present application, and the device can be applied to testing equipment.
[0149] For example, Figure 7 As shown, the device 700 includes:
[0150] The speech-to-text module 701 is used to convert the speech test instruction into a test text when receiving the speech test instruction;
[0151] A first determination module 702 is used to determine a target test case of the vehicle instrument screen that matches the test text;
[0152] The testing module 703 is used to perform a content display test on the vehicle instrument screen based on the target test case, and obtain a test screenshot of the corresponding content display effect of the vehicle instrument screen;
[0153] The result output module 704 is used to compare the test screenshot with the standard display image corresponding to the target test case, and output the target test result corresponding to the voice test instruction.
[0154] In one possible implementation, the first determination module 702 is further used to: input the test text into a semantic recognition model to obtain multiple candidate probability values output by the semantic recognition model, wherein the candidate probability values represent the similarity between the test text and each candidate test case; and determine the candidate test case whose candidate probability value is greater than a probability threshold as the target test case of the vehicle instrument screen that matches the test text.
[0155] In one possible implementation, the test module 703 is also used to: if the number of the target test cases is greater than a quantity threshold, sort each of the target test cases according to the candidate probability value to obtain a first test order; execute each of the target test cases according to the first test order to perform a content display test on the vehicle instrument screen.
[0156] In one possible implementation, the test module is also used to: if the number of the target test cases is greater than a quantity threshold, determine the test position where the target keyword corresponding to the target test case is located in the test text; based on the test position, determine a second test sequence for each of the target test cases; and execute each of the target test cases according to the second test sequence to perform a content display test on the vehicle instrument screen.
[0157] In one possible implementation, the first determination module is further used to: determine the candidate test cases whose candidate probability is greater than the probability threshold as the first test cases; when the first test cases are greater than the quantity threshold, display each of the first test cases; if a deletion operation is received for the second test case in the first test cases, determine the third test case remaining after the deletion, and determine the third test case as the target test case of the vehicle instrument screen that matches the test text; if no deletion operation is received for the first test case, determine each of the first test cases as the target test case of the vehicle instrument screen that matches the test text.
[0158] In one possible implementation, the device also includes: a display module, which is used to display a target prompt message if a cancel operation on the first test case is received, and the target prompt message includes the test text; an acquisition module, which is used to obtain a standard test case corresponding to the test text if a confirmation operation on the test text is received; and a training module, which is used to update the semantic recognition model based on the standard test case and the test text.
[0159] In one possible implementation, the result output module is further used to: input the test screenshot and the standard display image corresponding to the target test case into an image recognition model, and output the target similarity between the test screenshot and the standard display image; when the target similarity is greater than or equal to a similarity threshold, display correctness as the target test result and output it; when the target similarity is less than the similarity threshold, identify the difference image area between the test screenshot and the standard display image; determine the display error and the difference image area as the target test result and output them.
[0160] In one possible implementation, the device also includes: a second determination module, used to determine the test number of the target test case based on the test text; the test module is also used to: perform a content display test on the vehicle instrument screen based on the test number and the target test case, and obtain multiple test screenshots of the vehicle instrument screen under the test number; the result output module is used to: compare each of the test screenshots with the standard display image corresponding to the target test case, determine the first display number of correct display and the second display number of incorrect display; determine the first display number and the second display number as the target test result and output them.
[0161] Figure 8 It is a structural schematic diagram of a testing device provided in an embodiment of the present application.
[0162] For example, Figure 8 As shown, the test device 800 includes: a memory 801 and a processor 802, wherein the memory 801 stores an executable program code 803, and the processor 802 is used to call and execute the executable program code 803 to perform the vehicle instrument screen test method in the above embodiment.
[0163] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute a vehicle instrument screen testing method provided in an embodiment of the present application.
[0164] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0165] In the case of dividing each functional module according to each function, the device may also include a storage module, an acquisition module, a configuration module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0166] It should be understood that the device provided in this embodiment is used to execute the above-mentioned vehicle instrument panel testing method, and thus can achieve the same effect as the above-mentioned implementation method.
[0167] In addition, the device provided in the embodiments of the present application may specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a vehicle instrument screen testing method provided in the above embodiment.
[0168] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement a vehicle instrument screen testing method provided in the above embodiment.
[0169] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a vehicle instrument panel testing method provided in the above embodiment.
[0170] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0171] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0172] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0173] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle instrument panel testing method, characterized in that: The method comprises: When receiving a voice test instruction, converting the voice test instruction into a test text; Determining a target test case for the vehicle instrument screen that matches the test text; Performing a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen; The test screenshot is compared with a standard display image corresponding to the target test case, and a target test result corresponding to the voice test instruction is output.
2. The method according to claim 1, characterized in that The determining of a target test case of the vehicle instrument screen that matches the test text comprises: Inputting the test text into a semantic recognition model to obtain a plurality of candidate probability values output by the semantic recognition model, wherein the candidate probability values represent the similarity between the test text and each candidate test case; The candidate test cases whose candidate probability values are greater than the probability threshold are determined as the target test cases of the vehicle instrument screen that match the test text.
3. The method according to claim 2, characterized in that The performing content display test on the vehicle instrument screen based on the target test case includes: If the number of the target test cases is greater than the number threshold, sorting the target test cases according to the candidate probability value to obtain a first test sequence; Execute each of the target test cases in the first test sequence to perform a content display test on the vehicle instrument screen.
4. The method according to claim 2, characterized in that: The performing of content display test on the vehicle instrument screen based on the target test case also includes: If the number of the target test cases is greater than the number threshold, determining that the target keyword corresponding to the target test case is located at a test position in the test text; Based on the test positions, determining a second test order for each of the target test cases; Execute each of the target test cases in accordance with the second test sequence to perform a content display test on the vehicle instrument screen.
5. The method according to claim 2, characterized in that: The step of determining the candidate test case whose candidate probability value is greater than the probability threshold as the target test case of the vehicle instrument screen matching the test text comprises: Determine the candidate test case whose candidate probability is greater than the probability threshold as the first test case; When the number of the first test cases is greater than a threshold, displaying each of the first test cases; If a deletion operation is received for the second test case in the first test case, determining a third test case remaining after the deletion, and determining the third test case as the target test case of the vehicle instrument screen that matches the test text; If no deletion operation is received for the first test case, each of the first test cases is determined as the target test case of the vehicle instrument screen that matches the test text.
6. The method according to claim 5, characterized in that The method further comprises: If a cancel operation on the first test case is received, displaying a target prompt message, wherein the target prompt message includes the test text; Upon receiving a confirmation operation on the test text, obtaining a standard test case corresponding to the test text; The semantic recognition model is updated based on the standard test case and the test text.
7. The method according to any one of claims 1 to 6, characterized in that: The comparing the test screenshot with the standard display image corresponding to the target test case and outputting the target test result corresponding to the voice test instruction includes: Inputting the test screenshot and the standard display image corresponding to the target test case into an image recognition model, and outputting the target similarity between the test screenshot and the standard display image; When the target similarity is greater than or equal to the similarity threshold, displaying correct as the target test result and outputting it; In the case where the target similarity is less than the similarity threshold, a difference image region between the test screenshot and the standard display image is identified; and a display error and the difference image region are determined as the target test result and output.
8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Based on the test text, determining the number of tests for the target test case; The performing of a content display test on the vehicle instrument screen based on the target test case, and obtaining a test screenshot of the corresponding content display effect of the vehicle instrument screen, includes: Performing a content display test on the vehicle instrument screen based on the test number and the target test case, and obtaining a plurality of test screenshots of the vehicle instrument screen under the test number; The comparing the test screenshot with the standard display image corresponding to the target test case and outputting the target test result corresponding to the voice test instruction includes: Comparing each of the test screenshots with the standard display image corresponding to the target test case, determining a first display number of correct displays and a second display number of incorrect displays; The first display number and the second display number are determined as the target test results and output.
9. A vehicle instrument panel testing device, characterized in that: The device comprises: A speech-to-text module is used to convert the speech test instruction into a test text when receiving the speech test instruction; A first determination module is used to determine a target test case of the vehicle instrument screen that matches the test text; A testing module, used to perform a content display test on the vehicle instrument screen based on the target test case, and obtain a test screenshot of the corresponding content display effect of the vehicle instrument screen; A result output module is used to compare the test screenshot with the standard display image corresponding to the target test case, and output the target test result corresponding to the voice test instruction.
10. A testing device, characterized in that: The test equipment includes: A memory for storing executable program codes; A processor is used to call and run the executable program code from the memory, so that the test device executes the vehicle instrument screen test method as described in any one of claims 1 to 8.
Citation Information
Cited By
Method and apparatus for automated testing of flight instruments based on picture difference detection
CN120448278B
