CN109086210A - For testing the navigation information method and apparatus of navigation application - Google Patents

For testing the navigation information method and apparatus of navigation application Download PDF

Info

Publication number
CN109086210A
CN109086210A CN201810923531.6A CN201810923531A CN109086210A CN 109086210 A CN109086210 A CN 109086210A CN 201810923531 A CN201810923531 A CN 201810923531A CN 109086210 A CN109086210 A CN 109086210A
Authority
CN
China
Prior art keywords
navigation
information
data
target
dynamic
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
Application number
CN201810923531.6A
Other languages
Chinese (zh)
Other versions
CN109086210B (en
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810923531.6A priority Critical patent/CN109086210B/en
Publication of CN109086210A publication Critical patent/CN109086210A/en
Application granted granted Critical
Publication of CN109086210B publication Critical patent/CN109086210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test 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)
  • Navigation (AREA)

Abstract

The embodiment of the present application discloses the method for the navigation information for testing navigation application.One specific embodiment of this method includes: to receive the test request of client is sent request for test target navigation information, includes route information and the identification information for identifying target navigation information in test request;Test request is forwarded to application server, receives the navigation data that application server is returned based on route information;Based on identification information, parameter information that application server is arranged, for indicating target navigation information is obtained;In response to determining that target navigation information does not include dynamic navigation information, it is based on parameter information, navigation data is handled to obtain target navigation data;Target navigation data are sent to client, so that client can trigger target navigation information to be tested, facilitate the coverage rate and testing efficiency that promote the test to navigation information.

Description

For testing the navigation information method and apparatus of navigation application
Technical field
The invention relates to field of computer technology, and in particular to for testing the navigation information method of navigation application And device.
Background technique
Currently, for the various navigation informations provided in navigation application, usually answered by tester being equipped with navigation Client selects route, and the corresponding navigation information of current road conditions is triggered according to real-time road conditions.Real-time road is more difficult Control, therefore, the more difficult triggering of navigation information set by the road conditions occurred for some small probabilities.
Summary of the invention
The embodiment of the present application proposes the method and apparatus of the navigation information for testing navigation application.
In a first aspect, the embodiment of the present application provides a kind of method for testing the navigation information of navigation application, application In testing service device, testing service device is connect with the application server and client communication for supporting navigation application respectively, this method It include: the test request for receiving client is sent request for test target navigation information, wherein include road in test request Line information and identification information for identifying target navigation information;Test request is forwarded to application server, receives application clothes The navigation data that business device is returned based on route information;Based on identification information, obtain application server setting, for indicating target The parameter information of navigation information;In response to determining that target navigation information does not include dynamic navigation information, it is based on parameter information, to leading Boat data are handled to obtain target navigation data;Target navigation data are sent to client.
In some embodiments, it is based on parameter information, navigation data is handled to obtain target navigation data, packet It includes: in response to determining that navigation data is consistent with the data format of parameter information, parameter information being added in navigation data to obtain To target navigation data.
In some embodiments, it is based on parameter information, navigation data is handled to obtain target navigation data, packet Include: the data format in response to determining navigation data and parameter information is inconsistent, and the data format of navigation data is determined as mesh Data format is marked, the data format of parameter information is determined as intermediate data format, and data format is carried out to navigation data Conversion is to obtain the navigation data of intermediate data format;Parameter information is added in the navigation data of intermediate data format to obtain To the target navigation data of intermediate data format;It is target by the Data Format Transform of the target navigation data of intermediate data format Data format is to obtain target navigation data.
In some embodiments, the above method further include: in response to determining that target navigation information includes dynamic navigation information, Based on dynamic navigation information, the dynamic requests of request dynamic navigation information are sent to application server;Receive application server base In the dynamic data that dynamic requests return;Based on dynamic data and parameter information, navigation data is handled to obtain dynamic Target navigation data.
In some embodiments, it is based on dynamic data and parameter information, navigation data is handled to obtain dynamic mesh Mark navigation data, comprising: it is consistent in response to the data format of dynamic data, navigation data, parameter information, by dynamic data and ginseng Number information is added in navigation data to obtain dynamic object navigation data, and dynamic object navigation data is sent to client.
In some embodiments, parameter information includes parameter name and parameter value.
In some embodiments, test request is forwarded to application server, comprising: by test request in a manner of encryption It is forwarded to application server.
Second aspect, the embodiment of the present application provide a kind of for testing the device of the navigation information of navigation application, the dress Setting includes: receiving unit, is configured to receive client transmission, request for test target navigation information test request, wherein It include route information and the identification information for identifying target navigation information in test request;Receiving unit is further matched It is set to and test request is forwarded to application server, receive the navigation data that application server is returned based on route information;It obtains Unit is configured to be obtained parameter that application server is arranged, for indicating target navigation information based on identification information and believed Breath;Processing unit is configured in response to determine that target navigation information does not include dynamic navigation information, is based on parameter information, right Navigation data is handled to obtain target navigation data;Transmission unit is configured to target navigation data being sent to client End.
In some embodiments, above-mentioned processing unit, is further configured to: in response to determining that navigation data and parameter are believed The data format of breath is consistent, parameter information is added in navigation data to obtain target navigation data.
In some embodiments, above-mentioned processing unit, is further configured to: in response to determining that navigation data and parameter are believed The data format of breath is inconsistent, and the data format of navigation data is determined as target data format, by the data lattice of parameter information Formula is determined as intermediate data format, and carries out Data Format Transform to navigation data to obtain the navigation number of intermediate data format According to;Parameter information is added in the navigation data of intermediate data format to obtain the target navigation data of intermediate data format; It is target data format to obtain target navigation data by the Data Format Transform of the target navigation data of intermediate data format.
In some embodiments, above-mentioned apparatus further include: transmission unit is configured in response to determine target navigation information Comprising dynamic navigation information, it is based on dynamic navigation information, the dynamic requests of request dynamic navigation information are sent to application server; Receiving unit is further configured to receive the dynamic data that application server is returned based on dynamic requests;Processing unit, into one Step is configured to handle navigation data based on dynamic data and parameter information to obtain dynamic object navigation data;Hair Unit is sent, is further configured to dynamic object navigation data being sent to client.
In some embodiments, above-mentioned processing unit, is further configured to: in response to dynamic data, navigation data, ginseng The data format of number information is consistent, dynamic data and parameter information is added in navigation data to obtain dynamic object navigation number According to.
In some embodiments, above-mentioned parameter information includes parameter name and parameter value.
In some embodiments, above-mentioned receiving unit, is further configured to: being forwarded test request in a manner of encryption To application server.
The third aspect, the embodiment of the present application provide a kind of system for testing the navigation information of navigation application, this is System includes client, the application server for supporting navigation application, the testing service device for supporting test;Client, quilt It is configured to send the test request of request for test target navigation information, wherein include route information in test request and be used for Identify the identification information of target navigation information;Testing service device is configured to test request being forwarded to application server, receives The navigation data that application server is returned based on route information;Based on identification information, obtain application server setting, be used for table Show the parameter information of target navigation information;In response to determining that target navigation information does not include dynamic navigation information, believed based on parameter Breath, is handled navigation data to obtain target navigation data;By target navigation data forwarding to client;Client, into One step is configured to show target navigation information according to target navigation data.
Fourth aspect, the embodiment of the present application provide a kind of server, which includes: one or more processors; Storage device, for storing one or more programs;When one or more programs are executed by one or more processors, so that one A or multiple processors realize the method as described in implementation any in first aspect.
5th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in implementation any in first aspect is realized when computer program is executed by processor.
The navigation information provided by the embodiments of the present application for being used to test navigation application, being sent by reception client, The test request of request for test target navigation information, wherein in test request include route information and led for identifying target The identification information for information of navigating;Test request is forwarded to application server, receives what application server was returned based on route information Navigation data;Based on identification information, parameter information that application server is arranged, for indicating target navigation information is obtained;It rings Dynamic navigation information should not be included in determining target navigation information, be based on parameter information, navigation data is handled to obtain Target navigation data;Target navigation data are sent to client, are led so that client can trigger target to be tested Boat information alleviates the dependence between the real-time road of the route of navigation information to be tested and client selection, helps In the coverage rate and testing efficiency that promote the test to navigation information.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the process according to one embodiment of the method for the navigation information for testing navigation application of the application Figure;
Fig. 3 is an application scenarios according to the method for the navigation information for testing navigation application of the embodiment of the present application Schematic diagram;
Fig. 4 is the process according to another embodiment of the method for the navigation information for testing navigation application of the application Figure;
Fig. 5 is shown according to the structure of one embodiment of the device of the navigation information for testing navigation application of the application It is intended to;
Fig. 6 is the timing according to one embodiment of the system of the navigation information for testing navigation application of the application Figure;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can lead using the method for the navigation information for testing navigation application of the application or for testing The exemplary architecture 100 of the embodiment of the device of the navigation information of boat application.
As shown in Figure 1, system architecture 100 may include client 101 and 102, application server 103 and testing service device 104.Wherein, client 101 and 102, application server 103, various types of connections can be passed through between testing service device 104 Mode (such as wired, wireless communication link or fiber optic cables etc.) communication connection.
Navigation application can be installed in client 101 and 102.Client 101 and 102 can be hardware, be also possible to Software.When client 101 and 102 is hardware, it can be with display screen and the various electronics of navigation application are installed set It is standby, including but not limited to smart phone, tablet computer, E-book reader, pocket computer on knee and desktop computer etc. Deng.When client 101 and 102 is software, may be mounted in above-mentioned cited electronic equipment.It may be implemented into multiple Software or software module (such as providing multiple softwares of Distributed Services or software module) also may be implemented into single soft Part or software module.It is not specifically limited herein.
Application server 103, which can be, provides the server of support for the navigation application installed in client 101 and 102. Application server 103 can receive the navigation requests of the transmission of client 101 and 102 and navigation data be back to client 101 With 102.
Testing service device 104 can be to carry out for the navigation information to the navigation application installed in client 101 and 102 The server of test.Testing service device 104 can receive the test request of the transmission of client 101 and 102.Testing service device 104 Navigation requests can also be sent to application server 103 and receive the navigation data that application server 103 returns.Testing service device 104 can also send navigation data to client 101 and 102.
It should be noted that the method for the navigation information provided by the embodiment of the present application for testing navigation application is general It is executed by testing service device 104, correspondingly, is generally positioned at testing service for testing the device of navigation information of navigation application In device 104.
It should be noted that application server 103, testing service device 104 can be hardware, it is also possible to software.When answering When with server 103, testing service device 104 being hardware, may be implemented into the distributed server cluster of multiple servers composition/ Individual server/individual equipment also may be implemented into distributed apparatus cluster.When application server 103, testing service device 104 When for software, multiple softwares or software module may be implemented into (such as providing multiple softwares of Distributed Services or software Module), single software or software module also may be implemented into.It is not specifically limited herein.
It should be understood that the number of client, application server and testing service device in Fig. 1 is only schematical.Root It factually now needs, can have any number of client, network and server.
With continued reference to Fig. 2, it illustrates according to the one of the method for the navigation information for testing navigation application of the application The process 200 of a embodiment.This be used for test navigation application navigation information method the following steps are included:
Step 201, the test request of client is sent request for test target navigation information is received, wherein test request In include route information and the identification information for identifying target navigation information.
In the present embodiment, navigation to be tested can be installed in client (client 101,102 as shown in figure 1) to answer With.Can be provided in executing subject from navigation application to the method for the navigation information for testing navigation application (as shown in figure 1 Testing service device 104) send test request functional interface.
For example, test interface can be increased in navigation application, route setting unit and navigation are shown on test interface The various navigation informations of application.Tester can select route on test interface, while it is also an option that think to be tested Navigation information is as target navigation information, so that the functional interface for sending test request be called to send for testing selected mesh Mark the test request of navigation information.
Wherein, route information usually may include origin information and endpoint information.Generally, can believe for each navigation Breath, presets identification information and is corresponding to it.Identification information can be the various information such as number, symbol, character string.
Wherein, navigation information can be the various push for referring to that navigation application can receive, navigation-related information. Generally, navigation information can support the back-end server (application server as shown in figure 1 of service from providing to navigation application 103) it sends to client and is shown on the client.
For example, navigation information may include route guidance data, the road condition advisory information, road that application server issues Line recommendation information, control traffic message etc..
Step 202, test request is forwarded to application server, receives application server and is led based on what route information returned Boat data.
In the present embodiment, after receiving test request, test request can be forwarded to application server.Its In, application server can be the back-end server for supporting navigation application.Application server can be according to the survey received Route information in examination request returns to currently navigation number corresponding with the route information according to the processing logic of application server According to.
It, can be with the side of encryption after receiving test request in some optional implementations of the present embodiment Formula is requested to application server transmitted test, to guarantee the data safety in repeating process.Specific cipher mode can be with Using existing or later possible various cipher modes.
For example, after receiving test request parameters signatures can be generated for the test request, in application server After receiving test request, parameters signatures can be verified to confirm in repeating process, if there are test request quilts The problems such as distorting.It wherein, is the well-known technique studied and applied extensively at present about the cipher mode based on parameters signatures, herein It repeats no more.
Step 203, it is based on identification information, obtains parameter that application server is arranged, for indicating target navigation information Information.
In the present embodiment, above-mentioned executing subject can obtain identified target navigation letter according to above-mentioned identification information Cease corresponding parameter information.Generally, corresponding parameter information can be respectively set for various navigation informations in application server To distinguish various navigation informations.It (such as when exploitation, can usually navigate from the relevant documentation of navigation application and application server Using the communication protocol and code logic etc. being arranged between application server) in search the corresponding parameter letter of various navigation informations Breath.
It is alternatively possible to which the corresponding relationship of navigation information and parameter information is stored in advance in above-mentioned executing subject.This When, it can be directly from the local corresponding parameter information of identifier lookup according to target navigation information of above-mentioned executing subject.
Alternatively it is also possible to which the corresponding relationship of navigation information and parameter information is stored in other storage equipment.At this point, Above-mentioned executing subject can be from other storage equipment according to the corresponding parameter information of identifier lookup of target navigation information.
Wherein, the concrete form of parameter information can by developer exploitation when self-setting.
In some optional implementations of the present embodiment, parameter information may include parameter name and parameter value.Citing For, navigation information can be divided into multiple classifications (such as prompt information, route recommendation information) in advance, in each classification Under, then each specific subclass distinguished by different marks (such as prompt information includes restricted driving prompt information, road condition advisory information Deng).At this point it is possible to position specific navigation information using parameter name and parameter value.
Step 204, in response to determining that target navigation information does not include dynamic navigation information, it is based on parameter information, to navigation Data are handled to obtain target navigation data.
In the present embodiment, dynamic navigation information can refer to the navigation information changed over time, such as route recommendation Information, different time point route recommendation schemes may have difference.
, can be with the pre-recorded various navigation informations comprising dynamic navigation information in practice, such as it can be by this kind of navigation Information is marked, so as to according to search target navigation information whether have label judge target navigation information whether include Dynamic navigation data.
When target navigation information does not include dynamic navigation information, directly navigation data can be carried out according to parameter information Processing, to obtain target navigation data.Specifically, navigation data is handled according to the data format of parameter information.
It is consistent with the data format of parameter information in navigation data in some optional implementations of the present embodiment When, parameter information can be added in navigation data, to obtain target navigation data.
It is inconsistent in the data format of navigation data and parameter information in some optional implementations of the present embodiment When, the data format of navigation data can be determined as target data format, the data format of parameter information is determined as centre Data format.Later, target navigation data are obtained by following step:
The first step carries out Data Format Transform to navigation data, obtains the navigation data of intermediate data format.
Parameter information is added in the navigation data of intermediate data format by second step, obtains the mesh of intermediate data format Mark navigation data.
The Data Format Transform of the target navigation data of intermediate data format is target data format, obtained by third step Target navigation data.
For example, if the navigation data received is Protocol buffers format, and pre-stored parameter is believed Breath is JSON format, then can convert the navigation data received to first with existing some Data Format Transform tools JSON format.Then, parameter information is added in the navigation data of JSON format.And then will be added to parameter information it The navigation data of JSON format afterwards is converted to the data of Protocol buffers format.
Step 205, target navigation data are sent to client.
In the present embodiment, it after client receives target navigation data, can be opened up according to the processing logic of navigation application Show the target navigation information of target navigation data instruction.
With continued reference to the application that Fig. 3, Fig. 3 are according to the method for the navigation information for testing navigation application of the present embodiment One schematic diagram of scene.In the application scenarios of Fig. 3, executing subject can be testing service device 302.It can in client 301 To be equipped with map application, test interface is provided in map application, as shown in the figure, tester can be in client Select starting point for " A " on 301, terminal is " B " route, it is also an option that target navigation information to be tested is " failure detour ".
After tester selects in client 301, client 301 can send to testing service device 302 and request Test the test request 303 of " failure detour ".As shown in the figure, it can wrap in test request 303 containing instruction starting point (" starting point =A ") and terminal (" terminal=B ") route information and indicate " failure detour " to be tested identification information " 1 ".Wherein, exist The testable each navigation information shown in map application and the corresponding relationship (as shown in figure label 304) of mark can be It pre-sets.
The test request 303 received can be forwarded to application server 305 by testing service device 302.Application server Current corresponding navigation data 306 can be returned according to the route information for including in test request 303.As shown in the figure, it returns The instruction of navigation data 306 " directly walked southwards from A 200 meters turn left B ".
Testing service device 302 can be searched from the mapping table 307 of pre-stored navigation information and parameter information Parameter information corresponding with " failure detour " to be tested is " S1 ".Later, parameter information " S1 " can be added to and is received In navigation data 306, modified navigation data 308 is obtained.Meanwhile modified navigation data 308 can be sent to visitor Family end 301.Wherein, the mapping table 307 of navigation information and parameter information can be is developing from application server 305 in advance When the relevant documentation that is arranged and search in code logic and store.
Client can be shown 309 in corresponding navigation information such as figure after receiving modified navigation data 308 Shown, in navigation, " front failure please detour for push!" navigation hint information.
The method provided by the above embodiment of the application is sent route information by receiving the test request of client It to application server, to receive the navigation data of application server return, and modifies to navigation data, so that after modification Navigation data include parameter information corresponding to navigation information to be tested, and modified navigation data is sent to visitor Family end, so that client can show navigation information to be tested.Later, tester can show according to client Navigation information carries out judging whether to meet expected effect.This test mode makes client not need to be touched according to current road conditions Send out navigation information corresponding, under any road conditions, by modifying navigation data client can be triggered and show to The navigation information of test, to help to be promoted the coverage rate and testing efficiency of the test to navigation information.
With further reference to Fig. 4, it illustrates another embodiments of the method for the navigation information for testing navigation application Process 400.This is used to test the process 400 of the navigation information of navigation application, comprising the following steps:
Step 401, the test request of client is sent request for test target navigation information is received, wherein test request In include route information and the identification information for identifying target navigation information.
Step 402, test request is forwarded to application server, receives application server and is led based on what route information returned Boat data.
Step 403, it is based on identification information, obtains parameter that application server is arranged, for indicating target navigation information Information.
The specific implementation procedure of above-mentioned steps 401,402 and 403 can refer to step 201 in Fig. 2 corresponding embodiment, 202 and 203 related description, details are not described herein.
Step 404, include dynamic navigation information in response to determining target navigation information, following step can be executed:
Step 4041, it is based on dynamic navigation information, the dynamic requests of request dynamic navigation information are sent to application server.
In the present embodiment, above-mentioned executing subject can also be sent out again while requesting to application server transmitted test Dynamic requests are sent, return to the corresponding dynamic requests of dynamic navigation information for requesting.It, can be from navigation application and application in practice Server relevant documentation (such as exploitation when, the communication protocol and code logic that are arranged between navigation application and application server Deng) in search the specific formats of the corresponding dynamic requests of dynamic navigation information, can then proceed in corresponding format and construct one Dynamic requests are sent to application server.
By taking dynamic navigation information " multi-route push " as an example, due to " multi-route push ", not only application server is needed to return One scheme of the route of reuse family selection, it is also necessary to which application server is pushed away according to the real time information of current road conditions to user Send other optional route plans.Therefore, testing service device can be while requesting to application server transmitted test, Xiang Ying The request for requesting other optional route plans is sent with server.
Step 4042, the dynamic data that application server is returned based on dynamic requests is received.
In the present embodiment, application server can be according to the dynamic requests received, according to the processing of application server Logic returns to corresponding dynamic data.
Step 4043, it is based on dynamic data and parameter information, navigation data is handled to obtain dynamic object navigation Data.
In the present embodiment, above-mentioned executing subject can be believed according to the navigation data, dynamic data and parameter received Breath, these data are combined to obtain dynamic object navigation data according to certain format.Specifically, can be according to navigation The format for the reception data being arranged in exploitation is applied to be combined navigation data, dynamic data and parameter information.
In some optional implementations of the present embodiment, dynamic data, navigation data, parameter information data lattice When formula is consistent, dynamic data and parameter information will can be added in navigation data, to obtain dynamic object navigation data.
Step 405, dynamic object navigation data is sent to client.
The specific implementation procedure of this step can refer to the related description of the step 205 in Fig. 2 corresponding embodiment, herein not It repeats again.
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, the process of the information-pushing method in the present embodiment 400 highlight when navigation information to be tested includes dynamic navigation information, can retransmit dynamic requests to application server, And the step of receiving the dynamic data corresponding to dynamic navigation information of application server return.The present embodiment describes as a result, Scheme can send the request of different number, and will be each according to the difference of navigation information to be tested to application server The navigation data that a request returns, which is combined, relays to client to be shown, and further improves and believes various navigation The effective triggering and test of breath.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides answer for testing navigation One embodiment of the device of navigation information, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, the device It specifically can be applied in various electronic equipments.
As shown in figure 5, the device 500 provided in this embodiment for testing the navigation information of navigation application includes receiving list Member 501, acquiring unit 502, processing unit 503 and transmission unit 504.Wherein, receiving unit 501 is configured to receive client The send, test request of request for test target navigation information, wherein include route information and for identifying in test request The identification information of target navigation information;Receiving unit 501 is further configured to test request being forwarded to application server, connects Receive the navigation data that application server is returned based on route information;Acquiring unit 502 is configured to based on identification information, and acquisition is answered Parameter information be arranged with server, for indicating target navigation information;Processing unit 503 is configured in response to determine mesh It marks navigation information and does not include dynamic navigation information, be based on parameter information, navigation data handled to obtain target navigation number According to;Transmission unit 504 is configured to target navigation data being sent to client.
In the present embodiment, in the device 500 of the navigation information for testing navigation application: receiving unit 501 obtains list Member 502, the specific processing of processing unit 503 and transmission unit 504 and its brought technical effect can be corresponding with reference to Fig. 2 respectively The related description of step 201, step 202, step 203, step 204 and step 205 in embodiment, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned processing unit 503 is further configured to: in response to It determines that navigation data is consistent with the data format of parameter information, parameter information is added in navigation data to obtain target navigation Data.
In some optional implementations of the present embodiment, above-mentioned processing unit 503 is further configured to: in response to It determines that the data format of navigation data and parameter information is inconsistent, the data format of navigation data is determined as target data lattice The data format of parameter information is determined as intermediate data format, and carries out Data Format Transform to navigation data to obtain by formula To the navigation data of intermediate data format;Parameter information is added in the navigation data of intermediate data format to obtain mediant According to the target navigation data of format;It is target data format by the Data Format Transform of the target navigation data of intermediate data format To obtain target navigation data.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 further include: transmission unit (does not show in figure It is configured in response to determine that target navigation information includes dynamic navigation information out), dynamic navigation information is based on, to application service The dynamic requests of device transmission request dynamic navigation information;Above-mentioned receiving unit 501 is further configured to receive application server The dynamic data returned based on dynamic requests;Above-mentioned processing unit 503 is further configured to believe based on dynamic data and parameter Breath, is handled navigation data to obtain dynamic object navigation data;Above-mentioned transmission unit 504 is further configured to move State target navigation data are sent to client.
In some optional implementations of the present embodiment, above-mentioned processing unit 503 is further configured to: in response to Dynamic data, navigation data, the data format of parameter information are consistent, and dynamic data and parameter information are added in navigation data To obtain dynamic object navigation data.
In some optional implementations of the present embodiment, above-mentioned parameter information includes parameter name and parameter value.
In some optional implementations of the present embodiment, above-mentioned receiving unit 501 is further configured to: with encryption Mode test request is forwarded to application server.
The device provided by the above embodiment of the application receives client is sent, request for test mesh by receiving unit Mark the test request of navigation information, wherein include route information and the mark for identifying target navigation information in test request Know information;Test request is forwarded to application server, receives the navigation data that application server is returned based on route information;It obtains It takes unit to be based on identification information, obtains parameter information that application server is arranged, for indicating target navigation information;Processing is single Member in response to determine target navigation information do not include dynamic navigation information, be based on parameter information, to navigation data handled with Obtain target navigation data;Target navigation data are sent to client by transmission unit, are wanted so that client can trigger The target navigation information of test, alleviate navigation information to be tested and client selection route real-time road between according to The relationship of relying, facilitates the coverage rate and testing efficiency that promote the test to navigation information.
As shown in fig. 6, it illustrates one of the system of the navigation information according to the application for testing navigation application The timing diagram 600 of embodiment.
The system of the navigation information for testing navigation application in the embodiment of the present application may include: client, test Server and application server.Wherein, navigation application can be installed, application server can be as in client in client Navigation application the back-end server supported is provided, testing service device can be the navigation information to the navigation application in client's section The server tested.
As shown in fig. 6, in step 601, client can send request for test target navigation information to testing service device Test request.Wherein, it is can wrap in test request containing route information and the identification information for identifying target navigation information.
In step 602, testing service device can forward the test request received to application server.
In step 603, application server can be according to the route information in test request, to the return pair of testing service device The navigation data answered.
In step 604, the setting of testing service device available server, parameter for indicating target navigation information Information, and it is based on parameter information, to when target navigation information does not include dynamic navigation information, navigation data is handled to obtain To target navigation data.
In step 605, testing service device can send target navigation data to client.
In step 606, client can show target navigation information according to target navigation data are received.
The specific implementation procedure of above-mentioned steps 601-606 can refer to the phase of the step 201-205 in Fig. 2 corresponding embodiment It speaks on somebody's behalf bright, details are not described herein.
The system provided by the above embodiment for testing the navigation information of navigation application of the application by test by being taken The test request for device forwarding client of being engaged in is to application server, to receive the navigation data of application server return, and to leading Boat data are modified, so that modified navigation data includes parameter information corresponding to navigation information to be tested, and Modified navigation data is sent to client, so that client can show navigation information to be tested.Later, it surveys Examination personnel can carry out judging whether to meet expected effect according to the navigation information that client is shown.This test mode makes Client is not needed can be by testing service device under any road conditions according to the corresponding navigation information of current road conditions triggering It receives navigation data and modifies and client is triggered and shows navigation information to be tested, to facilitate promotion pair The coverage rate and testing efficiency of the test of navigation information.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the server for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Server shown in Fig. 7 is only an example, should not function and use scope band to the embodiment of the present application Carry out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes Above-mentioned function.
It should be noted that the computer-readable medium of the application can be computer-readable signal media or computer Readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor, packet Include receiving unit, acquiring unit, processing unit and transmission unit.Wherein, the title of these units not structure under certain conditions The restriction of the pairs of unit itself, for example, receiving unit is also described as " receiving client is sent, request for test mesh Mark the unit of the test request of navigation information ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in server described in above-described embodiment;It is also possible to individualism, and without in the supplying server.It is above-mentioned Computer-readable medium carries one or more program, when said one or multiple programs are executed by the server, So that the server: receiving the test request of client is sent request for test target navigation information, include in test request Route information and identification information for identifying target navigation information;Test request is forwarded to application server, receives application The navigation data that server is returned based on route information;Based on identification information, obtain application server setting, for indicating mesh Mark the parameter information of navigation information;It is right based on parameter information in response to determining that target navigation information does not include dynamic navigation information Navigation data is handled to obtain target navigation data;Target navigation data are sent to client.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (17)

1. a kind of method for testing the navigation information of navigation application is applied to testing service device, the testing service device point It is not connect with the application server and client communication for supporting the navigation application, which comprises
Receive the test request of the client is sent request for test target navigation information, wherein wrap in the test request Identification information containing route information and for identifying the target navigation information;
The test request is forwarded to the application server, the application server is received and is returned based on the route information Navigation data;
Based on the identification information, parameter that the application server is arranged, for indicating the target navigation information is obtained Information;
Dynamic navigation information is not included in response to the determination target navigation information, based on the parameter information, to the navigation Data are handled to obtain target navigation data;The target navigation data are sent to the client.
2. according to the method described in claim 1, wherein, the information based on the parameter, at the navigation data Reason is to obtain target navigation data, comprising:
It is consistent with the data format of the parameter information in response to the determination navigation data, the parameter information is added to institute It states in navigation data to obtain target navigation data.
3. according to the method described in claim 1, wherein, the information based on the parameter, at the navigation data Reason is to obtain target navigation data, comprising:
It is inconsistent in response to the determination navigation data and the data format of the parameter information, by the data of the navigation data Format is determined as target data format, the data format of the parameter information is determined as intermediate data format, and to described Navigation data carries out Data Format Transform to obtain the navigation data of intermediate data format;
The parameter information is added in the navigation data of the intermediate data format to obtain the target of intermediate data format Navigation data;
It is the target data format to obtain mesh by the Data Format Transform of the target navigation data of the intermediate data format Mark navigation data.
4. according to the method described in claim 1, wherein, the method also includes:
Include dynamic navigation information in response to the determination target navigation information, is based on the dynamic navigation information, is answered to described The dynamic requests of request dynamic navigation information are sent with server;
Receive the dynamic data that the application server is returned based on the dynamic requests;
Based on the dynamic data and the parameter information, the navigation data is handled to obtain dynamic object navigation number According to;The dynamic object navigation data is sent to the client.
5. it is described to be based on the dynamic data and the parameter information according to the method described in claim 4, wherein, to described Navigation data is handled to obtain dynamic object navigation data, comprising:
It is consistent in response to the dynamic data, the navigation data, the data format of the parameter information, by the dynamic data It is added in the navigation data with the parameter information to obtain dynamic object navigation data.
6. according to the method described in claim 1, wherein, the parameter information includes parameter name and parameter value.
7. method described in one of -6 according to claim 1, wherein described that the test request is forwarded to the application service Device, comprising:
The test request is forwarded to the application server in a manner of encryption.
8. a kind of for testing the device of the navigation information of navigation application, comprising:
Receiving unit is configured to receive the test request of the client is sent request for test target navigation information, In, it include route information and the identification information for identifying the target navigation information in the test request;
The receiving unit is further configured to the test request being forwarded to the application server, answer described in reception The navigation data returned with server based on the route information;
Acquiring unit, is configured to based on the identification information, obtain the application server setting, for indicating the mesh Mark the parameter information of navigation information;
Processing unit is configured in response to determine that the target navigation information does not include dynamic navigation information, is based on the ginseng Number information, is handled the navigation data to obtain target navigation data;
Transmission unit is configured to the target navigation data being sent to the client.
9. device according to claim 8, wherein the processing unit is further configured to:
It is consistent with the data format of the parameter information in response to the determination navigation data, the parameter information is added to institute It states in navigation data to obtain target navigation data.
10. device according to claim 8, wherein the processing unit is further configured to:
It is inconsistent in response to the determination navigation data and the data format of the parameter information, by the data of the navigation data Format is determined as target data format, the data format of the parameter information is determined as intermediate data format, and to described Navigation data carries out Data Format Transform to obtain the navigation data of intermediate data format;
The parameter information is added in the navigation data of the intermediate data format to obtain the target of intermediate data format Navigation data;
It is the target data format to obtain mesh by the Data Format Transform of the target navigation data of the intermediate data format Mark navigation data.
11. device according to claim 8, wherein described device further include:
Transmission unit is configured in response to determine that the target navigation information includes dynamic navigation information, is based on the dynamic Navigation information sends the dynamic requests of request dynamic navigation information to the application server;
The receiving unit is further configured to receive the dynamic number that the application server is returned based on the dynamic requests According to;
The processing unit is further configured to based on the dynamic data and the parameter information, to the navigation data It is handled to obtain dynamic object navigation data;
The transmission unit is further configured to the dynamic object navigation data being sent to the client.
12. device according to claim 11, wherein the processing unit is further configured to:
It is consistent in response to the dynamic data, the navigation data, the data format of the parameter information, by the dynamic data It is added in the navigation data with the parameter information to obtain dynamic object navigation data.
13. device according to claim 8, wherein the parameter information includes parameter name and parameter value.
14. the device according to one of claim 8-13, wherein the receiving unit is further configured to:
The test request is forwarded to the application server in a manner of encryption.
15. a kind of system for testing the navigation information of navigation application, the system comprises client, for supporting described lead Navigate the application server applied, the testing service device for supporting test;
The client is configured to send the test request of request for test target navigation information, wherein in the test request It include route information and the identification information for identifying the target navigation information;
The testing service device is configured to the test request being forwarded to the application server, receives the application clothes The navigation data that business device is returned based on the route information;Based on the identification information, obtain the application server setting, For indicating the parameter information of the target navigation information;Dynamic navigation letter is not included in response to the determination target navigation information Breath, information, is handled the navigation data to obtain target navigation data based on the parameter;By the target navigation number According to being forwarded to the client;
The client is further configured to show the target navigation information according to the target navigation data.
16. a kind of server, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
17. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Method as described in any in claim 1-7.
CN201810923531.6A 2018-08-14 2018-08-14 Navigation information method and device for testing navigation application Active CN109086210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810923531.6A CN109086210B (en) 2018-08-14 2018-08-14 Navigation information method and device for testing navigation application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810923531.6A CN109086210B (en) 2018-08-14 2018-08-14 Navigation information method and device for testing navigation application

Publications (2)

Publication Number Publication Date
CN109086210A true CN109086210A (en) 2018-12-25
CN109086210B CN109086210B (en) 2020-07-03

Family

ID=64834728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810923531.6A Active CN109086210B (en) 2018-08-14 2018-08-14 Navigation information method and device for testing navigation application

Country Status (1)

Country Link
CN (1) CN109086210B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113029196A (en) * 2021-03-02 2021-06-25 北京白龙马云行科技有限公司 Navigation application test method and test platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021077A (en) * 2014-06-10 2014-09-03 广州市久邦数码科技有限公司 Mobile terminal software test system and method
CN104457790A (en) * 2014-11-27 2015-03-25 百度在线网络技术(北京)有限公司 Method for evaluating inductive effect of navigation product, testing device and construction method for testing device
CN104596531A (en) * 2014-05-28 2015-05-06 腾讯科技(深圳)有限公司 Navigation route generation method, navigation route generation apparatus, and server
CN104977014A (en) * 2014-11-20 2015-10-14 腾讯科技(深圳)有限公司 Navigation method and navigation apparatus of terminal
CN106643771A (en) * 2016-12-30 2017-05-10 上海博泰悦臻网络技术服务有限公司 Navigation route selection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104596531A (en) * 2014-05-28 2015-05-06 腾讯科技(深圳)有限公司 Navigation route generation method, navigation route generation apparatus, and server
CN104021077A (en) * 2014-06-10 2014-09-03 广州市久邦数码科技有限公司 Mobile terminal software test system and method
CN104977014A (en) * 2014-11-20 2015-10-14 腾讯科技(深圳)有限公司 Navigation method and navigation apparatus of terminal
CN104457790A (en) * 2014-11-27 2015-03-25 百度在线网络技术(北京)有限公司 Method for evaluating inductive effect of navigation product, testing device and construction method for testing device
CN106643771A (en) * 2016-12-30 2017-05-10 上海博泰悦臻网络技术服务有限公司 Navigation route selection method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113029196A (en) * 2021-03-02 2021-06-25 北京白龙马云行科技有限公司 Navigation application test method and test platform

