CN103778057B - LBS method of testings and device - Google Patents

LBS method of testings and device Download PDF

Info

Publication number
CN103778057B
CN103778057B CN201210413054.1A CN201210413054A CN103778057B CN 103778057 B CN103778057 B CN 103778057B CN 201210413054 A CN201210413054 A CN 201210413054A CN 103778057 B CN103778057 B CN 103778057B
Authority
CN
China
Prior art keywords
test
latitude
longitude
type
type test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210413054.1A
Other languages
Chinese (zh)
Other versions
CN103778057A (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of LBS method of testings and device, belong to testing field.Methods described includes:First kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude;Keep the longitude and latitude of the first kind Test No. constant, gradually change the longitude and latitude of the Second Type Test No.;The test about distance or scope is carried out to LBS applications according to the first kind Test No. and each Second Type Test No. changed after longitude and latitude.The present invention keeps the longitude and latitude of first kind Test No. constant by using two kinds of Test No., gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested;Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;The effect that can be tested the LBS running precisions applied is reached.

Description

LBS method of testings and device
Technical field
The present invention relates to testing field, more particularly to a kind of LBS method of testings and device.
Background technology
LBS (Location Based Service, location Based service) is first by determining mobile device or use Geographical position where family(Refer mainly to longitude and latitude), and then according to the geographical position of determination provide the user correlation various information A kind of service apply in other words.
Applied in a LBS after research and development are finished, generally can all be formed with correlation function interface, and for these LBS's Test job, the Black-box Testing for being also mainly based upon these correlation function interfaces and deploying.Specific method of testing, can be as follows: First, tester selects a user with specific location information, and the specific location information can may occur event Hinder or have occurred that the longitude and latitude residing for the user of failure, such as, tester can be from the use for having occurred that failure In the information bank of family, a part of user profile is fished for as test data;Second, tester simulates the user to be tested LBS is logged in using upper, and whether the operation result for then testing LBS applications is normal, if normally, LBS applications can With;If abnormal, the LBS is using unavailable.
During the present invention is realized, inventor has found that prior art at least has problems with:Existing test side Whether the operation that method is merely able to apply LBS can be with being tested, but whether the LBS operations applied accurately can not be surveyed Examination, that is to say, that can not test the LBS running precisions applied.
The content of the invention
In order to solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing, this Inventive embodiments provide a kind of LBS method of testings and device.The technical scheme is as follows:
According to an aspect of the invention, there is provided a kind of LBS method of testings, methods described includes:
First kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude;
Keep the longitude and latitude of the first kind Test No. constant, gradually change the longitude and latitude of the Second Type Test No. Degree;
According to the first kind Test No. and change the Second Type Test No. after longitude and latitude every time to apply LBS Carry out the test about distance or scope.
Further, the first kind Test No. is one, and the Second Type Test No. is at least one,
The longitude and latitude for gradually changing the Second Type Test No., is specifically included:
It is gradually that the increase of the distance between the Second Type Test No. and described first kind Test No. or reduction is pre- Tentering degree, obtains the current measuring distance of the Second Type Test No.;
Change the longitude and latitude of the Second Type Test No. according to the current measuring distance.
Further, the first kind Test No. is one, and the Second Type Test No. is at least one,
The longitude and latitude for gradually changing the Second Type Test No., is specifically included:
Keep the longitude of the Second Type Test No. constant, gradually by the increase of the latitude of the Second Type Test No. or Person reduces predetermined amplitude;
And/or, keep the latitude of the Second Type Test No. constant, gradually by the longitude of the Second Type Test No. Increase reduces predetermined amplitude.
Further, the first kind Test No. is two or more, and the Second Type Test No. is one It is individual,
The longitude and latitude for gradually changing the Second Type Test No., is specifically included:
Gradually the distance between the Second Type Test No. and a part of described first kind Test No. are increased to big Reduced extremely with the distance between first kind Test No. described in remainder in preset distance, and by the Second Type Test No. Less than preset distance, the current test position of the Second Type Test No. is obtained;
Change the longitude and latitude of the Second Type Test No. according to the current test position.
Further, the longitude and latitude according to the first kind Test No. and the every time Second Type after change The longitude and latitude of Test No. carries out the test about distance or scope to LBS applications respectively, specifically includes:
Second Type Test No. login using the first kind Test No. and every time after change longitude and latitude is described LBS is applied;
Call about distance or the function of scope in the LBS applications, the actual motion for obtaining the LBS applications is defeated Go out;
Analyze actual motion output and whether expected operation output is identical draws test result.
According to another aspect of the present invention there is provided a kind of LBS test devices, described device includes:
Test setting module, for setting first kind Test No. and Second Type Test No., each Test No. is each right Answer a longitude and latitude;
Position changes module, for keeping the longitude and latitude of the first kind Test No. constant, gradually changes described second The longitude and latitude of type Test No.;
Functional test module, for according to the first kind Test No. and each Equations of The Second Kind changed after longitude and latitude Type Test No. carries out the test about distance or scope to LBS applications.
Further, the first kind Test No. be one, the Second Type Test No. be at least one, institute's rheme Change module is put, is specifically included:
First distance increase and decrease unit and the first longitude and latitude change unit;
The first distance increase and decrease unit, for gradually by the Second Type Test No. and the first kind Test No. The distance between increase or reduce predetermined amplitude, obtain the current measuring distance of the Second Type Test No.;
First longitude and latitude changes unit, for changing the Second Type Test No. according to the current measuring distance Longitude and latitude.
Further, the first kind Test No. be one, the Second Type Test No. be at least one, institute's rheme Change module is put, is specifically included:
Latitude increases and decreases unit and/or longitude increase and decrease unit;
The latitude increases and decreases unit, for keeping the longitude of the Second Type Test No. constant, gradually by described second The latitude increase of type Test No. reduces predetermined amplitude;
The longitude increases and decreases unit, for keeping the latitude of the Second Type Test No. constant, gradually by described second The longitude increase of type Test No. reduces predetermined amplitude.
Further, the first kind Test No. is two or more, and the Second Type Test No. is one Individual, the position changes module, specifically includes:
Second distance increases and decreases unit and the second longitude and latitude changes unit;
The second distance increases and decreases unit, for gradually by the Second Type Test No. and a part of first kind The distance between Test No. increases to greater than preset distance, and by the Second Type Test No. and the first kind described in remainder The distance between type Test No. is reduced to less than preset distance, obtains the current test position of Second Type Test No.;
Second longitude and latitude changes unit, for changing the Second Type Test No. according to the current test position Longitude and latitude.
Further, the functional test module, is specifically included:
Test logs in unit, test execution unit and interpretation of result unit;
The test logs in unit, for changing described the after longitude and latitude using the first kind Test No. and every time Two type Test No.s log in the LBS applications;
The test execution unit, for calling in the LBS applications about distance or the function of scope, obtains described The actual motion output of LBS applications;
The interpretation of result unit, for analyzing actual motion output and whether expected operation output is identical draws Test result.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By using two kinds of Test No., keep the longitude and latitude of first kind Test No. constant, gradually change second The longitude and latitude of type Test No., is then tested LBS applications;Existing method of testing is solved to be merely able to apply LBS Operation the problem of whether can be with being tested;The effect that can be tested the LBS running precisions applied is reached.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the method flow diagram for the LBS method of testings that the embodiment of the present invention one is provided;
Fig. 2A is the method flow diagram for the LBS method of testings that the embodiment of the present invention two is provided;
Fig. 2 B are the implementation schematic diagrames for the LBS method of testings that the embodiment of the present invention two is provided;
Fig. 3 A are the method flow diagrams for the LBS method of testings that the embodiment of the present invention three is provided;
Fig. 3 B are the implementation schematic diagrames for the LBS method of testings that the embodiment of the present invention three is provided;
Fig. 4 A are the method flow diagrams for the LBS method of testings that the embodiment of the present invention four is provided;
Fig. 4 B are the implementation schematic diagrames for the LBS method of testings that the embodiment of the present invention four is provided;
Fig. 5 is the block diagram for the LBS test devices that the embodiment of the present invention five is provided;
Fig. 6 is the block diagram for the LBS test devices that the embodiment of the present invention six is provided;
Fig. 7 is the block diagram for the LBS test devices that the embodiment of the present invention seven is provided;
Fig. 8 is the block diagram for the LBS test devices that the embodiment of the present invention eight is provided;
Fig. 9 is the block diagram for the functional test module that the embodiment of the present invention six to eight is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Critically important part of functions, is just to provide between two users about distance and the function of scope in LBS applications, Such as " people near checking " function, " being made friends with city " function and " looking for people with city " etc..It is main herein in order to simplify description The function in LBS applications about distance and scope is represented with " check neighbouring people " function to be described and illustrate, Qi Tatong The embodiment of type of functionality is no longer repeated one by one.Wherein, " people near checking " function is specifically referred to:Come for active user Say, when the distance between neighbouring other users and active user are less than predetermined threshold, other users come for active user Say it is visible, and under normal conditions, active user also can be visible to these other users.Here " user " refers to fortune Row has the mobile terminal that LBS is applied, and each mobile terminal can log in LBS by the username and password with uniqueness should With so that LBS provides corresponding service using for each mobile terminal.Username and password used in test process can To be referred to as Test No..
Embodiment one
Fig. 1 is refer to, the method flow diagram of the LBS method of testings provided it illustrates the embodiment of the present invention one.The LBS is surveyed Method for testing, including:
Step 102, first kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude Degree;
Step 104, keep the longitude and latitude of first kind Test No. constant, gradually change the longitude and latitude of Second Type Test No. Degree;
Step 106, change the Second Type Test No. after longitude and latitude according to first kind Test No. and every time to apply LBS Carry out the test about distance or scope.
In summary, the LBS method of testings that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Because the implementation of " longitude and latitude for gradually changing Second Type Test No. " has a variety of, several realities are divided into below Apply the ins and outs that example discloses correlation in detail.
Embodiment two
Fig. 2A is refer to, the method flow diagram of the LBS method of testings provided it illustrates the embodiment of the present invention two.This implementation Example is main using first kind Test No. as one, and Second Type Test No. is at least one, relevant distance or model in LBS applications The function of enclosing is the implementation environment of " checking neighbouring people " to illustrate.The LBS method of testings, including:
Step 202, first kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude Degree;
Test No. is typically one group of username and password, and the particular user applied corresponding to LBS, each Test No. is each From to that should have a longitude and latitude, the longitude and latitude is used to characterize geographical position when user is applied using LBS.Meanwhile, for simplification The physical meaning representated by " Test No. " referred in description, the present embodiment is the user corresponding to the Test No..
In the present embodiment, a first kind Test No. and multiple Second Type Test No.s can be set to be used to test, surveyed When examination content is that the distances of the multiple Second Type Test No.s of test and first kind Test No. is less than predetermined threshold, Second Type is surveyed Whether examination number is visible for first kind Test No..In other words, if first kind Test No. corresponds to active user, second Type Test No. corresponds to other users, and test content is exactly other users couple in the preset range centered on active user With it is whether visible for active user.
Step 204, keep the longitude and latitude of first kind Test No. constant, gradually by Second Type Test No. and the first kind The distance between Test No. increases or reduced predetermined amplitude, obtains the current measuring distance of Second Type Test No.;
Whole test can include multiple test process, in multiple test process, always be to maintain first kind Test No. Longitude and latitude it is constant, then gradually by the increase of the distance between Second Type Test No. and first kind Test No. or reduce pre- Tentering degree, obtains current measuring distance of the Second Type Test No. in current test process.
Step 206, the longitude and latitude of Second Type Test No. is changed according to current measuring distance;
With reference to Fig. 2 B, the longitude and latitude of first kind Test No. 22 be always to maintain it is constant, if in first time test process, second Current measuring distance between type Test No. 24 and first kind Test No. 22 is X;Then can in second of test process, Current measuring distance between Second Type Test No. 24 and first kind Test No. 22 is revised as X+Y automatically;In third time In test process, the current measuring distance between Second Type Test No. 24 and first kind Test No. 22 is revised as X+ automatically 2Y,,, the like.Wherein, current measuring distance is less than X always greater than equal to 0, Y always greater than equal to 0, X for absolute value Positive number or negative.
, can according to the longitude and latitude of amended current measuring distance and the first kind Test No. in each test process With the anti-longitude and latitude for releasing Second Type Test No., and then change the longitude and latitude of Second Type Test No..
Step 208, changing the Second Type Test No. login LBS after longitude and latitude using first kind Test No. and every time should With;
In each test process, first kind Test No. and each Second Type Test No. changed after longitude and latitude are utilized Log in LBS applications.In the login process, the longitude and latitude of each Test No. can be simulated using longitude and latitude simulation tool simultaneously, is made LBS using each Test No. is regarded as into a real login user, and the corresponding warp of the Test No. can be obtained Latitude.
Step 210, call about distance or the function of scope in LBS applications, the actual motion for obtaining LBS applications is defeated Go out;
In each test process, after first kind Test No. and Second Type Test No. log in LBS applications, call About distance or the function of scope in LBS applications, in the present embodiment, exactly call and " look into for first kind Test No. See the people of annex " function, check whether Second Type Test No. visible.After performing every time, corresponding reality can be all obtained Operation output.
Step 212, analysis actual motion output and whether expected operation output is identical draws test result.
In each test process, while also all to operation output should be prefetched, being exported and pre- by analyzing actual motion Whether phase operation output is identical to draw test result.
Such as, the design original intention for the function of " checking neighbouring people " is that two users being located in 1000 meters are visible mutually. If in a test process, current measuring distance is more than 1000 meters, then expected operation output should be Second Type Test No. It is visible for first kind Test No.;If in a test process, current measuring distance is less than 1000 meters, then expected operation is defeated Going out should be that Second Type Test No. is invisible for first kind Test No.;Just it is 1000 meters for current measuring distance Situation, can arbitrarily be divided into one kind in above-mentioned two situations.Assuming that when in the test process of continuous 15 times, current test away from From being 900 meters, 910 meters, 920 meters respectively,,, 990 meters, 1000 meters, 1010 meters, 1020 meters, 1030 meters and 1040 meters, analysis Actual motion output and expected operation output identical number of times to each test process are 14 times, and the number of times differed only has 1 It is secondary, then it is considered that the running precision of LBS applications is 93%.
The test process differed with expected operation output is exported simultaneously for actual motion, can individually be picked out Subsequent analysis is carried out, to be improved to LBS applications, and the running precision of LBS applications is improved.
In summary, the LBS method of testings that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Embodiment three
Fig. 3 A are refer to, the method flow diagram of the LBS method of testings provided it illustrates the embodiment of the present invention two.This implementation Example is main using first kind Test No. as one, and Second Type Test No. is at least one, relevant distance or model in LBS applications The function of enclosing is the implementation environment of " checking neighbouring people " to illustrate.The LBS method of testings, including:
Step 302, first kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude Degree;
Test No. is typically one group of username and password, and the particular user applied corresponding to LBS, each Test No. is each From to that should have a longitude and latitude, the longitude and latitude is used to characterize geographical position when user is applied using LBS.Meanwhile, for simplification The physical meaning representated by " Test No. " referred in description, the present embodiment is the user corresponding to the Test No..
In the present embodiment, a first kind Test No. and multiple Second Type Test No.s can be set to be used to test, surveyed When examination content is that the distances of the multiple Second Type Test No.s of test and first kind Test No. is less than predetermined threshold, Second Type is surveyed Whether examination number is visible for first kind Test No..In other words, if first kind Test No. corresponds to active user, second Type Test No. corresponds to other users, and test content is exactly other users couple in the preset range centered on active user With it is whether visible for active user.
Step 304, keep first kind Test No. longitude and latitude and Second Type Test No. longitude it is constant, gradually by the The latitude increase of two type Test No.s reduces predetermined amplitude;
Whole test can include multiple test process, in multiple test process, always be to maintain first kind Test No. Longitude and latitude and Second Type Test No. longitude it is constant, then gradually the latitude of Second Type Test No. is increased or reduced Predetermined amplitude.
Such as, with reference to Fig. 3 B, the longitude and latitude of first kind Test No. 32 and the longitude of Second Type Test No. 34 are always protected Hold constant, if in first time test process, the latitude of Second Type Test No. 34 is M;Then can in second of test process, The latitude of Second Type Test No. 34 is revised as M+N automatically;In third time test process, by Second Type Test No. 34 Latitude is revised as M+2N automatically,,, the like.Wherein, M always greater than equal to 0, N be absolute value be less than M positive number or Negative.
Step 306, keep first kind Test No. longitude and latitude and Second Type Test No. latitude it is constant, gradually by the The longitude increase of two type Test No.s reduces predetermined amplitude;
It is corresponding with step 304, the latitude of Second Type Test No. can also be kept constant, gradually Second Type is surveyed The longitude increase of examination number reduces predetermined amplitude.
It should be noted that in whole test process, step 306 and step 304 can select one of which or two Plant and carry out, when two steps of step 306 and step 304 are required for carrying out, the execution sequence between two steps can be not added with Limit, such as, step 306 can also be carried out prior to or while step 304, and be not only limited to the step in the present embodiment 306 modes for carrying out after the step 304.
Step 308, changing the Second Type Test No. login LBS after longitude and latitude using first kind Test No. and every time should With;
In each test process, first kind Test No. and each Second Type Test No. changed after longitude and latitude are utilized Log in LBS applications.In the login process, the longitude and latitude of each Test No. can be simulated using longitude and latitude simulation tool simultaneously, is made LBS using each Test No. is regarded as into a real login user, and the corresponding warp of the Test No. can be obtained Latitude.
Step 310, call about distance or the function of scope in LBS applications, the actual motion for obtaining LBS applications is defeated Go out;
In each test process, after first kind Test No. and Second Type Test No. log in LBS applications, call About distance or the function of scope in LBS applications, in the present embodiment, exactly call and " look into for first kind Test No. See the people of annex " function, check whether Second Type Test No. visible.After performing every time, corresponding reality can be all obtained Operation output.
Step 312, analysis actual motion output and whether expected operation output is identical draws test result.
In each test process, while also all to operation output should be prefetched, being exported and pre- by analyzing actual motion Whether phase operation output is identical to draw test result.
Such as, the design original intention for the function of " checking neighbouring people " is that two users being located in 1000 meters are visible mutually. If in a test process, obtained between the two according to the calculation of longitude & latitude of first kind Test No. and Second Type Test No. Distance be more than 1000 meters, then expected operation output should be that Second Type Test No. is visible for first kind Test No.;Such as Really in a test process, obtained between the two according to the calculation of longitude & latitude of first kind Test No. and Second Type Test No. Distance is less than 1000 meters, then expected operation output should be that Second Type Test No. is invisible for first kind Test No., right In the situation of current measuring distance just for 1000 meters, one kind in above-mentioned two situations can be arbitrarily divided into.Assuming that when company In continuous 15 times test process, obtained between the two according to the calculation of longitude & latitude of first kind Test No. and Second Type Test No. Distance be 900 meters, 922 meters, 936 meters respectively,,, 997 meters, 1001 meters, 1013 meters, 1027 meters, 1039 meters and 1044 meters, The actual motion output and expected operation output identical number of times for analyzing each test process are 13 times, and the number of times differed is only Have 2 times, then it is considered that the running precision of LBS applications is 86%.
The test process differed with expected operation output is exported simultaneously for actual motion, can individually be picked out Subsequent analysis is carried out, to be improved to LBS applications, and the running precision of LBS applications is improved.
In summary, the LBS method of testings that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
In above-described embodiment, entered using testing content as whether other users are visible in " the neighbouring people " of active user Row test.Obviously, it can also be carried out using testing content as whether active user is visible in " the neighbouring people " of other users Test.
Example IV
Fig. 4 A are refer to, the method flow diagram of the LBS method of testings provided it illustrates the embodiment of the present invention four.This implementation Example is main using first kind Test No. as two or more, and Second Type Test No. is one to illustrate.The LBS Method of testing, including:
Step 402, first kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude Degree;
Test No. is typically one group of username and password, and the particular user applied corresponding to LBS, each Test No. is each From to that should have a longitude and latitude, the longitude and latitude is used to characterize geographical position when user is applied using LBS.Meanwhile, for simplification The physical meaning representated by " Test No. " referred in description, the present embodiment is the user corresponding to the Test No..
In the present embodiment, two or more first kind Test No. and a Second Type can be set to test Number be used for test.From unlike previous embodiment, two or more first kind Test No. correspond to it is multiple its Its user, a Second Type Test No. corresponds to active user, and test content is test Second Type Test No. and the first kind When the distance of type Test No. is less than predetermined threshold, whether Second Type Test No. is visible for first kind Test No..In other words Say, and unlike previous embodiment, previous embodiment test:Whether neighbouring other users may be used for active user See, and the present embodiment is tested:Whether active user is visible for neighbouring other users.
Step 404, keep the longitude and latitude of two or more first kind Test No. constant, gradually by Equations of The Second Kind The distance between first kind Test No. of type Test No. and a part increases to greater than preset distance, and Second Type is tested Number preset distance is reduced to less than with the distance between the first kind Test No. of remainder, obtains Second Type Test No. Current test position;
In the aforementioned embodiment, because first kind Test No. corresponds to active user, so being actually to keep current The position of user is constant, the test thinking of the position change of other users;And in the present embodiment, first kind Test No. corresponds to Other users, so be actually to keep the position of a number of other users constant, the test thinking of the position change of active user.
Simultaneously as first kind Test No. is in the present embodiment to be multiple, such as 5, respectively the in corresponding diagram 4B One type Test No. 44A, first kind Test No. 44B, first kind Test No. 44C, first kind Test No. 44D and the first kind Type Test No. 44E, can be gradually by Second Type Test No. and the of a part when changing the position of Second Type Test No. The distance between one type Test No. increases to greater than preset distance;And by Second Type Test No. and the first kind of remainder The distance between type Test No. is reduced to less than preset distance;So as to obtain the current test position of Second Type Test No..
Such as, in n-th test process, Second Type Test No. and first kind Test No. 44A, the first kind are tested Number the distance between 44B and first kind Test No. 1C increase to greater than preset distance, and by Second Type Test No. and first The distance between type Test No. 44D and 44E are reduced to less than preset distance;In (n+1)th test process, Second Type is surveyed Examination number and first kind Test No. 44A, first kind Test No. 44B, first kind Test No. 44C and first kind Test No. The distance between 44D increases to greater than preset distance, and by between Second Type Test No. and first kind Test No. 44E away from From being reduced to less than preset distance.
It should be added that, the distance between first kind Test No. of Second Type Test No. and a part is increased Add to more than preset distance;And reduce the distance between Second Type Test No. and the first kind Test No. of remainder extremely After preset distance, may meet the condition is a panel region, rather than unique test position, at this point it is possible to A position is selected as the current test position of Second Type Test No. according to predetermined condition in the panel region, such as in the piece Longitude and the minimum position of latitude, position nearest from some first kind Test No. in the panel region etc. in region.
Step 406, the longitude and latitude of Second Type Test No. is changed according to the current test position of Second Type Test No.;
, can be according to determination after the current test position for determining Second Type Test No. in each test process The anti-longitude and latitude for releasing Second Type Test No. of current test position.
Step 408, changing the Second Type Test No. login LBS after longitude and latitude using first kind Test No. and every time should With;
In each test process, two or more first kind Test No. and each change longitude and latitude are utilized Second Type Test No. afterwards logs in LBS applications., can be simultaneously each using the simulation of longitude and latitude simulation tool in the login process The longitude and latitude of Test No. so that LBS is applied is regarded as a real login user by each Test No., and causes LBS Using the corresponding longitude and latitude of the Test No. can be obtained.
Step 410, call about distance or the function of scope in LBS applications, the actual motion for obtaining LBS applications is defeated Go out;
In each test process, stepped in two or more first kind Test No. and Second Type Test No. Record after LBS applications, call in LBS applications about distance or the function of scope.From unlike previous embodiment, this reality Apply in example is that two or more the first kind Test No. for representing other users is called " people for checking annex " Function, checks whether the Second Type Test No. for representing active user is visible.After performing every time, corresponding reality can be all obtained Operation output.
Step 412, analysis actual motion output and whether expected operation output is identical draws test result.
In each test process, while also all to operation output should be prefetched, being exported and pre- by analyzing actual motion Whether phase operation output is identical can to draw test result.
Specifically, it is assumed that the design original intention of the function of " checking neighbouring people " is that two users being located in 1000 meters are mutual It is mutually visible.Then in a test process, due to Second Type Test No. and the measuring distance of a part of first kind Test No. More than 1000 meters, then expected operation output should be that Second Type Test No. is visible for the part first kind Test No.;By It is more than 1000 meters in the measuring distance of Second Type Test No. and remainder first kind Test No., then expected operation output should When being that Second Type Test No. is invisible for the remainder first kind Test No..Such as, will in a test process Between Second Type Test No. and first kind Test No. 44A, first kind Test No. 44B and first kind Test No. 44C Distance increases to greater than preset distance, then is surveyed for first kind Test No. 44A, first kind Test No. 44B and the first kind For examination 44C, it is contemplated that operation output should be that Second Type Test No. is invisible for the part first kind Test No.;Will The distance between Second Type Test No. and the first kind Test No. 44D and 44E are reduced to less than preset distance, then for first For type Test No. 44D and first kind Test No. 44E, it is contemplated that operation output should be Second Type Test No. for the portion Divide first kind Test No. visible.
Assuming that continuous carried out 10 test process to LBS applications, the actual motion for analyzing each test process is defeated It is 8 times to go out with expected operation output identical number of times, and the number of times differed only has 2 times, then it is considered that the operation of LBS applications Precision is 80%.
The test process differed with expected operation output is exported simultaneously for actual motion, can individually be picked out Subsequent analysis is carried out, to be improved to LBS applications, and the running precision of LBS applications is improved.
In summary, the LBS method of testings that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Following is the device embodiment in the embodiment of the present invention.
Embodiment five
Fig. 5 is refer to, the block diagram of the LBS test devices provided it illustrates the embodiment of the present invention five.The LBS is surveyed Trial assembly is put, including:Test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for setting first kind Test No. and Second Type Test No., each Test No. is each One longitude and latitude of correspondence;
Position changes module 540, the longitude and latitude of the first kind Test No. for keeping the setting of test setting module 520 Degree is constant, gradually changes the longitude and latitude for the Second Type Test No. that the test setting module 520 is set;
Functional test module 560, for the first kind Test No. that is set according to the test setting module 520 and described Position change module 540 change every time the Second Type Test No. after longitude and latitude LBS applications are carried out relevant distance or The test of scope.
In summary, the LBS test devices that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Embodiment six
Fig. 6 is refer to, the block diagram of the LBS test devices provided it illustrates the embodiment of the present invention six.The LBS is surveyed Trial assembly is put, including:Test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for setting first kind Test No. and Second Type Test No., each Test No. is each One longitude and latitude of correspondence.In the present embodiment, the first kind Test No. can be one, and the Second Type Test No. can be with For at least one.
Position changes module 540, the longitude and latitude of the first kind Test No. for keeping the setting of test setting module 520 Degree is constant, gradually changes the longitude and latitude for the Second Type Test No. that the test setting module 520 is set.Specifically, position The first distance increase and decrease unit 541 and first longitude and latitude change unit 542 can be included by changing module 540.Wherein:
The first distance increase and decrease unit 541, the Second Type for gradually setting the test setting module 520 is surveyed The distance between examination number and the first kind Test No. increase reduce predetermined amplitude, obtain the Second Type Test No. Current measuring distance;
First longitude and latitude changes unit 542, for increasing and decreasing current after unit 541 changes according to the described first distance Measuring distance changes the longitude and latitude of the Second Type Test No..
Functional test module 560, for the first kind Test No. that is set according to the test setting module 520 and described Position change module 540 change every time the Second Type Test No. after longitude and latitude LBS applications are carried out relevant distance or The test of scope.
In summary, the LBS test devices that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Embodiment seven
Fig. 7 is refer to, the block diagram of the LBS test devices provided it illustrates the embodiment of the present invention seven.The LBS is surveyed Trial assembly is put, including:Test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for setting first kind Test No. and Second Type Test No., each Test No. is each One longitude and latitude of correspondence.In the present embodiment, the first kind Test No. can be one, and the Second Type Test No. can be with For at least one.
Position changes module 540, the longitude and latitude of the first kind Test No. for keeping the setting of test setting module 520 Degree is constant, gradually changes the longitude and latitude for the Second Type Test No. that the test setting module 520 is set.Specifically, position Latitude increase and decrease unit 543 and/or longitude increase and decrease unit 544 can be included by changing module 540.Wherein:
The latitude increases and decreases unit 543, for keeping Second Type Test No. that the test setting module 520 sets Longitude is constant, gradually increases or reduce predetermined amplitude by the latitude of the Second Type Test No.;
The longitude increases and decreases unit 544, for keeping Second Type Test No. that the test setting module 520 sets Latitude is constant, gradually increases or reduce predetermined amplitude by the longitude of the Second Type Test No..
Functional test module 560, for the first kind Test No. that is set according to the test setting module 520 and described Position change module 540 change every time the Second Type Test No. after longitude and latitude LBS applications are carried out relevant distance or The test of scope.
In summary, the LBS test devices that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Embodiment eight
Fig. 8 is refer to, the block diagram of the LBS test devices provided it illustrates the embodiment of the present invention eight.The LBS is surveyed Trial assembly is put, including:Test setting module 520, position change module 540 and functional test module 560.
Test setting module 520, for setting first kind Test No. and Second Type Test No., each Test No. is each One longitude and latitude of correspondence.In the present embodiment, the first kind Test No. can be two or more, the Equations of The Second Kind Type Test No. can be one.
Position changes module 540, the longitude and latitude of the first kind Test No. for keeping the setting of test setting module 520 Degree is constant, gradually changes the longitude and latitude for the Second Type Test No. that the test setting module 520 is set.Specifically, position Second distance increase and decrease unit 545 and second longitude and latitude change unit 546 can be included by changing module 540.Wherein:
The second distance increases and decreases unit 545, and the Second Type for gradually setting the test setting module 520 is surveyed The distance between first kind Test No. that examination number is set with a part of test setting module 520 increases to greater than pre- spacing From, and the Second Type Test No. is reduced to less than making a reservation for the distance between first kind Test No. described in remainder Distance, obtains the current test position of Second Type Test No.;
Second longitude and latitude changes unit 546, for increasing and decreasing the current survey that unit 545 changes according to the second distance Try the longitude and latitude that position changes the Second Type Test No..
Functional test module 560, for the first kind Test No. that is set according to the test setting module 520 and described Position change module 540 change every time the Second Type Test No. after longitude and latitude LBS applications are carried out relevant distance or The test of scope.
In summary, the LBS test devices that the present embodiment is provided, by using two kinds of Test No., keep first The longitude and latitude of type Test No. is constant, gradually changes the longitude and latitude of Second Type Test No., then LBS applications are tested; Solve existing method of testing is merely able to the problem of whether operation to LBS applications can be with testing;Having reached can be right The effect that the running precision of LBS applications is tested.
Functional test module 560 in supplementary notes, above-mentioned six to eight embodiment, can be specifically included:Test Unit 562, test execution unit 564 and interpretation of result unit 566 are logged in, as shown in Figure 9.
The test logs in unit 562, for utilizing the first kind Test No. and each institute changed after longitude and latitude State Second Type Test No. and log in the LBS applications;
The test execution unit 564, for call the test log in the LBS applications that unit 562 is logged in it is relevant away from From or scope function, obtain the actual motion output of LBS application;
The interpretation of result unit 566, is exported and pre- for analyzing the actual motion that the test execution unit 564 is obtained Whether phase operation output is identical to draw test result.
It should be noted that:The LBS test devices that above-described embodiment is provided are when test LBS is applied, only with above-mentioned each work( The division progress of energy module is for example, in practical application, as needed can distribute above-mentioned functions by different functions Module is completed, i.e., the internal structure of equipment is divided into different functional modules, described above all or part of to complete Function.In addition, the LBS test devices that above-described embodiment is provided belong to same design with LBS method of testing embodiments, it is specific real Existing process refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (8)

1. a kind of LBS method of testings, it is characterised in that methods described includes:
First kind Test No. and Second Type Test No. are set, and each Test No. each corresponds to a longitude and latitude, the test Number correspond to LBS apply a particular user;
Keep the longitude and latitude of the first kind Test No. constant, gradually change the longitude and latitude of the Second Type Test No.;
Using the first kind Test No. and changing the Second Type Test No. login LBS after longitude and latitude every time should With;
Call in the LBS applications about distance or the function of scope, obtain the actual motion output of the LBS applications;
Analyze actual motion output and whether expected operation output is identical draws test result.
2. according to the method described in claim 1, it is characterised in that the first kind Test No. is one, the Equations of The Second Kind Type Test No. is at least one,
The longitude and latitude for gradually changing the Second Type Test No., is specifically included:
The distance between the Second Type Test No. and described first kind Test No. are gradually increased or reduced pre- tentering Degree, obtains the current measuring distance of the Second Type Test No.;
Change the longitude and latitude of the Second Type Test No. according to the current measuring distance.
3. according to the method described in claim 1, it is characterised in that the first kind Test No. is one, the Equations of The Second Kind Type Test No. is at least one,
The longitude and latitude for gradually changing the Second Type Test No., is specifically included:
Keep the longitude of the Second Type Test No. constant, gradually the latitude of the Second Type Test No. is increased or subtracted Few predetermined amplitude;
And/or, keep the latitude of the Second Type Test No. constant, gradually by the longitude increase of the Second Type Test No. Or reduce predetermined amplitude.
4. according to the method described in claim 1, it is characterised in that the first kind Test No. be two or two with On, the Second Type Test No. is one,
The longitude and latitude for gradually changing the Second Type Test No., is specifically included:
Gradually the distance between the Second Type Test No. and a part of described first kind Test No. are increased to greater than pre- Set a distance, and the Second Type Test No. is reduced to less than with the distance between first kind Test No. described in remainder Preset distance, obtains the current test position of Second Type Test No.;
Change the longitude and latitude of the Second Type Test No. according to the current test position.
5. a kind of LBS test devices, it is characterised in that described device includes:
Test setting module, for setting first kind Test No. and Second Type Test No., each Test No. each corresponds to one Individual longitude and latitude, the Test No. corresponds to the particular user that LBS is applied;
Position changes module, for keeping the longitude and latitude of the first kind Test No. constant, gradually changes the Second Type The longitude and latitude of Test No.;
Login module is tested, is surveyed for using the first kind Test No. and changing the Second Type after longitude and latitude every time Examination number logs in the LBS applications;
Testing execution module, for calling in the LBS applications about distance or the function of scope, obtains the LBS applications Actual motion output;
Interpretation of result module, for analyzing actual motion output and whether expected operation output is identical draws test knot Really.
6. device according to claim 5, it is characterised in that the first kind Test No. is one, the Equations of The Second Kind Type Test No. is at least one, and the position changes module, specifically includes:
First distance increase and decrease unit and the first longitude and latitude change unit;
The first distance increase and decrease unit, for gradually by between the Second Type Test No. and the first kind Test No. Distance increase or reduce predetermined amplitude, obtain the current measuring distance of the Second Type Test No.;
First longitude and latitude changes unit, the warp for changing the Second Type Test No. according to the current measuring distance Latitude.
7. device according to claim 5, it is characterised in that the first kind Test No. is one, the Equations of The Second Kind Type Test No. is at least one, and the position changes module, specifically includes:
Latitude increases and decreases unit and/or longitude increase and decrease unit;
The latitude increases and decreases unit, for keeping the longitude of the Second Type Test No. constant, gradually by the Second Type The latitude increase of Test No. reduces predetermined amplitude;
The longitude increases and decreases unit, for keeping the latitude of the Second Type Test No. constant, gradually by the Second Type The longitude increase of Test No. reduces predetermined amplitude.
8. device according to claim 5, it is characterised in that the first kind Test No. be two or two with On, the Second Type Test No. is one, and the position changes module, specifically includes:
Second distance increases and decreases unit and the second longitude and latitude changes unit;
The second distance increases and decreases unit, for gradually testing the Second Type Test No. with a part of first kind Number the distance between increase to greater than preset distance, and the Second Type Test No. is surveyed with the first kind described in remainder The distance between examination number is reduced to less than preset distance, obtains the current test position target range of Second Type Test No.;
Second longitude and latitude changes unit, the warp for changing the Second Type Test No. according to the current test position Latitude.
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 CN103778057A (en) 2014-05-07
CN103778057B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10620236B2 (en) * 2017-06-12 2020-04-14 Marvell Asia Pte, Ltd. Multi-test type probe card and corresponding testing system for parallel testing of dies via multiple test sites

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI280807B (en) * 2003-02-19 2007-05-01 Sk Telecom Co Ltd Method and system for optimizing location-based service by adjusting maximum antenna range

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN103778057A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
Taroni et al. Prospective CSEP evaluation of 1‐day, 3‐month, and 5‐yr earthquake forecasts for Italy
US20170213037A1 (en) Security risk scoring of an application
CN109359003B (en) Game server pressure testing method, device and equipment
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN106294120A (en) The test method of code, equipment and computer program
CN107885660A (en) Fund system automatic test management method, device, equipment and storage medium
CN106201856A (en) A kind of multi version performance test methods and device
CN106780116A (en) The construction method of power emergency drilling method, device and its scenario models, device
CN104597892A (en) Hierarchical fault diagnosis method for electronic information equipment
CN105045574A (en) Software key function identification method based on complex network fault propagation
CN106487603A (en) A kind of response test method and device
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN104320271A (en) Network device security evaluation method and device
Gülerce et al. Seismic hazard maps for the Western Balkan
CN103778057B (en) LBS method of testings and device
CN106407118A (en) Method and device for testing user terminal
CN112995893A (en) Fingerprint positioning method, system, server and storage medium
CN110262956A (en) A kind of test cases selection method and device
CN105159826B (en) A kind of method and apparatus of wrong sentence in positioning target program
CN106648895A (en) Data processing method and device, and terminal
CN107703542B (en) Method and device for determining seismic horizon of reverse fault area
CN111125066A (en) Method and device for detecting functions of database audit equipment
CN105891637A (en) Intelligent substation secondary device testing method and intelligent substation secondary device testing system
CN115480307A (en) Power grid earthquake evaluation method and related equipment
CN107402883A (en) A kind of data test treating method and apparatus

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