CN109086210B - Navigation information method and device for testing navigation application - Google Patents

Navigation information method and device for testing navigation application Download PDF

Info

Publication number
CN109086210B
CN109086210B CN201810923531.6A CN201810923531A CN109086210B CN 109086210 B CN109086210 B CN 109086210B CN 201810923531 A CN201810923531 A CN 201810923531A CN 109086210 B CN109086210 B CN 109086210B
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.)
Active
Application number
CN201810923531.6A
Other languages
Chinese (zh)
Other versions
CN109086210A (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.)
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

Images

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 application discloses a method for testing navigation information of a navigation application. One embodiment of the method comprises: receiving a test request which is sent by a client and requests for testing target navigation information, wherein the test request comprises route information and identification information used for identifying the target navigation information; forwarding the test request to an application server, and receiving navigation data returned by the application server based on the route information; acquiring parameter information which is set by the application server and used for representing target navigation information based on the identification information; in response to determining that the target navigation information does not include dynamic navigation information, processing the navigation data based on the parameter information to obtain target navigation data; the target navigation data are sent to the client, so that the client can trigger target navigation information to be tested, and the coverage rate and the testing efficiency of the navigation information testing are improved.

Description

Navigation information method and device for testing navigation application
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a navigation information method and a navigation information device for testing navigation application.
Background
At present, for various navigation information provided in navigation application, a tester usually selects a route at a client installed with the navigation application, and triggers the navigation information corresponding to the current road condition according to the real-time road condition. Real-time road conditions are difficult to control, and therefore navigation information set for some road conditions with small probability is difficult to trigger.
Disclosure of Invention
The embodiment of the application provides a method and a device for testing navigation information of a navigation application.
In a first aspect, an embodiment of the present application provides a method for testing navigation information of a navigation application, where the method is applied to a test server, and the test server is in communication connection with an application server and a client that support the navigation application, respectively, and the method includes: receiving a test request which is sent by a client and requests for testing target navigation information, wherein the test request comprises route information and identification information used for identifying the target navigation information; forwarding the test request to an application server, and receiving navigation data returned by the application server based on the route information; acquiring parameter information which is set by the application server and used for representing target navigation information based on the identification information; in response to determining that the target navigation information does not include dynamic navigation information, processing the navigation data based on the parameter information to obtain target navigation data; and sending the target navigation data to the client.
In some embodiments, processing the navigation data to obtain target navigation data based on the parameter information includes: and in response to determining that the navigation data is consistent with the data format of the parameter information, adding the parameter information to the navigation data to obtain target navigation data.
In some embodiments, processing the navigation data to obtain target navigation data based on the parameter information includes: in response to the fact that the navigation data are inconsistent with the data format of the parameter information, determining the data format of the navigation data as a target data format, determining the data format of the parameter information as an intermediate data format, and performing data format conversion on the navigation data to obtain the navigation data in the intermediate data format; adding the parameter information into the navigation data in the intermediate data format to obtain target navigation data in the intermediate data format; and converting the data format of the target navigation data in the intermediate data format into a target data format to obtain the target navigation data.
In some embodiments, the above method further comprises: in response to determining that the target navigation information includes dynamic navigation information, sending a dynamic request to the application server requesting the dynamic navigation information based on the dynamic navigation information; receiving dynamic data returned by the application server based on the dynamic request; and processing the navigation data based on the dynamic data and the parameter information to obtain dynamic target navigation data.
In some embodiments, processing the navigation data to obtain dynamic target navigation data based on the dynamic data and the parameter information includes: and responding to the consistency of the data formats of the dynamic data, the navigation data and the parameter information, adding the dynamic data and the parameter information into the navigation data to obtain dynamic target navigation data, and sending the dynamic target navigation data to the client.
In some embodiments, the parameter information includes a parameter name and a parameter value.
In some embodiments, forwarding the test request to the application server includes: the test request is forwarded to the application server in an encrypted manner.
In a second aspect, an embodiment of the present application provides an apparatus for testing navigation information of a navigation application, where the apparatus includes: the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive a test request which is sent by a client and requests to test target navigation information, and the test request comprises route information and identification information used for identifying the target navigation information; the receiving unit is further configured to forward the test request to the application server, and receive navigation data returned by the application server based on the route information; an acquisition unit configured to acquire parameter information indicating target navigation information set by the application server based on the identification information; a processing unit configured to process the navigation data to obtain target navigation data based on the parameter information in response to determining that the target navigation information does not contain dynamic navigation information; a sending unit configured to send the target navigation data to the client.
In some embodiments, the processing unit is further configured to: and in response to determining that the navigation data is consistent with the data format of the parameter information, adding the parameter information to the navigation data to obtain target navigation data.
In some embodiments, the processing unit is further configured to: in response to the fact that the navigation data are inconsistent with the data format of the parameter information, determining the data format of the navigation data as a target data format, determining the data format of the parameter information as an intermediate data format, and performing data format conversion on the navigation data to obtain the navigation data in the intermediate data format; adding the parameter information into the navigation data in the intermediate data format to obtain target navigation data in the intermediate data format; and converting the data format of the target navigation data in the intermediate data format into a target data format to obtain the target navigation data.
In some embodiments, the above apparatus further comprises: a sending unit configured to send a dynamic request for requesting the dynamic navigation information to the application server based on the dynamic navigation information in response to determining that the target navigation information contains the dynamic navigation information; the receiving unit is further configured to receive dynamic data returned by the application server based on the dynamic request; a processing unit further configured to process the navigation data to obtain dynamic target navigation data based on the dynamic data and the parameter information; a sending unit further configured to send the dynamic target navigation data to the client.
In some embodiments, the processing unit is further configured to: and responding to the consistency of the data formats of the dynamic data, the navigation data and the parameter information, and adding the dynamic data and the parameter information into the navigation data to obtain dynamic target navigation data.
In some embodiments, the parameter information includes a parameter name and a parameter value.
In some embodiments, the receiving unit is further configured to: the test request is forwarded to the application server in an encrypted manner.
In a third aspect, an embodiment of the present application provides a system for testing navigation information of a navigation application, where the system includes a client, an application server for supporting the navigation application, and a test server for supporting a test; the system comprises a client side, a server and a server, wherein the client side is configured to send a test request for requesting to test target navigation information, and the test request comprises route information and identification information for identifying the target navigation information; the test server is configured to forward the test request to the application server and receive navigation data returned by the application server based on the route information; acquiring parameter information which is set by the application server and used for representing target navigation information based on the identification information; in response to determining that the target navigation information does not include dynamic navigation information, processing the navigation data based on the parameter information to obtain target navigation data; forwarding the target navigation data to the client; and the client is further configured to display the target navigation information according to the target navigation data.
In a fourth aspect, an embodiment of the present application provides a server, where the server includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fifth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
The navigation information testing method for the navigation application comprises the steps of receiving a test request which is sent by a client and is used for requesting to test target navigation information, wherein the test request comprises route information and identification information used for identifying the target navigation information; forwarding the test request to an application server, and receiving navigation data returned by the application server based on the route information; acquiring parameter information which is set by the application server and used for representing target navigation information based on the identification information; in response to determining that the target navigation information does not include dynamic navigation information, processing the navigation data based on the parameter information to obtain target navigation data; the target navigation data is sent to the client, so that the client can trigger target navigation information to be tested, the dependency relationship between the navigation information to be tested and the real-time road condition of the route selected by the client is reduced, and the coverage rate and the testing efficiency of the navigation information testing are improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for testing navigation information of a navigation application according to the present application;
FIG. 3 is a schematic illustration of an application scenario of a method for testing navigation information of a navigation application according to an embodiment of the application;
FIG. 4 is a flow diagram of yet another embodiment of a method for testing navigation information of a navigation application according to the present application;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for testing navigation information of a navigation application according to the present application;
FIG. 6 is a timing diagram of one embodiment of a system for testing navigation information of a navigation application according to the present application;
FIG. 7 is a block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary architecture 100 to which embodiments of the method for testing navigation information of a navigation application or the apparatus for testing navigation information of a navigation application of the present application may be applied.
As shown in FIG. 1, system architecture 100 may include clients 101 and 102, application server 103, and test server 104. The clients 101 and 102, the application server 103, and the test server 104 may be communicatively connected via various types of connections (e.g., wired, wireless communication links, fiber optic cables, etc.).
The navigation applications may be installed on the clients 101 and 102. Clients 101 and 102 may be hardware or software. When the clients 101 and 102 are hardware, they may be various electronic devices having a display screen and installed with a navigation application, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the clients 101 and 102 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The application server 103 may be a server that provides support for navigation applications installed on the clients 101 and 102. The application server 103 may receive the navigation requests sent by the clients 101 and 102 and return the navigation data to the clients 101 and 102.
The test server 104 may be a server for testing navigation information of navigation applications installed on the clients 101 and 102. The test server 104 may receive test requests sent by the clients 101 and 102. The test server 104 may also send a navigation request to the application server 103 and receive navigation data returned by the application server 103. The test server 104 may also send navigation data to the clients 101 and 102.
It should be noted that the method for testing navigation information of a navigation application provided in the embodiment of the present application is generally performed by the test server 104, and accordingly, the device for testing navigation information of a navigation application is generally disposed in the test server 104.
The application server 103 and the test server 104 may be hardware or software. When the application server 103 and the test server 104 are hardware, they may be implemented as a distributed server cluster/distributed device cluster composed of a plurality of servers, or may be implemented as a single server/single device. When the application server 103 and the test server 104 are software, they may be implemented as a plurality of software or software modules (for example, a plurality of software or software modules for providing distributed services), or may be implemented as a single software or software module. And is not particularly limited herein.
It should be understood that the number of clients, application servers, and test servers in fig. 1 is merely illustrative. There may be any number of clients, networks, and servers, as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for testing navigation information of a navigation application in accordance with the present application is shown. The method for testing navigation information of a navigation application comprises the following steps:
step 201, receiving a test request for requesting to test target navigation information sent by a client, wherein the test request includes route information and identification information for identifying the target navigation information.
In this embodiment, a navigation application to be tested can be installed in a client (such as the clients 101 and 102 in fig. 1). A functional interface for sending a test request to an execution subject (e.g., the test server 104 in fig. 1) of a method for testing navigation information of a navigation application may be provided in the navigation application.
For example, a test interface may be added to the navigation application, and various navigation information of the route setting part and the navigation application may be displayed on the test interface. The tester can select a route on the test interface, and can select the navigation information to be tested as the target navigation information, so that the functional interface for sending the test request is called to send the test request for testing the selected target navigation information.
The route information may generally include start point information and end point information, among others. Generally, for each navigation information, identification information may be set in advance to correspond thereto. The identification information may be various information such as a number, a symbol, a character string, and the like.
The navigation information may refer to various pushed navigation-related information that can be received by the navigation application. Generally, the navigation information may be sent to and presented on the client by a back-end server (e.g., application server 103 in fig. 1) that provides support services to the navigation application.
For example, the navigation information may include route guidance data, road condition prompting information, route recommendation information, traffic control information, and the like sent by the application server.
Step 202, the test request is forwarded to the application server, and navigation data returned by the application server based on the route information is received.
In this embodiment, after receiving the test request, the test request may be forwarded to the application server. The application server may be a back-end server for supporting the navigation application. The application server may return the navigation data corresponding to the route information according to the received route information in the test request and the processing logic of the application server.
In some optional implementations of this embodiment, after receiving the test request, the test request may be forwarded to the application server in an encrypted manner, so as to ensure data security during the forwarding process. The specific encryption mode can adopt various existing or possible encryption modes in the future.
For example, after receiving the test request, a parameter signature may be generated for the test request, and after receiving the test request, the application server may verify the parameter signature to confirm whether the test request is tampered during the forwarding process. The encryption method based on the parameter signature is a well-known technique widely studied and applied at present, and is not described herein again.
And step 203, acquiring parameter information which is set by the application server and used for representing the target navigation information based on the identification information.
In this embodiment, the executing body may obtain parameter information corresponding to the identified target navigation information according to the identification information. Generally, the application server may set corresponding parameter information for various navigation information respectively to distinguish the various navigation information. The parameter information corresponding to various navigation information can be generally searched from relevant documents (such as a communication protocol and code logic set between the navigation application and the application server during development) of the navigation application and the application server.
Alternatively, the correspondence between the navigation information and the parameter information may be stored in advance in the execution body. At this time, the corresponding parameter information can be directly searched from the local of the execution main body according to the identifier of the target navigation information.
Alternatively, the correspondence between the navigation information and the parameter information may be stored in another storage device. At this time, the execution main body may search for corresponding parameter information from other storage devices according to the identifier of the target navigation information.
The specific form of the parameter information can be set by a developer during development.
In some optional implementations of this embodiment, the parameter information may include a parameter name and a parameter value. For example, the navigation information may be divided into a plurality of categories (e.g., prompting information, route recommendation information, etc.) in advance, and each specific sub-category may be distinguished by different identifiers in each category (e.g., the prompting information includes driving restriction prompting information, road condition prompting information, etc.). At this time, specific navigation information may be located using the parameter name and the parameter value.
And step 204, in response to determining that the target navigation information does not contain the dynamic navigation information, processing the navigation data based on the parameter information to obtain the target navigation data.
In this embodiment, the dynamic navigation information may refer to navigation information that changes over time, for example, for the route recommendation information, the route recommendation schemes may have differences at different time points.
In practice, various navigation information containing dynamic navigation information may be recorded in advance, for example, such navigation information may be marked, so that whether the target navigation information contains dynamic navigation data may be determined according to whether the target navigation information is found to have a mark.
When the target navigation information does not contain the dynamic navigation information, the navigation data can be directly processed according to the parameter information, so that the target navigation data is obtained. Specifically, the navigation data is processed according to the data format of the parameter information.
In some optional implementation manners of this embodiment, when the data formats of the navigation data and the parameter information are consistent, the parameter information may be added to the navigation data, so as to obtain the target navigation data.
In some optional implementation manners of this embodiment, when the data formats of the navigation data and the parameter information are not consistent, the data format of the navigation data may be determined as the target data format, and the data format of the parameter information may be determined as the intermediate data format. Then, obtaining the target navigation data through the following steps:
firstly, data format conversion is carried out on navigation data to obtain navigation data in an intermediate data format.
And secondly, adding the parameter information into the navigation data in the intermediate data format to obtain target navigation data in the intermediate data format.
And thirdly, converting the data format of the target navigation data in the intermediate data format into a target data format to obtain the target navigation data.
For example, if the received navigation data is in Protocol buffers format and the pre-stored parameter information is in JSON format, the received navigation data may be converted into JSON format by using some existing data format conversion tools. Then, the parameter information is added to the navigation data in JSON format. And then converting the navigation data in the JSON format added with the parameter information into data in a Protocol buffers format.
Step 205, sending the target navigation data to the client.
In this embodiment, after receiving the target navigation data, the client may display the target navigation information indicated by the target navigation data according to the processing logic of the navigation application.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for testing navigation information of a navigation application according to the present embodiment. In the application scenario of fig. 3, the execution agent may be the test server 302. The client 301 may have a map application installed thereon, and a test interface is provided in the map application, as shown in the figure, a tester may select a route with a starting point "a" and an ending point "B" on the client 301, and may also select target navigation information to be tested as "trouble-around".
After the tester selects on the client 301, the client 301 may send a test request 303 to the test server 302 requesting a test "trouble-around". As shown in the drawing, route information indicating a start point ("start point ═ a") and an end point ("end point ═ B") and identification information "1" indicating "trouble-around" to be tested may be contained in the test request 303. The correspondence (as shown by reference numeral 304 in the figure) between each piece of testable navigation information and the identifier displayed in the map application may be preset.
The test server 302 may forward the received test request 303 to the application server 305. The application server may return the currently corresponding navigation data 306 according to the route information contained in the test request 303. As shown in the figure, the navigation data 306 returned indicates "walk 200 meters left turn to B from A south".
The test server 302 may look up "S1" as the parameter information corresponding to "fail around" to be tested from the prestored correspondence table 307 of navigation information and parameter information. Thereafter, parameter information "S1" may be added to the received navigation data 306, resulting in modified navigation data 308. At the same time, the modified navigation data 308 may be sent to the client 301. The correspondence table 307 of the navigation information and the parameter information may be previously searched and stored from the relevant document and code logic set by the application server 305 at the time of development.
After receiving the modified navigation data 308, the client can display the corresponding navigation information as shown in 309, and when navigating, push "forward failure, please detour! "navigation prompt information.
The method provided by the embodiment of the application receives the test request of the client and sends the route information to the application server, so that the navigation data returned by the application server is received and is modified, the modified navigation data comprises the parameter information corresponding to the navigation information to be tested, and the modified navigation data is sent to the client, so that the client can display the navigation information to be tested. And then, the tester can judge whether the expected effect is met according to the navigation information displayed by the client. The test mode ensures that the client does not need to trigger the corresponding navigation information according to the current road condition, and the client can trigger and display the navigation information to be tested by modifying the navigation data under any road condition, thereby being beneficial to improving the coverage rate and the test efficiency of the test of the navigation information.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for testing navigation information of a navigation application is shown. The process 400 for testing navigation information of a navigation application includes the following steps:
step 401, receiving a test request for requesting to test target navigation information sent by a client, where the test request includes route information and identification information for identifying the target navigation information.
Step 402, the test request is forwarded to the application server, and navigation data returned by the application server based on the route information is received.
And step 403, acquiring parameter information which is set by the application server and used for representing the target navigation information based on the identification information.
The specific implementation process of the steps 401, 402, and 403 may refer to the related descriptions of the steps 201, 202, and 203 in the corresponding embodiment of fig. 2, and will not be described herein again.
In response to determining that the target navigation information contains dynamic navigation information, step 404, may perform the following steps:
step 4041, based on the dynamic navigation information, sends a dynamic request to the application server requesting the dynamic navigation information.
In this embodiment, the execution main body may further send a dynamic request for requesting to return a dynamic request corresponding to the dynamic navigation information while forwarding the test request to the application server. In practice, a specific format of a dynamic request corresponding to dynamic navigation information may be searched from relevant documents (e.g., a communication protocol and code logic set between the navigation application and the application server during development, etc.) of the navigation application and the application server, and then a dynamic request may be constructed according to the corresponding format and sent to the application server.
Taking the dynamic navigation information "multi-route push" as an example, due to the "multi-route push", not only one scheme of the route selected by the user needs to be returned by the application server, but also other selectable route schemes need to be pushed to the user by the application server according to the real-time information of the current road condition. Thus, the test server may send a request to the application server requesting an alternative routing scheme while forwarding the test request to the application server.
Step 4042, receive the dynamic data returned by the application server based on the dynamic request.
In this embodiment, the application server may return the corresponding dynamic data according to the processing logic of the application server according to the received dynamic request.
Step 4043, based on the dynamic data and the parameter information, the navigation data is processed to obtain dynamic target navigation data.
In this embodiment, the executing entity may combine the received navigation data, dynamic data, and parameter information according to a certain format to obtain dynamic target navigation data. Specifically, the navigation data, the dynamic data, and the parameter information may be combined according to a format of the received data set when the navigation application is developed.
In some optional implementation manners of this embodiment, when the data formats of the dynamic data, the navigation data, and the parameter information are consistent, the dynamic data and the parameter information may be added to the navigation data, so as to obtain the dynamic target navigation data.
Step 405, sending the dynamic target navigation data to the client.
The specific implementation process of this step can refer to the related description of step 205 in the corresponding embodiment of fig. 2, and is not repeated here.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the information pushing method in this embodiment highlights a step of sending a dynamic request to the application server again and receiving dynamic data corresponding to the dynamic navigation information returned by the application server when the navigation information to be tested contains the dynamic navigation information. Therefore, the scheme described in this embodiment can send different numbers of requests to the application server according to different navigation information to be tested, combine navigation data returned by each request, and forward the navigation data to the client for display, thereby further promoting effective triggering and testing of various navigation information.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for testing navigation information of a navigation application, which corresponds to the embodiment of the method shown in fig. 2, and which may be applied in various electronic devices.
As shown in fig. 5, the apparatus 500 for testing navigation information of a navigation application provided by the present embodiment includes a receiving unit 501, an obtaining unit 502, a processing unit 503, and a transmitting unit 504. The receiving unit 501 is configured to receive a test request, which is sent by a client and requests to test target navigation information, where the test request includes route information and identification information for identifying the target navigation information; the receiving unit 501 is further configured to forward the test request to an application server, receive navigation data returned by the application server based on the route information; the acquisition unit 502 is configured to acquire parameter information indicating target navigation information set by the application server based on the identification information; the processing unit 503 is configured to, in response to determining that the target navigation information does not contain dynamic navigation information, process the navigation data to obtain target navigation data based on the parameter information; the sending unit 504 is configured to send the target navigation data to the client.
In the present embodiment, in the apparatus 500 for testing navigation information of a navigation application: the specific processing of the receiving unit 501, the obtaining unit 502, the processing unit 503 and the sending unit 504 and the technical effects brought by the processing can refer to the related descriptions of step 201, step 202, step 203, step 204 and step 205 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the processing unit 503 is further configured to: and in response to determining that the navigation data is consistent with the data format of the parameter information, adding the parameter information to the navigation data to obtain target navigation data.
In some optional implementations of this embodiment, the processing unit 503 is further configured to: in response to the fact that the navigation data are inconsistent with the data format of the parameter information, determining the data format of the navigation data as a target data format, determining the data format of the parameter information as an intermediate data format, and performing data format conversion on the navigation data to obtain the navigation data in the intermediate data format; adding the parameter information into the navigation data in the intermediate data format to obtain target navigation data in the intermediate data format; and converting the data format of the target navigation data in the intermediate data format into a target data format to obtain the target navigation data.
In some optional implementations of this embodiment, the apparatus 500 further includes: a sending unit (not shown in the figure) is configured to send a dynamic request for requesting the dynamic navigation information to the application server based on the dynamic navigation information in response to determining that the target navigation information contains the dynamic navigation information; the receiving unit 501 is further configured to receive dynamic data returned by the application server based on the dynamic request; the processing unit 503 is further configured to process the navigation data to obtain dynamic target navigation data based on the dynamic data and the parameter information; the sending unit 504 is further configured to send the dynamic target navigation data to the client.
In some optional implementations of this embodiment, the processing unit 503 is further configured to: and responding to the consistency of the data formats of the dynamic data, the navigation data and the parameter information, and adding the dynamic data and the parameter information into the navigation data to obtain dynamic target navigation data.
In some optional implementations of this embodiment, the parameter information includes a parameter name and a parameter value.
In some optional implementations of this embodiment, the receiving unit 501 is further configured to: the test request is forwarded to the application server in an encrypted manner.
The device provided by the above embodiment of the present application receives, by a receiving unit, a test request for requesting to test target navigation information, where the test request includes route information and identification information for identifying the target navigation information; forwarding the test request to an application server, and receiving navigation data returned by the application server based on the route information; the acquisition unit acquires parameter information which is set by the application server and used for representing target navigation information based on the identification information; the processing unit responds to the fact that the target navigation information does not contain the dynamic navigation information, and based on the parameter information, the navigation data are processed to obtain target navigation data; the sending unit sends the target navigation data to the client, so that the client can trigger target navigation information to be tested, the dependency relationship between the navigation information to be tested and the real-time road condition of the route selected by the client is reduced, and the coverage rate and the testing efficiency of the navigation information testing are improved.
As shown in fig. 6, a timing diagram 600 of one embodiment of a system for testing navigation information of a navigation application according to the present application is shown.
The system for testing navigation information of a navigation application in the embodiment of the application may include: the system comprises a client, a test server and an application server. The client may be installed with a navigation application, the application server may be a back-end server providing support for the navigation application on the client, and the test server may be a server testing navigation information of the navigation application on the client.
As shown in fig. 6, in step 601, the client may send a test request to the test server requesting navigation information of the test target. The test request may include route information and identification information for identifying the target navigation information.
In step 602, the test server may forward the received test request to the application server.
In step 603, the application server may return corresponding navigation data to the test server according to the route information in the test request.
In step 604, the test server may obtain parameter information set by the server and used for representing the target navigation information, and based on the parameter information, process the navigation data to obtain the target navigation data when the target navigation information does not include the dynamic navigation information.
In step 605, the test server may send the target navigation data to the client.
In step 606, the client may present the target navigation information according to the received target navigation data.
The specific execution process of the steps 601-606 can refer to the related description of the step 201-205 in the corresponding embodiment of fig. 2, and will not be described herein again.
The system for testing the navigation information of the navigation application, provided by the embodiment of the application, receives the navigation data returned by the application server by forwarding the test request of the client to the application server through the test server, modifies the navigation data so that the modified navigation data includes the parameter information corresponding to the navigation information to be tested, and sends the modified navigation data to the client, so that the client can display the navigation information to be tested. And then, the tester can judge whether the expected effect is met according to the navigation information displayed by the client. The test mode ensures that the client does not need to trigger the corresponding navigation information according to the current road condition, and the client can trigger and display the navigation information to be tested by receiving and modifying the navigation data through the test server under any road condition, thereby being beneficial to improving the coverage rate and the test efficiency of the test of the navigation information.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use in implementing a server according to embodiments of the present application. The server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by a Central Processing Unit (CPU)701, performs the above-described functions defined in the method of the present application.
It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an obtaining unit, a processing unit, and a transmitting unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the receiving unit may also be described as a "unit that receives a test request that is sent by a client and requests navigation information of a test target".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the server described in the above embodiments; or may exist separately and not be assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: receiving a test request which is sent by a client and requests for testing target navigation information, wherein the test request comprises route information and identification information used for identifying the target navigation information; forwarding the test request to an application server, and receiving navigation data returned by the application server based on the route information; acquiring parameter information which is set by the application server and used for representing target navigation information based on the identification information; in response to determining that the target navigation information does not include dynamic navigation information, processing the navigation data based on the parameter information to obtain target navigation data; and sending the target navigation data to the client.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (17)