Also Published As

Publication number Publication date
CN109086210B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN109062563B (en) Method and device for generating page
CN109472524A (en) Information processing method and device
CN108574604A (en) test method and device
CN110119294A (en) The generation method of menu page, apparatus and system
CN109272133A (en) Method and apparatus for reserving vehicle
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
CN109684188A (en) Test method and device
CN110209315A (en) The display methods of character, device, electronic equipment and storage medium in user interface
CN110263565A (en) Method and apparatus for calling service
CN110232091A (en) Mthods, systems and devices for synchrodata
CN109857577A (en) Access control method, device, medium and electronic equipment
CN110516984A (en) Method and apparatus for generating Distribution path information
CN108959087A (en) test method and device
CN109660990A (en) Method and apparatus for scanning wireless access point
CN109818994A (en) Information processing method and device for agent side
CN109819042A (en) For providing the method and apparatus of Software Development Kit
CN108694120A (en) The method and apparatus of testing service component
CN109885564A (en) Method and apparatus for sending information
CN109086210A (en) For testing the navigation information method and apparatus of navigation application
CN109471713A (en) Method and apparatus for query information
CN108989726B (en) Method and apparatus for recorded video
CN108632200A (en) Data transmission method and device
CN109218024A (en) Method and apparatus for control authority
CN106845209A (en) Safe verification method and device
CN109144864A (en) Method and device for test window

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