CN104572443A - Mobile terminal testing method and device - Google Patents

Mobile terminal testing method and device Download PDF

Info

Publication number
CN104572443A
CN104572443A CN201410748740.3A CN201410748740A CN104572443A CN 104572443 A CN104572443 A CN 104572443A CN 201410748740 A CN201410748740 A CN 201410748740A CN 104572443 A CN104572443 A CN 104572443A
Authority
CN
China
Prior art keywords
interface
test
function point
mobile terminal
sut
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410748740.3A
Other languages
Chinese (zh)
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 CN201410748740.3A priority Critical patent/CN104572443A/en
Publication of CN104572443A publication Critical patent/CN104572443A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a mobile terminal testing method and device. The mobile terminal testing method comprises the following steps: acquiring a function point set lit corresponding to all interfaces of a tested system in a mobile terminal; entering one of all the interfaces of the tested system according to the function point set lit corresponding to all interfaces of the tested system, and randomly drawing one function point testing example on the current interface for calling; after the calling is finished, randomly selecting the one function point testing example on the new current interface for calling according to the new current interface, and thus repeatedly executing the step until the testing completion conditions are met. According to the technical scheme, the mobile terminal testing method has the following beneficial effects, the random problem generated among the matching of all function points can be found so as to be closer to the use custom of a user, the truly possible operation scene can be simulated, and covering the testing of all function point elements and user interfaces can be achieved.

Description

A kind of mobile terminal test method and device
Technical field
The present invention relates to automatization testing technique field, particularly relate to a kind of mobile terminal test method and device.
Background technology
Automatic test is a kind of process being converted into machine execution with the behavioral test artificially driven.
MonkeyTest is a kind of common testing methods for mobile terminal, is used for checking the stability of system under test (SUT).Test process is for carry out the irregular random operation of milli for a long time on mobile terminals.Under Android system, adb order can be used to realize.Under iOS system, UIAutomation can be used to realize same effect.The shortcoming of the prior art is as follows: differ greatly with the actual use scenes of system under test (SUT), even if there is the situation of test crash, also may not be that the reason of system under test (SUT) caused.Cannot control the test coverage of system under test (SUT), generally cannot reach satisfied test coverage.
Whether, to determine by brake with Demand Design completely the same, and do not comprise the function outside design if also there is a kind of specific simple function to system under test (SUT) and testing in prior art.Functional test is topmost link in integrated testability process, under each system, have now a large amount of instruments can carry out automatic test to the function of system under test (SUT).The shortcoming of the prior art is as follows: cannot influence each other between discovery feature point produced problem.
As fully visible, existing MonkeyTest method of testing coverage rate is too low, and too lack specific aim, automation scheme possesses same problem.And general functional test is too limited to, relatively true use scenes is too simple.
Summary of the invention
The embodiment of the present invention provides a kind of mobile terminal test method and device, to ensure higher function coverage, and more presses close to real operation scenario.
On the one hand, embodiments provide a kind of mobile terminal test method, described mobile terminal test method comprises:
Obtain the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding;
The function point aggregate list corresponding according to described system under test (SUT) all circles face, enters one of them interface in each interface of described system under test (SUT), and the function point test case randomly drawed under current interface is called;
Again according to new current interface after to be called, a function point test case under current interface new described in Stochastic choice is called, so repeat this step until meet test into condition.
On the other hand, embodiments provide a kind of mobile terminal test device, described mobile terminal test device comprises:
Acquiring unit, for obtaining the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding;
Test cell, for the function point aggregate list corresponding according to described system under test (SUT) all circles face, enters one of them interface in each interface of described system under test (SUT), and the function point test case randomly drawed under current interface is called; Again according to new current interface after to be called, a function point test case under current interface new described in Stochastic choice is called, so repeat this step until meet test into condition.
Technique scheme has following beneficial effect: can find the stochastic problem produced between the cooperation of each function point, use habit of being more close to the users, the contingent operation scenario of Reality simulation, reaches the Test coverage of all functions point element and user interface.
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 mobile terminal test method process flow diagram of the embodiment of the present invention;
Fig. 2 is for embodiments providing a kind of mobile terminal test apparatus structure schematic diagram;
Fig. 3 is the present invention first application example function point use-case test call schematic diagram;
Fig. 4 is the present invention second application example function point use-case test call 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 mobile terminal test method process flow diagram of the embodiment of the present invention, described mobile terminal test method comprises:
101, the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding is obtained;
102, corresponding according to described system under test (SUT) all circles face function point aggregate list, enters one of them interface in each interface of described system under test (SUT), and the function point test case randomly drawed under current interface is called;
103, again according to new current interface after to be called, a function point test case under current interface new described in Stochastic choice is called, and so repeats this step until meet and test into condition.
Preferably, described system under test (SUT) all circles face comprises: initial interface, main interface, register interface etc.
Further, preferably, the described function point aggregate list corresponding according to described system under test (SUT) all circles face, enter one of them interface in each interface of described system under test (SUT), the function point test case randomly drawed under current interface is called, specifically comprise: when calling first, perform from the initial interface in each interface of described system under test (SUT), the function point test case randomly drawed under initial interface is called.
Further, preferably, the function point that described initial interface is corresponding comprises: log in, register, all kinds of gesture operations etc.; Function point corresponding to described main interface comprises: issue, browse, personal information, cancellation account, all kinds of gesture operations etc.; Function point corresponding to described register interface comprises: succeed in registration, registration failure, return, all kinds of gesture operations etc.
Preferably, described meet test into condition and comprise: all functions point test case under all interfaces is called complete; Or, reach the length of testing speech of setting; Or, complete calling of the function point test case of setting quantity; Or, reach the code coverage or branch covering rate etc. of setting.
Corresponding to said method embodiment, as shown in Figure 2, for embodiments providing a kind of mobile terminal test apparatus structure schematic diagram, described mobile terminal test device comprises:
Acquiring unit 21, for obtaining the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding;
Test cell 22, for the function point aggregate list corresponding according to described system under test (SUT) all circles face, enters one of them interface in each interface of described system under test (SUT), and the function point test case randomly drawed under current interface is called; Again according to new current interface after to be called, a function point test case under current interface new described in Stochastic choice is called, so repeat this step until meet test into condition.
Preferably, described system under test (SUT) all circles face comprises: initial interface, main interface, register interface etc.
Further, preferably, described test cell, time further specifically for calling first, perform from the initial interface in each interface of described system under test (SUT), the function point test case randomly drawed under initial interface is called.
Further, preferably, the function point that described initial interface is corresponding comprises: log in, register, all kinds of gesture operations etc.; Function point corresponding to described main interface comprises: issue, browse, personal information, cancellation account, all kinds of gesture operations etc.; Function point corresponding to described register interface comprises: succeed in registration, registration failure, return, all kinds of gesture operations etc.
Preferably, described test cell 22: specifically for calling complete when all functions point test case under all interfaces; Or, reach the length of testing speech of setting; Or, complete calling of the function point test case of setting quantity; Or, when reaching the code coverage of setting or branch covering rate etc., confirm to meet and test into condition.
Embodiment of the present invention technique scheme has following beneficial effect: because adopt described mobile terminal test method to comprise: obtain the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding; The function point aggregate list corresponding according to described system under test (SUT) all circles face, what enter in each interface of described system under test (SUT) is some, and certain the function point use-case randomly drawed under current interface carries out test call; To be tested call after again according to new current interface, function point use-case under current interface new described in Stochastic choice carries out test call, technological means so repeatedly, so reach following technique effect: the stochastic problem produced between the cooperation of each function point can be found, more to be close to the users use habit, the contingent operation scenario of Reality simulation, reaches the Test coverage of all functions point element and user interface.
Below lift application example to be described in detail to embodiment of the present invention technique scheme:
The mode that application example of the present invention adopts MonkeyTest and functional test to combine, the novel test method of proposition, makes up the deficiency of existing method of testing, and has the scheme that feasible robotization solves.
As shown in Figure 3, be the present invention first application example function point use-case test call schematic diagram.Example of the present invention, according to the existing functional test list of system under test (SUT), divides affiliated interface.The similar operational mode with state machine, different interfaces as different states, after entering certain interface, certain the function point use-case randomly drawed under current interface calls.Again according to current interface after calling, the function point test case that Stochastic choice is new is called, so repeatedly.
The function point of indication herein, comprises following three classes:
1, the simple function test accurately exporting expection is had.
2, to the redirect of other page.
3, all kinds of gesture operation, comprises click, double-click, slip etc.
As shown in Figure 4, be the present invention second application example function point use-case test call schematic diagram.The function point aggregate list that first example of the present invention needs an all circles face corresponding, this respect workload is also little, and only need to add in existing capability test case at one " affiliated interface ", feature list general contents is as follows:
Initial interface: log in, register, other gesture.
Main interface: issue new post, browse model, personal information, cancellation account, other gesture.
Register interface: succeed in registration, registration failure, return, other gesture.
Application example of the present invention performs from start page by program, then enters row stochastic funcall, not only ensure that higher function coverage, also more presses close to real operation scenario.
The beneficial effect that application example technical scheme of the present invention is brought:
1, the stochastic problem produced between the cooperation of each function point can be found, use habit of being more close to the users, the contingent operation scenario of Reality simulation.
2, the Test coverage of all elements and user interface is reached.
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. a mobile terminal test method, is characterized in that, described mobile terminal test method comprises:
Obtain the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding;
The function point aggregate list corresponding according to described system under test (SUT) all circles face, enters one of them interface in each interface of described system under test (SUT), and the function point test case randomly drawed under current interface is called;
Again according to new current interface after to be called, a function point test case under current interface new described in Stochastic choice is called, so repeat this step until meet test into condition.
2. mobile terminal test method as claimed in claim 1, it is characterized in that, described system under test (SUT) all circles face comprises: initial interface, main interface, register interface.
3. mobile terminal test method as claimed in claim 2, it is characterized in that, the described function point aggregate list corresponding according to described system under test (SUT) all circles face, enter one of them interface in each interface of described system under test (SUT), the function point test case randomly drawed under current interface is called, and specifically comprises:
When calling first, perform from the initial interface in each interface of described system under test (SUT), the function point test case randomly drawed under initial interface is called.
4. mobile terminal test method as claimed in claim 3, is characterized in that, function point corresponding to described initial interface comprises: log in, register, all kinds of gesture operation; Function point corresponding to described main interface comprises: issue, browse, personal information, cancellation account, all kinds of gesture operation; Function point corresponding to described register interface comprises: succeed in registration, registration failure, return, all kinds of gesture operation.
5. mobile terminal test method as claimed in claim 1, is characterized in that, described meet test into condition and comprise: all functions point test case under all interfaces is called complete; Or, reach the length of testing speech of setting; Or, complete calling of the function point test case of setting quantity; Or, reach code coverage or the branch covering rate of setting.
6. a mobile terminal test device, is characterized in that, described mobile terminal test device comprises:
Acquiring unit, for obtaining the function point aggregate list that in mobile terminal, system under test (SUT) all circles face is corresponding;
Test cell, for the function point aggregate list corresponding according to described system under test (SUT) all circles face, enters one of them interface in each interface of described system under test (SUT), and the function point test case randomly drawed under current interface is called; Again according to new current interface after to be called, a function point test case under current interface new described in Stochastic choice is called, so repeat this step until meet test into condition.
7. mobile terminal test device as claimed in claim 6, it is characterized in that, described system under test (SUT) all circles face comprises: initial interface, main interface, register interface.
8. mobile terminal test device as claimed in claim 7, is characterized in that,
Described test cell, time further specifically for calling first, perform from the initial interface in each interface of described system under test (SUT), the function point test case randomly drawed under initial interface is called.
9. mobile terminal test device as claimed in claim 8, is characterized in that, function point corresponding to described initial interface comprises: log in, register, all kinds of gesture operation; Function point corresponding to described main interface comprises: issue, browse, personal information, cancellation account, all kinds of gesture operation; Function point corresponding to described register interface comprises: succeed in registration, registration failure, return, all kinds of gesture operation.
10. mobile terminal test device as claimed in claim 6, is characterized in that, described test cell, specifically for calling complete when all functions point test case under all interfaces; Or, reach the length of testing speech of setting; Or, complete calling of the function point test case of setting quantity; Or when reaching code coverage or the branch covering rate of setting, confirmation is satisfied tests into condition.
CN201410748740.3A 2014-12-09 2014-12-09 Mobile terminal testing method and device Pending CN104572443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410748740.3A CN104572443A (en) 2014-12-09 2014-12-09 Mobile terminal testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410748740.3A CN104572443A (en) 2014-12-09 2014-12-09 Mobile terminal testing method and device

Publications (1)

Publication Number Publication Date
CN104572443A true CN104572443A (en) 2015-04-29

Family

ID=53088575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410748740.3A Pending CN104572443A (en) 2014-12-09 2014-12-09 Mobile terminal testing method and device

Country Status (1)

Country Link
CN (1) CN104572443A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446876A (en) * 2015-11-03 2016-03-30 北京京东尚科信息技术有限公司 Service dimension based automatic testing method, apparatus and system
CN106445799A (en) * 2015-08-05 2017-02-22 阿里巴巴集团控股有限公司 Software testing method and device
CN108874662A (en) * 2017-05-15 2018-11-23 丰田自动车株式会社 The non-transitory computer-readable medium of test method and storage program
CN110287072A (en) * 2019-06-20 2019-09-27 深圳忆联信息系统有限公司 Method, apparatus, computer equipment and the storage medium of accidental validation response
CN111031089A (en) * 2019-10-21 2020-04-17 福建星网智慧科技股份有限公司 Test method for web conference control client and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103888A1 (en) * 2006-12-22 2010-04-29 Nec Corporation Circuit switching user agent system, communicating device, and service providing method used therefor
CN103019937A (en) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 Human-machine interaction interface traverse test method
CN103309802A (en) * 2012-03-16 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for testing system stability in mobile terminal
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103888A1 (en) * 2006-12-22 2010-04-29 Nec Corporation Circuit switching user agent system, communicating device, and service providing method used therefor
CN103309802A (en) * 2012-03-16 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for testing system stability in mobile terminal
CN103019937A (en) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 Human-machine interaction interface traverse test method
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445799A (en) * 2015-08-05 2017-02-22 阿里巴巴集团控股有限公司 Software testing method and device
CN105446876A (en) * 2015-11-03 2016-03-30 北京京东尚科信息技术有限公司 Service dimension based automatic testing method, apparatus and system
CN108874662A (en) * 2017-05-15 2018-11-23 丰田自动车株式会社 The non-transitory computer-readable medium of test method and storage program
CN110287072A (en) * 2019-06-20 2019-09-27 深圳忆联信息系统有限公司 Method, apparatus, computer equipment and the storage medium of accidental validation response
CN111031089A (en) * 2019-10-21 2020-04-17 福建星网智慧科技股份有限公司 Test method for web conference control client and computer equipment

Similar Documents

Publication Publication Date Title
CN104572443A (en) Mobile terminal testing method and device
CN106201846B (en) Method for monitoring performance and device in automatic test
CN103793324B (en) The test device and test method and test scene combined method of embedded software
CN107229559B (en) Detection method and device for testing integrity of service system
CN103455413A (en) Method, device and system for interaction scenario test data processing of communication terminals
CN104967758B (en) A kind of method and user terminal for controlling data transfer
CN105653630A (en) Data migration method and apparatus for distributed database
CN105608258A (en) Model based system design and information flow visualization simulation system and method
CN105426298A (en) ADB (Android debug bridge)-based software test method and system
CN105653438A (en) Method and device for cross-process automated testing of Android device
CN106326171A (en) Method and device for recognizing hard disk type of hard disk back plate
CN104063129A (en) APP (application tool) classification method and mobile terminal
CN104020763A (en) Automatic test method and system for input and output interfaces
CN110362469A (en) Based on modular testing use-case control method, device, terminal and storage medium
CN108255542A (en) The serial ports parallel port management-control method and device of a kind of virtual machine
CN105550103A (en) Custom test script based automated testing method
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN104424096B (en) A kind of automatization test system and method to the equipment based on Android platform
CN104778119B (en) A kind of LBS automated testing method and device based on simulator locating
CN105446752A (en) Triggering method and device of control in application program and mobile terminal
CN110580221A (en) Control testing method and device, storage medium and electronic equipment
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN114328196A (en) Method, device and equipment for testing data leakage prevention system and storage medium
CN105339974A (en) Simulating sensors
CN113190445A (en) Interface test method, interface test device and interface test system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication