CN104461891B - For testing the method and device for the application for being related to positioning - Google Patents
For testing the method and device for the application for being related to positioning Download PDFInfo
- Publication number
- CN104461891B CN104461891B CN201410768267.5A CN201410768267A CN104461891B CN 104461891 B CN104461891 B CN 104461891B CN 201410768267 A CN201410768267 A CN 201410768267A CN 104461891 B CN104461891 B CN 104461891B
- Authority
- CN
- China
- Prior art keywords
- measuring point
- basis
- location data
- application
- data
- 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.)
- Active
Links
Landscapes
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The present invention provides a kind of method and device for being used to test the application for being related to positioning.Methods described includes:Obtaining includes the test scene data of measuring point collection, and the measuring point collection includes the location data of multiple measuring points;The basis on location data of the multiple measuring point are obtained from server;Start tested application;The basis on location data of the multiple measuring point are conveyed to the tested application.By the method and device for the application for being related to positioning provided by the present invention for test, reach saving human cost, reduce test period, improve test frequency, increase test data coverage rate and the comprehensive test effect for ensureing test region.
Description
Technical field
The present invention relates to using measuring technology, more particularly to a kind of method and dress for being used to test the application for being related to positioning
Put.
Background technology
With the expansion of urbanization and the raising of people's quality of life, being related to the application of positioning, (such as navigation application, map should
With and it is location-based purchase by group using etc.) play the part of in the life of people in hold the balance effect.The living trip of people
Positioning application is become increasingly dependent on, the quality of the usage experience of people more depends on the accuracy of positioning application, and positions application
The index such as accuracy be the continuous test of developer and improved crystallization.
The method of testing of existing positioning application is mainly positioned using positioning product on the spot by tester, is obtained
Positioning result is taken, then the indexs such as the setting accuracy of the positioning application product are evaluated by positioning result.It is located at if tested
The positioning result of multiple geographic areas is, it is necessary to which the actual measuring point to these regions of tester is tested.
To sum up, existing method of testing has the following disadvantages:1) human input cost is big;2) region limitation is big, intelligence
Some typical commercial circles are chosen to be tested;3) gathered data amount is limited;4) test period is long, frequency is low.
The content of the invention
It is an object of the present invention to provide a kind of method and device for being used to test the application for being related to positioning, can help
Developer or tester need not go to the geographical position of can simulator locating application on the spot, should so as to test the positioning
With.
According to an aspect of the present invention, there is provided a kind of method for being used to test the application for being related to positioning, including:Acquisition includes
The test scene data of measuring point collection, the measuring point collection include the location data of multiple measuring points;The multiple survey is obtained from server
The basis on location data of point;Start tested application;The basis on location data of the multiple measuring point are conveyed to the tested application.
According to another aspect of the present invention, there is provided a kind of device for being used to test the application for being related to positioning, including:Checkout area
Scape data capture unit, the test scene data of measuring point collection are included for obtaining, and the measuring point collection includes the positioning of multiple measuring points
Data;Basis on location data capture unit, for obtaining the basis on location data of the multiple measuring point from server;Start single
Member, for starting tested application;Supply unit, for conveying the basis on location number of the multiple measuring point to the tested application
According to.
A kind of method and device for being used to test the application for being related to positioning provided in an embodiment of the present invention, by from server
The basis on location data of multiple measuring points are obtained, and after tested application is started, the basis on location data are delivered to tested application,
The test to the tested application is realized, so as to reach saving human cost, test period is reduced, improves test frequency, increase is surveyed
Try data cover rate and ensure the comprehensive test effect of test region.
Brief description of the drawings
Fig. 1 is the flow signal for being used to test the method for the application for being related to positioning for showing exemplary embodiment of the present
Figure.
Fig. 2 is to show the test scene exemplary plot using technical scheme of the embodiment of the present invention.
Fig. 3 is the structured flowchart for being used to test the device for the application for being related to positioning for showing exemplary embodiment of the present.
Embodiment
The basic conception of the present invention is to provide a kind of instrument for being used to test the application for being related to positioning, according to answering for setting
The basis on location data injected system ccf layer that will have been excavated with scene, so as to which the basis on location number can be read in tested application
According to, and carry out processing related to positioning accordingly.This testing tool can simulate desired geographical position, and answer tested
With being transparent, without carrying out any code revision to tested application.
Therefore, need in advance history positioning daily record to be excavated to obtain basis on location data at background server end,
This, the excavation of basis on location data will be described in detail.
Substantial amounts of history positioning daily record is had in back-end data, daily record is positioned based on the history, user is (for example, exploitation
Person, tester) can be by selecting location point (for example, it is desired to location point or anchor point of test), root on the map on backstage
According to the coordinate of the location point, history positioning daily record is calculated using distributed computing framework (for example, hadoop is distributed), so as to carry
Location Request corresponding with the location point is taken out, and obtains basis on location data corresponding with the Location Request.Such as this is fixed
(data sample is such as wifi location datas in the request of position:e4d332cfcc9a;65;|08bd43865d6a;67;|
72c714534178;70;|, the separator using " | " as multiple wifi fields, wifi data obtained herein), architecture
(data sample is such as data:456 | 6 | 3021 | 169094), basis on location data are stored in database, so that application side is downloaded
Use.
Below in conjunction with the accompanying drawings to exemplary embodiment of the present it is a kind of be used for test be related to positioning application method and
Device is described in detail.
In an exemplary embodiment of the present invention, it is used to test described in describing using Android system as example and is related to positioning
The method and apparatus of application.However, it will be understood that the design of the present invention is not limited to Android system and operates in Android system
Using, and suitable for any system of positioning scan data can be injected in system framework layer.
Fig. 1 is the flow signal for being used to test the method for the application for being related to positioning for showing exemplary embodiment of the present
Figure.Fig. 2 is to show the test scene exemplary plot using technical scheme of the embodiment of the present invention.
Reference picture 1, in step S110, the test scene data for including measuring point collection are obtained, the measuring point collection includes multiple surveys
The location data of point.Wherein, the location data is longitude and latitude degrees of data.
In step S120, the basis on location data of the multiple measuring point are obtained from server.
For example, can initiate to server to obtain request by request interface, can be with after server receives the request
Json forms return to the basis on location data of the multiple test point.
Specifically, the basis on location data may be, but not limited to, wifi location datas or architecture data.
In step S130, start tested application.
Alternatively, the tested application is the application run on Android system.
In step S140, the basis on location data of the multiple measuring point are conveyed to the tested application.
It will be appreciated by persons skilled in the art that in Android system, tested apply is run in Android application layer, and it is logical
Crossing communication locating interface can directly go system framework layer to obtain basis on location data.Therefore, the tested application can obtain institute
After stating basis on location data, follow-up calculation process is carried out, for example, show corresponding anchor point on map, or according to institute
Basis on location data are stated to carry out corresponding data processing and/or show.
It is therefore preferred that being based on step S130, the basis on location data of the multiple measuring point are injected into peace in step S140
Tall and erect system framework layer so that the basis on location data are read in the tested application, so as to ensure the transparency of application process and
Terseness.Specifically, the calling interface of the tested application is obtained in system framework layer, is connect by the calling of the tested application
Mouth conveys the basis on location data of the multiple measuring point to the tested application.
According to a preferred embodiment of the invention, methods described also includes the option for providing the tested application of selection, and described
Starting the processing of tested application includes:Start the application of selection.Thus, the method for being used to test the application for being related to positioning can
The test of different application is supported, rather than is bundled for testing some specific application.
In addition, according to the preferred embodiment of the present invention, the test scene data also include:During the stop of the multiple measuring point
Between length.Here, can be that each measuring point defines length of stay, or length of all measuring point unified definition residence times
Degree.Based on this, in step S140, the multiple measuring point is conveyed using the length of stay as interval to the tested application
Basis on location data, so as to which tested application reads the basis on location data according to the interval and is grasped accordingly
Make.
As shown in Figure 2, for using the test scene of the technical scheme of the embodiment of the present invention, its test scene is including multiple
Test point, as the black round dot (wherein having label, for example, 20,30,40,55 etc.) in figure and grey round dot (for example, marked as
5th, 10,15 round dot).Wherein, tested point is represented with black round dot, test point is represented with grey round dot.In addition, test scene
Data include the wifi location datas or architecture data of the basis on location data of these test points, i.e. test point, wherein, it is fixed
Method for digging of the position according to data, Web log mining is positioned by history and obtained, it is foregoing to be described in detail, it is no longer superfluous herein
State.
After the basis on location data of these test points are obtained, simulation scene (can be understood as by length of stay
The time span of walking in positioning between two points) it is used as interval to convey multiple surveys to tested application (for example, Baidu map)
The basis on location data of point, for example, the length of stay (interval) of grey round dot 15 is 5 seconds, then after five seconds can be to
The basis on location data of tested application conveying black round dot 20, if the length of stay of black round dot 20 6 seconds, at 6 seconds
The basis on location data of black round dot 30 can be conveyed after clock to tested application.Here, it should be noted that convey measured point
The order of basis on location data can be set according to being actually needed, the above-mentioned merely exemplary explanation of sequence of batching products, without to it
Limited.
By the invention described above technical scheme, scene positioning on the spot can be simulated, so as to realize that need not go on the spot just can be right
The application for being related to positioning is tested.For example, the test point on multicolored city periphery is determined in the street can of Haidian District Shangdi 10
Bit test, for another example carrying out assignment test to the test point of Shanghai scope in Beijing can.
A kind of method for being used to test the application for being related to positioning provided in an embodiment of the present invention, by obtaining multiple test points
Location data (longitude and latitude degrees of data) and basis on location data (wifi location datas or the base station of multiple measuring points are obtained from server
Location data), and after tested application is started, by the basis on location data using the length of stay of each test point as interval
Tested application is delivered to, realizes the test to the tested application, so as to reach saving human cost, test period is reduced, improves
Test frequency, increase test data coverage rate and the comprehensive test effect for ensureing test region.
Fig. 3 is the structured flowchart for being used to test the device for the application for being related to positioning for showing exemplary embodiment of the present.
Reference picture 3, the device for being used to test the application for being related to positioning include:Test scene data capture unit 210,
Basis on location data capture unit 220, start unit 230 and supply unit 240.
Test scene data capture unit 210 is used to obtain the test scene data for including measuring point collection, the measuring point Ji Bao
Include the location data of multiple measuring points.
Basis on location data capture unit 220 is used for the basis on location data that the multiple measuring point is obtained from server.
Asked for example, basis on location data capture unit 220 can initiate to obtain by request interface to server, service
After device receives the request, the multiple test point can be returned to basis on location data capture unit 220 with json forms
Basis on location data.
Preferably, the location data is longitude and latitude degrees of data, and the basis on location data are wifi location datas or base station
Location data.
Start unit 230 is used to start tested application.For example, tested application can be Baidu map, 360 maps, Google
Map etc. is related to the application of positioning.
Preferably, the tested application is the application run on Android system.
According to a preferred embodiment of the invention, described device also includes option offer unit (not shown) offer selection
The option of tested application, based on this, the start unit 230 starts the application of selection.
Supply unit 240 is used for the basis on location data that the multiple measuring point is conveyed to the tested application.
It is tested to apply in Android system application layer it will be appreciated by persons skilled in the art that in Android system, can be with
Basis on location data are directly obtained by the calling interface of tested application.
Specifically, the basis on location data of the multiple measuring point are injected Android system ccf layer by supply unit 240, so that
The basis on location data are read in the tested application, so as to ensure the transparency of application process and terseness.Specifically, it is being
Ccf layer of uniting obtains the calling interface of the tested application, defeated to the tested application by the calling interface of the tested application
Send the basis on location data of the multiple measuring point.
According to the preferred embodiment of the present invention, the test scene data also include:The residence time length of the multiple measuring point
Degree, based on this, supply unit 240 conveys the multiple measuring point using the length of stay as interval to the tested application
Basis on location data.
A kind of device for being used to test the application for being related to positioning provided in an embodiment of the present invention, by obtaining multiple test points
Location data (longitude and latitude degrees of data) and basis on location data (wifi location datas or the base station of multiple measuring points are obtained from server
Location data), and after tested application is started, by the basis on location data using the length of stay of each test point as interval
Tested application is delivered to, realizes the test to the tested application, so as to reach saving human cost, test period is reduced, improves
Test frequency, increase test data coverage rate and the comprehensive test effect for ensureing test region.In addition, with preferably steady
Qualitative and sustainability, product up-gradation can be promoted, so as to improve the market competitiveness of positioning product.
It may be noted that according to the needs of implementation, each step described in this application can be split as more multi-step, also may be used
The part operation of two or more steps or step is combined into new step, to realize the purpose of the present invention.
Above-mentioned the method according to the invention can be realized in hardware, firmware, or be implemented as being storable in recording medium
Software or computer code in (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through network download
Original storage in long-range recording medium or nonvolatile machine readable media and the meter that will be stored in local recording medium
Calculation machine code, so as to which method described here can be stored in using all-purpose computer, application specific processor or programmable or special
With such software processing in hardware (such as ASIC or FPGA) recording medium.It is appreciated that computer, processor, micro-
Processor controller or programmable hardware include can storing or receive software or computer code storage assembly (for example, RAM,
ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and when performing, realize herein
The processing method of description.In addition, when all-purpose computer accesses the code for realizing the processing being shown in which, the execution of code
All-purpose computer is converted into the special-purpose computer for performing the processing being shown in which.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (8)
- A kind of 1. method for being used to test the application for being related to positioning, it is characterised in that including:Obtaining includes the test scene data of measuring point collection, and the measuring point collection includes the location data of multiple measuring points, the positioning number According to being longitude and latitude degrees of data;The basis on location data of the multiple measuring point are obtained from server, the basis on location data are wifi location datas or base Stand location data;Start tested application;The basis on location data of the multiple measuring point are conveyed to the tested application;The test scene data also include:The length of stay of the multiple measuring point, and it is described to the tested application Conveying the processing of the basis on location data of the multiple measuring point includes:Using the length of stay as interval to described tested Using the basis on location data for conveying the multiple measuring point.
- 2. according to the method for claim 1, it is characterised in that the tested application should for what is run on Android system With.
- 3. according to the method for claim 2, it is characterised in that described to convey the multiple measuring point to the tested application The processing of basis on location data includes:The basis on location data of the multiple measuring point are injected into Android system ccf layer, so that the tested application reading is described fixed Position is according to data.
- 4. according to the method for claim 1, it is characterised in that methods described also includes:The choosing of the tested application of selection is provided , and the processing for starting tested application includes:Start the application of selection.
- A kind of 5. device for being used to test the application for being related to positioning, it is characterised in that including:Test scene data capture unit, the test scene data of measuring point collection are included for obtaining, and the measuring point collection includes multiple The location data of measuring point, the location data are longitude and latitude degrees of data;Basis on location data capture unit, for obtaining the basis on location data of the multiple measuring point, the positioning from server It is wifi location datas or architecture data according to data;Start unit, for starting tested application;Supply unit, for conveying the basis on location data of the multiple measuring point to the tested application;The test scene data also include:The length of stay of the multiple measuring point, and the supply unit is with described Length of stay conveys the basis on location data of the multiple measuring point as interval to the tested application.
- 6. device according to claim 5, it is characterised in that the tested application should for what is run on Android system With.
- 7. device according to claim 6, it is characterised in that the supply unit is by the basis on location of the multiple measuring point Data inject Android system ccf layer, so that the basis on location data are read in the tested application.
- 8. device according to claim 5, it is characterised in that described device also includes:Option provides unit, and the option of tested application is selected for providing, and the processing for starting tested application includes:Open The application of dynamic selection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768267.5A CN104461891B (en) | 2014-12-11 | 2014-12-11 | For testing the method and device for the application for being related to positioning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768267.5A CN104461891B (en) | 2014-12-11 | 2014-12-11 | For testing the method and device for the application for being related to positioning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461891A CN104461891A (en) | 2015-03-25 |
CN104461891B true CN104461891B (en) | 2018-02-27 |
Family
ID=52907980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410768267.5A Active CN104461891B (en) | 2014-12-11 | 2014-12-11 | For testing the method and device for the application for being related to positioning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461891B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105515877B (en) * | 2015-12-31 | 2019-04-19 | 四川秘无痕信息安全技术有限责任公司 | A kind of method of base station information in high efficiency extraction Android system log buffer area |
CN107885651B (en) * | 2016-09-30 | 2020-11-24 | 千寻位置网络有限公司 | Automatic system regression testing method and device for mobile terminal positioning algorithm |
CN108334442B (en) * | 2017-01-20 | 2021-05-28 | 武汉斗鱼网络科技有限公司 | Test method and device for simulating search anchor |
CN106840209B (en) * | 2017-02-22 | 2020-04-21 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing navigation applications |
CN110674026B (en) * | 2018-07-03 | 2023-04-18 | 百度在线网络技术(北京)有限公司 | Navigation track simulation method and device, storage medium and terminal equipment |
CN111008128B (en) * | 2019-11-21 | 2023-04-18 | 一汽解放汽车有限公司 | Automatic test system, method and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202049236U (en) * | 2011-03-11 | 2011-11-23 | 上海泰捷通信技术有限公司 | Terminal GPS automatic test tool |
CN103175542A (en) * | 2011-12-26 | 2013-06-26 | 厦门高德软件有限公司 | Virtual driving positioning information generation method and device |
CN103957504A (en) * | 2014-04-21 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Positioning service assessment method, device and system |
-
2014
- 2014-12-11 CN CN201410768267.5A patent/CN104461891B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202049236U (en) * | 2011-03-11 | 2011-11-23 | 上海泰捷通信技术有限公司 | Terminal GPS automatic test tool |
CN103175542A (en) * | 2011-12-26 | 2013-06-26 | 厦门高德软件有限公司 | Virtual driving positioning information generation method and device |
CN103957504A (en) * | 2014-04-21 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Positioning service assessment method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN104461891A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461891B (en) | For testing the method and device for the application for being related to positioning | |
Zurell et al. | A standard protocol for reporting species distribution models | |
US9671233B2 (en) | Dynamically providing position information of a transit object to a computing device | |
CN106303955A (en) | For the method and apparatus that hotspot and POI are mated | |
CN110686686B (en) | System and method for map matching | |
US11512970B2 (en) | Method and apparatus for generating information | |
CN103927374B (en) | A kind of Web GIS map layer creation method based on SharpMap | |
TW201633241A (en) | Target address determining method and device | |
JP2019508766A (en) | System, method, and device for generating a heat map of a geographical area | |
US20140317107A1 (en) | Trusted Maps: Updating Map Locations Using Trust-Based Social Graphs | |
McKenzie et al. | Assessing the effectiveness of different visualizations for judgments of positional uncertainty | |
CN106416315A (en) | Method and apparatus for provisioning geofences | |
CN111814069A (en) | Information processing method, information processing apparatus, storage medium, and electronic device | |
US20130262457A1 (en) | Location name suggestion | |
US20220156788A1 (en) | Method and system for determining fact of visit of user to point of interest | |
US10963917B2 (en) | Method and system for determining fact of visit of user to point of interest | |
CN109891190A (en) | Geo-location is carried out to individual based on derivative social networks | |
Griffith et al. | Uncertainty-related research issues in spatial analysis | |
Pryss et al. | The AREA framework for location-based smart mobile augmented reality applications | |
CN106557414A (en) | Application testing system and method | |
US9357347B2 (en) | Method and system for aggregating messages based on a point of interest and storage medium | |
CN110276387A (en) | A kind of generation method and device of model | |
CN112748453B (en) | Road side positioning method, device, equipment and storage medium | |
CN111782973A (en) | Interest point state prediction method and device, electronic equipment and storage medium | |
US20180060934A1 (en) | System and Method for Increasing Location Awareness of Organizations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |