CN113495819A - Method and device for processing finished automobile test report and electric automobile - Google Patents

Method and device for processing finished automobile test report and electric automobile Download PDF

Info

Publication number
CN113495819A
CN113495819A CN202010199783.6A CN202010199783A CN113495819A CN 113495819 A CN113495819 A CN 113495819A CN 202010199783 A CN202010199783 A CN 202010199783A CN 113495819 A CN113495819 A CN 113495819A
Authority
CN
China
Prior art keywords
test report
test
processing
report
analysis result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010199783.6A
Other languages
Chinese (zh)
Inventor
魏丽明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN202010199783.6A priority Critical patent/CN113495819A/en
Publication of CN113495819A publication Critical patent/CN113495819A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Abstract

The invention provides a method and a device for processing a finished automobile test report and an electric automobile, and relates to the technical field of electric automobile testing. The method for processing the finished automobile test report comprises the following steps: reading a folder path of a test report to be processed, and acquiring information of the test report in at least one format under the folder path; analyzing the information of the test report to obtain a test report analysis result; and outputting the analysis result of the test report. The processing method of the finished automobile test report avoids a large amount of manual processing work and improves the working efficiency.

Description

Method and device for processing finished automobile test report and electric automobile
Technical Field
The invention belongs to the technical field of electric vehicle testing, and particularly relates to a method and a device for processing a whole vehicle test report and an electric vehicle.
Background
The existing finished automobile test report summarizing program can only identify the number of test reports under each file type, but cannot analyze and summarize the test report results in the finished automobile test report files in an XML format, manually opens the finished automobile test report summarizing test files, test items and test results one by one, increases workload, consumes time, and once part of the test results change, the workload of remitting is large, and errors are easy to occur.
Therefore, under the great trend that the existing finished automobile test tends to the automatic test, the automatic analysis and summarization of the finished automobile test report are particularly important, and the method has the great significance of improving the working efficiency and ensuring the data accuracy.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for processing a finished automobile test report and an electric automobile, so that the problems of large workload and time consumption in processing the finished automobile test report in the prior art are solved.
In order to achieve the above object, an embodiment of the present invention provides a method for processing a finished vehicle test report, including:
reading a folder path of a test report to be processed, and acquiring information of the test report in at least one format under the folder path;
analyzing the information of the test report to obtain a test report analysis result;
and outputting the analysis result of the test report.
Optionally, the obtaining information of the test report in at least one format under the folder path includes:
and acquiring a name list and file contents of the test report in at least one format under the path of the folder.
Optionally, analyzing the information of the test report to obtain a test report analysis result, including:
converting the data type of the file content into a preset data type;
acquiring 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 acquiring a test report analysis result according to the at least one test item result.
Optionally, obtaining at least one test item result in the file content after the data type is converted according to at least one preset test item, including:
and acquiring a matching character string matched with the preset test item from the file content after the data type is converted, and outputting the file content of which the test item result is a character string with a preset number behind the matching character string on the row where the matching character string is positioned.
Optionally, the analysis result of the test report includes:
the at least one preset test item and each preset test item result corresponding to each preset test item; and
respectively counting the number of the results of each test item;
wherein the sum of the number of test item results is equal to the number of test report resolution results.
Optionally, the method for processing the finished automobile test report further includes:
and storing the analysis result of the test report to an electronic form, exporting the electronic form and storing the electronic form in a preset file path.
Optionally, the information of the test report corresponding to the analysis result of the test report is located according to the electronic form.
The embodiment of the invention provides a processing device for a finished automobile test report, which comprises:
the input module is used for reading a folder path of a test report to be processed and acquiring information of the test report in at least one format under the folder path;
the analysis module is used for analyzing the information of the test report to obtain a test report analysis result;
and the output module is used for outputting the analysis result of the test report.
The embodiment of the invention provides an electric automobile which comprises the processing device for the whole automobile test report.
An embodiment of the present invention further provides an electric vehicle, including: the system comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the processing method of the finished automobile test report are realized.
The technical scheme of the invention at least has the following beneficial effects:
in the above scheme, the method for processing the test report of the whole vehicle includes: reading a folder path of a test report to be processed, and acquiring information of the test report in at least one format under the folder path; analyzing the information of the test report to obtain a test report analysis result; and outputting the analysis result of the test report. The processing method of the finished automobile test report avoids a large amount of manual processing work and improves the working efficiency.
Drawings
FIG. 1 is a flow chart of a method for processing a vehicle test report according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for processing a vehicle test report according to an embodiment of the present invention;
fig. 3 is a display interface of a method for processing a vehicle test report according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a method and a device for processing a finished automobile test report and an electric automobile, aiming at the problems of large workload and time consumption in processing the finished automobile test report in the prior art, and improves the working efficiency.
As shown in fig. 1, an embodiment of the present invention provides a method for processing a vehicle test report, including:
step S11, reading a folder path of a test report to be processed, and acquiring information of the test report in at least one format under the folder path;
step S12, analyzing the information of the test report to obtain the analysis result of the test report;
and step S13, outputting the analysis result of the test report.
In the embodiment of the invention, a LabVIEW development environment can be selected to realize the processing method for writing the test report of the whole vehicle, and the test reports in various formats can be identified and analyzed; the working principle of the whole vehicle test report design aiming at the electric vehicle can be selected, and the method has pertinence and applicability; the labor cost and the time cost are reduced, and the working efficiency is obviously improved.
Specifically, in step S11, the obtaining information of the test report in at least one format under the folder path includes:
and acquiring a name list and file contents of the test report in at least one format under the path of the folder.
As shown in fig. 2, in an embodiment of the present invention, in step S12, analyzing the information of the test report to obtain a test report analysis result, including:
step S21, converting the data type of the file content into a preset data type;
step S22, obtaining 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 step S23, obtaining a test report analysis result according to the at least one test item result.
Specifically, in step S22, obtaining at least one test item result in the file content after the data type is converted according to at least one preset test item, including:
and acquiring a matching character string matched with the preset test item from the file content after the data type is converted, and outputting the file content of which the test item result is a character string with a preset number behind the matching character string on the row where the matching character string is positioned.
Further, the analysis result of the test report includes:
the at least one preset test item and each preset test item result corresponding to each preset test item; and
respectively counting the number of the results of each test item;
wherein the sum of the number of test item results is equal to the number of test report resolution results.
Furthermore, the method for processing the finished automobile test report further comprises the following steps:
and storing the analysis result of the test report to an electronic form, exporting the electronic form and storing the electronic form in a preset file path.
In this embodiment of the present invention, the specific process of the method for processing the vehicle test report is as follows:
(1) reading a test report folder path, returning two character string arrays consisting of name lists of all files and folders under the path, optionally filtering test report names to be processed through a mode in a LabVIEW control, and filtering test report types to be processed through a data record type; and sequentially acquiring file contents in the character string arrays of the name list.
(2) The processing method of the finished automobile test report can analyze test reports in various formats. For example, when reading the test report of an XML file, the data in the XML file is converted into the data type that can be displayed and processed by LabVIEW, for example, the character string of the XML file contains & amp characters, and the characters are converted into &byusing the function.
(3) And matching the file content according to the preset test item to obtain a test item result, and extracting the test item result. For example, the preset test item is a "test report name", the "test report name" is searched from a starting character string in the file content, if matching is found by a function, a character string from a line of the "test report name" to a line before the end of the line is divided into three sub-character strings, namely, before a "matching character string", after the "matching character string", a preset number of character strings are shifted to the back of the matching character string according to an output requirement, and a character is obtained after the "matching character string", wherein the character is the "test report name", and is the test item result. The preset test item also comprises a test case name and an execution result, and the test item result of which the preset test item is the test case name and the execution result is matched according to the method.
(4) Creating an array of the analysis result of the test report, for example, taking the test item result of the "test report name" in the preset test items extracted in the process (3) as the first element of the array, the test item result of the "test case name" extracted as the second element of the array, the test item result of the "execution result" extracted as the second element of the array, and as the third element of the array, creating a one-dimensional array composed of the test item results of the "test report name", "test case name" and "execution result". And sequentially reading the information of the test report under the file path of the test report to be processed in the process (1) according to the processes (2) and (3) to form a multi-dimensional array.
(5) And (4) writing the multidimensional array formed in the process (4) into the spreadsheet with the separator, and storing the spreadsheet to a storage path of the analysis result of the specified test report.
(6) The test item result in which the preset test item is the "execution result" in the process (4) includes: at least one of a test abort, a sequence error, a test fail, and a test pass. Counting the number of results of each test item, for example, when the matching keyword is "Terminated", the number in the "test Terminated" item is added up by 1; when the matching keyword is 'Failed', the number in the 'test Failed' item is accumulated by 1; when the matching keyword is 'Passed', the number in the 'test pass' item is accumulated by 1; and when the matching keyword is 'Error', accumulating 1 in the number of the 'sequence Error' items until the accumulation of all test analysis results is completed, and outputting a statistical result.
In an optional embodiment of the present invention, the information of the test report corresponding to the analysis result of the test report is located according to the spreadsheet.
It should be noted that, as shown in fig. 3, for the display interface 300 of the method for processing the finished vehicle test report, the optional operation method is as follows:
(1) importing a finished automobile test report: and selecting or inputting a folder path of the test report to be processed through a test report reading path browsing window.
(2) Analyzing a test report: various report formats, such as WORD and XML, etc., may be identified and parsed.
(3) Data summarization: all files in the reading folder are automatically traversed, the test item result, the total number of reports, the types of the report results and the number of each type, such as the number of test passing, test failing, test stopping and sequence errors, are analyzed in a gathering manner, and the results are displayed in the display interface 300.
(4) And (3) summarizing result derivation: and selecting or inputting a test report analysis result storage path under an analysis result writing path browsing window, and exporting the test report analysis result storage path in a spreadsheet format, wherein the exported content can be manually selected according to items and requirements.
(5) Report linking and positioning: and clicking various types of file results in the test item results of the output electronic forms, automatically linking to a test report file, checking test data and directly positioning test problems.
An embodiment of the present invention provides a device for processing a vehicle test report, including:
the input module is used for reading a folder path of a test report to be processed and acquiring information of the test report in at least one format under the folder path;
the analysis module is used for analyzing the information of the test report to obtain a test report analysis result;
and the output module is used for outputting the analysis result of the test report.
In this embodiment of the present invention, the input module is specifically configured to obtain a name list and file contents of a test report in at least one format under the folder path.
The analysis module is specifically used for converting the data type of the file content into a preset data type;
acquiring 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 acquiring a test report analysis result according to the at least one test item result.
The output module is specifically configured to output the at least one preset test item and each preset test item result corresponding to each preset test item; and
respectively counting the number of the results of each test item;
wherein the sum of the number of test item results is equal to the number of test report resolution results.
Optionally, the processing device for the vehicle test report further includes:
and the storage module is used for storing the analysis result of the test report to an electronic form, exporting the electronic form and storing the electronic form in a preset file path.
And the storage module is also used for positioning the information of the test report corresponding to the analysis result of the test report according to the electronic form.
An embodiment of the present invention provides an electric vehicle, including the above-mentioned processing device for a complete vehicle test report.
In the embodiment of the invention, when the test report of the electric vehicle adopting the processing device of the whole vehicle test report is processed, the labor cost and the time cost are greatly reduced, and the working efficiency and the accuracy are greatly improved, for example, 2 real vehicle tests are carried out, 100 test cases are used in each project, 100 execution results are manually counted for at least 4 hours, and the accuracy cannot be ensured, but the processing of the test report of the electric vehicle can be completed within 2 minutes, and the accuracy is 100%.
An embodiment of the present invention also provides an electric vehicle, including: the system comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the processing method of the finished automobile test report are realized.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for processing a finished automobile test report is characterized by comprising the following steps:
reading a folder path of a test report to be processed, and acquiring information of the test report in at least one format under the folder path;
analyzing the information of the test report to obtain a test report analysis result;
and outputting the analysis result of the test report.
2. The method for processing the finished automobile test report according to claim 1, wherein the step of obtaining the information of the test report in at least one format under the folder path comprises the steps of:
and acquiring a name list and file contents of the test report in at least one format under the path of the folder.
3. The method for processing the finished automobile test report according to claim 2, wherein analyzing the information of the test report to obtain a test report analysis result comprises:
converting the data type of the file content into a preset data type;
acquiring 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 acquiring a test report analysis result according to the at least one test item result.
4. The method for processing the finished automobile test report according to claim 3, wherein the step of obtaining at least one test item result in the file content after converting the data type according to at least one preset test item comprises:
and acquiring a matching character string matched with the preset test item from the file content after the data type is converted, and outputting the file content of which the test item result is a character string with a preset number behind the matching character string on the row where the matching character string is positioned.
5. The method for processing the finished automobile test report according to claim 4, wherein the analysis result of the test report comprises:
the at least one preset test item and each test item result corresponding to each preset test item; and
respectively counting the number of the results of each test item;
wherein the sum of the number of test item results is equal to the number of test report resolution results.
6. The method for processing the finished automobile test report according to claim 1, further comprising:
and storing the analysis result of the test report to an electronic form, exporting the electronic form and storing the electronic form in a preset file path.
7. The vehicle test report processing method according to claim 6, wherein the information of the test report corresponding to the analysis result of the test report is located according to the spreadsheet.
8. The utility model provides a processing apparatus of whole car test report which characterized in that includes:
the input module is used for reading a folder path of a test report to be processed and acquiring information of the test report in at least one format under the folder path;
the analysis module is used for analyzing the information of the test report to obtain a test report analysis result;
and the output module is used for outputting the analysis result of the test report.
9. An electric vehicle characterized by comprising the entire vehicle test report processing device according to claim 8.
10. An electric vehicle, comprising: processor, memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method for processing a vehicle test report according to any one of claims 1 to 7.
CN202010199783.6A 2020-03-20 2020-03-20 Method and device for processing finished automobile test report and electric automobile Pending CN113495819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010199783.6A CN113495819A (en) 2020-03-20 2020-03-20 Method and device for processing finished automobile test report and electric automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010199783.6A CN113495819A (en) 2020-03-20 2020-03-20 Method and device for processing finished automobile test report and electric automobile

Publications (1)

Publication Number Publication Date
CN113495819A true CN113495819A (en) 2021-10-12

Family

ID=77994506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010199783.6A Pending CN113495819A (en) 2020-03-20 2020-03-20 Method and device for processing finished automobile test report and electric automobile

Country Status (1)

Country Link
CN (1) CN113495819A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1452015A (en) * 1973-10-08 1976-10-06 Ibm Testing data processing apparatus
CN102608464A (en) * 2012-03-21 2012-07-25 山东电力集团公司济南供电公司 Modularized automatic test assembly system of rely protection device and test method of modularized automatic test assembly system
US20160283344A1 (en) * 2015-03-27 2016-09-29 International Business Machines Corporation Identifying severity of test execution failures by analyzing test execution logs
CN109697150A (en) * 2018-12-14 2019-04-30 平安普惠企业管理有限公司 Show method, apparatus, computer equipment and the storage medium of test report
CN109840207A (en) * 2018-12-26 2019-06-04 中汽研(天津)汽车工程研究院有限公司 One kind being based on AUTOSAR network management automatization test system and test method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1452015A (en) * 1973-10-08 1976-10-06 Ibm Testing data processing apparatus
CN102608464A (en) * 2012-03-21 2012-07-25 山东电力集团公司济南供电公司 Modularized automatic test assembly system of rely protection device and test method of modularized automatic test assembly system
US20160283344A1 (en) * 2015-03-27 2016-09-29 International Business Machines Corporation Identifying severity of test execution failures by analyzing test execution logs
CN109697150A (en) * 2018-12-14 2019-04-30 平安普惠企业管理有限公司 Show method, apparatus, computer equipment and the storage medium of test report
CN109840207A (en) * 2018-12-26 2019-06-04 中汽研(天津)汽车工程研究院有限公司 One kind being based on AUTOSAR network management automatization test system and test method

Similar Documents

Publication Publication Date Title
US8612939B2 (en) Multi trace parser
US20070239799A1 (en) Analyzing log files
US8903883B2 (en) Apparatus, system, and method for pattern-based archiving of business events
CN102012857B (en) Device and method for automatically testing web page
US7885933B2 (en) Apparatus and system for analyzing computer events recorded in a plurality of chronicle datasets
CN113190220A (en) JSON file differentiation comparison method and device
CN111368167A (en) Chinese literature data automatic acquisition method based on web crawler technology
CN201548954U (en) Device for automatically testing Web page
CN113821554A (en) Method for realizing data acquisition of heterogeneous database
CN111324463A (en) Engineering file label clearing method, system, device and storage medium
CN113495819A (en) Method and device for processing finished automobile test report and electric automobile
CN114860932A (en) Log information acquisition and monitoring method
CN115438026A (en) Database scanning method, device, equipment, storage medium and product
CN112416727A (en) Batch processing operation checking method, device, equipment and medium
CN110780867A (en) Development tool-oriented graphical log presentation method
CN116010663B (en) TMT project map analysis and data analysis method and system
US9753798B1 (en) Method and apparatus for electronic design automation
CN116450586B (en) Rocket data analysis method, rocket data analysis system, electronic equipment and computer storage medium
CN113783849B (en) Sensitive information detection method and terminal
CN117389980B (en) Log file analysis method and device, computer equipment and readable storage medium
CN109271315B (en) Script code detection method, script code detection device, computer equipment and storage medium
CN115129593A (en) Automatic statistical analysis device and method
Zamyatina Text mining of companies annual reports in PDF format
CN113821482A (en) Information processing method and device, electronic equipment and readable storage medium
CN113704122A (en) UI (user interface) automatic test system and method based on standard interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination