CN104778119B - A kind of LBS automated testing method and device based on simulator locating - Google Patents
A kind of LBS automated testing method and device based on simulator locating Download PDFInfo
- Publication number
- CN104778119B CN104778119B CN201510119349.1A CN201510119349A CN104778119B CN 104778119 B CN104778119 B CN 104778119B CN 201510119349 A CN201510119349 A CN 201510119349A CN 104778119 B CN104778119 B CN 104778119B
- Authority
- CN
- China
- Prior art keywords
- test
- mobile communication
- communication terminal
- simulator locating
- scene
- 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
Links
Abstract
The embodiment of the present invention provides a kind of LBS automated testing method and device based on simulator locating, which comprises according to testing requirement, obtains corresponding test scene and test case;Mobile communication terminal simulator locating is carried out using the test scene;It is tested using the test scene and test case according to the automatic sending application request of the testing procedure of setting based on the positioning result of the mobile communication terminal simulator locating, and generates test report.Above-mentioned technical proposal has the following beneficial effects: due to using simulator locating, so that not needing the limitation for the test data looked for the account of true geographical location information to be tested, therefore greatly reduced;Due to automation construction request, so that not needing manually to participate in pilot process, therefore testing efficiency is greatly provided, save cost.
Description
Technical field
The present invention relates to automatization testing technique field more particularly to a kind of LBS (Location based on simulator locating
Based Service, geo-location service) automated testing method and device
Background technique
There are mainly two types of current LBS tests:
First is that actual geographic position measurement: to carry out the relevant test of geographical location information, it is necessary to be in really
Position is managed, authentic and valid and accurate test data could be generated.For example hair microblogging function is tested, take geographical location letter
Breath, test scene are the real user accounts that are possessed of domestic and international city for looking for institute's coverage test in need, and transmission is with position
Microblogging, difficulty and limitation as one can imagine.This technology disadvantage: (1) restricted height can not cover comprehensively.General point 1 of test
Four line cities and both urban and rural area, there are also oceans and desert region, also to distinguish domestic and international place, to find true test number
According to, basically can not 100% comprehensively covering.(2) testing cost is high.Want comprehensively to find the progress of authentic testing data as far as possible
Test can expend many manpowers, improve cost, extremely reduce working efficiency.Also, during the test, if demand
Change, or more wheel tests, multiple interaction can be generated, even more increase very big communication cost, and then more reduce working efficiency.
Second is that simulation geographical location manual test: simulation geographical location manual test refers to geographical using the device simulation of simulation
Position is arranged good position, then clicks carry out various test operations by hand.This technology disadvantage: labor intensive, operation are easy to make mistakes.
This technology realizes semi-automatic LBS dependence test, but actual test is still to click to complete by hand.So apparent lack
Point is still labor intensive, and working efficiency is low.
Summary of the invention
The embodiment of the present invention provides a kind of LBS automated testing method and device based on simulator locating, to have automated
At raising testing efficiency saves cost.
On the one hand, the embodiment of the invention provides a kind of the LBS automated testing method based on simulator locating, the method
Include:
According to testing requirement, corresponding test scene and test case are obtained;
Mobile communication terminal simulator locating is carried out using the test scene;
Based on the positioning result of the mobile communication terminal simulator locating, the test scene and test case, root are utilized
It is tested according to the automatic sending application request of the testing procedure of setting, and generates test report.
On the other hand, the embodiment of the invention provides a kind of, and the geo-location service LBS based on simulator locating automates survey
Trial assembly is set, and described device includes:
Acquiring unit, for obtaining corresponding test scene and test case according to testing requirement;
Simulator locating unit, for carrying out mobile communication terminal simulator locating using the test scene;
Automatic test cell utilizes the test for the positioning result based on the mobile communication terminal simulator locating
Scene and test case are tested according to the automatic sending application request of the testing procedure of setting, and generate test report.
Above-mentioned technical proposal has the following beneficial effects: due to using simulator locating, so that not needing to look for true geography
The account of location information is tested, therefore the limitation of the test data greatly reduced;Due to automation construction request, so that not
It needs manually to participate in pilot process, therefore greatly provides testing efficiency, save cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of geo-location service LBS automated testing method process based on simulator locating of the embodiment of the present invention
Figure;
Fig. 2 is a kind of geo-location service LBS automatic test device structure based on simulator locating of the embodiment of the present invention
Schematic diagram;
Fig. 3 is geo-location service LBS automatic test device knot of the another kind of the embodiment of the present invention based on simulator locating
Structure schematic diagram;
Fig. 4 is that application example mobile phone terminal test device of the present invention realizes schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, being a kind of automatic test side geo-location service LBS based on simulator locating of the embodiment of the present invention
Method flow chart, which comprises
101, according to testing requirement, corresponding test scene and test case are obtained;
102, mobile communication terminal simulator locating is carried out using the test scene;
103, the positioning result based on the mobile communication terminal simulator locating is used using the test scene and test
Example is tested according to the automatic sending application request of the testing procedure of setting, and generates test report.
Preferably, described according to testing requirement, before obtaining corresponding test scene and test case, the method is also wrapped
It includes: according to testing requirement, test scene and/or test case is added in development mode displayed page, with spare.
Preferably, described according to testing requirement, before obtaining corresponding test scene and test case, the method is also wrapped
It includes: according to testing requirement, adding test scene and/or test case in development mode displayed page.
Preferably, described according to testing requirement, obtain corresponding test scene and test case, comprising: in test pattern
Displayed page provides several test scenes and test case is selected for user according to testing requirement, and the selection based on user
Obtain the corresponding test scene of the testing requirement and test case.
Preferably, described to carry out mobile communication terminal simulator locating using the test scene, comprising: to utilize the test
Scene, by calling the test scene corresponding interface to modify the system position of the mobile communication terminal, thus described in completing
Mobile communication terminal simulator locating.
Preferably, the mobile communication terminal includes multiple;And the utilization test scene and the test case,
It is tested according to the automatic sending application request of the testing procedure of setting, and generates test report, specifically included: being utilized respectively institute
It states the respective test scene of multiple mobile communication terminals and test case obtains the corresponding application request of each mobile communication terminal,
Then it is tested respectively according to the automatic sending application request of the testing procedure of setting, and generates the multiple mobile communication respectively
The test report of terminal.
Corresponding to above method embodiment, as shown in Fig. 2, being a kind of geographical position based on simulator locating of the embodiment of the present invention
Service LBS automatic test device structural schematic diagram is set, described device includes:
Acquiring unit 21, for obtaining corresponding test scene and test case according to testing requirement;
Simulator locating unit 22, for carrying out mobile communication terminal simulator locating using the test scene;
Automatic test cell 23 utilizes the survey for the positioning result based on the mobile communication terminal simulator locating
Examination hall scape and test case are tested according to the automatic sending application request of the testing procedure of setting, and generate test report.
Preferably, as shown in figure 3, certainly for geo-location service LBS of the another kind of the embodiment of the present invention based on simulator locating
Dynamicization schematic structural diagram of testing device, described device include: acquiring unit 21, simulator locating unit 22, automatic test cell 23,
Further include: development mode unit 20, for adding test scene and/or survey in development mode displayed page according to testing requirement
Example on probation.
Preferably, the acquiring unit 21 is specifically used for being provided in test pattern displayed page several according to testing requirement
Test scene and test case are selected for user according to testing requirement, and the selection based on user obtains the testing requirement
Corresponding test scene and test case.
Preferably, the simulator locating unit 22 is specifically used for utilizing the test scene, by calling the checkout area
Scape corresponding interface modifies the system position of the mobile communication terminal, to complete the mobile communication terminal simulator locating.
Preferably, the mobile communication terminal includes multiple;And the automatic test cell 23, it is specifically used for difference
Obtain that each mobile communication terminal is corresponding to answer using the respective test scene of the multiple mobile communication terminal and test case
It with request, is then tested, and is generated respectively the multiple according to the automatic sending application request of the testing procedure of setting respectively
The test report of mobile communication terminal.
Above-mentioned technical proposal of the embodiment of the present invention is described in detail below with reference to application example:
As shown in figure 4, realizing schematic diagram for application example mobile phone terminal test device of the present invention, major technique realizes composition
Part: front end+backstage+data storage, in which:
Front end: displayed page includes two parts, first is that development mode, second is that test pattern.Development mode function is addition
Test scene and/or test case, tester test scene can be added according to different business demands and/or test is used
Example, in case the later period uses;Test pattern has multiple option, logs in including: mailbox, testing location sequence, test account
Sequence, test function sequence, test case group selection, combination etc..Tester can select different groups according to demand
It closes and carries out one-touch test.
From the background: including four parts, first is that positioning system, second is that test request system, third is that using access system, fourth is that hair
Send reporting system.Positioning system is used for simulator locating, generally has the prior art having been carried out, modification can be completed in calling interface
Simulator locating is completed in mobile phone terminal system position;Test request system is used to be sent automatically according to set testing procedure specified
Request is tested;Using access system for extending, so that the present apparatus is suitable for each application, interface and rule are provided for exploitation
Person uses, the basic test request for the application that can be tested needed for typing;Reporting system is sent for being finally completed test report, and
It is sent to specified mailbox.
Data storage: including storage test scene and/or test case, and storage application request.Test scene herein,
Test case refers to that user uses development mode increased test scene, test case according to demand in front end;Application request
Refer to developer for respectively being requested substantially using the respective test of the provided interface encapsulation of device, convenient for extension with
It supports to apply automatic test more.
Above-mentioned technical proposal has the following beneficial effects: due to using simulator locating, so that not needing to look for true geography
The account of location information is tested, therefore the limitation of the test data greatly reduced;Due to automation construction request, so that not
It needs manually to participate in pilot process, therefore greatly provides testing efficiency, save cost.
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed
(illustrative logical block), unit and step can by electronic hardware, computer software, or both knot
Conjunction is realized.For the replaceability (interchangeability) for clearly showing that hardware and software, above-mentioned various explanations
Property component (illustrative components), unit and step universally describe their function.Such function
It can be that the design requirement for depending on specific application and whole system is realized by hardware or software.Those skilled in the art
Can be can be used by various methods and realize the function, but this realization is understood not to for every kind of specific application
Range beyond protection of the embodiment of the present invention.
Various illustrative logical blocks or unit described in the embodiment of the present invention can by general processor,
Digital signal processor, specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gate
Or transistor logic, discrete hardware components or above-mentioned any combination of design carry out implementation or operation described function.General place
Managing device can be microprocessor, and optionally, which may be any traditional processor, controller, microcontroller
Device or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor,
Multi-microprocessor, one or more microprocessors combine a digital signal processor core or any other like configuration
To realize.
The step of method described in the embodiment of the present invention or algorithm can be directly embedded into hardware, processor execute it is soft
The combination of part module or the two.Software module can store in RAM memory, flash memory, ROM memory, EPROM storage
Other any form of storaging mediums in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this field
In.Illustratively, storaging medium can be connect with processor, so that processor can read information from storaging medium, and
It can be to storaging medium stored and written information.Optionally, storaging medium can also be integrated into the processor.Processor and storaging medium can
To be set in asic, ASIC be can be set in user terminal.Optionally, processor and storaging medium also can be set in
In different components in the terminal of family.
In one or more exemplary designs, above-mentioned function described in the embodiment of the present invention can be in hardware, soft
Part, firmware or any combination of this three are realized.If realized in software, these functions be can store and computer-readable
On medium, or it is transferred on a computer readable medium in the form of one or more instructions or code forms.Computer readable medium includes electricity
Brain storaging medium and convenient for so that computer program is allowed to be transferred to from a place telecommunication media in other places.Storaging medium can be with
It is that any general or special computer can be with the useable medium of access.For example, such computer readable media may include but
It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk storage or other magnetic storage devices or other
What can be used for carry or store with instruct or data structure and it is other can be by general or special computer or general or specially treated
The medium of the program code of device reading form.In addition, any connection can be properly termed computer readable medium, example
Such as, if software is to pass through a coaxial cable, fiber optic cables, double from a web-site, server or other remote resources
Twisted wire, Digital Subscriber Line (DSL) are defined with being also contained in for the wireless way for transmitting such as example infrared, wireless and microwave
In computer readable medium.The disk (disk) and disk (disc) includes compress disk, radium-shine disk, CD, DVD, floppy disk
And Blu-ray Disc, disk is usually with magnetic replicate data, and disk usually carries out optically replicated data with laser.Combinations of the above
Also it may be embodied in computer readable medium.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.
Claims (8)
1. a kind of geo-location service LBS automated testing method based on simulator locating, which is characterized in that the method packet
It includes:
According to testing requirement, corresponding test scene and test case are obtained;
Mobile communication terminal simulator locating is carried out using the test scene;
Based on the positioning result of the mobile communication terminal simulator locating, using the test scene and test case, according to setting
The automatic sending application request of fixed testing procedure is tested, and generates test report;
It is described to carry out mobile communication terminal simulator locating using the test scene, comprising:
Using the test scene, by calling the test scene corresponding interface to modify the system position of the mobile communication terminal
It sets, to complete the mobile communication terminal simulator locating.
2. the geo-location service LBS automated testing method based on simulator locating, feature exist as described in claim 1
In, it is described according to testing requirement, before obtaining corresponding test scene and test case, the method also includes:
According to testing requirement, test scene and/or test case are added in development mode displayed page.
3. the geo-location service LBS automated testing method based on simulator locating as claimed in claim 1 or 2, feature
It is, it is described according to testing requirement, obtain corresponding test scene and test case, comprising:
Several test scenes and test case is provided in test pattern displayed page to be selected for user according to testing requirement, and
Selection based on user obtains the corresponding test scene of the testing requirement and test case.
4. the geo-location service LBS automated testing method based on simulator locating, feature exist as described in claim 1
In the mobile communication terminal includes multiple;And
It is described to utilize the test scene and test case, it is surveyed according to the automatic sending application request of the testing procedure of setting
Examination, and test report is generated, it specifically includes:
It is utilized respectively the respective test scene of the multiple mobile communication terminal and test case obtains each mobile communication terminal
Then corresponding application request is tested respectively according to the automatic sending application request of the testing procedure of setting, and is generated respectively
The test report of the multiple mobile communication terminal.
5. a kind of geo-location service LBS automatic test device based on simulator locating, which is characterized in that described device packet
It includes:
Acquiring unit, for obtaining corresponding test scene and test case according to testing requirement;
Simulator locating unit, for carrying out mobile communication terminal simulator locating using the test scene;
Automatic test cell utilizes the test scene for the positioning result based on the mobile communication terminal simulator locating
And test case, it is tested according to the automatic sending application request of the testing procedure of setting, and generate test report;
The simulator locating unit is specifically used for utilizing the test scene, by calling the test scene corresponding interface to repair
Change the system position of the mobile communication terminal, to complete the mobile communication terminal simulator locating.
6. the geo-location service LBS automatic test device of simulator locating as claimed in claim 5, which is characterized in that institute
State device further include:
Development mode unit, for adding test scene in development mode displayed page and/or test being used according to testing requirement
Example.
7. such as the geo-location service LBS automatic test device of simulator locating described in claim 5 or 6, which is characterized in that
The acquiring unit, is specifically used for according to testing requirement, provides several test scenes and survey in test pattern displayed page
Example on probation is selected for user according to testing requirement, and the selection based on user obtains the corresponding checkout area of the testing requirement
Scape and test case.
8. the geo-location service LBS automatic test device of simulator locating as claimed in claim 5, which is characterized in that institute
It includes multiple for stating mobile communication terminal;And
The automatic test cell, specifically for being utilized respectively the respective test scene of the multiple mobile communication terminal and test
Use-case obtains the corresponding application request of each mobile communication terminal, then respectively according to the automatic sending application of the testing procedure of setting
Request is tested, and generates the test report of the multiple mobile communication terminal respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510119349.1A CN104778119B (en) | 2015-03-18 | 2015-03-18 | A kind of LBS automated testing method and device based on simulator locating |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510119349.1A CN104778119B (en) | 2015-03-18 | 2015-03-18 | A kind of LBS automated testing method and device based on simulator locating |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104778119A CN104778119A (en) | 2015-07-15 |
CN104778119B true CN104778119B (en) | 2019-01-18 |
Family
ID=53619598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510119349.1A Active CN104778119B (en) | 2015-03-18 | 2015-03-18 | A kind of LBS automated testing method and device based on simulator locating |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778119B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142139B (en) * | 2019-11-29 | 2022-08-26 | 苏州科达科技股份有限公司 | Method and device for acquiring simulated positioning information and storage medium |
CN111581065B (en) * | 2020-04-13 | 2023-08-01 | 微梦创科网络科技(中国)有限公司 | Mobile terminal message partial pressure test system and method based on live broadcast scene |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070240118A1 (en) * | 2006-02-28 | 2007-10-11 | Ido Keren | System, method, and software for testing a software application |
CN101620564B (en) * | 2008-06-30 | 2011-10-19 | 福建升腾资讯有限公司 | Method for automatically testing recording playback mode of terminal system |
-
2015
- 2015-03-18 CN CN201510119349.1A patent/CN104778119B/en active Active
Non-Patent Citations (1)
Title |
---|
基于智能手机的导览系统交互设计与实现;俞必忠;《中国优秀硕士学位论文全文数据库》;20150315;第1页第1.1节-第92页第4.4节 |
Also Published As
Publication number | Publication date |
---|---|
CN104778119A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106127874B (en) | Work attendance method, device and equipment based on mobile terminal | |
CN109525605A (en) | A kind of account management method, device, system and computer readable storage medium | |
CN108170612A (en) | A kind of automated testing method, device and server | |
CN104113870B (en) | Network test method and mobile terminal | |
CN107766250A (en) | Method of testing, device, server and the storage medium of advertisement pattern | |
CN103246606A (en) | Method and system for testing performances of ESB (enterprises service bus) platform | |
CN104778119B (en) | A kind of LBS automated testing method and device based on simulator locating | |
CN105025141A (en) | Method and device for testing electricity consumption of terminal | |
CN107368413A (en) | A kind of method and apparatus for submitting vulnerability information | |
CN106776350A (en) | The accurate method of testing and device of a kind of program | |
CN109471784A (en) | A kind of NAS test macro, method and computer readable storage medium | |
CN100536504C (en) | IMS system large telephone traffic call automatic testing method and device | |
CN102469112B (en) | Position tracking implementation method, Apparatus and system | |
CN105701854B (en) | A kind of 3D rendering intents, device and engine | |
CN108124270A (en) | A kind of coverage evaluating method and device of LTE network | |
CN102025555B (en) | Method and device for testing IP multimedia sub-system performance | |
CN104572443A (en) | Mobile terminal testing method and device | |
CN108833584A (en) | Information push method, terminal, server and computer storage medium | |
CN105188041B (en) | Call transferring method and home gateway based on fixed-line telephone | |
CN107566513A (en) | Test equipment DOS environmental data collecting methods and system | |
US11409928B2 (en) | Configurable digital twin | |
CN112770326B (en) | LoRa gateway deployment method, device, equipment and storage medium | |
CN109710474A (en) | A kind of hard disk fault detection method, device, terminal and readable storage medium storing program for executing | |
CN111405598A (en) | Indoor distribution signal leakage detection method and equipment | |
CN114003293B (en) | Interface management method, device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |