CN110704318A - Map data automatic testing method, terminal device and storage medium - Google Patents
Map data automatic testing method, terminal device and storage medium Download PDFInfo
- Publication number
- CN110704318A CN110704318A CN201910927050.7A CN201910927050A CN110704318A CN 110704318 A CN110704318 A CN 110704318A CN 201910927050 A CN201910927050 A CN 201910927050A CN 110704318 A CN110704318 A CN 110704318A
- Authority
- CN
- China
- Prior art keywords
- map data
- test
- tool
- data
- test tool
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a map data automatic test method, a terminal device and a storage medium, wherein the method comprises the following steps: creating a test case of map data, and compiling the test case into a test tool; deploying the test tool to a preset operation environment, and configuring an automatic operation command of the test tool; starting the automatic operation command, and monitoring the command execution condition in real time; and when the running of the test tool is finished, the generated map data and the test report are acquired so as to locate the problems in the map data. By the method, the problem of low test efficiency of the map data is solved, the test efficiency of the map data is effectively improved, and meanwhile data omission is avoided.
Description
Technical Field
The present invention relates to the field of data testing, and in particular, to a map data automation method, a terminal device, and a storage medium.
Background
In the field of automatic driving, a high-precision map is often required to be manufactured to provide guidance for path planning and operation control of an automatic driving vehicle, and the high-precision map manufactured based on data acquired by an acquisition vehicle and a positioning navigation system may have difference or contradiction with the actual geographic condition, so that the manufactured high-precision map needs to be tested and checked to ensure the accuracy and reliability of map manufacturing.
The conventional common map data testing methods such as a visual method and a shape walking method have a good testing effect on map data in a small range, but have low testing efficiency and data omission for high-precision map data in a large range.
Disclosure of Invention
In view of this, embodiments of the present invention provide an automatic map data testing method, a terminal device, and a storage medium, so as to solve the problems of low testing efficiency and data omission of the existing high-precision map testing method.
In a first aspect of the embodiments of the present invention, there is provided a map data automated testing method, including:
creating a test case of map data, and compiling the test case into a test tool;
deploying the test tool to a preset operation environment, and configuring an automatic operation command of the test tool;
starting the automatic operation command, and monitoring the command execution condition in real time;
and when the running of the test tool is finished, the generated map data and the test report are acquired so as to locate the problems in the map data.
In a second aspect of embodiments of the present invention, there is provided a terminal apparatus, including:
the system comprises a creating module, a testing tool and a generating module, wherein the creating module is used for creating a test case of map data and compiling the test case into the testing tool;
the deployment module is used for deploying the test tool to a preset running environment and configuring an automatic running command of the test tool;
the starting module is used for starting the automatic operation command and monitoring the command execution condition in real time;
and the acquisition module is used for acquiring the generated map data and the test report when the running of the test tool is finished so as to locate the problems in the map data.
In a third aspect of the embodiments of the present invention, there is provided a terminal apparatus, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement the steps of the method according to the first aspect of the embodiments of the present invention.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor implements the steps of the method provided by the first aspect of the embodiments of the present invention.
In the embodiment of the invention, after the test case of the map data is created, the test case is written into the test tool, the test tool is deployed to the corresponding operation environment, the data test process is started through the automatic operation command, and after the test is finished, the problem in the map data is confirmed according to the generated map data and the test report, so that the problems of low test efficiency of the map data and data omission are solved, the data test efficiency is effectively improved, the test result is ensured to be accurate and reliable, the problem of data omission is avoided, and the test effect on the high-precision map data is better.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an automated testing method for map data according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal device for map data automated testing according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, a flow chart of an automatic map data testing method according to an embodiment of the present invention includes:
s101, creating a test case of map data, and compiling the test case into a test tool;
the map data is data including map elements based on a digitized map, and in this embodiment, is generally document data corresponding to a map file with high accuracy. The test case is a set of test inputs, conditions, expected results tailored for a particular test objective that can be used to verify whether a certain type of data meets a particular requirement. The test tool can replace manual data input, realize a software tool for test case administration, and manage test data. The test tool may be generated by compiling test tool source code.
Specifically, whether a data table corresponding to the map data is empty is judged, when the data table is empty, a path and a name where the data table is located are obtained, and when the data table is not empty, a case state corresponding to the data table is marked.
Illustratively, whether a routingTileTable storing high-precision map data road data is empty is checked, if the routingTileTable is empty, the path and the database name where the routingTileTable is located are recorded, if the routingTileTable is not empty, verification is not passed, the case is recorded as a past state, and meanwhile, a test tool is generated based on a source code.
S102, deploying the test tool to a preset running environment, and configuring an automatic running command of the test tool;
in a preset running environment, the code of the test tool can be executed through a batch processing command of an operating system, and the input map data is detected and verified. Configuring the automation run command, i.e., the batch process command, may cause the test programs to execute in a predetermined order.
Optionally, a test tool is added to the catalog where the compiling tool is located, where the test tool is the same as the running environment of the compiling tool. The test tool is placed in the directory of the path where the compiling tool is located, the test tool and the compiling tool can be executed simultaneously, and the software and hardware environments of the compiling tool and the test tool are completely the same.
Further, after the automatic operation command is started, a test report is generated through the test tool, and high-precision map data is generated through the compiling tool.
S103, starting the automatic operation command, and monitoring the command execution condition in real time;
the command execution status may output the program execution status through a specific window in order to find a problem in the map data generation process in time.
Specifically, log information printed by the DOS window is obtained, and corresponding map data are monitored and checked according to abnormal data of special marks in the log information. If abnormal data is revealed through the red log information.
And S104, when the running of the test tool is finished, acquiring the generated map data and the test report so as to position the problem in the map data.
The map data is generally compiled by a test tool, the test report is generally compiled by the test tool, and the test tool runs to complete and can generate a corresponding map data test report. According to the fact that whether the generated map data and the test report are complete or not, whether data missing detection exists or not and other problems exist in data testing can be found in time, problem data are located, and preliminary verification can be completed quickly.
Optionally, when the generated map data has data loss or the content of the test report is incomplete, checking whether the corresponding map data is complete according to the lost data, and determining whether the corresponding test execution process is normal according to the content of the incomplete test report.
Optionally, when the generated map data is not lost and the content of the test report is complete, the generated map data and the test report are sent to a corresponding analyst to further verify the map data.
It should be noted that a general test report may be provided in the form of a sqlite table.
Compared with the traditional map test method, the method provided by the embodiment has the advantages that the test efficiency is higher, the test can be performed on the map data with high precision in a large range, the test is accurate and quick, and the data missing detection can be effectively avoided.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, but should not constitute any limitation to the implementation process of the embodiments of the present invention,
example two:
fig. 2 is a schematic structural diagram of a terminal device for automatically testing map data according to a second embodiment of the present invention, where the terminal device includes:
the creating module 210 is configured to create a test case of the map data, and write the test case into a test tool;
optionally, the creating module 210 further includes:
and the judging unit is used for judging whether the data table corresponding to the map data is empty or not, acquiring the path and the name of the data table when the data table is empty, and marking the case state corresponding to the data table when the data table is not empty.
The deployment module 220 is configured to deploy the test tool to a preset operating environment, and configure an automatic operation command of the test tool;
optionally, the deploying the test tool to a preset operating environment includes:
and adding a testing tool to a catalog of the compiling tool, wherein the testing tool and the compiling tool have the same running environment.
Further, the adding the test tool to the catalog of the compiling tool includes:
and after the automatic operation command is started, generating a test report through the test tool, and generating high-precision map data through the compiling tool.
The starting module 230 is configured to start the automatic operation command and monitor a command execution status in real time;
optionally, the starting module 230 includes:
and the acquisition unit is used for acquiring log information printed by the DOS window, and monitoring and checking corresponding map data according to abnormal data of the special marks in the log information.
The obtaining module 240 is configured to obtain the generated map data and the test report when the running of the test tool is finished, so as to locate a problem in the map data.
Optionally, when the running of the test tool is finished, the obtaining of the generated map data and the test report to locate the problem in the map data includes:
and when the generated map data has data loss or incomplete test report content, checking whether the corresponding map data is complete according to the lost data, and confirming whether the corresponding test execution process is normal according to the incomplete test report content.
Optionally, when the running of the test tool is finished, the obtaining of the generated map data and the test report to locate the problem in the map data includes:
and when the generated map data is not lost and the content of the test report is complete, the generated map data and the test report are sent to corresponding analysts so as to further verify the map data.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by a program to instruct associated hardware, where the program may be stored in a computer-readable storage medium, and when the program is executed, the program includes steps S101 to S104, where the storage medium includes, for example: ROM/RAM, magnetic disk, optical disk, etc.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An automatic map data testing method is characterized by comprising the following steps:
creating a test case of map data, and compiling the test case into a test tool;
deploying the test tool to a preset operation environment, and configuring an automatic operation command of the test tool;
starting the automatic operation command, and monitoring the command execution condition in real time;
and when the running of the test tool is finished, the generated map data and the test report are acquired so as to locate the problems in the map data.
2. The method of claim 1, wherein creating a test case for map data and compiling the test case into a test tool further comprises:
and judging whether the data table corresponding to the map data is empty or not, acquiring the path and the name of the data table when the data table is empty, and marking the case state corresponding to the data table when the data table is not empty.
3. The method of claim 1, wherein deploying the test tool into a pre-defined operating environment comprises:
and adding a testing tool to a catalog of the compiling tool, wherein the testing tool and the compiling tool have the same running environment.
4. The method of claim 3, wherein adding the test tool to the catalog of the compilation tool comprises:
and after the automatic operation command is started, generating a test report through the test tool, and generating high-precision map data through the compiling tool.
5. The method of claim 1, wherein initiating the automation run command, monitoring command execution in real time comprises:
and acquiring log information printed by the DOS window, and monitoring and checking corresponding map data according to abnormal data of the special marks in the log information.
6. The method of claim 1, wherein obtaining the generated map data and the test report to locate the problem in the map data when the test tool is finished comprises:
and when the generated map data has data loss or incomplete test report content, checking whether the corresponding map data is complete according to the lost data, and confirming whether the corresponding test execution process is normal according to the incomplete test report content.
7. The method of claim 1, wherein obtaining the generated map data and the test report to locate the problem in the map data when the test tool is finished comprises:
and when the generated map data is not lost and the content of the test report is complete, the generated data and the test report are sent to corresponding analysts so as to further verify the map data.
8. A terminal device, comprising:
the system comprises a creating module, a testing tool and a generating module, wherein the creating module is used for creating a test case of map data and compiling the test case into the testing tool;
the deployment module is used for deploying the test tool to a preset running environment and configuring an automatic running command of the test tool;
the starting module is used for starting the automatic operation command and monitoring the command execution condition in real time;
and the acquisition module is used for acquiring the generated map data and the test report when the running of the test tool is finished so as to locate the problems in the map data.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the map data automated testing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the map data automated testing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910927050.7A CN110704318B (en) | 2019-09-27 | 2019-09-27 | Map data automatic testing method, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910927050.7A CN110704318B (en) | 2019-09-27 | 2019-09-27 | Map data automatic testing method, terminal device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110704318A true CN110704318A (en) | 2020-01-17 |
CN110704318B CN110704318B (en) | 2022-10-25 |
Family
ID=69196975
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910927050.7A Active CN110704318B (en) | 2019-09-27 | 2019-09-27 | Map data automatic testing method, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110704318B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113032285A (en) * | 2021-05-24 | 2021-06-25 | 湖北亿咖通科技有限公司 | High-precision map testing method and device, electronic equipment and storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103713992A (en) * | 2012-09-29 | 2014-04-09 | 深圳市赛格导航科技股份有限公司 | GPS system alert judgment based automated testing method and system |
CN103973858A (en) * | 2014-05-21 | 2014-08-06 | 重庆泰凯科技有限公司 | Automatic testing system of mobile terminals |
CN104516818A (en) * | 2014-12-29 | 2015-04-15 | 北京四方继保自动化股份有限公司 | Automatic testing system and method both applicable to compiler in logical configuration software |
CN105975386A (en) * | 2015-10-19 | 2016-09-28 | 霍亮 | Testing method for geographic information system software |
CN107797919A (en) * | 2017-07-24 | 2018-03-13 | 平安普惠企业管理有限公司 | The method and computing device of a kind of automatic test |
CN108287786A (en) * | 2017-01-09 | 2018-07-17 | 北京四维图新科技股份有限公司 | A kind of automated testing method and device and hybrid navigation system based on map |
CN108829602A (en) * | 2018-06-21 | 2018-11-16 | 北京金山安全软件有限公司 | Test method, test device, electronic equipment and storage medium |
CN108920476A (en) * | 2018-03-30 | 2018-11-30 | 斑马网络技术有限公司 | Map retrieval calculates pass and holds up test macro and its test method |
CN109387193A (en) * | 2017-08-02 | 2019-02-26 | 深圳市耀航信息技术有限公司 | A kind of update method and device of indoor map |
CN109406916A (en) * | 2018-12-14 | 2019-03-01 | 武汉精鸿电子技术有限公司 | A kind of test platform for semiconductor memory ageing tester |
CN109726132A (en) * | 2019-01-03 | 2019-05-07 | 京东方科技集团股份有限公司 | A kind of method for testing software and software test automation management system |
CN109800156A (en) * | 2018-12-20 | 2019-05-24 | 交控科技股份有限公司 | A kind of subway signal system automation test method based on profile command |
CN109828899A (en) * | 2018-12-13 | 2019-05-31 | 深圳壹账通智能科技有限公司 | Acquisition method, device and the computer equipment of test data |
CN110008133A (en) * | 2019-04-16 | 2019-07-12 | 珠海金山网络游戏科技有限公司 | Automatization test system, calculates equipment and storage medium at method |
-
2019
- 2019-09-27 CN CN201910927050.7A patent/CN110704318B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103713992A (en) * | 2012-09-29 | 2014-04-09 | 深圳市赛格导航科技股份有限公司 | GPS system alert judgment based automated testing method and system |
CN103973858A (en) * | 2014-05-21 | 2014-08-06 | 重庆泰凯科技有限公司 | Automatic testing system of mobile terminals |
CN104516818A (en) * | 2014-12-29 | 2015-04-15 | 北京四方继保自动化股份有限公司 | Automatic testing system and method both applicable to compiler in logical configuration software |
CN105975386A (en) * | 2015-10-19 | 2016-09-28 | 霍亮 | Testing method for geographic information system software |
CN108287786A (en) * | 2017-01-09 | 2018-07-17 | 北京四维图新科技股份有限公司 | A kind of automated testing method and device and hybrid navigation system based on map |
CN107797919A (en) * | 2017-07-24 | 2018-03-13 | 平安普惠企业管理有限公司 | The method and computing device of a kind of automatic test |
CN109387193A (en) * | 2017-08-02 | 2019-02-26 | 深圳市耀航信息技术有限公司 | A kind of update method and device of indoor map |
CN108920476A (en) * | 2018-03-30 | 2018-11-30 | 斑马网络技术有限公司 | Map retrieval calculates pass and holds up test macro and its test method |
CN108829602A (en) * | 2018-06-21 | 2018-11-16 | 北京金山安全软件有限公司 | Test method, test device, electronic equipment and storage medium |
CN109828899A (en) * | 2018-12-13 | 2019-05-31 | 深圳壹账通智能科技有限公司 | Acquisition method, device and the computer equipment of test data |
CN109406916A (en) * | 2018-12-14 | 2019-03-01 | 武汉精鸿电子技术有限公司 | A kind of test platform for semiconductor memory ageing tester |
CN109800156A (en) * | 2018-12-20 | 2019-05-24 | 交控科技股份有限公司 | A kind of subway signal system automation test method based on profile command |
CN109726132A (en) * | 2019-01-03 | 2019-05-07 | 京东方科技集团股份有限公司 | A kind of method for testing software and software test automation management system |
CN110008133A (en) * | 2019-04-16 | 2019-07-12 | 珠海金山网络游戏科技有限公司 | Automatization test system, calculates equipment and storage medium at method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113032285A (en) * | 2021-05-24 | 2021-06-25 | 湖北亿咖通科技有限公司 | High-precision map testing method and device, electronic equipment and storage medium |
CN113032285B (en) * | 2021-05-24 | 2021-08-13 | 湖北亿咖通科技有限公司 | High-precision map testing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110704318B (en) | 2022-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2641179B1 (en) | Method and apparatus for automatic diagnosis of software failures | |
EP2960799A1 (en) | Defect localization in software integration tests | |
EP3220222B1 (en) | Evaluation system, evaluation method, and evaluation program | |
CN107133244B (en) | Method and device for testing database migration | |
CN108228190B (en) | Persistent integration and delivery methods, systems, devices, and computer-readable storage media | |
CN109101410B (en) | Risk drive testing method and device and computer readable storage medium | |
CN113535538B (en) | Method, device, electronic equipment and storage medium for automatically testing application full link | |
CN113342685A (en) | Precise test method and device, computer equipment and storage medium | |
CN113282513B (en) | Interface test case generation method and device, computer equipment and storage medium | |
CN111651358B (en) | Method for generating test case, software test method, device and server | |
CN110990289B (en) | Method and device for automatically submitting bug, electronic equipment and storage medium | |
CN110704318B (en) | Map data automatic testing method, terminal device and storage medium | |
JP2023534200A (en) | Auto-assisted circuit verification | |
CN111767218B (en) | Automatic test method, equipment and storage medium for continuous integration | |
CN107102938B (en) | Test script updating method and device | |
US20190286453A1 (en) | System construction assisting apparatus, method, and program | |
CN113360366A (en) | Web page testing method, testing device, electronic equipment and storage medium | |
CN109446105A (en) | Web application test method, device, readable medium and electronic equipment | |
CN115269443A (en) | Software defect automatic positioning test method and system | |
CN111722997A (en) | Abnormality detection method for automated testing and computer-readable storage medium | |
KR102176133B1 (en) | Method and apparatus for automatically creating test cases for software | |
US11061808B2 (en) | Troubleshooting test failures that occurred during a testing phase of a continuous integration pipeline | |
CN109766076B (en) | Flow control method, device and storage medium | |
US8141039B2 (en) | Method and system for consolidating machine readable code | |
CN110795142A (en) | Configuration file generation method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |