CN104359495A - Application testing method and device - Google Patents
Application testing method and device Download PDFInfo
- Publication number
- CN104359495A CN104359495A CN201410669976.8A CN201410669976A CN104359495A CN 104359495 A CN104359495 A CN 104359495A CN 201410669976 A CN201410669976 A CN 201410669976A CN 104359495 A CN104359495 A CN 104359495A
- Authority
- CN
- China
- Prior art keywords
- information
- application
- tested
- test
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 246
- 238000000034 method Methods 0.000 claims description 62
- 230000008569 process Effects 0.000 claims description 34
- 238000012544 monitoring process Methods 0.000 claims description 29
- 238000001310 location test Methods 0.000 claims description 22
- 230000005856 abnormality Effects 0.000 claims description 18
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000004088 simulation Methods 0.000 description 5
- 238000010998 test method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000003860 storage Methods 0.000 description 4
- 230000002860 competitive effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000011056 performance test Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C25/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
Landscapes
- Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The embodiment of the invention provides an application testing method and a testing device. The testing method comprises the following steps: obtaining the position testing information of an application to be tested; providing the position testing information of the application to be tested to the application to be tested, so as to enable the application to be tested to carry out the operation based on the position testing information and obtain an operation result; and obtaining the testing result of the application to be tested according to the operation result. The technical scheme provided by the embodiment of the invention can improve the application testing efficiency and reduce the consumption cost of the application testing.
Description
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of positioning, in particular to an application testing method and device.
[ background of the invention ]
Before the application is online, the application needs to be tested to obtain a test result of the application, and then the implementation logic of the application can be adjusted and optimized according to the test result. In the prior art, Location Based Service (LBS) applications often require a tester to perform a field test in a test stage. For example, in the test stage of the navigation application, a tester needs to carry a terminal for installing the navigation application to perform actual road test, and needs to rely on simulated navigation operation to realize the test, that is, the tester writes a similar code used in real navigation, and uses the similar code to simulate the navigation process, so as to obtain a test result according to whether an abnormal problem occurs in the navigation process.
However, the testing method applied in the prior art needs to consume a large amount of manpower and material resources to perform actual road testing and simulation testing, so that the testing efficiency of the application is low.
[ summary of the invention ]
In view of this, embodiments of the present invention provide an application testing method and apparatus, which can improve application testing efficiency and reduce various costs consumed by application testing.
In one aspect of the embodiments of the present invention, a method for testing an application is provided, including:
obtaining position test information of an application to be tested;
providing the position test information of the application to be tested to the application to be tested so that the application to be tested can perform operation based on the position test information to obtain an operation result;
and obtaining a test result of the application to be tested according to the operation result.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the obtaining of the location test information of the application to be tested includes:
when the application to be tested has positioning abnormality in the field test process, recording the related position information of the positioning abnormality as the position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the relevant position information of the positioning abnormality comprises at least one of the following information: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the obtaining of the location test information of the application to be tested includes:
obtaining a test configuration file;
obtaining simulated position information of the edge scene from the test configuration file to be used as position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the simulated location information comprises at least one of: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the number of the location test information of the application to be tested is at least one, and the providing the location test information of the application to be tested to the application to be tested includes:
sequentially providing each position test information of the applications to be tested to the applications to be tested; or,
displaying at least one piece of position test information of the to-be-tested application, obtaining position test information selected by a user from the displayed at least one piece of position test information of the to-be-tested application, and providing the selected position test information for the to-be-tested application.
As for the above aspect and any possible implementation manner, there is further provided an implementation manner in which a local monitoring module corresponding to the application to be tested is registered in advance in a data providing module of a terminal where the application to be tested is located, and the providing of the location test information of the application to be tested to the application to be tested includes:
and sending the position test information of the application to be tested to a data providing module of a terminal where the application to be tested is located, so that the data providing module sends the position test information to a registered local monitoring module, and the local monitoring module sends the position test information to the application to be tested corresponding to the local monitoring module.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where obtaining a test result of the application to be tested according to the operation result includes:
comparing the operation result with a preset target result to obtain a comparison result;
and obtaining a test result of the application to be tested according to the comparison result.
In one aspect of the embodiments of the present invention, an applied test apparatus is provided, including:
the information acquisition module is used for acquiring position test information of the application to be tested;
the information replacement module is used for providing the position test information of the application to be tested, which is obtained by the information acquisition module, to the application to be tested so as to facilitate the application to be tested to perform operation based on the position test information to obtain an operation result;
and the result acquisition module is used for acquiring the test result of the application to be tested according to the operation result.
As to the above-mentioned aspects and any possible implementation manner, there is further provided an implementation manner, where the information obtaining module is specifically configured to:
when the application to be tested has positioning abnormality in the field test process, recording the related position information of the positioning abnormality as the position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the relevant position information of the positioning abnormality comprises at least one of the following information: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
As to the above-mentioned aspects and any possible implementation manner, there is further provided an implementation manner, where the information obtaining module is specifically configured to:
obtaining a test configuration file;
obtaining simulated position information of the edge scene from the test configuration file to be used as position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the simulated location information comprises at least one of: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
As for the above-mentioned aspect and any possible implementation manner, there is further provided an implementation manner, where the number of the location test information of the application to be tested is at least one, and the information replacement module is specifically configured to:
sequentially providing each position test information of the applications to be tested to the applications to be tested; or,
displaying at least one piece of position test information of the to-be-tested application, obtaining position test information selected by a user from the displayed at least one piece of position test information of the to-be-tested application, and providing the selected position test information for the to-be-tested application.
As described in the foregoing aspect and any possible implementation manner, an implementation manner is further provided, in which the local monitoring module corresponding to the application to be tested is pre-registered in the data providing module of the terminal where the application to be tested is located, and the information replacing module is specifically configured to:
and sending the position test information of the application to be tested to a data providing module of a terminal where the application to be tested is located, so that the data providing module sends the position test information to a registered local monitoring module, and the local monitoring module sends the position test information to the application to be tested corresponding to the local monitoring module.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the result obtaining module is specifically configured to:
comparing the operation result with a preset target result to obtain a comparison result;
and obtaining a test result of the application to be tested according to the comparison result.
According to the technical scheme, the embodiment of the invention has the following beneficial effects:
compared with the test method which needs the tester to carry out the field test in the prior art, the technical scheme provided by the embodiment of the invention can realize the test of the application to be tested by utilizing the obtained position test data, obtain the test result and does not need the field test of the tester, thereby improving the test efficiency of the application and reducing various costs consumed by the application test.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a diagram of an exemplary system for use with the solution provided by the embodiments of the present invention;
FIG. 2 is a flow chart of a method for testing an application according to an embodiment of the present invention;
FIG. 3 is a diagram of an example architecture for obtaining location information from a location module by an application in a prior art android operating system;
FIG. 4 is a functional block diagram of a testing apparatus for applications according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 1 shows a system used in the technical solution provided in the embodiment of the present invention, where an applied testing apparatus is an execution main body of the testing method provided in the embodiment of the present invention, and the applied testing apparatus may include an information obtaining module, an information replacing module, and a result obtaining module. In addition, the system also comprises an application to be tested, a local monitoring module of the terminal where the application to be tested is located, a data providing module and a local management module.
An embodiment of the present invention provides an application testing method, please refer to fig. 2, which is a schematic flow chart of the application testing method provided in the embodiment of the present invention, and as shown in the figure, the method includes the following steps:
s201, obtaining position test information of the application to be tested.
S202, providing the position test information of the application to be tested to the application to be tested so that the application to be tested can perform operation based on the position test information to obtain an operation result.
S203, obtaining a test result of the application to be tested according to the operation result.
Based on the above applied test method, the embodiment of the present invention specifically describes the method of S201. The step may specifically include:
in the embodiment of the invention, in order to realize the test of the application to be tested and obtain the test result, the position test information required to be used when the application to be tested is tested needs to be obtained first.
For example, in the embodiment of the present invention, the method for obtaining the location test information of the application to be tested may include, but is not limited to, the following two methods:
the first method comprises the following steps: as shown in fig. 1, firstly, a user may carry a terminal where a testing device of the application is located in a process of testing the application to be tested in the field, and when positioning abnormality occurs in the process of testing the application to be tested in the field, an information obtaining module in the testing device of the application may record relevant position information of the positioning abnormality, and use the relevant position information of the positioning abnormality as position testing information of the application to be tested. Then, the information acquisition module stores the position test information of the application to be tested.
Therefore, the embodiment of the invention can record the position information related to the positioning abnormity when the positioning abnormity occurs in the field test process, so as to realize the preservation of the field of the positioning abnormity.
Preferably, the location information related to the positioning problem may include, but is not limited to, at least one of the following information: the method comprises the steps of obtaining longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of a terminal where an application to be tested is located of a place with abnormal positioning.
Preferably, the information acquisition module may interact with a positioning module in the terminal to obtain longitude/latitude information and positioning longitude information of a location with abnormal positioning. Moreover, the information acquisition module can interact with the corresponding sensor to acquire the altitude information, the direction angle information and the speed information of the terminal where the application to be tested is located, which are detected by the sensor.
Preferably, the positioning technology that the positioning module can utilize to realize the positioning operation of the terminal may include but is not limited to: global Positioning System (GPS) Positioning, Wireless Fidelity (Wi-Fi) Positioning, base station Positioning, or near field communication device Positioning.
Preferably, the near field communication device may include, but is not limited to: a bluetooth device, an infrared device, a Near Field Communication (NFC) device, or a Radio Frequency Integrated Circuit (RFIC) device.
For example, in the process of testing the navigation application in the field, the navigation application plans a path according to a starting place and a destination, and in the process that the terminal where the navigation application is located moves on the planned path, it is found that a certain intersection on the path should turn, but the navigation application does not perform any voice prompt for turning at the intersection, which indicates that the navigation application has a positioning problem in the process of testing in the field.
For another example, in the process of testing the navigation application in the field, the navigation application plans a path according to a starting place and a destination, and in the process that the terminal where the navigation application is located moves on the planned path, a speed-limit road segment is found to be on the path, but when the terminal moves on the speed-limit path, the navigation application does not perform voice prompt of speed limit for the speed-limit path, so that the positioning problem of the navigation application in the field testing process is shown.
And the second method comprises the following steps: the information acquisition module in the applied testing device can read a testing configuration file in a storage module of a terminal where the applied testing device is located, wherein the testing configuration file comprises the configured simulated position information of at least one edge scene, so that the information acquisition module can acquire the simulated position information of the edge scene from the testing configuration file and take the simulated position information of the edge scene as the position testing information of the application to be tested. Then, the information acquisition module stores the position test information of the application to be tested.
It can be understood that the simulation technology of the position information is utilized, the geographical position of the real edge scene is disguised through the test configuration file, the coverage of position information of all parts of the country is realized by constructing and utilizing the simulation position information of the edge scene, and therefore the simulation position information can be utilized to carry out the test of the application to be tested under the edge scene indoors, the problem of incomplete coverage of the test scene in the prior art is solved, and the consumption of manpower and material resources for field test can be reduced.
Preferably, the simulated position information of the edge scene may include, but is not limited to, at least one of the following information: the method comprises the steps of obtaining longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of a terminal where an application to be tested is located of a place with abnormal positioning.
It is understood that edge scenes may include, but are not limited to, a foreign province, a foreign or remote region, and the like.
Based on the above applied test method, the embodiment of the present invention specifically describes the method of S202. The step may specifically include:
please refer to fig. 3, which is a diagram illustrating an example of an architecture of an application in the Android operating system in the prior art for obtaining location information from a location module, as shown in the figure, in the Android operating system in the prior art, the location module is used to provide underlying real location information to the application, and the real location information is first sent to a data providing module by the location module. The data providing module sends the real position information to the registered local monitoring module by calling a corresponding method in the registered local monitoring module, and then the application corresponding to the registered local monitoring module can obtain the real position information from the local monitoring module, so that the operation is performed according to the real position information, and different applications perform different operations by using the real position information.
As shown in fig. 1, based on the principle that the application obtains the location information, in the embodiment of the present invention, in order to implement location disguise of an edge scene and reproduction of a positioning anomaly, the information replacement module needs to extract location test information from the information acquisition module, and then replace real location information provided by the data providing module to the application with the location test information.
Preferably, the information replacement module may initiate a request for replacing the data source to the local management module, so that the local management module switches the data source of the location information from the positioning module to the information replacement module according to the request, and thus, the information replacement module may provide the location test information of the application to be tested, which is obtained by the information obtaining module, to the application to be tested.
It can be understood that, since the data source of the location information is switched at the bottom layer of the operating system in the terminal, the operation is transparent for the application to be tested, so that the application to be tested still considers that the obtained location information is the real location information under the condition of no perception, and the application to be tested can perform the same operation as the real test process. In addition, the switching of the data source of the position information is realized from the bottom layer of the operating system in the terminal, all the applications to be tested installed in the terminal can be validated, and then all the applications to be tested can be used in the test, so that the transverse comparison with other applications can be better realized, the problem that the transverse comparison between competitive products cannot be realized in the test process of the applications is solved, and the bottleneck and the optimization direction of the applications are favorably excavated.
For example, in the embodiment of the present invention, the number of the position test information of the to-be-tested application may be at least one, and when the information replacement module provides the position test information of the to-be-tested application to the to-be-tested application, each position test information of the to-be-tested application may be sequentially extracted from the information acquisition module according to a certain sequence, and then each extracted position test information of the to-be-tested application is provided to the to-be-tested application. Or, the information replacement module may also extract at least one piece of position test information of the application to be tested from the information acquisition module, then display the at least one piece of position test information of the application to be tested by using a display module in the terminal, obtain the position test information selected by the user from the displayed at least one piece of position test information of the application to be tested according to the click position of the user in the display module, and finally provide the selected position test information to the application to be tested according to a certain sequence.
For example, in the embodiment of the present invention, a method for providing the location test information of the application to be tested by the information replacement module to the application to be tested may include, but is not limited to:
as shown in fig. 1, the local monitoring module corresponding to the application to be tested is registered in advance with the data providing module of the terminal where the application to be tested is located through the local management module. Then, the information replacement module sends the position test information of the application to be tested, which is extracted from the information acquisition module, to the data providing module. Furthermore, the data providing module may determine whether the local monitoring module corresponding to the application to be tested has been registered with the data providing module, and if so, the data providing module may send the location test information to the registered local monitoring module, and then the local monitoring module sends the location test information to the application to be tested corresponding to the local monitoring module. Therefore, after the application to be tested obtains the position test information, the operation based on the position test information can be carried out to obtain the operation result.
Based on the above applied test method, the embodiment of the present invention specifically describes the method of S203. The step may specifically include:
the result acquisition module in the application test device can receive an operation result sent by the application to be tested, and then compares the operation result with a preset target result to obtain a comparison result; and finally, obtaining a test result of the application to be tested according to the comparison result.
For example, the application to be tested performs a search operation of a certain type or a certain interest point within a preset distance according to the position test information to obtain at least one piece of interest point information, the at least one piece of interest point information can be compared with the preset at least one piece of interest point information according to the at least one piece of interest point information obtained by the application to be tested, if the comparison result is that the at least one piece of interest point information and the preset at least one piece of interest point information are the same, it can be determined that no problem occurs in the test of the application to be tested, otherwise, if the comparison result is that the at least one piece of interest point information and the preset at least one piece of interest point information are different, it can be determined that the test.
For another example, the longitude/latitude information of the start place and the longitude/latitude information of the destination may be configured in the configured location test information, so that the location test information provided by the information replacement module to the application to be tested includes the longitude/latitude information of the start place and the longitude/latitude information of the destination, and the application to be tested may calculate the planned path between the start place and the destination. And then comparing the planned path with a preset target path, if the two paths are the same as each other, determining that the test of the application to be tested has no problem, otherwise, if the two paths are different from each other, determining that the test of the application to be tested has a problem, and optimizing and modifying the application to be tested by a user to avoid the problem of the application to be tested.
It should be noted that the application testing method and apparatus provided in the embodiment of the present invention can be applied to the following testing scenarios of applications to be tested:
scene one, search peripheral search test: if the navigation application can search the peripheral interest points based on the current position, after the technical scheme provided by the embodiment of the invention is used, the national geographic position can be simulated to carry out the scene coverage test, and the compatibility test is carried out on multi-province and special regions so as to ensure the compatibility and the correctness of the search results of the nationwide provinces.
Scene two, navigation process testing: navigation is a main function of navigation application, and after the technical scheme provided by the embodiment of the invention is used, the position related information of the terminal moving track in the field test process is accumulated, so that the indoor track recurrence test can be performed on the abnormal positioning scene in the test process by utilizing the accumulated information, and various costs brought by the field test are reduced.
Scene three, function test of the electronic dog: the electronic dog detection is an important component of navigation application, due to the influence of strategies, only the weak state of a positioning signal is displayed under the condition of no positioning, the electronic dog state in the driving process needs to be tested on the spot, and the specified electronic eye scene test needs to be tested on the spot in a special road section.
Scene four, yaw scene testing: the path re-planning after yawing is an important function of navigation application in the navigation process, and the navigation application can be triggered after the running deviates from the originally planned path by a certain distance, so that operations such as turning around and winding are required to be continuously executed in the actual running process, and great inconvenience is brought to the test. After the technical scheme provided by the embodiment of the invention is used, the yaw scene can be simulated indoors according to the customized track, so that the test of the navigation application is realized, the realization method is simple, the repetition is realized, the time is saved, and the cost is reduced.
And fifthly, testing a driving track scene: the recording of the driving process is triggered only in a field test scene, and the generation condition construction of various tracks and the correctness verification of the tracks are inconvenient to carry out in the field test. After the technical scheme provided by the embodiment of the invention is used, the test of the track scene is realized by using the real track scene during the field test, so that the reproduction of the real track scene is realized, and the test of the applied track scene is conveniently realized.
And a sixth scenario, testing an overspeed and high-speed scenario: functional verification related to overspeed and speed limit in the navigation process is inconvenient to perform in field test when the navigation application is applied, and overspeed driving in the field test process has danger; the field test in the high speed mode is generally far away, which is inconvenient. By using the technical scheme provided by the embodiment of the invention, the related functions of the overspeed scene can be tested only by modifying the speed parameters in the track, so that the safety and reliability of the test are improved. Similarly, the test for the high-speed scene can also be realized by modifying the speed parameter.
Scene seven, comparison of performance of the contest: in the prior art, the cost of the applied performance test is high, and meanwhile, in the performance test process of the competitive products, due to the influences of road conditions, weather and the like, the driving process cannot be guaranteed to be completely consistent, and the performance test result may have deviation. By using the technical scheme provided by the embodiment of the invention, the driving process can be ensured to be consistent every time, the consistency of test scenes among competitive products and different versions of applications is ensured, and the influence of external factors on test results is reduced.
It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
It should be noted that the execution subjects of S201 to S203 may be application testing devices, and the devices may be applications located in the local terminal, or may also be functional units such as a plug-in or Software Development Kit (SDK) located in the applications located in the local terminal, which is not particularly limited in this embodiment of the present invention.
It should be understood that the application may be an application program (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment of the present invention.
The embodiment of the invention further provides an embodiment of a device for realizing the steps and the method in the embodiment of the method.
Please refer to fig. 4, which is a functional block diagram of a testing apparatus for applications according to an embodiment of the present invention. As shown, the apparatus comprises:
an information obtaining module 401, configured to obtain location test information of an application to be tested;
an information replacing module 402, configured to provide the location test information of the application to be tested, obtained by the information obtaining module, to the application to be tested, so that the application to be tested performs an operation based on the location test information to obtain an operation result;
a result obtaining module 403, configured to obtain a test result of the application to be tested according to the operation result.
Preferably, the information obtaining module 401 is specifically configured to:
when the application to be tested has positioning abnormality in the field test process, recording the related position information of the positioning abnormality as the position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the relevant position information of the positioning abnormality comprises at least one of the following information: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
Preferably, the information obtaining module 401 is specifically configured to:
obtaining a test configuration file;
obtaining simulated position information of the edge scene from the test configuration file to be used as position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the simulated location information comprises at least one of: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
Preferably, the number of the position test information of the application to be tested is at least one, and the information replacement module 402 is specifically configured to:
sequentially providing each position test information of the applications to be tested to the applications to be tested; or,
displaying at least one piece of position test information of the to-be-tested application, obtaining position test information selected by a user from the displayed at least one piece of position test information of the to-be-tested application, and providing the selected position test information for the to-be-tested application.
Preferably, the local monitoring module corresponding to the application to be tested is registered in advance with the data providing module of the terminal where the application to be tested is located, and the information replacing module 402 is specifically configured to:
and sending the position test information of the application to be tested to a data providing module of a terminal where the application to be tested is located, so that the data providing module sends the position test information to a registered local monitoring module, and the local monitoring module sends the position test information to the application to be tested corresponding to the local monitoring module.
Preferably, the result obtaining module 403 is specifically configured to:
comparing the operation result with a preset target result to obtain a comparison result;
and obtaining a test result of the application to be tested according to the comparison result.
Since each module in this embodiment can execute the method shown in fig. 2, reference may be made to the related description of fig. 2 for a part not described in detail in this embodiment.
The technical scheme of the embodiment of the invention has the following beneficial effects:
the embodiment of the invention obtains the position test information of the application to be tested; thereby, the obtained position test information of the application to be tested is provided for the application to be tested, so that the application to be tested can perform operation based on the position test information, and the operation result is obtained; and further, obtaining a test result of the application to be tested according to the operation result. Therefore, compared with the test method which needs the tester to perform the field test in the prior art, the technical scheme provided by the embodiment of the invention can realize the test of the application to be tested by using the obtained position test data, obtain the test result and does not need the field test of the tester, thereby improving the test efficiency of the application and reducing various costs consumed by the application test.
In addition, in the field test process, for the positioning problem found in the test process, the positioning problem can be reproduced again by using the recorded related information, so that the problem scene is truly restored.
In addition, the simulation of the position information can be carried out on the edge scene, the simulated position information is utilized to realize the test applied under the edge scene, the problem that the field test cannot be realized by the tester under the edge scene is solved, the coverage rate of the test scene can be improved, and the test scene is more comprehensive and complete.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated module implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (12)
1. A method for testing an application, the method comprising:
obtaining position test information of an application to be tested;
providing the position test information of the application to be tested to the application to be tested so that the application to be tested can perform operation based on the position test information to obtain an operation result;
and obtaining a test result of the application to be tested according to the operation result.
2. The method of claim 1, wherein obtaining location test information for an application to be tested comprises:
when the application to be tested has positioning abnormality in the field test process, recording the related position information of the positioning abnormality as the position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the relevant position information of the positioning abnormality comprises at least one of the following information: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
3. The method of claim 1, wherein obtaining location test information for an application to be tested comprises:
obtaining a test configuration file;
obtaining simulated position information of the edge scene from the test configuration file to be used as position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the simulated location information comprises at least one of: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
4. The method of claim 1, wherein the number of the position test information of the application to be tested is at least one, and the providing the position test information of the application to be tested to the application to be tested comprises:
sequentially providing each position test information of the applications to be tested to the applications to be tested; or,
displaying at least one piece of position test information of the to-be-tested application, obtaining position test information selected by a user from the displayed at least one piece of position test information of the to-be-tested application, and providing the selected position test information for the to-be-tested application.
5. The method according to claim 1 or 4, wherein a local interception module corresponding to the application to be tested is registered in advance with a data providing module of a terminal where the application to be tested is located, and the providing the location test information of the application to be tested to the application to be tested comprises:
and sending the position test information of the application to be tested to a data providing module of a terminal where the application to be tested is located, so that the data providing module sends the position test information to a registered local monitoring module, and the local monitoring module sends the position test information to the application to be tested corresponding to the local monitoring module.
6. The method of claim 1, wherein obtaining the test result of the application to be tested according to the operation result comprises:
comparing the operation result with a preset target result to obtain a comparison result;
and obtaining a test result of the application to be tested according to the comparison result.
7. A test apparatus for an application, the apparatus comprising:
the information acquisition module is used for acquiring position test information of the application to be tested;
the information replacement module is used for providing the position test information of the application to be tested, which is obtained by the information acquisition module, to the application to be tested so as to facilitate the application to be tested to perform operation based on the position test information to obtain an operation result;
and the result acquisition module is used for acquiring the test result of the application to be tested according to the operation result.
8. The apparatus of claim 7, wherein the information obtaining module is specifically configured to:
when the application to be tested has positioning abnormality in the field test process, recording the related position information of the positioning abnormality as the position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the relevant position information of the positioning abnormality comprises at least one of the following information: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
9. The apparatus of claim 7, wherein the information obtaining module is specifically configured to:
obtaining a test configuration file;
obtaining simulated position information of the edge scene from the test configuration file to be used as position test information of the application to be tested;
storing the position test information of the application to be tested;
wherein the simulated location information comprises at least one of: longitude/latitude information, altitude information, direction angle information, positioning precision information and speed information of the terminal where the application to be tested is located.
10. The apparatus according to claim 7, wherein the number of the location test information of the application to be tested is at least one, and the information replacement module is specifically configured to:
sequentially providing each position test information of the applications to be tested to the applications to be tested; or,
displaying at least one piece of position test information of the to-be-tested application, obtaining position test information selected by a user from the displayed at least one piece of position test information of the to-be-tested application, and providing the selected position test information for the to-be-tested application.
11. The apparatus according to claim 7 or 10, wherein the local monitoring module corresponding to the application to be tested is pre-registered with a data providing module of the terminal where the application to be tested is located, and the information replacing module is specifically configured to:
and sending the position test information of the application to be tested to a data providing module of a terminal where the application to be tested is located, so that the data providing module sends the position test information to a registered local monitoring module, and the local monitoring module sends the position test information to the application to be tested corresponding to the local monitoring module.
12. The apparatus of claim 7, wherein the result obtaining module is specifically configured to:
comparing the operation result with a preset target result to obtain a comparison result;
and obtaining a test result of the application to be tested according to the comparison result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410669976.8A CN104359495A (en) | 2014-11-20 | 2014-11-20 | Application testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410669976.8A CN104359495A (en) | 2014-11-20 | 2014-11-20 | Application testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104359495A true CN104359495A (en) | 2015-02-18 |
Family
ID=52526779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410669976.8A Pending CN104359495A (en) | 2014-11-20 | 2014-11-20 | Application testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104359495A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106840209A (en) * | 2017-02-22 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing navigation application |
CN107086938A (en) * | 2016-02-16 | 2017-08-22 | 上海大唐移动通信设备有限公司 | A kind of road measurement apparatus and method of testing |
CN107990909A (en) * | 2016-10-27 | 2018-05-04 | 千寻位置网络有限公司 | A kind of test method and its system of simulated roadway position data |
CN108680895A (en) * | 2018-03-21 | 2018-10-19 | 京信通信***(中国)有限公司 | The upper method and device for measuring examination is carried out to positioning system |
CN110309931A (en) * | 2018-03-20 | 2019-10-08 | 腾讯科技(深圳)有限公司 | A kind of service optimization method and device |
CN111142139A (en) * | 2019-11-29 | 2020-05-12 | 苏州科达科技股份有限公司 | Method and device for acquiring simulated positioning information and storage medium |
CN112256552A (en) * | 2020-12-22 | 2021-01-22 | 智道网联科技(北京)有限公司 | Pressure testing method and device for map engine |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0660235A1 (en) * | 1993-12-22 | 1995-06-28 | International Business Machines Corporation | Method for automated software application testing |
CN102186143A (en) * | 2011-05-27 | 2011-09-14 | 北京百度网讯科技有限公司 | Method, mobile terminal and system for acquiring positioning information |
US20110239198A1 (en) * | 2006-10-17 | 2011-09-29 | ArtofTest,Inc. | System, Method, and Computer Readable Medium for Universal Software Testing |
CN102620746A (en) * | 2012-02-28 | 2012-08-01 | 惠州市德赛西威汽车电子有限公司 | Navigator testing system |
CN103324570A (en) * | 2013-06-18 | 2013-09-25 | 安科智慧城市技术(中国)有限公司 | Functional testing method and system for to-be-tested system |
CN103957504A (en) * | 2014-04-21 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Positioning service assessment method, device and system |
CN103997711A (en) * | 2013-02-20 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Method for realizing positioning server at mobile terminal and software development kit module |
WO2014125467A1 (en) * | 2013-02-17 | 2014-08-21 | Cale Michael | Method for administering a driving test |
-
2014
- 2014-11-20 CN CN201410669976.8A patent/CN104359495A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0660235A1 (en) * | 1993-12-22 | 1995-06-28 | International Business Machines Corporation | Method for automated software application testing |
US20110239198A1 (en) * | 2006-10-17 | 2011-09-29 | ArtofTest,Inc. | System, Method, and Computer Readable Medium for Universal Software Testing |
CN102186143A (en) * | 2011-05-27 | 2011-09-14 | 北京百度网讯科技有限公司 | Method, mobile terminal and system for acquiring positioning information |
CN102620746A (en) * | 2012-02-28 | 2012-08-01 | 惠州市德赛西威汽车电子有限公司 | Navigator testing system |
WO2014125467A1 (en) * | 2013-02-17 | 2014-08-21 | Cale Michael | Method for administering a driving test |
CN103997711A (en) * | 2013-02-20 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Method for realizing positioning server at mobile terminal and software development kit module |
CN103324570A (en) * | 2013-06-18 | 2013-09-25 | 安科智慧城市技术(中国)有限公司 | Functional testing method and system for to-be-tested system |
CN103957504A (en) * | 2014-04-21 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Positioning service assessment method, device and system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107086938A (en) * | 2016-02-16 | 2017-08-22 | 上海大唐移动通信设备有限公司 | A kind of road measurement apparatus and method of testing |
CN107990909A (en) * | 2016-10-27 | 2018-05-04 | 千寻位置网络有限公司 | A kind of test method and its system of simulated roadway position data |
CN106840209A (en) * | 2017-02-22 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing navigation application |
CN106840209B (en) * | 2017-02-22 | 2020-04-21 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing navigation applications |
CN110309931A (en) * | 2018-03-20 | 2019-10-08 | 腾讯科技(深圳)有限公司 | A kind of service optimization method and device |
CN108680895A (en) * | 2018-03-21 | 2018-10-19 | 京信通信***(中国)有限公司 | The upper method and device for measuring examination is carried out to positioning system |
CN108680895B (en) * | 2018-03-21 | 2020-09-01 | 京信通信***(中国)有限公司 | Method and device for performing uplink test on positioning system |
CN111142139A (en) * | 2019-11-29 | 2020-05-12 | 苏州科达科技股份有限公司 | Method and device for acquiring simulated positioning information and storage medium |
CN112256552A (en) * | 2020-12-22 | 2021-01-22 | 智道网联科技(北京)有限公司 | Pressure testing method and device for map engine |
CN112256552B (en) * | 2020-12-22 | 2021-10-08 | 智道网联科技(北京)有限公司 | Pressure testing method and device for map engine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104359495A (en) | Application testing method and device | |
US10229576B2 (en) | User equipment, earthquake alert server and earthquake alert method thereof | |
US20160057572A1 (en) | Geo-fencing notifications subscriptions | |
CN108235736B (en) | Positioning method, cloud server, terminal, system, electronic device and computer program product | |
EP2680039B1 (en) | Indoor/outdoor differentiation using radio frequency (RF) transmitters | |
CN110972261A (en) | Base station fingerprint database establishing method, device, server and storage medium | |
CN113064185B (en) | Positioning method, terminal and server | |
CN107534841B (en) | Method and device for outputting notification | |
CN102355624B (en) | A kind of location-based information display packing, air navigation aid and position service apparatus | |
CN105758396A (en) | Reverse navigation method and mobile terminal | |
CN105891866A (en) | Positioning method and device and electronic equipment | |
CN110967006A (en) | Navigation positioning method and device based on tunnel map, storage medium and terminal equipment | |
JP2014532165A5 (en) | ||
CN111781619B (en) | Positioning method, device, equipment and storage medium based on near field communication network | |
CN105163279A (en) | Information processing method and terminal | |
Varandas et al. | mTracker: a mobile tracking application for pervasive environment | |
CN104461891A (en) | Method and device for testing positioning-related applications | |
US9207083B2 (en) | Electronic device and navigation method for tracking target device | |
JP2012209744A (en) | Information processing terminal and information processing method, and program | |
CN110554953A (en) | Electronic map indoor simulation navigation method and device, electronic equipment and storage medium | |
CN105704683A (en) | Android-based subway station arrival prompting system | |
CN102958155A (en) | Positioning method and positioning device | |
CN101876549A (en) | Method and mobile terminal for navigating by geographical positions | |
Juhari et al. | IIum bus on campus monitoring system | |
KR20210074858A (en) | Device and method for preparing air quality map using portable terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150218 |
|
RJ01 | Rejection of invention patent application after publication |