1. A method for testing navigation information of a navigation application, which is applied to a test server, wherein the test server is respectively connected with an application server and a client terminal which support the navigation application in a communication way, and the method comprises the following steps:
receiving a test request which is sent by the client and requests for testing target navigation information, wherein the test request comprises route information and identification information used for identifying the target navigation information, the target navigation information is used for testing, and the navigation information comprises road condition scene information related to a route;
forwarding the test request to the application server, and receiving navigation data returned by the application server based on the route information;
acquiring parameter information which is set by the application server and used for representing the target navigation information based on the identification information;
in response to determining that the target navigation information does not contain dynamic navigation information, adding the parameter information to the navigation data to obtain target navigation data;
and sending the target navigation data to the client.
2. The method of claim 1, wherein the adding the parameter information to the navigation data to obtain target navigation data comprises:
in response to determining that the navigation data is consistent with the data format of the parameter information, adding the parameter information to the navigation data to obtain target navigation data.
3. The method of claim 1, wherein the adding the parameter information to the navigation data to obtain target navigation data comprises:
in response to the fact that the navigation data are inconsistent with the data format of the parameter information, determining the data format of the navigation data as a target data format, determining the data format of the parameter information as an intermediate data format, and performing data format conversion on the navigation data to obtain the navigation data in the intermediate data format;
adding the parameter information to the navigation data in the intermediate data format to obtain target navigation data in the intermediate data format;
and converting the data format of the target navigation data in the intermediate data format into the target data format to obtain the target navigation data.
4. The method of claim 1, wherein the method further comprises:
in response to determining that the target navigation information includes dynamic navigation information, sending a dynamic request to the application server requesting dynamic navigation information based on the dynamic navigation information;
receiving dynamic data returned by the application server based on the dynamic request;
processing the navigation data based on the dynamic data and the parameter information to obtain dynamic target navigation data; and sending the dynamic target navigation data to the client.
5. The method of claim 4, wherein the processing the navigation data to obtain dynamic target navigation data based on the dynamic data and the parameter information comprises:
and in response to the consistency of the data formats of the dynamic data, the navigation data and the parameter information, adding the dynamic data and the parameter information into the navigation data to obtain dynamic target navigation data.
6. The method of claim 1, wherein the parameter information includes a parameter name and a parameter value.
7. The method of any of claims 1-6, wherein said forwarding the test request to the application server comprises:
forwarding the test request to the application server in an encrypted manner.
8. An apparatus for testing navigation information of a navigation application, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive a test request which is sent by a client and requests to test target navigation information, the test request comprises route information and identification information used for identifying the target navigation information, the target navigation information is used for testing, and the navigation information comprises road condition scene information related to a route;
the receiving unit is further configured to forward the test request to an application server, and receive navigation data returned by the application server based on the route information;
an acquisition unit configured to acquire parameter information set by the application server to represent the target navigation information, based on the identification information;
a processing unit configured to add the parameter information to the navigation data to obtain target navigation data in response to determining that the target navigation information does not include dynamic navigation information;
a sending unit configured to send the target navigation data to the client.
9. The apparatus of claim 8, wherein the processing unit is further configured to:
in response to determining that the navigation data is consistent with the data format of the parameter information, adding the parameter information to the navigation data to obtain target navigation data.
10. The apparatus of claim 8, wherein the processing unit is further configured to:
in response to the fact that the navigation data are inconsistent with the data format of the parameter information, determining the data format of the navigation data as a target data format, determining the data format of the parameter information as an intermediate data format, and performing data format conversion on the navigation data to obtain the navigation data in the intermediate data format;
adding the parameter information to the navigation data in the intermediate data format to obtain target navigation data in the intermediate data format;
and converting the data format of the target navigation data in the intermediate data format into the target data format to obtain the target navigation data.
11. The apparatus of claim 8, wherein the apparatus further comprises:
a sending unit configured to send a dynamic request for requesting dynamic navigation information to the application server based on the dynamic navigation information in response to determining that the target navigation information contains dynamic navigation information;
the receiving unit is further configured to receive dynamic data returned by the application server based on the dynamic request;
the processing unit is further configured to process the navigation data to obtain dynamic target navigation data based on the dynamic data and the parameter information;
the sending unit is further configured to send the dynamic target navigation data to the client.
12. The apparatus of claim 11, wherein the processing unit is further configured to:
and in response to the consistency of the data formats of the dynamic data, the navigation data and the parameter information, adding the dynamic data and the parameter information into the navigation data to obtain dynamic target navigation data.
13. The apparatus of claim 8, wherein the parameter information comprises a parameter name and a parameter value.
14. The apparatus according to one of claims 8-13, wherein the receiving unit is further configured to:
forwarding the test request to the application server in an encrypted manner.
15. A system for testing navigation information of a navigation application, the system comprising a client, an application server for supporting the navigation application, a test server for supporting a test;
the client is configured to send a test request for requesting to test target navigation information, wherein the test request comprises route information and identification information for identifying the target navigation information, the target navigation information is used for testing, and the navigation information comprises road condition scene information related to a route;
the test server is configured to forward the test request to the application server, and receive navigation data returned by the application server based on the route information; acquiring parameter information which is set by the application server and used for representing the target navigation information based on the identification information; in response to determining that the target navigation information does not contain dynamic navigation information, adding the parameter information to the navigation data to obtain target navigation data; forwarding the target navigation data to the client;
the client is further configured to display the target navigation information according to the target navigation data.
16. A server, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
17. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 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 CN109086210A (en) 2018-12-25
CN109086210B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113029196B (en) * 2021-03-02 2022-10-18 北京白龙马云行科技有限公司 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

Also Published As

Publication number Publication date
CN109086210A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
CN110708346B (en) Information processing system and method
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
CN107302597B (en) Message file pushing method and device
CN109684188B (en) Test method and device
CN111209202A (en) Terminal application testing method and device
CN109359194B (en) Method and apparatus for predicting information categories
US10614621B2 (en) Method and apparatus for presenting information
CN110134869B (en) Information pushing method, device, equipment and storage medium
CN112597047A (en) Test method, test device, electronic equipment and computer readable medium
CN113010405A (en) Application program testing method and device
CN114386896A (en) Information sending method, page display device, electronic equipment and medium
CN109471713B (en) Method and device for inquiring information
CN109086210B (en) Navigation information method and device for testing navigation application
CN107229565B (en) Test method and device
CN111787041B (en) Method and device for processing data
CN111324470A (en) Method and device for generating information
CN109145591B (en) Plug-in loading method of application program
CN111311358A (en) Information processing method and device and electronic equipment
CN115454956A (en) Log generation method and device, electronic equipment and storage medium
CN113407229B (en) Method and device for generating offline scripts
CN111597485B (en) Information presentation method and device
CN110084298B (en) Method and device for detecting image similarity
CN111222067B (en) Information generation method and device
CN108811036B (en) Method and apparatus for displaying wireless access point information

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