CN104778119A - LBS (location based service) automatic test method and device based on simulated positioning - Google Patents

LBS (location based service) automatic test method and device based on simulated positioning Download PDF

Info

Publication number
CN104778119A
CN104778119A CN201510119349.1A CN201510119349A CN104778119A CN 104778119 A CN104778119 A CN 104778119A CN 201510119349 A CN201510119349 A CN 201510119349A CN 104778119 A CN104778119 A CN 104778119A
Authority
CN
China
Prior art keywords
test
mobile communication
communication terminal
scene
simulator locating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510119349.1A
Other languages
Chinese (zh)
Other versions
CN104778119B (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.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201510119349.1A priority Critical patent/CN104778119B/en
Publication of CN104778119A publication Critical patent/CN104778119A/en
Application granted granted Critical
Publication of CN104778119B publication Critical patent/CN104778119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides an LBS (location based service) automatic test method and device based on simulated positioning. The method comprises the following steps: acquiring a corresponding test scene and a test case according to the test requirement; carrying out the simulated location for a mobile communication terminal by utilizing the test scene; automatically transmitting an application request to carry out the test according to a set test procedure by utilizing the test scene and the test case on the basis of a location result of the simulated location of the mobile communication terminal, and generating a test report. According to the technical scheme, the method has the following beneficial effects: by adopting the simulated location, the test can be carried out without finding an account of real geographic location information, so that the limitation of the test data is greatly reduced; due to the automatic structure request, the manual intervention is not needed for an intermediate process, the test efficiency is greatly improved, and the cost is saved.

Description

A kind of LBS automated testing method based on simulator locating and device
Technical field
The present invention relates to automatization testing technique field, particularly relate to a kind of LBS based on simulator locating (Location BasedService, geo-location service) automated testing method and device
Background technology
Current LBS test mainly contains two kinds:
One is actual geographic position measurement: to carry out the relevant test of geographical location information, must be in real geographic position, could produce authentic and valid and test data accurately.Such as will test and send out microblogging function, bring geographical location information, test scene is, look for all real user accounts needing the domestic and international city of coverage test to have, the microblogging of transmit band position, difficulty and restriction are well imagined.This technical disadvantages: (1) restricted height, cannot cover comprehensively.Test general point of one two three four line city and both urban and rural areas, also have ocean and desert region, also will distinguish domestic and international place, find real test data, substantially cannot 100% to cover comprehensively.(2) testing cost is high.Want as far as possible comprehensively to find authentic testing data to test, a lot of manpower can be expended, raise the cost, extremely reduce work efficiency.Further, in test process, if demand changes to some extent, or take turns test more, can produce repeatedly mutual, more be the increase in very large communication cost, and then more reduce work efficiency.
Two is simulation geographic position manual tests: simulation geographic position manual test refers to the device simulation geographic position using simulation, set position, more manual click carries out various test operation.This technical disadvantages: labor intensive, operation is easy to error.This technology achieves semi-automatic LBS dependence test, but actual test remains manual has clicked.So significantly shortcoming remains labor intensive, inefficiency.
Summary of the invention
The embodiment of the present invention provides a kind of LBS automated testing method based on simulator locating and device, completes with robotization, improves testing efficiency, saves cost.
On the one hand, embodiments provide a kind of LBS automated testing method based on simulator locating, described method comprises:
According to testing requirement, obtain corresponding test scene and test case;
Described test scene is utilized to carry out mobile communication terminal simulator locating;
Based on the positioning result of described mobile communication terminal simulator locating, utilize described test scene and test case, automatically send application request according to the testing procedure of setting and test, and generate test report.
On the other hand, embodiments provide a kind of geo-location service LBS automatic test device based on simulator locating, described device comprises:
Acquiring unit, for according to testing requirement, obtains corresponding test scene and test case;
Simulator locating unit, carries out mobile communication terminal simulator locating for utilizing described test scene;
Automatic test cell, for the positioning result based on described mobile communication terminal simulator locating, utilizes described test scene and test case, automatically sends application request and tests, and generate test report according to the testing procedure of setting.
Technique scheme has following beneficial effect: owing to have employed simulator locating, and making does not need to look for the account of true geographical location information to test, the restriction of the test data therefore greatly reduced; Due to the request of robotization structure, make not need manually to participate in pilot process, therefore provide testing efficiency greatly, provide cost savings.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of geo-location service LBS automated testing method process flow diagram based on simulator locating of the embodiment of the present invention;
Fig. 2 is a kind of geo-location service LBS automatic test device structural representation based on simulator locating of the embodiment of the present invention;
Fig. 3 is the another kind of geo-location service LBS automatic test device structural representation based on simulator locating of the embodiment of the present invention;
Fig. 4 is that application example mobile phone terminal proving installation of the present invention realizes schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, be a kind of geo-location service LBS automated testing method process flow diagram based on simulator locating of the embodiment of the present invention, described method comprises:
101, according to testing requirement, corresponding test scene and test case is obtained;
102, described test scene is utilized to carry out mobile communication terminal simulator locating;
103, based on the positioning result of described mobile communication terminal simulator locating, utilize described test scene and test case, automatically send application request according to the testing procedure of setting and test, and generate test report.
Preferably, described according to testing requirement, before obtaining corresponding test scene and test case, described method also comprises: according to testing requirement, adds test scene and/or test case, with for subsequent use at development mode displayed page.
Preferably, described according to testing requirement, before obtaining corresponding test scene and test case, described method also comprises: according to testing requirement, adds test scene and/or test case at development mode displayed page.
Preferably, described according to testing requirement, obtain corresponding test scene and test case, comprise: provide some test scenes and test case to select according to testing requirement for user at test pattern displayed page, and obtain test scene corresponding to described testing requirement and test case based on the selection of user.
Preferably, describedly described test scene is utilized to carry out mobile communication terminal simulator locating, comprising: utilize described test scene, revising the alliance of described mobile communication terminal by calling described test scene corresponding interface, thus complete described mobile communication terminal simulator locating.
Preferably, described mobile communication terminal comprises multiple; And, describedly utilize described test scene and test case, automatically send application request according to the testing procedure of setting to test, and generate test report, specifically comprise: utilize the respective test scene of described multiple mobile communication terminal and test case to obtain application request corresponding to each mobile communication terminal respectively, then automatically send application request according to the testing procedure of setting respectively to test, and generate the test report of described multiple mobile communication terminal respectively.
Corresponding to said method embodiment, as shown in Figure 2, be a kind of geo-location service LBS automatic test device structural representation based on simulator locating of the embodiment of the present invention, described device comprises:
Acquiring unit 21, for according to testing requirement, obtains corresponding test scene and test case;
Simulator locating unit 22, carries out mobile communication terminal simulator locating for utilizing described test scene;
Automatic test cell 23, for the positioning result based on described mobile communication terminal simulator locating, utilizes described test scene and test case, automatically sends application request and tests, and generate test report according to the testing procedure of setting.
Preferably, as shown in Figure 3, for the another kind of geo-location service LBS automatic test device structural representation based on simulator locating of the embodiment of the present invention, described device comprises: acquiring unit 21, simulator locating unit 22, automatically test cell 23, also comprise: development mode unit 20, for according to testing requirement, add test scene and/or test case at development mode displayed page.
Preferably, described acquiring unit 21, specifically for according to testing requirement, provide some test scenes and test case to select according to testing requirement for user at test pattern displayed page, and obtain test scene corresponding to described testing requirement and test case based on the selection of user.
Preferably, described simulator locating unit 22, specifically for utilizing described test scene, revises the alliance of described mobile communication terminal, thus completes described mobile communication terminal simulator locating by calling described test scene corresponding interface.
Preferably, described mobile communication terminal comprises multiple; And, described automatic test cell 23, application request corresponding to each mobile communication terminal is obtained specifically for utilizing the respective test scene of described multiple mobile communication terminal and test case respectively, then automatically send application request according to the testing procedure of setting respectively to test, and generate the test report of described multiple mobile communication terminal respectively.
Below in conjunction with application example, embodiment of the present invention technique scheme is described in detail:
As shown in Figure 4, for application example mobile phone terminal proving installation of the present invention realizes schematic diagram, its major technique realizes ingredient: front end+backstage+data store, wherein:
Front end: displayed page comprises two parts, one is development mode, and two is test patterns.Development mode function adds test scene and/or test case, and tester can add test scene and/or test case according to different business demands, uses in order to the later stage; Test pattern has multiple option, comprising: mailbox logs in, testing location sequence, test account sequence, test function sequence, test case group selection, array mode etc.Tester can select different combinations to carry out one-touch test according to demand.
Backstage: comprise four parts, one is positioning system, and two is test request systems, and three is application connecting systems, and four is send reporting system.Positioning system is used for simulator locating, generally has the prior art realized, and calling interface can complete amendment mobile phone terminal alliance, completes simulator locating; Test request system is used for automatically sending specified request according to set testing procedure and tests; Application connecting system is used for expansion, makes this device be applicable to each application, provides interface Sum fanction for developer, the basic test request of the application can tested needed for typing; Send reporting system to be used for finally completing test report, and be sent to appointment mailbox.
Data store: comprise On-board test scene and/or test case, and store application request.Test scene herein, test case refer to user uses development mode to increase according to demand test scene, test case in front end; Application request refer to developer for each self-application operative installations provide the respective test of interface encapsulation substantially to ask, be convenient to expansion and support apply automatic test more.
Technique scheme has following beneficial effect: owing to have employed simulator locating, and making does not need to look for the account of true geographical location information to test, the restriction of the test data therefore greatly reduced; Due to the request of robotization structure, make not need manually to participate in pilot process, therefore provide testing efficiency greatly, provide cost savings.
Those skilled in the art can also recognize the various illustrative components, blocks (illustrativelogical block) that the embodiment of the present invention is listed, unit, and step can pass through electronic hardware, computer software, or both combinations realize.For the replaceability (interchangeability) of clear displaying hardware and software, above-mentioned various illustrative components (illustrativecomponents), unit and step have universally described their function.Such function is the designing requirement realizing depending on specific application and whole system by hardware or software.Those skilled in the art for often kind of specifically application, can use the function described in the realization of various method, but this realization can should not be understood to the scope exceeding embodiment of the present invention protection.
Various illustrative logical block described in the embodiment of the present invention, or unit can pass through general processor, digital signal processor, special IC (ASIC), field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the design of above-mentioned any combination realizes or operates described function.General processor can be microprocessor, and alternatively, this general processor also can be any traditional processor, controller, microcontroller or state machine.Processor also can be realized by the combination of calculation element, such as digital signal processor and microprocessor, multi-microprocessor, and a Digital Signal Processor Core combined by one or more microprocessor, or other similar configuration any realizes.
The software module that method described in the embodiment of the present invention or the step of algorithm directly can embed hardware, processor performs or the combination of both.Software module can be stored in the storage medium of other arbitrary form in RAM storer, flash memory, ROM storer, eprom memory, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this area.Exemplarily, storage medium can be connected with processor, with make processor can from storage medium reading information, and write information can be deposited to storage medium.Alternatively, storage medium can also be integrated in processor.Processor and storage medium can be arranged in ASIC, and ASIC can be arranged in user terminal.Alternatively, processor and storage medium also can be arranged in the different parts in user terminal.
In one or more exemplary design, the above-mentioned functions described by the embodiment of the present invention can realize in the combination in any of hardware, software, firmware or this three.If realized in software, these functions can store on the medium with computer-readable, or are transmitted on the medium of computer-readable with one or more instruction or code form.Computer readable medium comprises computer storage medium and is convenient to make to allow computer program transfer to the telecommunication media in other place from a place.Storage medium can be that any general or special computer can the useable medium of access.Such as, such computer readable media can include but not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage device, or other anyly may be used for carrying or store the medium that can be read the program code of form with instruction or data structure and other by general or special computer or general or special processor.In addition, any connection can be properly termed computer readable medium, such as, if software is by a concentric cable, fiber optic cables, twisted-pair feeder, Digital Subscriber Line (DSL) or being also comprised in defined computer readable medium with wireless way for transmittings such as such as infrared, wireless and microwaves from a web-site, server or other remote resource.Described video disc (disk) and disk (disc) comprise Zip disk, radium-shine dish, CD, DVD, floppy disk and Blu-ray Disc, and disk is usually with magnetic duplication data, and video disc carries out optical reproduction data with laser usually.Above-mentioned combination also can be included in computer readable medium.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. based on a geo-location service LBS automated testing method for simulator locating, it is characterized in that, described method comprises:
According to testing requirement, obtain corresponding test scene and test case;
Described test scene is utilized to carry out mobile communication terminal simulator locating;
Based on the positioning result of described mobile communication terminal simulator locating, utilize described test scene and test case, automatically send application request according to the testing procedure of setting and test, and generate test report.
2. as claimed in claim 1 based on the LBS automated testing method of simulator locating, it is characterized in that, described according to testing requirement, before obtaining corresponding test scene and test case, described method also comprises:
According to testing requirement, add test scene and/or test case at development mode displayed page.
3., as claimed in claim 1 or 2 based on the LBS automated testing method of simulator locating, it is characterized in that, described according to testing requirement, obtain corresponding test scene and test case, comprising:
There is provided some test scenes and test case to select according to testing requirement for user at test pattern displayed page, and obtain test scene corresponding to described testing requirement and test case based on the selection of user.
4. as claimed in claim 1 based on the LBS automated testing method of simulator locating, it is characterized in that, describedly utilize described test scene to carry out mobile communication terminal simulator locating, comprising:
Utilizing described test scene, revising the alliance of described mobile communication terminal by calling described test scene corresponding interface, thus complete described mobile communication terminal simulator locating.
5., as claimed in claim 1 based on the LBS automated testing method of simulator locating, it is characterized in that, described mobile communication terminal comprises multiple; And
Describedly utilize described test scene and test case, automatically send application request according to the testing procedure of setting and test, and generate test report, specifically comprise:
The respective test scene of described multiple mobile communication terminal and test case is utilized to obtain application request corresponding to each mobile communication terminal respectively, then automatically send application request according to the testing procedure of setting respectively to test, and generate the test report of described multiple mobile communication terminal respectively.
6. based on a geo-location service LBS automatic test device for simulator locating, it is characterized in that, described device comprises:
Acquiring unit, for according to testing requirement, obtains corresponding test scene and test case;
Simulator locating unit, carries out mobile communication terminal simulator locating for utilizing described test scene;
Automatic test cell, for the positioning result based on described mobile communication terminal simulator locating, utilizes described test scene and test case, automatically sends application request and tests, and generate test report according to the testing procedure of setting.
7., as claimed in claim 6 based on the LBS automatic test device of simulator locating, it is characterized in that, described device also comprises:
Development mode unit, for according to testing requirement, adds test scene and/or test case at development mode displayed page.
8., as claimed in claims 6 or 7 based on the LBS automatic test device of simulator locating, it is characterized in that,
Described acquiring unit, specifically for according to testing requirement, there is provided some test scenes and test case to select according to testing requirement for user at test pattern displayed page, and obtain test scene corresponding to described testing requirement and test case based on the selection of user.
9., as claimed in claim 6 based on the LBS automatic test device of simulator locating, it is characterized in that,
Described simulator locating unit, specifically for utilizing described test scene, revises the alliance of described mobile communication terminal, thus completes described mobile communication terminal simulator locating by calling described test scene corresponding interface.
10., as claimed in claim 6 based on the LBS automatic test device of simulator locating, it is characterized in that, described mobile communication terminal comprises multiple; And
Described automatic test cell, application request corresponding to each mobile communication terminal is obtained specifically for utilizing the respective test scene of described multiple mobile communication terminal and test case respectively, then automatically send application request according to the testing procedure of setting respectively to test, and generate the test report of described multiple mobile communication terminal respectively.
CN201510119349.1A 2015-03-18 2015-03-18 A kind of LBS automated testing method and device based on simulator locating Active CN104778119B (en)

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 true CN104778119A (en) 2015-07-15
CN104778119B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142139A (en) * 2019-11-29 2020-05-12 苏州科达科技股份有限公司 Method and device for acquiring simulated positioning information and storage medium
CN111581065A (en) * 2020-04-13 2020-08-25 微梦创科网络科技(中国)有限公司 Mobile terminal message partial pressure test system and method based on live broadcast scene

Citations (2)

* Cited by examiner, † Cited by third party
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
CN101620564A (en) * 2008-06-30 2010-01-06 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN101620564A (en) * 2008-06-30 2010-01-06 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
俞必忠: "基于智能手机的导览系统交互设计与实现", 《中国优秀硕士学位论文全文数据库》 *
周峰: "一种基于Hadoop/MapReduce的可扩展存储系统架构研究", 《一种基于HADOOP/MAPREDUCE的可扩展存储系统架构研究》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142139A (en) * 2019-11-29 2020-05-12 苏州科达科技股份有限公司 Method and device for acquiring simulated positioning information and storage medium
CN111142139B (en) * 2019-11-29 2022-08-26 苏州科达科技股份有限公司 Method and device for acquiring simulated positioning information and storage medium
CN111581065A (en) * 2020-04-13 2020-08-25 微梦创科网络科技(中国)有限公司 Mobile terminal message partial pressure test system and method based on live broadcast scene

Also Published As

Publication number Publication date
CN104778119B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN104580431A (en) Communication group configuration method and device
CN105912421A (en) Backup method and device for storing data in mobile terminals, mobile terminals and terminals
CN103167415A (en) Device tracking method applicable to mobile device
CN105740137A (en) Bucket test method, device and system, and method and device for providing configuration information
CN104113870A (en) Network testing method and mobile terminal
CN103092748A (en) Method and system of test cases surely needing to perform regression testing
CN105975272A (en) Method and system for generating unique device number of device
WO2018192149A1 (en) Dial testing method, apparatus and system
CN103458004A (en) Internet of things-based device subscription information changing method and equipment
CN102761579A (en) Method and system utilizing storage area network for data transmission
CN109660979A (en) Internet of Things opens chucking method and device in the air, calculates equipment and storage medium
CN105517148B (en) A kind of localization method and device
CN104778119A (en) LBS (location based service) automatic test method and device based on simulated positioning
CN105188041B (en) Call transferring method and home gateway based on fixed-line telephone
CN104468947A (en) Information processing method and electronic equipment
US11409928B2 (en) Configurable digital twin
CN103095882A (en) Automated testing method and automated testing system for intelligent mobile terminal external field
CN108647315A (en) Collecting method and system
CN107819594B (en) Network fault positioning method and device
CN102546815A (en) Synchronous system and synchronous method among digital electron terminals
CN105743939A (en) Message push method and device
CN112367681B (en) Station opening method, station opening device, computer equipment and storage medium
CN108400901A (en) Test method, terminal device and the computer readable storage medium of application
CN103260169B (en) Whole net PN amending method and device
CN109120496A (en) A kind of information processing method based on converged communication, server and terminal

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