A method and device for processing vehicle test report and electric vehicle

By automating the processing of vehicle test reports, parsing and summarizing XML format files, the problem of heavy workload and time-consuming in the existing technology is solved, and efficient and accurate test report processing is achieved.

CN113495819BActive Publication Date: 2024-10-25BEIJING ELECTRIC VEHICLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010199783.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-20
Publication Date
2024-10-25
Estimated Expiration
2040-03-20

AI Technical Summary

Technical Problem

The existing vehicle test report processing program cannot automatically analyze and summarize files in XML format, resulting in a heavy workload, time-consuming and error-prone.

Method used

Provides a vehicle test report processing method, including reading the folder path, obtaining and parsing the test report information, converting the data type, obtaining the results according to the preset test items, and outputting the parsed results, storing them in a spreadsheet, and realizing automated processing.

Benefits of technology

It significantly reduces the manual processing workload, improves work efficiency, and ensures data accuracy and rapid processing. For example, manual statistics time is shortened from 4 hours to 2 minutes, and 100% accuracy is guaranteed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113495819B_ABST
    Figure CN113495819B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for processing a whole vehicle test report and an electric vehicle, and relates to the technical field of electric vehicle testing. The method for processing the whole vehicle test report comprises: reading the folder path of the test report to be processed, obtaining information of the test report in at least one format under the folder path; parsing the information of the test report to obtain the test report parsing result; and outputting the test report parsing result. The method for processing the whole vehicle test report of the present invention avoids a large amount of manual processing work and improves work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric vehicle testing, and in particular relates to a method and device for processing a whole vehicle test report and an electric vehicle. Background Art

[0002] The existing vehicle test report summary program can only identify the number of test reports under each file type, but cannot analyze and summarize the test report results in the vehicle test report file in XML format. Manually opening the vehicle test report to summarize the test files, test items and test results one by one increases the workload and wastes time. Once some test results change, the re-summarization workload is large and prone to errors.

[0003] Therefore, as the current vehicle testing is moving towards automated testing, the automatic analysis and summary of vehicle test reports becomes particularly important, which is of great significance in improving work efficiency and ensuring data accuracy. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method and device for processing a whole vehicle test report and an electric vehicle, so as to solve the problem of large workload and time-consuming processing of the whole vehicle test report in the prior art.

[0005] In order to achieve the above object, an embodiment of the present invention provides a method for processing a vehicle test report, comprising:

[0006] Reading a folder path of a test report to be processed, and obtaining information of the test report in at least one format under the folder path;

[0007] Parsing the information in the test report to obtain the parsing result of the test report;

[0008] Output the test report analysis result.

[0009] Optionally, obtaining information of the test report in at least one format under the folder path includes:

[0010] Obtain a name list and file content of at least one format of test reports under the folder path.

[0011] Optionally, parsing the information in the test report to obtain a test report parsing result includes:

[0012] Convert the data type of the file content into a preset data type;

[0013] According to at least one preset test item, obtaining at least one test item result in the file content after the data type is converted;

[0014] According to the at least one test item result, a test report parsing result is obtained.

[0015] Optionally, obtaining at least one test item result in the file content after data type conversion according to at least one preset test item includes:

[0016] In the file content after data type conversion, a matching string matching the preset test item is obtained, and the test item result is output as the file content with a preset number of strings after the matching string in the row where the matching string is located.

[0017] Optionally, the test report analysis result includes:

[0018] The at least one preset test item and each preset test item result corresponding to each preset test item; and

[0019] Counting the number of results of each test item respectively;

[0020] The sum of the number of the test item results is equal to the number of the test report analysis results.

[0021] Optionally, the method for processing the vehicle test report further includes:

[0022] The test report analysis results are stored in a spreadsheet, the spreadsheet is exported, and saved in a preset file path.

[0023] Optionally, information of the test report corresponding to the test report analysis result is located according to the electronic form.

[0024] An embodiment of the present invention provides a device for processing a vehicle test report, comprising:

[0025] An input module, used for reading a folder path of a test report to be processed, and obtaining information of the test report in at least one format under the folder path;

[0026] A parsing module, used to parse the information in the test report and obtain the parsing result of the test report;

[0027] The output module is used to output the test report analysis result.

[0028] An embodiment of the present invention provides an electric vehicle, including the above-mentioned processing device for the whole vehicle test report.

[0029] An embodiment of the present invention also provides an electric vehicle, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the vehicle test report processing method as described above.

[0030] The above technical solution of the present invention has at least the following beneficial effects:

[0031] In the above scheme, the method for processing the whole vehicle test report includes: reading the folder path of the test report to be processed, obtaining the information of the test report in at least one format under the folder path; parsing the information of the test report to obtain the test report parsing result; and outputting the test report parsing result. The method for processing the whole vehicle test report of the present invention avoids a large amount of manual processing work and improves work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A flowchart of a method for processing a vehicle test report according to an embodiment of the present invention;

[0033] Figure 2 A step diagram of a method for processing a vehicle test report according to an embodiment of the present invention;

[0034] Figure 3 This is a display interface of a method for processing a vehicle test report according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0036] The embodiments of the present invention aim at the problem that the processing of vehicle test reports in the prior art is labor-intensive and time-consuming, and provide a method and device for processing vehicle test reports and an electric vehicle, thereby improving work efficiency.

[0037] like Figure 1 As shown, an embodiment of the present invention provides a method for processing a vehicle test report, comprising:

[0038] Step S11, reading a folder path of a test report to be processed, and obtaining information of the test report in at least one format under the folder path;

[0039] Step S12, parsing the information in the test report to obtain the test report parsing result;

[0040] Step S13, outputting the test report analysis result.

[0041] In this embodiment of the present invention, the LabVIEW development environment can be used to implement the processing method for writing the whole vehicle test report, which can identify and parse test reports in various formats; the working principle of the whole vehicle test report design for electric vehicles can be selected, which is targeted and applicable; the labor cost and time cost are reduced, and the work efficiency is significantly improved.

[0042] Specifically, step S11, obtaining information of the test report in at least one format under the folder path, includes:

[0043] Obtain a name list and file content of at least one format of test reports under the folder path.

[0044] like Figure 2 As shown, in one embodiment of the present invention, step S12, parsing the information of the test report to obtain the test report parsing result, includes:

[0045] Step S21, converting the data type of the file content into a preset data type;

[0046] Step S22, obtaining at least one test item result in the file content after data type conversion according to at least one preset test item;

[0047] Step S23: obtaining a test report analysis result according to the at least one test item result.

[0048] Specifically, step S22, according to at least one preset test item, obtaining at least one test item result in the file content after the data type is converted, includes:

[0049] In the file content after data type conversion, a matching string matching the preset test item is obtained, and the test item result is output as the file content with a preset number of strings after the matching string in the row where the matching string is located.

[0050] Furthermore, the test report analysis results include:

[0051] The at least one preset test item and each preset test item result corresponding to each preset test item; and

[0052] Counting the number of results of each test item respectively;

[0053] The sum of the number of the test item results is equal to the number of the test report analysis results.

[0054] Furthermore, the method for processing the vehicle test report also includes:

[0055] The test report analysis results are stored in a spreadsheet, the spreadsheet is exported, and saved in a preset file path.

[0056] In this embodiment of the present invention, the specific process of the vehicle test report processing method is as follows:

[0057] (1) Read the test report folder path, return two string arrays consisting of a list of names of all files and folders under the path, optionally filter the test report names to be processed by a pattern in a LabVIEW control, and filter the test report types to be processed by a data record type; and sequentially obtain the file contents in the string array of the name list.

[0058] (2) The vehicle test report processing method can parse test reports in various formats. For example, when reading a test report in an XML file, the data in the XML file is converted into a data type that can be displayed and processed by LabVIEW. For example, if the string in the XML file contains & characters, a function is used to convert these characters into & characters.

[0059] (3) The test item result is obtained by matching the file content according to the preset test item, and the test item result is extracted. For example, the preset test item is "test report name", and the "test report name" is searched from the starting character string in the file content. If the function finds a match, the character string from the line where the "test report name" character string is located to the end of this line is separated into three substrings, namely "before matching string", "matching string" and "after matching string". According to the output requirements, the character string is offset to the back of the matching string by a preset number, and the character in "after matching string" is obtained. The character is "name of the test report", which is the test item result. The preset test item also includes "test case name" and "execution result". According to the above method, the test item result of the preset test item "test case name" and "execution result" is matched.

[0060] (4) Create an array of the test report parsing results. For example, the test item result of the "test report name" in the preset test item extracted in process (3) is used as the first element of the array, the test item result of the "test case name" extracted is used as the second element of the array, and the test item result of the "execution result" extracted is used as the third element of the array to create a one-dimensional array consisting of the test item results of "test report name", "test case name" and "execution result". Then, according to processes (2) and (3), the information of the test report under the file path of the test report to be processed in process (1) is read in sequence to form a multidimensional array.

[0061] (5) Write the multidimensional array formed in process (4) into a spreadsheet with delimiters and save it to the storage path of the specified test report analysis results.

[0062] (6) The test item results of the preset test item "execution result" in process (4) include at least one of: test termination, sequence error, test failure, and test pass. The number of each test item result is counted. For example, when the matching keyword is "Terminated", the number in the "Test termination" item is accumulated by 1; when the matching keyword is "Failed", the number in the "Test failure" item is accumulated by 1; when the matching keyword is "Passed", the number in the "Test pass" item is accumulated by 1; when the matching keyword is "Error", the number in the "Sequence error" item is accumulated by 1, until all test analysis results are accumulated and the statistical results are output.

[0063] In an optional embodiment of the present invention, information of the test report corresponding to the test report analysis result is located according to the electronic form.

[0064] It should be noted that if Figure 3 As shown, it is a display interface 300 of the method for processing the vehicle test report, and the optional operation methods are as follows:

[0065] (1) Vehicle test report import: Select or enter the folder path of the test report to be processed through the "Test report reading path" browsing window.

[0066] (2) Test report parsing: It can identify and parse multiple report formats, such as WORD and XML.

[0067] (3) Data summary: Automatically traverse and read all files in the folder, summarize and parse the test item results, the total number of reports, the report result type and the number of each type, for example, the number of tests passed, tests failed, tests aborted and sequence errors, and display them in the display interface 300.

[0068] (4) Export summary results: Select or enter the storage path of the test report analysis results in the "Analysis results write path" browsing window, and export it in a spreadsheet format. The exported content can be manually selected according to the project and needs.

[0069] (5) Report linking and location: In the test item results of the output spreadsheet, click on each type of file result to automatically link to the test report file, view the test data, and directly locate the test problem.

[0070] An embodiment of the present invention provides a device for processing a vehicle test report, comprising:

[0071] An input module, used for reading a folder path of a test report to be processed, and obtaining information of the test report in at least one format under the folder path;

[0072] A parsing module, used to parse the information in the test report and obtain the parsing result of the test report;

[0073] The output module is used to output the test report analysis result.

[0074] In this embodiment of the present invention, the input module is specifically used to obtain a name list and file content of at least one format of test reports under the folder path.

[0075] The parsing module is specifically used to convert the data type of the file content into a preset data type;

[0076] According to at least one preset test item, obtaining at least one test item result in the file content after the data type is converted;

[0077] According to the at least one test item result, a test report parsing result is obtained.

[0078] The output module is specifically used for the at least one preset test item and each preset test item result corresponding to each preset test item; and

[0079] Counting the number of results of each test item respectively;

[0080] The sum of the number of the test item results is equal to the number of the test report analysis results.

[0081] Optionally, the vehicle test report processing device further includes:

[0082] The storage module is used to store the test report analysis results in a spreadsheet, export the spreadsheet, and save it in a preset file path.

[0083] The storage module is further used to locate the information of the test report corresponding to the test report analysis result according to the electronic form.

[0084] An embodiment of the present invention provides an electric vehicle, including the vehicle test report processing device as described above.

[0085] In this embodiment of the present invention, when processing the test report of an electric vehicle using the processing device for the whole vehicle test report as described above, the labor cost and time cost are greatly reduced, and the work efficiency and accuracy are greatly improved. For example, the actual vehicle test has 2 projects, each project has 100 test cases, and 100 execution results. Manual statistics take at least 4 hours, and the accuracy cannot be guaranteed. However, processing the test report of the electric vehicle can be completed in only 2 minutes, and the accuracy is 100%.

[0086] An embodiment of the present invention also provides an electric vehicle, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for processing the vehicle test report as described above are implemented.

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

Claims

1. A method for processing a vehicle test report, characterized in that: include: Reading a folder path of a test report to be processed, and obtaining file content of the test report in at least one format under the folder path; Convert the data type of the file content into a preset data type; According to at least one preset test item, obtaining at least one test item result in the file content after the data type is converted; Obtaining a test report analysis result according to the at least one test item result; Outputting the test report analysis result; Wherein, according to at least one preset test item, obtaining at least one test item result in the file content after the data type is converted includes: In the file content after data type conversion, a matching string matching the preset test item is obtained, and the test item result is output as the file content with a preset number of strings after the matching string in the row where the matching string is located.

2. The method for processing a vehicle test report according to claim 1, characterized in that: Also includes: Get a name list of test reports in at least one format under the folder path.

3. The method for processing a vehicle test report according to claim 1, characterized in that: The test report analysis results include: The at least one preset test item and each of the test item results corresponding to each of the preset test items; and Counting the number of results of each test item respectively; The sum of the number of the test item results is equal to the number of the test report analysis results.

4. The method for processing a vehicle test report according to claim 1, characterized in that: Also includes: The test report analysis results are stored in a spreadsheet, the spreadsheet is exported, and saved in a preset file path.

5. The method for processing a vehicle test report according to claim 4, characterized in that: According to the electronic table, information of the test report corresponding to the test report analysis result is located.

6. A processing device for a vehicle test report, characterized in that: include: An input module, used for reading a folder path of a test report to be processed, and obtaining the file content of the test report in at least one format under the folder path; A parsing module, configured to convert a data type of the file content into a preset data type, obtain at least one test item result in the file content after the data type is converted according to at least one preset test item, and obtain a test report parsing result according to the at least one test item result; An output module, used for outputting the test report analysis result; The parsing module is specifically used to obtain a matching string that matches the preset test item in the file content after the data type is converted, and output the test item result as the file content with a preset number of strings after the matching string in the row where the matching string is located.

7. An electric vehicle, characterized in that: A device for processing a vehicle test report as claimed in claim 6.

8. An electric vehicle, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for processing a vehicle test report as described in any one of claims 1 to 5 are implemented.