Authentication test method and device, electronic equipment and storage medium

By automating script execution and monitoring Android XTS certification tests, the problems of long test time and low efficiency in the existing technology are solved, automated test execution and result recording are realized, and test efficiency is significantly improved.

CN118626378APending Publication Date: 2024-09-10ECARX (HUBEI) TECHCO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410778791.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology is time-consuming and inefficient when performing Android XTS certification testing, requiring a large amount of manual intervention, resulting in low testing efficiency.

Method used

Provides a certification testing method that executes certification tests through automated scripts, monitors test progress, analyzes test results, decides whether to retest failed projects, and automatically records test results to the defect management system to realize full process automation.

Benefits of technology

Significantly save manual workload, improve certification test efficiency, reduce manual investment, and achieve automated test execution and result collation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626378A
    Figure CN118626378A
Patent Text Reader

Abstract

The embodiment of the invention provides an authentication test method and device, electronic equipment and a storage medium. The method comprises the following steps: determining an authentication test type of a to-be-tested vehicle machine, connecting the to-be-tested vehicle machine, and executing a test script corresponding to the authentication test type; judging whether the authentication test is finished or not every first preset period; if the authentication test is finished, obtaining a test result; analyzing the test result, and determining whether a failure item needs to be retested or not; and after judging that a preset completion condition is met, counting a test result of each test module in the to-be-tested vehicle machine, and recording the test result into a defect management system. According to the embodiment of the invention, all the processes of authentication test execution, failed item retry, content result arrangement and defect registration can be automatically carried out, the authentication test execution efficiency is effectively improved, and the labor investment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to an authentication testing method, an authentication testing device, an electronic device and a storage medium. Background Art

[0002] Smart cockpit products for Europe and the United States must pass Google's XTS certification, where XTS certification is a general term that includes compatibility testing (Compatibility Test Suite, CTS) certification, vendor testing (Vendor TestSuite, VTS) certification, automatic testing (Automatic Test Suite, ATS) certification, security testing (Security TestSuite, STS) certification, etc.

[0003] It takes a lot of time to perform Android XTS certification tests. If implemented on a single machine, the first round of testing takes 60 hours. After that, the failed items are retested, which takes 3 to 10 hours each time, and personnel are required to pay attention to the progress of the test execution at any time, and then manually check the results, and then repeatedly retest the failed items. Finally, according to the number of module failures in the test report, a list of test data with the number of module failures from high to low is compiled, and the problems are written into the defect management system one by one according to the test data. It often takes one person a week from the implementation of traditional certification tests to the logging of problems into the defect management system, resulting in low efficiency of certification testing. Summary of the invention

[0004] In view of the defects in the prior art, the embodiments of the present invention provide an authentication test method, an authentication test device, an electronic device and a storage medium.

[0005] In a first aspect, an embodiment of the present invention provides an authentication test method, comprising:

[0006] Determine the certification test type of the vehicle computer to be tested, connect to the vehicle computer to be tested, and execute the test script corresponding to the certification test type;

[0007] At intervals of a first preset period, determining whether the authentication test is completed;

[0008] If the certification test has been completed, obtain the test results;

[0009] Analyze the test results to determine whether the failed items need to be retested;

[0010] After determining that the preset completion condition is met, the test result of each test module in the vehicle computer to be tested is counted and recorded in the defect management system.

[0011] As in the above method, optionally, determining whether the authentication test is finished at intervals of a first preset period includes:

[0012] Start the monitoring thread, read the command line at a first preset period, and determine whether a keyword indicating the end of the test appears;

[0013] If the keyword appears in the command line, then search the test result folder corresponding to the test script to see whether a test report has been generated;

[0014] If a test report has been generated, it is determined that the certification test has been completed.

[0015] As in the above method, optionally, analyzing the test results to determine whether a failed item needs to be retested includes:

[0016] Based on the web page analysis function, read the number of test failure items in the test report;

[0017] If the number of test failure items is greater than a preset threshold, it is determined that the failed items need to be retested.

[0018] As in the above method, optionally, the counting of test results of each test module in the vehicle computer to be tested and recording in a defect management system includes:

[0019] Arrange the number of failed items of each test module in the vehicle computer to be tested in descending order to generate a data statistics table;

[0020] Call JIRA API to log in to the defect management system, and record the data statistics table into the defect management system.

[0021] As the above method, optionally, it also includes:

[0022] The test results are sent to the test related personnel via email.

[0023] As in the above method, optionally, before receiving the certification test type of the vehicle computer to be tested input by the user, the method further includes:

[0024] Sending a prompt message to the user whether the vehicle system of the vehicle to be tested needs to be upgraded;

[0025] If the system upgrade information required by the user is received, the vehicle system of the vehicle to be tested is automatically refreshed to the latest version through the flashing function.

[0026] As in the above method, optionally, determining the certification test type of the vehicle computer to be tested includes:

[0027] Sending a preset number of certification test types to the user;

[0028] According to the user's selection result, the certification test type of the vehicle computer to be tested is determined.

[0029] In a second aspect, an embodiment of the present invention provides an authentication test device, including:

[0030] An execution module, used to determine the certification test type of the vehicle computer to be tested, connect to the vehicle computer to be tested, and execute a test script corresponding to the certification test type;

[0031] A judgment module, used for judging whether the authentication test is finished at intervals of a first preset period;

[0032] An acquisition module, used for acquiring the test result if the certification test has been completed;

[0033] An analysis module, used to analyze the test results and determine whether a failed item needs to be retested;

[0034] The statistical recording module is used to count the test results of each test module in the vehicle computer to be tested and record them in the defect management system after determining that the preset completion conditions are met.

[0035] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0036] A memory and a processor, wherein the processor and the memory communicate with each other via a bus; the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the authentication test method as described in any one of the first aspects above.

[0037] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the authentication test method as described in any one of the above-mentioned first aspects is implemented.

[0038] The certification test method provided by the embodiment of the present invention determines the certification test type of the vehicle to be tested, connects to the vehicle to be tested, executes the test script corresponding to the certification test type; determines whether the certification test is completed at intervals of the first preset period; if the certification test is completed, obtains the test result; analyzes the test result to determine whether the failed item needs to be retested; after determining that the preset completion condition is met, the test result of each test module in the vehicle to be tested is counted and recorded in the defect management system. It can be seen that when the tester needs to perform a certain certification test on the vehicle to be tested, the test equipment automatically executes the certification test by executing the test script corresponding to the certification test type after connecting to the vehicle to be tested, and monitors whether the certification test is completed at intervals of the preset period, and obtains the test result after the certification test is completed, analyzes whether the failed item meets the requirements, and retests the failed item if it does not meet the requirements. After the failed item meets the requirements, the test results of each module are automatically analyzed and counted and recorded in the defect management system. The certification test execution, failed item retry, content result collation, and defect registration, all the whole process can be automated, which can save 1 person / week of workload, effectively improve the efficiency of certification test execution, and reduce manual input. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flowchart of steps of an embodiment of a certification test method of the present invention;

[0040] Figure 2 This is a schematic diagram of displaying a test result page in an embodiment of an authentication test method of the present invention;

[0041] Figure 3 It is another test result page display schematic diagram in an embodiment of an authentication test method of the present invention;

[0042] Figure 4 It is a statistical representation of data in an embodiment of a certification test method of the present invention;

[0043] Figure 5 It is a schematic diagram of recording test results of a defect management system in an embodiment of a certification test method of the present invention;

[0044] Figure 6 It is a schematic diagram of a user input page in an embodiment of an authentication test method of the present invention;

[0045] Figure 7 is a flowchart of another authentication test method embodiment of the present invention;

[0046] Figure 8 is a structural block diagram of an embodiment of a certification test device of the present invention;

[0047] Fig. 9It is a structural block diagram of an electronic device embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0049] Reference Figure 1 , shows a flowchart of a certification test method embodiment of the present invention, which may specifically include the following steps:

[0050] Step S110, determining the certification test type of the vehicle computer to be tested, connecting the vehicle computer to be tested, and executing a test script corresponding to the certification test type;

[0051] Specifically, a test script for each certification test type in the XTS certification test is written in advance. For example, a test script for each certification test type in the XTS certification test is written in Python language, including CTS test scripts, VTS test scripts, ATS test scripts and STS test scripts. When the tester needs to perform a certain type of certification test on a certain vehicle computer (recorded as the vehicle computer to be tested), the test equipment connects to the vehicle computer to be tested. If the test equipment can identify the vehicle computer to be tested, it means that the connection is successful. The test equipment copies all test data through the Shell script, and then calls the test script execution function to perform the certification test. In actual applications, since single-machine testing takes a long time, the test script can also be executed in parallel through multiple test devices to save test time.

[0052] For example, the certification test type is CTS test. The test device determines that the test device has identified the device under test (the vehicle to be tested) through the Android Debug Bridge adb command, copies all test data through the Shell script, and then calls the CTS test script execution function to perform the CTS certification test.

[0053] Step S120, determining whether the authentication test is completed at intervals of a first preset period;

[0054] Specifically, a first preset period is pre-set, for example, the first preset period may be ten minutes, and the test device determines whether the authentication test has ended every ten minutes. The first preset period may be set based on experience or by a machine learning algorithm.

[0055] Step S130: If the authentication test has been completed, obtain the test result;

[0056] Specifically, if the testing device determines that the certification test has been completed, the test result is obtained, and the test result may include items that passed the test and items that failed the test.

[0057] Step S140, analyzing the test results to determine whether the failed items need to be retested;

[0058] Specifically, the test equipment analyzes the test results and analyzes whether the failed items meet the requirements. If the requirements are not met, the failed items need to be retested and the test scripts continue to be executed.

[0059] Step S150: After determining that the preset completion condition is met, the test result of each test module in the vehicle computer to be tested is counted and recorded in the defect management system.

[0060] Specifically, if the test equipment determines that the test has been completed, the test results of each test module in the vehicle to be tested are counted, and the test results of each module are recorded in the defect management system. Whether the test has been completed can be determined by judging whether the preset completion conditions are met. For example, the preset completion conditions can be that the number of test failure items is not greater than a preset threshold, for example, the preset threshold is 200, or the retest number threshold has been reached, for example, the retest threshold is 8, etc.

[0061] The certification test method provided by the embodiment of the present invention determines the certification test type of the vehicle to be tested, connects to the vehicle to be tested, executes the test script corresponding to the certification test type; determines whether the certification test is completed at intervals of the first preset period; if the certification test is completed, obtains the test result; analyzes the test result to determine whether the failed item needs to be retested; after determining that the preset completion condition is met, the test result of each test module in the vehicle to be tested is counted and recorded in the defect management system. It can be seen that when the tester needs to perform a certain certification test on the vehicle to be tested, the test equipment automatically executes the certification test by executing the test script corresponding to the certification test type after connecting to the vehicle to be tested, and monitors whether the certification test is completed at intervals of the preset period, and obtains the test result after the certification test is completed, analyzes whether the failed item meets the requirements, and retests the failed item if it does not meet the requirements. After the failed item meets the requirements, the test results of each module are automatically analyzed and counted and recorded in the defect management system. The certification test execution, failed item retry, content result collation, and defect registration, all the whole process can be automated, which can save 1 person / week of workload, effectively improve the efficiency of certification test execution, and reduce manual input.

[0062] On the basis of the above embodiment, further, the step of determining whether the authentication test is finished at intervals of a first preset period includes:

[0063] Start the monitoring thread, read the command line at a first preset period, and determine whether a keyword indicating the end of the test appears;

[0064] If the keyword appears in the command line, then search the test result folder corresponding to the test script to see whether a test report has been generated;

[0065] If a test report has been generated, it is determined that the certification test has been completed.

[0066] Specifically, the test device starts a monitoring thread when executing the test script, reads a command line once every first preset period, and determines whether a keyword representing the end of the test appears. The keyword may be, for example, "end of test", which is not limited here.

[0067] The words "Test Ended" appearing in the command line does not mean that the test has ended. After the test script is executed, a new test report file will be created in the corresponding test result folder and the test results will be written into the test report. The entire test is now completed.

[0068] After the test device recognizes that a keyword appears in the command line, it also needs to find the test result folder corresponding to the test script to determine whether a test report has been generated. If the test report has been generated, it is determined that the certification test has ended.

[0069] For example, the test device reads the test script running command line every ten minutes to determine whether the keyword "test end" appears. If it appears, it goes to the corresponding test result folder to determine whether a test report is generated. When both conditions are met, the test is deemed to be ended.

[0070] In the embodiment of the present invention, command line keywords and test reports are used to automatically determine whether a test is completed, thereby reducing manual input.

[0071] On the basis of the above embodiments, further, analyzing the test results to determine whether a failed item needs to be retested includes:

[0072] Based on the web page analysis function, read the number of test failure items in the test report;

[0073] If the number of test failure items is greater than a preset threshold, it is determined that the failed items need to be retested.

[0074] Specifically, when it is determined that the test is completed, a web page analysis function, such as a HyperText Markup Language (HTML) parsing function, is used to parse the test report and read the number of failed items in the test report. The threshold for the number of failed items is set in advance through the configuration function. For example, the threshold for the number of failed items is set to 200, which can be changed through the configuration function. If the number of failed items in the test results is greater than the threshold, the failed items are automatically retested and the test script corresponding to the certification test type is executed. If the number of failed items is not greater than the threshold, no retest is performed.

[0075] Figure 2 : is a schematic diagram of a test result page display in an embodiment of an authentication test method of the present invention, such as Figure 2 As shown, the test type is CTS test. The test device parses the HTML parsing function to find that the number of failed items is 98, which is less than the preset value of 200. Therefore, retesting is not required.

[0076] Figure 3 FIG. 1 is another schematic diagram showing a test result page in an embodiment of an authentication test method of the present invention. Figure 3 As shown, the test type is CTS test. The test device parses the HTML parsing function and finds that the number of failed items is 1353, which is greater than the preset value of 200. Therefore, retesting is required.

[0077] In the embodiment of the present invention, when the web page analysis function determines that the test failure items exceed the threshold, retesting is automatically performed, thereby reducing manual input and improving test efficiency.

[0078] On the basis of the above embodiments, further, the counting of test results of each test module in the vehicle computer to be tested and recording in a defect management system includes:

[0079] Arrange the number of failed items of each test module in the vehicle computer to be tested in descending order to generate a data statistics table;

[0080] Call the JIRA API to log in to the defect management system, and record the data statistics table into the defect management system.

[0081] Specifically, the test equipment determines that the preset completion conditions are met, such as the number of test failure items is not greater than the preset threshold or the retest number threshold has been reached, and uses the HTML parsing function test report to generate a data statistics table Excel, which is arranged in descending order according to the number of failed items in the test module. Figure 4 This is a statistical representation of data in an embodiment of a certification test method of the present invention. Figure 4 As shown in the figure, the test modules are sorted in descending order according to the number of failed items, which helps the project understand which modules need to be focused on.

[0082] After that, the test equipment calls JIRAAPI to log in to the defect management system. JIRAAPI is the calling interface of the defect tracking management system. The defect management system is logged in through JIRAAPI, and the Excel results sorted out above are recorded in the test project corresponding to the defect management system. Figure 5 FIG. 1 is a schematic diagram of a defect management system recording test results in an embodiment of a certification test method of the present invention. Figure 5 As shown, for each module, a test result is submitted.

[0083] The embodiment of the present invention realizes automated authentication test implementation, failure retry, data collation, and defect logging by combining Python, data analysis and other technologies, thus opening up the entire authentication test process, which can effectively improve the efficiency of authentication test execution and reduce manual input.

[0084] On the basis of the above embodiments, further comprising:

[0085] The test results are sent to the test related personnel via email.

[0086] Specifically, after recording the test results in the defect management system, the test equipment can also search for the email address of the test-related personnel and send the test results to the test-related personnel via email. For example, the sorted data statistics table can be sent to the test-related personnel as an attachment, and the data in the data statistics table can be plotted as a bar chart and sent to the test-related personnel, etc., so that the test personnel can intuitively view the test results at the first time.

[0087] On the basis of the above embodiments, further, before receiving the authentication test type of the vehicle computer to be tested input by the user, the method further includes:

[0088] Sending a prompt message to the user whether the vehicle system of the vehicle to be tested needs to be upgraded;

[0089] If the user's reply to the system upgrade information is received, the vehicle system of the vehicle to be tested is automatically refreshed to the latest version through the good flashing function.

[0090] Specifically, before testing the vehicle computer, it is also necessary to determine whether the vehicle computer system needs to be refreshed, and send a prompt message to the user whether the vehicle computer system of the vehicle computer to be tested needs to be upgraded. For example, the prompt message can be "Do you need to flash the latest version?" If the user replies to the system upgrade information, for example, the user replies "yes", the system file is downloaded and decompressed from Jfrog, and the vehicle computer system microcontroller unit (MCU) and system-on-chip (SOC) are automatically flashed to the latest version through the flashing function, and then the certification test is carried out.

[0091] On the basis of the above embodiments, further, determining the certification test type of the vehicle computer to be tested includes:

[0092] Sending a preset number of certification test types to the user;

[0093] According to the user's selection result, the certification test type of the vehicle computer to be tested is determined.

[0094] Specifically, Figure 6Schematic diagram of a user input page in an embodiment of an authentication test method of the present invention, such as Figure 6 As shown, before executing the test script, the user is asked whether the latest version needs to be flashed. If the user replies yes, multiple certification test types supported by the test are sent to the user, such as CTS, VTS, ATS, etc. The user enters the abbreviation of the corresponding test type, and the certification test type of the vehicle to be tested is determined, and the test script corresponding to the certification test type is executed, such as Figure 6 As shown, if the user selects CTS test, the CTS test script will be executed.

[0095] In the embodiment of the present invention, the tester only needs to input the type of certification test to be performed, whether the firmware needs to be flashed, the execution of the certification test, the retry of failed items, the content result collation, and the defect login record. The entire process can be automated, which can save 1 person / week of workload.

[0096] Figure 7 is a flowchart of another embodiment of the authentication test method of the present invention, such as Figure 7 As shown, the following steps are included:

[0097] Step S710: confirm whether the latest version needs to be flashed to the vehicle computer. If the user selects "yes", download and decompress the latest version file from Jfrog, and automatically flash the MCU and SOC through the flashing function.

[0098] Step S720: After the flashing is completed, the test device is judged through the adb command to determine whether it has recognized the device under test, all test data is copied through the Shell script, and then the test script execution function is called to perform the authentication test of the user input.

[0099] Step S730, start the monitoring thread, read the command line every ten minutes, determine whether the keyword "test end" appears, and then go to the corresponding test result folder to determine whether a test report is generated. If both conditions are met, the test is considered to be over, otherwise wait until the next detection time to continue monitoring.

[0100] Step S740: After the test is finished, use the HTML analysis function to read the number of test failures. The threshold of failed items is set to 200. If it is greater than the threshold, the failed items are automatically retested. If it is less than the threshold, no retest is performed. After the number of retests is greater than 8 times, no retest is performed.

[0101] Step S750: Use HTML analysis function to parse the results, generate a data statistics excel table, and sort the results in descending order according to the number of failed projects in the module. This will help the project understand which modules need to be focused on.

[0102] Step S760, call JIRA API to log the excel results sorted out above into the defect management system.

[0103] Step S770: Notify relevant stakeholders of the test results via email.

[0104] The authentication test method provided in the embodiment of the present invention realizes automated flashing services, authentication test implementation, failure retry, data collation, and defect logging by combining technologies such as Python and data analysis, thereby opening up the entire authentication test process, which can effectively improve the efficiency of authentication test execution and reduce manual input.

[0105] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0106] Reference Figure 8 , shows a structural block diagram of an embodiment of a certification test device of the present invention, which may specifically include the following modules:

[0107] An execution module 810 is used to determine the certification test type of the vehicle computer to be tested, connect to the vehicle computer to be tested, and execute a test script corresponding to the certification test type;

[0108] A determination module 820, configured to determine whether the authentication test is completed at intervals of a first preset period;

[0109] The acquisition module 830 is used to obtain the test result if the authentication test has been completed;

[0110] An analysis module 840 is used to analyze the test results and determine whether a failed item needs to be retested;

[0111] The statistical recording module 850 is used to count the test results of each test module in the vehicle computer to be tested and record them in the defect management system after determining that the preset completion conditions are met.

[0112] As in the above device, optionally, the determination module 820 is specifically used for:

[0113] Start the monitoring thread, read the command line at a first preset period, and determine whether a keyword indicating the end of the test appears;

[0114] If the keyword appears in the command line, then search the test result folder corresponding to the test script to see whether a test report has been generated;

[0115] If a test report has been generated, it is determined that the certification test has been completed.

[0116] As in the above device, optionally, the analysis module 840 is specifically used for:

[0117] Based on the web page analysis function, read the number of test failure items in the test report;

[0118] If the number of test failure items is greater than a preset threshold, it is determined that the failed items need to be retested.

[0119] As in the above device, optionally, the statistical recording module 850 is specifically used for:

[0120] Arrange the number of failed items of each test module in the vehicle computer to be tested in descending order to generate a data statistics table;

[0121] Call JIRA API to log in to the defect management system, and record the data statistics table into the defect management system.

[0122] As the above device, optionally, further comprises:

[0123] The notification module is used to send the test results to the test related personnel via email.

[0124] As in the above device, optionally, the execution module 810 is further used for:

[0125] Sending a prompt message to the user whether the vehicle system of the vehicle to be tested needs to be upgraded;

[0126] If the system upgrade information required by the user is received, the vehicle system of the vehicle to be tested is automatically refreshed to the latest version through the flashing function.

[0127] As in the above device, optionally, the execution module 810 is further used for:

[0128] Sending a preset number of certification test types to the user;

[0129] According to the user's selection result, the certification test type of the vehicle computer to be tested is determined.

[0130] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment, which will not be repeated here.

[0131] Reference Fig. 9, shows a structural block diagram of an electronic device embodiment of the present invention, the device includes: a processor (processor) 910, a memory (memory) 920 and a bus 930;

[0132] Among them, the processor 910 and the memory 920 complete mutual communication through the bus 930; the processor 910 is used to call the program instructions in the memory 920 to execute the methods provided by the above-mentioned method embodiments, for example, including: determining the certification test type of the vehicle computer to be tested, connecting the vehicle computer to be tested, and executing the test script corresponding to the certification test type; every first preset period, judging whether the certification test is completed; if the certification test is completed, obtaining the test results; analyzing the test results to determine whether the failed items need to be retested; after judging that the preset completion conditions are met, counting the test results of each test module in the vehicle computer to be tested, and recording them in the defect management system.

[0133] An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: determining the certification test type of the vehicle computer to be tested, connecting the vehicle computer to be tested, and executing a test script corresponding to the certification test type; judging whether the certification test is completed at intervals of a first preset period; if the certification test is completed, obtaining the test results; analyzing the test results to determine whether failed items need to be retested; after judging that the preset completion conditions are met, counting the test results of each test module in the vehicle computer to be tested, and recording them in a defect management system.

[0134] An embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: determining the certification test type of the vehicle computer to be tested, connecting the vehicle computer to be tested, and executing the test script corresponding to the certification test type; judging whether the certification test is completed at intervals of a first preset period; if the certification test is completed, obtaining the test results; analyzing the test results to determine whether the failed items need to be retested; after judging that the preset completion conditions are met, counting the test results of each test module in the vehicle computer to be tested, and recording them in a defect management system.

[0135] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0136] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, devices or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0137] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0140] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0141] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0142] The above is a detailed introduction to a certification test method, a certification test device, an electronic device and a storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A certification test method, characterized in that: include: Determine the certification test type of the vehicle computer to be tested, connect to the vehicle computer to be tested, and execute the test script corresponding to the certification test type; At intervals of a first preset period, determining whether the authentication test is completed; If the certification test has been completed, obtain the test results; Analyze the test results to determine whether the failed items need to be retested; After determining that the preset completion condition is met, the test result of each test module in the vehicle computer to be tested is counted and recorded in the defect management system.

2. The method according to claim 1, characterized in that The step of determining whether the authentication test is completed at intervals of a first preset period includes: Start the monitoring thread, read the command line at a first preset period, and determine whether a keyword indicating the end of the test appears; If the keyword appears in the command line, then search the test result folder corresponding to the test script to see whether a test report has been generated; If a test report has been generated, it is determined that the certification test has been completed.

3. The method according to claim 2, characterized in that The analyzing the test results to determine whether the failed items need to be retested includes: Based on the web page analysis function, read the number of test failure items in the test report; If the number of test failure items is greater than a preset threshold, it is determined that the failed items need to be retested.

4. The method according to claim 3, characterized in that The statistical test results of each test module in the vehicle computer to be tested and recording them in the defect management system include: Arrange the number of failed items of each test module in the vehicle computer to be tested in descending order to generate a data statistics table; Call the JIRA API to log in to the defect management system, and record the data statistics table into the defect management system.

5. The method according to any one of claims 1 to 4, characterized in that: Also includes: The test results are sent to the test related personnel via email.

6. The method according to any one of claims 1 to 4, characterized in that: Before receiving the certification test type of the vehicle computer to be tested input by the user, the method further includes: Sending a prompt message to the user whether the vehicle system of the vehicle to be tested needs to be upgraded; If the system upgrade information required by the user is received, the vehicle system of the vehicle to be tested is automatically refreshed to the latest version through the flashing function.

7. The method according to any one of claims 1 to 4, characterized in that: Determining the certification test type of the vehicle computer to be tested includes: Sending a preset number of certification test types to the user; According to the user's selection result, the certification test type of the vehicle computer to be tested is determined.

8. A certification test device, characterized in that: include: An execution module, used to determine the certification test type of the vehicle computer to be tested, connect to the vehicle computer to be tested, and execute a test script corresponding to the certification test type; A judgment module, used for judging whether the authentication test is finished at intervals of a first preset period; An acquisition module, used for acquiring the test result if the certification test has been completed; An analysis module, used to analyze the test results and determine whether a failed item needs to be retested; The statistical recording module is used to count the test results of each test module in the vehicle computer to be tested and record them in the defect management system after determining that the preset completion conditions are met.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the processor and the memory communicate with each other via a bus; The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 7 by calling the program instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.