CN103778057A - LBS test method and device - Google Patents

LBS test method and device Download PDF

Info

Publication number
CN103778057A
CN103778057A CN201210413054.1A CN201210413054A CN103778057A CN 103778057 A CN103778057 A CN 103778057A CN 201210413054 A CN201210413054 A CN 201210413054A CN 103778057 A CN103778057 A CN 103778057A
Authority
CN
China
Prior art keywords
test
latitude
longitude
type test
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210413054.1A
Other languages
Chinese (zh)
Other versions
CN103778057B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210413054.1A priority Critical patent/CN103778057B/en
Publication of CN103778057A publication Critical patent/CN103778057A/en
Application granted granted Critical
Publication of CN103778057B publication Critical patent/CN103778057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an LBS test method and device, and belongs to the field of testing. The method includes the steps of firstly, setting a first type test number and a second type test number, wherein each test number corresponds to a longitude and a latitude; secondly, gradually changing the longitude and the latitude of the second type test number while keeping the longitude and the latitude of the first type test number unchanged; thirdly, testing the related distance or range of an LBS application according to the first type test number and second type test numbers which are obtained each time after the longitude and the latitude of the second type test number are changed. According to the LBS test method and device, the two types of test numbers are adopted, the longitude and the latitude of the first type test number are kept unchanged, the longitude and the latitude of the second type test number are gradually changed, and then the LBS application is tested; accordingly, the problem that only whether the LBS application can run or not is tested through an existing test method is solved, and the effect of testing the running accuracy of the LBS application is achieved.

Description

LBS method of testing and device
Technical field
The present invention relates to field tests, particularly a kind of LBS method of testing and device.
Background technology
LBS (Location Based Service, location-based service) be first by determining the geographic position (mainly referring to longitude and latitude) at mobile device or user place, and then provide the one service application in other words of relevant various information according to definite geographic position for user.
After a LBS is applied in research and development, conventionally all can be formed with related function interface, and for the test job of these LBS, be mainly also the Black-box Testing launching based on these related function interfaces.Concrete method of testing, can be as follows: first, tester selects a user with specific location information, this specific location information can be may break down or the residing longitude and latitude of user of fault has occurred, such as, tester can, from having occurred the user information database of fault, fish for a part of user profile as test data; The second, tester simulates this user and logins in LBS application to be tested, and whether the operation result of then testing this LBS application is normal, if normal, this LBS application is available; If undesired, this LBS application is unavailable.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: whether existing method of testing is merely able to can be with testing to the operation of LBS application, but cannot whether accurately test the operation of LBS application, that is to say, cannot test the running precision of LBS application.
Summary of the invention
Whether can be by the problem of testing to the operation of LBS application in order to solve that existing method of testing is merely able to, the embodiment of the present invention provides a kind of LBS method of testing and device.Described technical scheme is as follows:
According to an aspect of the present invention, provide a kind of LBS method of testing, described method comprises:
First kind Test No. and Second Type Test No. are set, and each Test No. is a corresponding longitude and latitude separately;
Keep the longitude and latitude of described first kind Test No. constant, successively change the longitude and latitude of described Second Type Test No.;
LBS is applied to the test of carrying out about distance or scope according to described first kind Test No. and each described Second Type Test No. changing after longitude and latitude.
Further, described first kind Test No. is one, and described Second Type Test No. is at least one,
The described longitude and latitude that successively changes described Second Type Test No., specifically comprises:
Successively the distance between described Second Type Test No. and described first kind Test No. increased or reduce predetermined amplitude, obtaining the current measuring distance of described Second Type Test No.;
Change the longitude and latitude of described Second Type Test No. according to described current measuring distance.
Further, described first kind Test No. is one, and described Second Type Test No. is at least one,
The described longitude and latitude that successively changes described Second Type Test No., specifically comprises:
Keep the longitude of described Second Type Test No. constant, successively the latitude of described Second Type Test No. is increased or reduced predetermined amplitude;
And/or, keep the latitude of described Second Type Test No. constant, successively the longitude of described Second Type Test No. is increased or is reduced predetermined amplitude.
Further, described first kind Test No. is two or more, and described Second Type Test No. is one,
The described longitude and latitude that successively changes described Second Type Test No., specifically comprises:
Successively the distance between described Second Type Test No. and a part of described first kind Test No. is increased to and is greater than preset distance, and the distance between first kind Test No. described in described Second Type Test No. and remainder is reduced to and is less than preset distance, obtain the current test position of described Second Type Test No.;
Change the longitude and latitude of described Second Type Test No. according to described current test position.
Further, the described longitude and latitude according to the described Second Type Test No. after the longitude and latitude of described first kind Test No. and each change applies to LBS the test of carrying out about distance or scope respectively, specifically comprises:
Utilize described first kind Test No. and each described Second Type Test No. changing after longitude and latitude to login described LBS application;
Call the function about distance or scope in described LBS application, obtain the actual motion output of described LBS application;
Analyze the whether identical test result that draws of the output of described actual motion and expection operation output.
According to a further aspect in the invention, provide a kind of LBS proving installation, described device comprises:
Test setting module, for first kind Test No. and Second Type Test No. are set, each Test No. is a corresponding longitude and latitude separately;
Position changes module, for keeping the longitude and latitude of described first kind Test No. constant, successively changes the longitude and latitude of described Second Type Test No.;
Functional test module, for applying according to described first kind Test No. and each described Second Type Test No. changing after longitude and latitude the test of carrying out about distance or scope to LBS.
Further, described first kind Test No. is one, and described Second Type Test No. is at least one, and described position changes module, specifically comprises:
The first distance increase and decrease unit and the first longitude and latitude change unit;
Described the first distance increase and decrease unit, for successively the distance between described Second Type Test No. and described first kind Test No. being increased or reducing predetermined amplitude, obtains the current measuring distance of described Second Type Test No.;
Described the first longitude and latitude changes unit, for change the longitude and latitude of described Second Type Test No. according to described current measuring distance.
Further, described first kind Test No. is one, and described Second Type Test No. is at least one, and described position changes module, specifically comprises:
Latitude increase and decrease unit and/or longitude increase and decrease unit;
Described latitude increase and decrease unit, for keeping the longitude of described Second Type Test No. constant, successively increases the latitude of described Second Type Test No. or reduce predetermined amplitude;
Described longitude increase and decrease unit, for keeping the latitude of described Second Type Test No. constant, successively increases the longitude of described Second Type Test No. or reduce predetermined amplitude.
Further, described first kind Test No. is two or more, and described Second Type Test No. is one, and described position changes module, specifically comprises:
Second distance increase and decrease unit and the second longitude and latitude change unit;
Described second distance increase and decrease unit, for successively the distance between described Second Type Test No. and a part of described first kind Test No. being increased to and being greater than preset distance, and the distance between first kind Test No. described in described Second Type Test No. and remainder is reduced to and is less than preset distance, obtain the current test position of Second Type Test No.;
Described the second longitude and latitude changes unit, for change the longitude and latitude of described Second Type Test No. according to described current test position.
Further, described functional test module, specifically comprises:
Test login unit, test execution unit and interpretation of result unit;
Described test login unit, for utilizing described first kind Test No. and each described Second Type Test No. changing after longitude and latitude to login described LBS application;
Described test execution unit, for calling the function of described LBS application about distance or scope, obtains the actual motion output of described LBS application;
Described interpretation of result unit, for analyzing the whether identical test result that draws of the output of described actual motion and expection operation output.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By adopting the Test No. of two types, keep the longitude and latitude of first kind Test No. constant, successively change the longitude and latitude of Second Type Test No., then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the LBS method of testing that provides of the embodiment of the present invention one;
Fig. 2 A is the method flow diagram of the LBS method of testing that provides of the embodiment of the present invention two;
Fig. 2 B is the enforcement schematic diagram of the LBS method of testing that provides of the embodiment of the present invention two;
Fig. 3 A is the method flow diagram of the LBS method of testing that provides of the embodiment of the present invention three;
Fig. 3 B is the enforcement schematic diagram of the LBS method of testing that provides of the embodiment of the present invention three;
Fig. 4 A is the method flow diagram of the LBS method of testing that provides of the embodiment of the present invention four;
Fig. 4 B is the enforcement schematic diagram of the LBS method of testing that provides of the embodiment of the present invention four;
Fig. 5 is the block diagram of the LBS proving installation that provides of the embodiment of the present invention five;
Fig. 6 is the block diagram of the LBS proving installation that provides of the embodiment of the present invention six;
Fig. 7 is the block diagram of the LBS proving installation that provides of the embodiment of the present invention seven;
Fig. 8 is the block diagram of the LBS proving installation that provides of the embodiment of the present invention eight;
Fig. 9 is the block diagram of the functional test module that provides of the embodiment of the present invention six to eight.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Very important part of functions in LBS application, is just to provide the function about distance and scope between two users, for example " near the people checking " function, " making friends with city " function and " looking for people with city " etc.For simplified characterization, mainly represent in LBS application that with near " check people " function, about the function of distance and scope is described and illustrates, the embodiment of other function of the same type repeats no longer one by one herein.Wherein, " near the people checking " function specifically refers to: for active user, in the time that near the distance between other user and active user is less than predetermined threshold, other user is visible for active user, and under normal conditions, active user also can be visible to these other users.Here " user " refers to that operation has the mobile terminal of LBS application, and each mobile terminal can, by having the username and password login LBS application of uniqueness, provide corresponding service so that LBS is applied as each mobile terminal.The username and password using in test process can be referred to as Test No..
Embodiment mono-
Please refer to Fig. 1, it shows the method flow diagram of the LBS method of testing that the embodiment of the present invention one provides.This LBS method of testing, comprising:
Step 102, arranges first kind Test No. and Second Type Test No., and each Test No. is a corresponding longitude and latitude separately;
Step 104, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No.;
Step 106, applies according to first kind Test No. and each Second Type Test No. changing after longitude and latitude the test of carrying out about distance or scope to LBS.
In sum, the LBS method of testing that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Because the implementation of " successively changing the longitude and latitude of Second Type Test No. " has multiplely, be divided into several embodiment below and disclose in detail relevant ins and outs.
Embodiment bis-
Please refer to Fig. 2 A, it shows the method flow diagram of the LBS method of testing that the embodiment of the present invention two provides.The present embodiment is mainly take first kind Test No. as one, and Second Type Test No. is at least one, and the implementation environment that is " near the people checking " about the function of distance or scope in LBS application illustrates.This LBS method of testing, comprising:
Step 202, arranges first kind Test No. and Second Type Test No., and each Test No. is a corresponding longitude and latitude separately;
Test No. is one group of username and password normally, and corresponding to a particular user of LBS application, each Test No. is separately to there being a longitude and latitude, geographic position when this longitude and latitude uses LBS application for characterizing user.Meanwhile, for simplified characterization, the physical meaning of " Test No. " representative of mentioning in the present embodiment is the corresponding user of this Test No..
In the present embodiment, a first kind Test No. and multiple Second Type Test No. can be set for test, content measurement is the distance of test multiple Second Type Test No. and first kind Test No. while being less than predetermined threshold, and whether Second Type Test No. is visible for first kind Test No..In other words, if first kind Test No. corresponding to active user, Second Type Test No. is corresponding to other user, content measurement is exactly in the preset range centered by active user, whether other user couple and active user visible.
Step 204, keeps the longitude and latitude of first kind Test No. constant, successively the distance between Second Type Test No. and first kind Test No. is increased or reduces predetermined amplitude, obtains the current measuring distance of Second Type Test No.;
Whole test can comprise repeatedly test process, in test process repeatedly, always keep the longitude and latitude of first kind Test No. constant, then successively the distance between Second Type Test No. and first kind Test No. increased or reduce predetermined amplitude, obtaining the current measuring distance of Second Type Test No. in current test process.
Step 206, according to the longitude and latitude of current measuring distance change Second Type Test No.;
In conjunction with Fig. 2 B, the longitude and latitude of first kind Test No. 22 always remains unchanged, and establishes for the first time in test process, and the current measuring distance between Second Type Test No. 24 and first kind Test No. 22 is X; Can, in test process for the second time, the current measuring distance between Second Type Test No. 24 and first kind Test No. 22 be revised as to X+Y automatically; In test process for the third time, the current measuring distance between Second Type Test No. 24 and first kind Test No. 22 is revised as to X+2Y automatically,,,,, the like.Wherein, current measuring distance is always more than or equal to 0, X to be always more than or equal to 0, Y is positive number or the negative that absolute value is less than X.
In each test process, according to the longitude and latitude of amended current measuring distance and first kind Test No., can instead release the longitude and latitude of Second Type Test No., and then revise the longitude and latitude of Second Type Test No..
Step 208, utilizes first kind Test No. and each Second Type Test No. login LBS application changing after longitude and latitude;
In each test process, utilize first kind Test No. and each Second Type Test No. login LBS application changing after longitude and latitude.In this login process, can use longitude and latitude simulation tool to simulate the longitude and latitude of each Test No. simultaneously, make LBS application that each Test No. is thought to a real login user, and can obtain longitude and latitude corresponding to this Test No..
Step 210, calls the function about distance or scope in LBS application, obtains the actual motion output of LBS application;
In each test process, after first kind Test No. and Second Type Test No. login LBS application, call the function about distance or scope in this LBS application, in the present embodiment, call exactly the function of " people who checks annex " for first kind Test No., check that whether Second Type Test No. is visible.After each execution, all can obtain corresponding actual motion output.
Step 212, analyzes the whether identical test result that draws of actual motion output and expection operation output.
In each test process, simultaneously also all to the operation output of should looking ahead, by analyzing the whether identical test result that draws of actual motion output and expection operation output.
Such as near, the design original intention of the function of " check people " is that to be positioned at two users of 1000 meters visible mutually.If in a test process, current measuring distance is greater than 1000 meters, and expection operation output should be that Second Type Test No. is visible for first kind Test No.; If in a test process, current measuring distance is less than 1000 meters, and expection operation output should be that Second Type Test No. is invisible for first kind Test No.; Be just in time the situation of 1000 meters for current measuring distance, can be divided into arbitrarily the one in above-mentioned two situations.Suppose when in the test process of continuous 15 times, current measuring distance is respectively 900 meters, 910 meters, 920 meters,,,,, 990 meters, 1000 meters, 1010 meters, 1020 meters, 1030 meters and 1040 meters, the actual motion output number of times identical with expection operation output that analyzes each test process is 14 times, not identical number of times only has 1 time, can think that the running precision of this LBS application is 93%.
Meanwhile, for the actual motion output test process not identical with expection operation output, can pick out separately and carry out subsequent analysis, to this LBS application is improved, and the running precision of this LBS application be improved.
In sum, the LBS method of testing that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Embodiment tri-
Please refer to Fig. 3 A, it shows the method flow diagram of the LBS method of testing that the embodiment of the present invention two provides.The present embodiment is mainly take first kind Test No. as one, and Second Type Test No. is at least one, and the implementation environment that is " near the people checking " about the function of distance or scope in LBS application illustrates.This LBS method of testing, comprising:
Step 302, arranges first kind Test No. and Second Type Test No., and each Test No. is a corresponding longitude and latitude separately;
Test No. is one group of username and password normally, and corresponding to a particular user of LBS application, each Test No. is separately to there being a longitude and latitude, geographic position when this longitude and latitude uses LBS application for characterizing user.Meanwhile, for simplified characterization, the physical meaning of " Test No. " representative of mentioning in the present embodiment is the corresponding user of this Test No..
In the present embodiment, a first kind Test No. and multiple Second Type Test No. can be set for test, content measurement is the distance of test multiple Second Type Test No. and first kind Test No. while being less than predetermined threshold, and whether Second Type Test No. is visible for first kind Test No..In other words, if first kind Test No. corresponding to active user, Second Type Test No. is corresponding to other user, content measurement is exactly in the preset range centered by active user, whether other user couple and active user visible.
Step 304, keeps the longitude and latitude of first kind Test No. and the longitude of Second Type Test No. constant, successively the latitude of Second Type Test No. is increased or reduced predetermined amplitude;
Whole test can comprise repeatedly test process, in test process repeatedly, always keeps the longitude and latitude of first kind Test No. and the longitude of Second Type Test No. constant, then successively the latitude of Second Type Test No. is increased or reduced predetermined amplitude.
Such as, in conjunction with Fig. 3 B, the longitude of the longitude and latitude of first kind Test No. 32 and Second Type Test No. 34 always remains unchanged, and establishes for the first time in test process, and the latitude of Second Type Test No. 34 is M; Can, in test process for the second time, the latitude of Second Type Test No. 34 be revised as to M+N automatically; In test process for the third time, the latitude of Second Type Test No. 34 is revised as to M+2N automatically,,,,, the like.Wherein, to be always more than or equal to 0, N be positive number or the negative that absolute value is less than M to M.
Step 306, keeps the longitude and latitude of first kind Test No. and the latitude of Second Type Test No. constant, successively the longitude of Second Type Test No. is increased or reduced predetermined amplitude;
Corresponding with step 304, also can keep the latitude of Second Type Test No. constant, successively the longitude of Second Type Test No. is increased or is reduced predetermined amplitude.
It should be noted that, in whole test process, step 306 and step 304 can select wherein a kind of or two kinds carry out, in the time that step 306 and two steps of step 304 all need to carry out, execution sequence between two steps can not add restriction, such as, step 306 also can be carried out before step 304 or simultaneously, and is not only confined to step 306 mode of carrying out after step 304 in the present embodiment.
Step 308, utilizes first kind Test No. and each Second Type Test No. login LBS application changing after longitude and latitude;
In each test process, utilize first kind Test No. and each Second Type Test No. login LBS application changing after longitude and latitude.In this login process, can use longitude and latitude simulation tool to simulate the longitude and latitude of each Test No. simultaneously, make LBS application that each Test No. is thought to a real login user, and can obtain longitude and latitude corresponding to this Test No..
Step 310, calls the function about distance or scope in LBS application, obtains the actual motion output of LBS application;
In each test process, after first kind Test No. and Second Type Test No. login LBS application, call the function about distance or scope in this LBS application, in the present embodiment, call exactly the function of " people who checks annex " for first kind Test No., check that whether Second Type Test No. is visible.After each execution, all can obtain corresponding actual motion output.
Step 312, analyzes the whether identical test result that draws of actual motion output and expection operation output.
In each test process, simultaneously also all to the operation output of should looking ahead, by analyzing the whether identical test result that draws of actual motion output and expection operation output.
Such as near, the design original intention of the function of " check people " is that to be positioned at two users of 1000 meters visible mutually.If in a test process, the distance obtaining between the two according to the calculation of longitude & latitude of first kind Test No. and Second Type Test No. is greater than 1000 meters, and expection operation output should be that Second Type Test No. is visible for first kind Test No.; If in a test process, the distance obtaining between the two according to the calculation of longitude & latitude of first kind Test No. and Second Type Test No. is less than 1000 meters, expection operation output should be that Second Type Test No. is invisible for first kind Test No., be just in time the situation of 1000 meters for current measuring distance, can be divided into arbitrarily the one in above-mentioned two situations.Suppose when in the test process of continuous 15 times, the distance obtaining between the two according to the calculation of longitude & latitude of first kind Test No. and Second Type Test No. is respectively 900 meters, 922 meters, 936 meters,,,,, 997 meters, 1001 meters, 1013 meters, 1027 meters, 1039 meters and 1044 meters, the actual motion output number of times identical with expection operation output that analyzes each test process is 13 times, not identical number of times only has 2 times, can think that the running precision of this LBS application is 86%.
Meanwhile, for the actual motion output test process not identical with expection operation output, can pick out separately and carry out subsequent analysis, to this LBS application is improved, and the running precision of this LBS application be improved.
In sum, the LBS method of testing that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
In above-described embodiment, whether in active user " near people ", test as seen take content measurement as other users.Obviously, also can be take content measurement as active user whether in other users " near people ", test as seen.
Embodiment tetra-
Please refer to Fig. 4 A, it shows the method flow diagram of the LBS method of testing that the embodiment of the present invention four provides.The present embodiment is mainly take first kind Test No. as two or more, and Second Type Test No. is one and illustrates.This LBS method of testing, comprising:
Step 402, arranges first kind Test No. and Second Type Test No., and each Test No. is a corresponding longitude and latitude separately;
Test No. is one group of username and password normally, and corresponding to a particular user of LBS application, each Test No. is separately to there being a longitude and latitude, geographic position when this longitude and latitude uses LBS application for characterizing user.Meanwhile, for simplified characterization, the physical meaning of " Test No. " representative of mentioning in the present embodiment is the corresponding user of this Test No..
In the present embodiment, can arrange two or more first kind Test No. and Second Type Test No. for test.Different from previous embodiment is, two or more first kind Test No. is corresponding to multiple other users, a Second Type Test No. is corresponding to active user, content measurement is the distance of test Second Type Test No. and first kind Test No. while being less than predetermined threshold, and whether Second Type Test No. is visible for first kind Test No..In other words, different from previous embodiment, previous embodiment test: whether near other user is visible for active user, and the present embodiment test: whether active user is visible near other user.
Step 404, keep two or more the longitude and latitude of first kind Test No. constant, successively the distance between Second Type Test No. and a part of first kind Test No. is increased to and is greater than preset distance, and the distance between the first kind Test No. of Second Type Test No. and remainder is reduced to and is less than preset distance, obtain the current test position of Second Type Test No.;
In the aforementioned embodiment, because first kind Test No. is corresponding to active user, so be actually the invariant position that keeps active user, the test thinking that other user's position changes; And in the present embodiment, first kind Test No. is corresponding to other user, so be actually the invariant position that keeps multiple other users, the test thinking that active user's position changes.
Simultaneously, because first kind Test No. is multiple in the present embodiment, such as 5, first kind Test No. 44A, first kind Test No. 44B, first kind Test No. 44C, first kind Test No. 44D and first kind Test No. 44E in corresponding diagram 4B respectively, in the time changing the position of Second Type Test No., can be successively the distance between Second Type Test No. and a part of first kind Test No. be increased to and be greater than preset distance; And the distance between the first kind Test No. of Second Type Test No. and remainder is reduced to and is less than preset distance; Thereby obtain the current test position of Second Type Test No..
Such as, in the n time test process, distance between Second Type Test No. and first kind Test No. 44A, first kind Test No. 44B and first kind Test No. 1C is increased to and is greater than preset distance, and the distance between Second Type Test No. and first kind Test No. 44D and 44E is reduced to and is less than preset distance; In the n+1 time test process, distance between Second Type Test No. and first kind Test No. 44A, first kind Test No. 44B, first kind Test No. 44C and first kind Test No. 44D is increased to and is greater than preset distance, and the distance between Second Type Test No. and first kind Test No. 44E is reduced to and is less than preset distance.
It should be added that, the distance between Second Type Test No. and a part of first kind Test No. is increased to and is greater than preset distance; And after the distance between the first kind Test No. of Second Type Test No. and remainder is reduced to and is less than preset distance, what may meet this condition is a panel region, rather than unique test position, now, can be in this panel region select the current test position of a position as Second Type Test No. according to predetermined condition, such as the position of longitude in this panel region and latitude minimum, in this panel region from nearest position of some first kind Test No. etc.
Step 406, according to the longitude and latitude of the current test position change Second Type Test No. of Second Type Test No.;
In each test process, after determining the current test position of Second Type Test No., can be according to the counter longitude and latitude of releasing Second Type Test No. of current test position of determining.
Step 408, utilizes first kind Test No. and each Second Type Test No. login LBS application changing after longitude and latitude;
In each test process, utilize two or more first kind Test No. and each Second Type Test No. login LBS application changing after longitude and latitude.In this login process, can use longitude and latitude simulation tool to simulate the longitude and latitude of each Test No. simultaneously, make LBS application that each Test No. is thought to a real login user, and make LBS application can obtain longitude and latitude corresponding to this Test No..
Step 410, calls the function about distance or scope in LBS application, obtains the actual motion output of LBS application;
In each test process, after two or more first kind Test No. and Second Type Test No. login LBS application, call the function about distance or scope in this LBS application.Different from previous embodiment, in the present embodiment, be that two or more first kind Test No. to representing other users is called the function of " people who checks annex ", check and represent that whether active user's Second Type Test No. is visible.After each execution, all can obtain corresponding actual motion output.
Step 412, analyzes the whether identical test result that draws of actual motion output and expection operation output.
In each test process, simultaneously also all to the operation output of should looking ahead, by analyzing, whether actual motion output is identical with expection operation output can draw test result.
Specifically, the design original intention of supposing near the function of " check people " is that to be positioned at two users of 1000 meters visible mutually., in a test process, because the measuring distance of Second Type Test No. and a part of first kind Test No. is greater than 1000 meters, expection operation output should be that Second Type Test No. is visible for this part first kind Test No.; Because the measuring distance of Second Type Test No. and remainder first kind Test No. is greater than 1000 meters, expection operation output should be that Second Type Test No. is invisible for this remainder first kind Test No..Such as, in a test process, distance between Second Type Test No. and first kind Test No. 44A, first kind Test No. 44B and first kind Test No. 44C is increased to and is greater than preset distance,, for first kind Test No. 44A, first kind Test No. 44B and first kind Test No. 44C, expection operation output should be that Second Type Test No. is invisible for this part first kind Test No.; Distance between Second Type Test No. and first kind Test No. 44D and 44E is reduced to and is less than preset distance,, for first kind Test No. 44D and first kind Test No. 44E, expection operation output should be that Second Type Test No. is visible for this part first kind Test No..
Suppose continuously this LBS application have been carried out to test process 10 times, the actual motion output number of times identical with expection operation output that analyzes each test process is 8 times, and not identical number of times only has 2 times, can think that the running precision of this LBS application is 80%.
Meanwhile, for the actual motion output test process not identical with expection operation output, can pick out separately and carry out subsequent analysis, to this LBS application is improved, and the running precision of this LBS application be improved.
In sum, the LBS method of testing that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Following is device embodiment in the embodiment of the present invention.
Embodiment five
Please refer to Fig. 5, it shows the block diagram of the LBS proving installation that the embodiment of the present invention five provides.This LBS proving installation, comprising: test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for first kind Test No. and Second Type Test No. are set, each Test No. is a corresponding longitude and latitude separately;
Position changes module 540, for keeping the longitude and latitude of the first kind Test No. that described test setting module 520 arranges constant, successively changes the longitude and latitude of the Second Type Test No. that described test setting module 520 arranges;
Functional test module 560, applies for the first kind Test No. and the each described Second Type Test No. changing after longitude and latitude of described position change module 540 that arrange according to described test setting module 520 test of carrying out about distance or scope to LBS.
In sum, the LBS proving installation that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Embodiment six
Please refer to Fig. 6, it shows the block diagram of the LBS proving installation that the embodiment of the present invention six provides.This LBS proving installation, comprising: test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for first kind Test No. and Second Type Test No. are set, each Test No. is a corresponding longitude and latitude separately.In the present embodiment, described first kind Test No. can be one, and described Second Type Test No. can be at least one.
Position changes module 540, for keeping the longitude and latitude of the first kind Test No. that described test setting module 520 arranges constant, successively changes the longitude and latitude of the Second Type Test No. that described test setting module 520 arranges.Specifically, change module 540 in position can comprise that the first distance increase and decrease unit 541 and the first longitude and latitude change unit 542.Wherein:
Described the first distance increase and decrease unit 541, increase or reduce predetermined amplitude for the distance between the Second Type Test No. and the described first kind Test No. that successively described test setting module 520 are arranged, obtaining the current measuring distance of described Second Type Test No.;
Described the first longitude and latitude changes unit 542, changes the longitude and latitude of described Second Type Test No. for the current measuring distance after changing according to described the first distance increase and decrease unit 541.
Functional test module 560, applies for the first kind Test No. and the each described Second Type Test No. changing after longitude and latitude of described position change module 540 that arrange according to described test setting module 520 test of carrying out about distance or scope to LBS.
In sum, the LBS proving installation that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Embodiment seven
Please refer to Fig. 7, it shows the block diagram of the LBS proving installation that the embodiment of the present invention seven provides.This LBS proving installation, comprising: test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for first kind Test No. and Second Type Test No. are set, each Test No. is a corresponding longitude and latitude separately.In the present embodiment, described first kind Test No. can be one, and described Second Type Test No. can be at least one.
Position changes module 540, for keeping the longitude and latitude of the first kind Test No. that described test setting module 520 arranges constant, successively changes the longitude and latitude of the Second Type Test No. that described test setting module 520 arranges.Specifically, change module 540 in position can comprise latitude increase and decrease unit 543 and/or longitude increase and decrease unit 544.Wherein:
Described latitude increase and decrease unit 543, for keeping the longitude of the Second Type Test No. that described test setting module 520 arranges constant, successively increases the latitude of described Second Type Test No. or reduce predetermined amplitude;
Described longitude increase and decrease unit 544, for keeping the latitude of the Second Type Test No. that described test setting module 520 arranges constant, successively increases the longitude of described Second Type Test No. or reduce predetermined amplitude.
Functional test module 560, applies for the first kind Test No. and the each described Second Type Test No. changing after longitude and latitude of described position change module 540 that arrange according to described test setting module 520 test of carrying out about distance or scope to LBS.
In sum, the LBS proving installation that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Embodiment eight
Please refer to Fig. 8, it shows the block diagram of the LBS proving installation that the embodiment of the present invention eight provides.This LBS proving installation, comprising: test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for first kind Test No. and Second Type Test No. are set, each Test No. is a corresponding longitude and latitude separately.In the present embodiment, described first kind Test No. can be two or more, and described Second Type Test No. can be one.
Position changes module 540, for keeping the longitude and latitude of the first kind Test No. that described test setting module 520 arranges constant, successively changes the longitude and latitude of the Second Type Test No. that described test setting module 520 arranges.Specifically, change module 540 in position can comprise that second distance increase and decrease unit 545 and the second longitude and latitude change unit 546.Wherein:
Described second distance increase and decrease unit 545, distance between the first kind Test No. arranging for the Second Type Test No. that successively described test setting module 520 arranged and a part of described test setting module 520 is increased to and is greater than preset distance, and the distance between first kind Test No. described in described Second Type Test No. and remainder is reduced to and is less than preset distance, obtain the current test position of Second Type Test No.;
Described the second longitude and latitude changes unit 546, changes the longitude and latitude of described Second Type Test No. for the current test position changing according to described second distance increase and decrease unit 545.
Functional test module 560, applies for the first kind Test No. and the each described Second Type Test No. changing after longitude and latitude of described position change module 540 that arrange according to described test setting module 520 test of carrying out about distance or scope to LBS.
In sum, the LBS proving installation that the present embodiment provides, by adopting the Test No. of two types, keeps the longitude and latitude of first kind Test No. constant, successively changes the longitude and latitude of Second Type Test No., and then to LBS, application is tested; Whether solved that existing method of testing is merely able to can be by the problem of testing to the operation of LBS application; Reach the effect that can test the running precision of LBS application.
Supplementary notes, the functional test module 560 in above-mentioned the 6th to eight embodiment, can specifically comprise: test login unit 562, test execution unit 564 and interpretation of result unit 566, as shown in Figure 9.
Described test login unit 562, for utilizing described first kind Test No. and each described Second Type Test No. changing after longitude and latitude to login described LBS application;
Described test execution unit 564, applies the function about distance or scope for calling the LBS logining described test login unit 562, obtains the actual motion output of described LBS application;
Described interpretation of result unit 566, for analyzing the whether identical test result that draws of actual motion output that described test execution unit 564 obtains and expection operation output.
It should be noted that: the LBS proving installation that above-described embodiment provides is in the time of test LBS application, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the inner structure of equipment, to complete all or part of function described above.In addition, the LBS proving installation that above-described embodiment provides and LBS method of testing embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a LBS method of testing, is characterized in that, described method comprises:
First kind Test No. and Second Type Test No. are set, and each Test No. is a corresponding longitude and latitude separately;
Keep the longitude and latitude of described first kind Test No. constant, successively change the longitude and latitude of described Second Type Test No.;
LBS is applied to the test of carrying out about distance or scope according to described first kind Test No. and each described Second Type Test No. changing after longitude and latitude.
2. method according to claim 1, is characterized in that, described first kind Test No. is one, and described Second Type Test No. is at least one,
The described longitude and latitude that successively changes described Second Type Test No., specifically comprises:
Successively the distance between described Second Type Test No. and described first kind Test No. increased or reduce predetermined amplitude, obtaining the current measuring distance of described Second Type Test No.;
Change the longitude and latitude of described Second Type Test No. according to described current measuring distance.
3. method according to claim 1, is characterized in that, described first kind Test No. is one, and described Second Type Test No. is at least one,
The described longitude and latitude that successively changes described Second Type Test No., specifically comprises:
Keep the longitude of described Second Type Test No. constant, successively the latitude of described Second Type Test No. is increased or reduced predetermined amplitude;
And/or, keep the latitude of described Second Type Test No. constant, successively the longitude of described Second Type Test No. is increased or is reduced predetermined amplitude.
4. method according to claim 1, is characterized in that, described first kind Test No. is two or more, and described Second Type Test No. is one,
The described longitude and latitude that successively changes described Second Type Test No., specifically comprises:
Successively the distance between described Second Type Test No. and a part of described first kind Test No. is increased to and is greater than preset distance, and the distance between first kind Test No. described in described Second Type Test No. and remainder is reduced to and is less than preset distance, obtain the current test position of Second Type Test No.;
Change the longitude and latitude of described Second Type Test No. according to described current test position.
5. according to the arbitrary described method of claim 1 to 4, it is characterized in that, the described longitude and latitude according to the described Second Type Test No. after the longitude and latitude of described first kind Test No. and each change applies to LBS the test of carrying out about distance or scope respectively, specifically comprises:
Utilize described first kind Test No. and each described Second Type Test No. changing after longitude and latitude to login described LBS application;
Call the function about distance or scope in described LBS application, obtain the actual motion output of described LBS application;
Analyze the whether identical test result that draws of the output of described actual motion and expection operation output.
6. a LBS proving installation, is characterized in that, described device comprises:
Test setting module, for first kind Test No. and Second Type Test No. are set, each Test No. is a corresponding longitude and latitude separately;
Position changes module, for keeping the longitude and latitude of described first kind Test No. constant, successively changes the longitude and latitude of described Second Type Test No.;
Functional test module, for applying according to described first kind Test No. and each described Second Type Test No. changing after longitude and latitude the test of carrying out about distance or scope to LBS.
7. device according to claim 6, is characterized in that, described first kind Test No. is one, and described Second Type Test No. is at least one, and described position changes module, specifically comprises:
The first distance increase and decrease unit and the first longitude and latitude change unit;
Described the first distance increase and decrease unit, for successively the distance between described Second Type Test No. and described first kind Test No. being increased or reducing predetermined amplitude, obtains the current measuring distance of described Second Type Test No.;
Described the first longitude and latitude changes unit, for change the longitude and latitude of described Second Type Test No. according to described current measuring distance.
8. device according to claim 6, is characterized in that, described first kind Test No. is one, and described Second Type Test No. is at least one, and described position changes module, specifically comprises:
Latitude increase and decrease unit and/or longitude increase and decrease unit;
Described latitude increase and decrease unit, for keeping the longitude of described Second Type Test No. constant, successively increases the latitude of described Second Type Test No. or reduce predetermined amplitude;
Described longitude increase and decrease unit, for keeping the latitude of described Second Type Test No. constant, successively increases the longitude of described Second Type Test No. or reduce predetermined amplitude.
9. device according to claim 6, is characterized in that, described first kind Test No. is two or more, and described Second Type Test No. is one, and described position changes module, specifically comprises:
Second distance increase and decrease unit and the second longitude and latitude change unit;
Described second distance increase and decrease unit, for successively the distance between described Second Type Test No. and a part of described first kind Test No. being increased to and being greater than preset distance, and the distance between first kind Test No. described in described Second Type Test No. and remainder is reduced to and is less than preset distance, obtain the current test position target range of Second Type Test No.;
Described the second longitude and latitude changes unit, for change the longitude and latitude of described Second Type Test No. according to described current test position.
10. according to the arbitrary described device of claim 6 to 9, it is characterized in that, described functional test module, specifically comprises:
Test login unit, test execution unit and interpretation of result unit;
Described test login unit, for utilizing described first kind Test No. and each described Second Type Test No. changing after longitude and latitude to login described LBS application;
Described test execution unit, for calling the function of described LBS application about distance or scope, obtains the actual motion output of described LBS application;
Described interpretation of result unit, for analyzing the whether identical test result that draws of the output of described actual motion and expection operation output.
CN201210413054.1A 2012-10-25 2012-10-25 LBS method of testings and device Active CN103778057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210413054.1A CN103778057B (en) 2012-10-25 2012-10-25 LBS method of testings and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210413054.1A CN103778057B (en) 2012-10-25 2012-10-25 LBS method of testings and device

Publications (2)

Publication Number Publication Date
CN103778057A true CN103778057A (en) 2014-05-07
CN103778057B CN103778057B (en) 2017-09-12

Family

ID=50570318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210413054.1A Active CN103778057B (en) 2012-10-25 2012-10-25 LBS method of testings and device

Country Status (1)

Country Link
CN (1) CN103778057B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109037090A (en) * 2017-06-12 2018-12-18 马维尔国际贸易有限公司 More test-types probe cards and corresponding test macro

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040162085A1 (en) * 2003-02-19 2004-08-19 Gyuyoung Han Method and system for optimizing location-based service by adjusting maximum antenna range
US20040162086A1 (en) * 2003-02-19 2004-08-19 Gyuyoung Han Test apparatus and control method thereof for use with location based service system capable of optimizing location based service by adjusting maximum antenna range
CN101588594A (en) * 2008-05-22 2009-11-25 中国移动通信集团上海有限公司 Method and device for positioning test point and corresponding test point to test data
CN102171741A (en) * 2008-10-10 2011-08-31 高通股份有限公司 Tracking system
CN202049236U (en) * 2011-03-11 2011-11-23 上海泰捷通信技术有限公司 Terminal GPS automatic test tool
CN202443070U (en) * 2012-02-15 2012-09-19 桐庐县供电局 Grounding resistance test locating system
CN102736058A (en) * 2011-04-08 2012-10-17 希姆通信息技术(上海)有限公司 Method for testing communication distance of SRD equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040162085A1 (en) * 2003-02-19 2004-08-19 Gyuyoung Han Method and system for optimizing location-based service by adjusting maximum antenna range
US20040162086A1 (en) * 2003-02-19 2004-08-19 Gyuyoung Han Test apparatus and control method thereof for use with location based service system capable of optimizing location based service by adjusting maximum antenna range
CN1543099A (en) * 2003-02-19 2004-11-03 Sk电信有限公社 Test apparatus and control method thereof for use with location based service system capable of optimizing location based service by adjusting maximum antenna range
CN101588594A (en) * 2008-05-22 2009-11-25 中国移动通信集团上海有限公司 Method and device for positioning test point and corresponding test point to test data
CN102171741A (en) * 2008-10-10 2011-08-31 高通股份有限公司 Tracking system
CN202049236U (en) * 2011-03-11 2011-11-23 上海泰捷通信技术有限公司 Terminal GPS automatic test tool
CN102736058A (en) * 2011-04-08 2012-10-17 希姆通信息技术(上海)有限公司 Method for testing communication distance of SRD equipment
CN202443070U (en) * 2012-02-15 2012-09-19 桐庐县供电局 Grounding resistance test locating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109037090A (en) * 2017-06-12 2018-12-18 马维尔国际贸易有限公司 More test-types probe cards and corresponding test macro
CN109037090B (en) * 2017-06-12 2023-11-03 马维尔亚洲私人有限公司 Multi-test type probe card and corresponding test system

Also Published As

Publication number Publication date
CN103778057B (en) 2017-09-12

Similar Documents

Publication Publication Date Title
CN102479151B (en) Testing method and device of webpage access speed
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
CN104050076A (en) Testing method, device and system of application software on mobile terminal
CN108984389B (en) Application program testing method and terminal equipment
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN105653438B (en) The striding course automated testing method and device of Android device
CN107623738A (en) A kind of WebView bridge joint mouth stain mappings and analysis method towards Android application
CN107038120A (en) A kind of method for testing software and equipment
Holl et al. Mobile application quality assurance
CN105630683A (en) Cloud testing architecture
CN110221953A (en) Test result analysis method, apparatus, server and storage medium
CN105204982A (en) Code testing method and code testing system
CN111736951A (en) Simulation method for automatic driving, computer device, and storage medium
CN103885341B (en) Performance analysis system based on automotive performance simulator and method
CN112985867B (en) Steering engine testing method, device, equipment and storage medium
CN102567190B (en) Automatic test case generating method and testing method based on weighted directed graphs of user use flows
CN112041818A (en) System for adjusting application performance based on platform horizontal benchmarking
CN105468503A (en) Software test method and device
CN103778057A (en) LBS test method and device
CN107608844A (en) A kind of method of hardware testing, system, device and computer-readable recording medium
CN111127223A (en) Insurance product testing method and device and storage medium
CN105339974B (en) Analog sensor
CN110888809B (en) Risk prediction method and device for test task
CN113986753A (en) Interface test method, device, equipment and storage medium
Wu An effective equivalence partitioning method to design the test case of the WEB application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant