CN102681935A - Mobile application testing method and mobile application testing system - Google Patents
Mobile application testing method and mobile application testing system Download PDFInfo
- Publication number
- CN102681935A CN102681935A CN2012101198345A CN201210119834A CN102681935A CN 102681935 A CN102681935 A CN 102681935A CN 2012101198345 A CN2012101198345 A CN 2012101198345A CN 201210119834 A CN201210119834 A CN 201210119834A CN 102681935 A CN102681935 A CN 102681935A
- Authority
- CN
- China
- Prior art keywords
- click
- interface
- mobile application
- testing method
- area
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 51
- 238000000034 method Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 238000010998 test method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a mobile application testing method and a mobile application testing system. The mobile application testing method comprises a step 1 of running an application to be tested and displaying an initial page, a step 2 of clicking clickable areas in the present page and entering the next page, and a step 3 of ending a test when a test ending condition is satisfied, otherwise returning to the step 2. The mobile application testing method and the mobile application testing system have the advantages that through recognizing the clickable areas in each page of the mobile application, the pages and the functions of the mobile application can be deeply tested step by step, so that automatic testing of the application can be realized.
Description
Technical field
The present invention relates to a kind of mobile application testing method and system, realize carrying out automatic test method and system through discerning the button that moves in the interface of using moving to use in particular to a kind of.
Background technology
Because the develop rapidly of mobile Internet causes the application (application, for example application software and recreation) based on mobile device more and more; The function of mobile device for example through browsing page by mobile equipment, is handled official business also from strength to strength; Recreation, and other various application.This has attracted global millions of mobile application developer to develop various application for mobile device.
Under this background, also increasing to the demand that the application of mobile device is tested.Present test is manual test mostly, rarely seen automatically testing platform, and this causes the manpower and the time of labor.
Summary of the invention
The present invention makes in view of the problems referred to above; Its purpose is to provide a kind of mobile application testing method and system; Through discerning the button that moves in each interface of using; Make and progressively in depth to test, thereby realize application is tested automatically moving interface and the function used.
To achieve these goals, the present invention provides a kind of mobile application testing method, comprising: step 1: move application to be tested, show initial interface; Step 2: but click the click on area in the current interface, get into next interface; And step 3: when satisfying the condition that finishes test, finish test, otherwise, return step 2.
To achieve these goals, the present invention also provides a kind of mobile application test systems, comprising: server is used to carry out above-mentioned mobile application testing method; And mobile device, being connected to server through network, mobile device sends to server with application to be tested, is tested by server.
Mobile application testing method of the present invention and system through clicking the button in each interface of using, come the interface of Test Application as much as possible, thereby progressively in depth test moving interface and the function used.
In addition, mobile application testing method of the present invention and system, through discerning the button in each interface of move using, and the button that identifies of automatically clicking, make it possible to achieve application is tested automatically.
Description of drawings
Fig. 1 is the synoptic diagram of mobile application test systems according to an embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing embodiment of the present invention is described.
It is pointed out that in following explanation, describe with the example of mobile phone (cellular phone) as mobile device.But, the invention is not restricted to mobile phone, can also be other mobile device, for example personal digital assistant (PersonalDigital Assistant, PDA), flat computer (Tablet PC), smart mobile phone (Smart phone), iPad etc.
Usually, when moving the application operation, meeting display interface (interface) on the screen of mobile phone.This interface comprises the content that will present to the user usually, for example literal, picture, video etc., and the button that is used to get into other interface.When the user clicks these buttons, the interface that is presented on the mobile phone will get into respective interface.
In order to test to moving to use, begin from initial interface, click the button in this initial interface, make the interface get into next interface.Then, click the button in this next interface, make the interface get into more next interface.Along with each click, the respective interface that is shown on the screen to portable phone is carried out screenshot capture, and writes down corresponding Log daily record etc., with usefulness for further analysis.So back and forth, the whole buttons in the whole interfaces on having clicked the screen that is presented at mobile phone perhaps move to use and finish operation, perhaps satisfy the condition that other finishes test, then to moving the EOT of using.
In order to carry out above-mentioned test, according to an embodiment of the present invention, can corresponding software be installed (promptly in mobile phone; Testing software); With the button in the automatically clicking interface, and operating results such as record screenshot capture and Log daily record, thereby can realize automatic test.In addition, can also mobile phone be connected to personal computer (PC), above-mentioned testing software is installed in PC.
In above-mentioned test process,, need know the position of each button in the interface for the button in the automatically clicking interface.But, for different application, the perhaps different interfaces of same application, the size of its button, position all are different.Therefore, the button that at first need identify in the interface to be comprised then could each button of automatically clicking.For this reason, for each interface, adopt the method for pattern-recognition that profile analysis and detection are carried out in the interface, thereby detect the position of each button that is comprised in this interface.Because utilizing mode identification method that figure is carried out profile analysis is known with detecting, and repeats no more at this.
Similar with testing software; Be used for the interface is carried out profile analysis and detection and/or identified the software (that is, identification software) of button, can directly this identification software be installed in the mobile phone; Also can mobile phone be connected to PC, above-mentioned identification software is installed in PC.
When utilizing mode identification method that the interface is carried out profile analysis and detection and after obtaining several profiles, can be used whether one or more each profile of discerning in the for example following method are buttons, can also use other known method to discern:
(1) if the shape of profile is roughly rectangular, for example, rectangle, square, four angles are circular-arc rectangle or square, and then this profile is a button;
(2) if profile is positioned at the position that button is placed at the interface usually, for example, the top at interface or bottom, then this profile is a button;
(3) if the area of profile is excessive, for example, the area of profile itself has surpassed predetermined threshold, and perhaps the area of profile surpasses predetermined threshold with the ratio of the interface total area, and then this profile is not a button.
If identified button by error, that is, the button that is identified is not a button, and when " wrong button " is somebody's turn to do in the test procedure click, current interface will remain unchanged, and, not get into next interface that is.Therefore, two interfaces before and after the button click are compared.If through finding that relatively two interfaces are same interfaces, then test procedure continues to click the button that other identified in this interface.If through finding that relatively two interfaces are different interfaces, that is, current interface has got into next interface, then identification is proceeded at this next interface.
Alternatively, when utilizing mode identification method that profile analysis and detection are carried out in the interface and after obtaining several profiles, can also each profile of nonrecognition whether be button, but the profile that each identified all be regarded as button and clicks.When a certain profile in the click current interface, if this profile is a button, then current interface will get into next interface, further test; If this profile is not a button, then current interface will remain unchanged, and, not get into next interface that is, at this moment, continue to click next profile in the current interface, until having clicked the whole profiles in the current interface.
Fig. 1 is the synoptic diagram of mobile application test systems according to an embodiment of the present invention.As shown in Figure 1, mobile application test systems according to an embodiment of the present invention comprises mobile phone (example of mobile device) 1, personal computer (PC) 2, network 3 and server 4.
Mobile phone 1 can be connected to server 4 through network 3 via PC 2, also can directly be connected to server 4 through network 3.Mobile phone 1 is connected to the mode of PC 2 can pass through wired connection, also can connect through for example wireless mode such as wireless lan (wlan), bluetooth.
Server 4 stores testing software and identification software.
When application to be tested was tested, server 4 use test softwares and identification software were tested application to be tested in the mobile phone 1 through network.
Can also application to be tested be sent to server 4 from mobile phone 1 or PC 2, on the mobile phone (not shown) that it connected, test, then test result sent to mobile phone 1 or PC 2 by server 4.
More than be that example is illustrated with " button ", but the invention is not restricted to this, but can be used for discerning any zone (but click on area) that can make current interface get into other interface in the interface.
In above explanation, " application " refers to the content that on mobile device, shows or move, the software of for example developing to mobile device, recreation, picture, video, audio frequency, e-book, website etc.
In above explanation, " computing machine " refers to has processor and storer, can realize the equipment of mathematical operation, and it not only comprises the computing machine on the ordinary meaning, also comprises other any type of equipment with said structure and function.
In above explanation; " server " thus refer to the equipment of be connected with computing machine and/or mobile device control computer and/or mobile device; Thereby the computing machine on the ordinary meaning of its can be the operation specific software realize above-mentioned functions; Also can be the server on the ordinary meaning, can also be other any type of equipment with above-mentioned functions.
Claims (9)
1. mobile application testing method comprises:
Step 1: move application to be tested, show initial interface;
Step 2: but click the click on area in the current interface, get into next interface; And
Step 3: when satisfying the condition that finishes test, finish test, otherwise, return step.
2. mobile application testing method according to claim 1 is characterized in that, makes the interface when current interface gets into next interface but click click on area at every turn, in record screenshot capture and the daily record one or both.
3. mobile application testing method according to claim 1 is characterized in that, in step 3, but during the whole click on area in having clicked whole interfaces, perhaps when application to be tested finishes operation, finishes test.
4. based on the described mobile application testing method of claim 1, it is characterized in that, but before the click on area in clicking current interface, but at first the click on area in the current interface is discerned.
5. mobile application testing method according to claim 4 is characterized in that, the profile in the current interface discerned, but with the click on area in the identification current interface.
6. mobile application testing method according to claim 4 is characterized in that, but after the click on area that click recognition goes out, but the interface of clicking these click on area front and back is compared.
7. based on the described mobile application testing method of claim 1, it is characterized in that, but before the click on area in clicking current interface, at first the profile in the current interface is discerned, but the whole profiles that identify are clicked as click on area.
8. mobile application test systems comprises:
Server is used for carrying out according to each described mobile application testing method of claim 1~7; And
Mobile device is connected to server through network,
Mobile device sends to server with application to be tested, is tested by server.
9. mobile application test systems according to claim 8 is characterized in that information desk is tested the application to be tested of being installed in the mobile device through network.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2012101198345A CN102681935A (en) | 2012-04-21 | 2012-04-21 | Mobile application testing method and mobile application testing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2012101198345A CN102681935A (en) | 2012-04-21 | 2012-04-21 | Mobile application testing method and mobile application testing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102681935A true CN102681935A (en) | 2012-09-19 |
Family
ID=46813898
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2012101198345A Pending CN102681935A (en) | 2012-04-21 | 2012-04-21 | Mobile application testing method and mobile application testing system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102681935A (en) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103338290A (en) * | 2013-06-04 | 2013-10-02 | 宁波大学 | A method for automatically testing performance of an Android handset |
| CN104516812A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
| CN106155863A (en) * | 2016-07-25 | 2016-11-23 | 北京小米移动软件有限公司 | Terminal anticipatory behavior control method and terminal |
| US9703691B1 (en) | 2015-06-15 | 2017-07-11 | Google Inc. | Testing application software using virtual or physical devices |
| CN107562611A (en) * | 2016-06-30 | 2018-01-09 | 阿里巴巴集团控股有限公司 | A kind of method and device for realizing simulation test |
| CN109189290A (en) * | 2018-10-18 | 2019-01-11 | 广州酷狗计算机科技有限公司 | Click on area recognition methods, device and computer readable storage medium |
| CN109213674A (en) * | 2017-07-07 | 2019-01-15 | 博彦科技股份有限公司 | Test system, method, storage medium and processor |
| CN110347608A (en) * | 2019-07-17 | 2019-10-18 | 腾讯科技(深圳)有限公司 | A kind of test method and relevant apparatus of interactive application |
| CN110764984A (en) * | 2019-09-30 | 2020-02-07 | 上海游族信息技术有限公司 | Pressurizing data multiplexing method for server performance pressure test |
| CN111353503A (en) * | 2020-02-28 | 2020-06-30 | 北京字节跳动网络技术有限公司 | Method and device for identifying functional area in user interface image |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1484790A (en) * | 2001-01-04 | 2004-03-24 | �Ҵ���˾ | Method and apparatus for testing unknown program with graphic user interface |
| CN1503130A (en) * | 2002-11-22 | 2004-06-09 | �Ҵ���˾ | Fault tracing in systems with virtualization layers |
| CN101128007A (en) * | 2007-09-21 | 2008-02-20 | 中兴通讯股份有限公司 | Testing method for mobile communication terminal |
| CN101998473A (en) * | 2009-08-10 | 2011-03-30 | 鼎桥通信技术有限公司 | System for testing performance of communication equipment |
-
2012
- 2012-04-21 CN CN2012101198345A patent/CN102681935A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1484790A (en) * | 2001-01-04 | 2004-03-24 | �Ҵ���˾ | Method and apparatus for testing unknown program with graphic user interface |
| CN1503130A (en) * | 2002-11-22 | 2004-06-09 | �Ҵ���˾ | Fault tracing in systems with virtualization layers |
| CN101128007A (en) * | 2007-09-21 | 2008-02-20 | 中兴通讯股份有限公司 | Testing method for mobile communication terminal |
| CN101998473A (en) * | 2009-08-10 | 2011-03-30 | 鼎桥通信技术有限公司 | System for testing performance of communication equipment |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103338290B (en) * | 2013-06-04 | 2016-12-28 | 宁波大学 | A kind of method of automatic test Android phone touch screen performance |
| CN103338290A (en) * | 2013-06-04 | 2013-10-02 | 宁波大学 | A method for automatically testing performance of an Android handset |
| CN104516812A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
| US9703691B1 (en) | 2015-06-15 | 2017-07-11 | Google Inc. | Testing application software using virtual or physical devices |
| CN107562611A (en) * | 2016-06-30 | 2018-01-09 | 阿里巴巴集团控股有限公司 | A kind of method and device for realizing simulation test |
| CN106155863A (en) * | 2016-07-25 | 2016-11-23 | 北京小米移动软件有限公司 | Terminal anticipatory behavior control method and terminal |
| CN109213674B (en) * | 2017-07-07 | 2022-04-08 | 博彦科技股份有限公司 | Test system, method, storage medium and processor |
| CN109213674A (en) * | 2017-07-07 | 2019-01-15 | 博彦科技股份有限公司 | Test system, method, storage medium and processor |
| CN109189290A (en) * | 2018-10-18 | 2019-01-11 | 广州酷狗计算机科技有限公司 | Click on area recognition methods, device and computer readable storage medium |
| CN110347608A (en) * | 2019-07-17 | 2019-10-18 | 腾讯科技(深圳)有限公司 | A kind of test method and relevant apparatus of interactive application |
| CN110347608B (en) * | 2019-07-17 | 2024-03-22 | 腾讯科技(深圳)有限公司 | Interactive application testing method and related device |
| CN110764984A (en) * | 2019-09-30 | 2020-02-07 | 上海游族信息技术有限公司 | Pressurizing data multiplexing method for server performance pressure test |
| CN111353503A (en) * | 2020-02-28 | 2020-06-30 | 北京字节跳动网络技术有限公司 | Method and device for identifying functional area in user interface image |
| CN111353503B (en) * | 2020-02-28 | 2023-08-11 | 北京字节跳动网络技术有限公司 | Method and device for identifying functional area in user interface image |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102681935A (en) | Mobile application testing method and mobile application testing system | |
| US12147662B2 (en) | Techniques for image-based search using touch controls | |
| CN104090762B (en) | Screenshot processing device and method | |
| US10175852B2 (en) | Information processing methods and electronic devices for classifying applications | |
| US9846634B2 (en) | Visual graphical user interface verification | |
| CN104090761A (en) | Screenshot application device and method | |
| CN102024064A (en) | Rapid searching method and mobile communication terminal | |
| CN102904618A (en) | Method and device for processing communication between apparatuses | |
| US20130188836A1 (en) | Method and apparatus for providing hand detection | |
| CN107084736A (en) | A kind of air navigation aid and mobile terminal | |
| CN103902611A (en) | Video content searching system and video content searching method | |
| KR101228336B1 (en) | Personalization Service Providing Method by Using Mobile Terminal User's Activity Pattern and Mobile Terminal therefor | |
| AU2021204584A1 (en) | Methods, apparatuses, devices and storage media for detecting correlated objects involved in image | |
| CN109359029A (en) | An automated and non-intrusive Android application accessibility support detection method | |
| CN105069404A (en) | A fingerprint information processing method and system | |
| CN109271059B (en) | Screen false touch prevention method, terminal and computer readable storage medium | |
| CN103869980A (en) | Mobile terminal and fingerprint identification-based operation object running method thereof | |
| CN108881979B (en) | Information processing method, device, mobile terminal and storage medium | |
| CN103905445A (en) | Table data display method and device | |
| CN104679389B (en) | Interface display method and device | |
| CN105528446A (en) | Abstract generating method and device meeting extended product demands | |
| CN113342684A (en) | Webpage testing method, device and equipment | |
| CN113360038A (en) | Application function searching method and device and electronic equipment | |
| KR101966423B1 (en) | Method for image matching and apparatus for executing the method | |
| CN104965633A (en) | Service jumping method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120919 |