CN103064781A - Mobile software automated testing method - Google Patents
Mobile software automated testing method Download PDFInfo
- Publication number
- CN103064781A CN103064781A CN 201110317285 CN201110317285A CN103064781A CN 103064781 A CN103064781 A CN 103064781A CN 201110317285 CN201110317285 CN 201110317285 CN 201110317285 A CN201110317285 A CN 201110317285A CN 103064781 A CN103064781 A CN 103064781A
- Authority
- CN
- China
- Prior art keywords
- script
- test
- mobile phone
- phones
- mobile
- 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
Images
Landscapes
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a mobile software automated testing method. Nowadays, mobile phones are very popular and almost every person has a mobile phone, and along with the continuous development of the mobile phones, more and more people use smart phones, especially Android phones which rise rapidly in recent years, thus more and more companies start on with the development of the Android phones, however, testing work is very complex caused by the facts of the complexity of smart phone software and especially the high openness of an Android system. Though currently widely used feature phones are provided with more and more functions, and workload is increased sharply with a traditionally manual-operated black-box test being used. The mobile software automated testing method is based on a recording and playback thought, a manual-operated testing operation is recorded as a script, and then the automated testing is realized by replaying the script. By means of the mobile software automated testing method, manual-operated test work is turned into automated test work, and thus the testing efficiency is improved greatly.
Description
Technical field
The present invention relates to a kind of can recording manual test operation, then the script recorded of playback carries out the method for automatic test.
Background technology
More and more universal along with mobile phone, particularly increasing people brings into use smart mobile phone, the cell phone software test job becomes more and more important, especially the opening of smart mobile phone has increased a lot of uncertain factors to mobile phone test especially, if still use traditional manual test method, it is very huge that workload will become, Capability Requirement to the tester also improves greatly, and therefore, automatic test becomes more and more important in the cell phone software field tests.
Summary of the invention
For the epoch in this various types of mobile phone fast development, improve efficient and the quality of cell phone software test, the present invention is by revising the framework layer of cell phone system, the bottom event is caught, thereby realize recording manual test operation, and can write mobile phone and then call by instrument recording the script of finishing, make its automatically operation on mobile phone, to finish the automatic test of mobile phone.Take the Android system as example, framework layer to the Android system is done corresponding modify, then function definition is carried out in the operations such as button, touch screen click, touch screen slip, trace ball rolling, just can catch these events afterwards, thereby these operations can be recorded as script, script can be write mobile phone by adb, then call, mobile phone just can automatically perform the operation in the script.Except recording and moving, recording the script that gets off by the method can also make amendment, make it can more adapt to the later software of this mobile phone upgrading, perhaps be written to the automatic test that moves in other mobile phones with platform to realize to other mobile phones of platform.The script that the method is recorded has straightaway characteristics, and revise and also can also can easily not carry out the modification of script even study the people of programming in depth than being easier to, even direct compile script.Be not only the Android system, other cell phone platforms can also be realized automatic test with the method.The invention solves the large problem of pure manual test workload, also solved the problem of the frequent test leakage of meeting that the difference owing to tester's level of skill and ability causes, only testing procedure need to be operated one time namely can completely record it get off, record the script of finishing and both can be used for the regression test of this mobile phone or the bug that checking is difficult to reappear, also script can be carried out part and revise, be then multiplexed into other mobile phones and carry out dependence test.
Embodiment
As shown in Figure 1, at first corresponding modify (this modification can not impact the function of mobile phone itself) is carried out in the framework layer of cell phone system, then mobile phone is connected with PC, the user assigns instruction and starts recording function, after recording, startup carries out test operation at mobile phone, such as button, touch screen is clicked, touch screen slides, trace ball rolling etc., the user whenever carries out single stepping, system all can get off this step operation note, then carry out this operation, go again next step operation of recording user then to carry out after executing a step, so circulation (such as Fig. 2), user's all operations is recorded in the script the most at last.After operation was finished, the user assigned instruction and stops to record generation script.(or not revising) write in the mobile phone and moves after script was revised as required, and during Run Script, system reads first script and resolves, and then generates corresponding event executable operations (such as Fig. 3) according to the operation of recording in the script.
What the content for script of the method recorded is customer incident, such as button, touch screen.In script for button operation record be the key assignments of button, and be the touch screen coordinate for the touch screen operation note.Obviously, the problem of script reusability after there is the problem of script compatibility in the mobile phone of rate and redesigns interface layout respectively for difference.Because the key assignments of button and resolution are irrelevant, the key assignments of all mobile phones all is identical, so there is not compatible problem in button operation.For the touch screen operation, solve the problems referred to above by the two-stage mapping in the present invention.The soft key at each interface is carried out by key definition respectively, and define the hot-zone scope of each soft key, this is first order mapping; Then the mobile phone for different resolution defines respectively a mapping table, records effective coordinate (this coordinate falls within the hot-zone scope of soft key) of each soft key, and this is second level mapping.So the operation in the script can be the key assignments of each soft key, according to mapping table the soft key key assignments is converted to respective coordinates by a script analysis program again, can carry out for mobile phone.Only need to use different mapping tables namely can solve compatible problem for the mobile phone of different resolution, only need to revise the problem that soft key key assignments in the script namely can solve reusability for the interface after the redesign layout.By the method even can directly according to test case test script be write out, this be just so that test script is more flexible.
The script of recording after finishing mainly can be used for following test:
1, this script can be directly write to this mobile phone, then call this script and carry out.This purposes mainly is that the mobile phone behind the upgrade software is carried out regression test.
2, therefore the script recorded of the method number of times that can self-definedly repeat when operation non-ly must show problem for what be difficult to reappear, operation steps is recorded as calls this script behind the script and repeatedly carry out, and can reappear problems easily.
If certain function in 3 mobile phones is changed, software after the modification of can be directly carrying out script for software change part in script makes it meet change, then can be directly the script of this modification of operation in new edition software carry out automatic test, all again record script one time after so just noting be used in each change cell phone software.
4, can revise script for the automatic test with other model mobile phones of platform, only need for the function of new model mobile phone and characteristics appropriate section in the script to be made amendment and get final product, so only need to record and safeguard once the cover script and can carry out automatic test to all mobile phones of this platform, the characteristics that this is multiplexing so that the efficient of software test greatly improve.
5, compatibility test.Record the script of finishing and directly or to carry out being written to after part is revised in other mobile phones operation to test the compatibility of some program in different mobile phones.Need to attach it to its compatibility of test in the different mobile phones after for example developing a application program, only need to be recorded as script with it at a hand hands-operation testing procedure this moment then, again script is written to move in all mobile phones that need to test compatibility and just can finishes compatible test, need to be on each mobile phone manual tests one time all, the test job amount is greatly reduced.Be not only mobile phone, this compatibility test equally also can be used in as on the other-ends such as panel computer.
6, when recording script, can record by sub-module, will obtain like this a script set, comprise a series of scripts of record modules test operation.When using script to test, can from this set, select the script of needs then to carry out suitable combination according to concrete test needs, form an appropriate cycle tests, can also in this cycle tests, add some necessary testing procedures to improve testing process.Block size when recording can be divided arbitrarily as required.
7, other tests.Such as unit testing, pressure test etc., test the time can be recorded trace information, with the trace information that produces in the test process and correct trace information contrast, judges whether existing problems, then revise script or software is tested again if any problem, then test end such as no problem.The operation steps that can also record simultaneously test when carrying out test is script, when going wrong this script playback is reappeared problem, thereby carries out fast positioning problems.
Claims (6)
1. mobile phone automatized test method is characterized in that:
Cell phone system is carried out part revise expansion, can be used for catching the bottom event.
2. described method according to claim 1 is characterized in that:
Use amended system, can with the manual operations such as the button of mobile phone, touch screen click, touch screen slip, trace ball rolling are recorded, playback.
3. described function according to claim 1 and 2 is characterized in that:
Mobile phone can control the handset starting script by PC and record, stop the functions such as script is recorded, Run Script, and the script after recording can be made amendment after being connected PC.
4. it is characterized in that according to claim 2 or 3 described functions:
Record the script of finishing and can directly or be used for following test after the process modification:
A, be used for the regression test of this mobile phone upgraded version; B, the non-problem that must show is reappeared; C, be used for the test after this mobile phone is revised partial function; D, be used for the test with other model mobile phones of platform; E, compatibility test; F, sub-module carry out script to be recorded, then combination, and being used for different tests needs; G, other tests.
5. described function according to claim 4 is characterized in that, further comprises:
Can record trace information in the time of Run Script, this trace information and correct trace information are compared, can judge whether existing problems, if existing problems then revise script or software retests, the operation steps that can also record simultaneously test when carrying out test is script, when going wrong this script playback is reappeared problem.
6. according to claim 3 or 4 described contents, it is characterized in that, further comprise:
Test script can make amendment or directly write, when edit script, button operation is recorded as key assignments, and the touch screen operation then with each soft key definition key assignments, is then used the script analysis program that key assignments is converted to coordinate according to the mapping table that defines for different resolution and carried out for mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110317285 CN103064781A (en) | 2011-10-18 | 2011-10-18 | Mobile software automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110317285 CN103064781A (en) | 2011-10-18 | 2011-10-18 | Mobile software automated testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103064781A true CN103064781A (en) | 2013-04-24 |
Family
ID=48107414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110317285 Pending CN103064781A (en) | 2011-10-18 | 2011-10-18 | Mobile software automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103064781A (en) |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365779A (en) * | 2013-07-09 | 2013-10-23 | 广东欧珀移动通信有限公司 | Software test method and system |
CN103744787A (en) * | 2014-01-21 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Cellphone automated testing method |
CN103928038A (en) * | 2014-04-29 | 2014-07-16 | 广东欧珀移动通信有限公司 | Electronic equipment test recording and playing back method |
CN104239202A (en) * | 2013-06-09 | 2014-12-24 | 刘伟 | Non-Root testing method and system of interactive intelligent equipment |
CN104346276A (en) * | 2013-08-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for software tests |
CN104636247A (en) * | 2013-11-12 | 2015-05-20 | 财团法人资讯工业策进会 | Testing device and testing method thereof |
CN104717337A (en) * | 2015-04-03 | 2015-06-17 | 杭州昕云信息科技有限公司 | Method for testing mobile application in batch and equipment used in method |
CN104935639A (en) * | 2015-05-06 | 2015-09-23 | 上海斐讯数据通信技术有限公司 | Intelligent terminal, and applied distributed exploitation system and method |
CN105094766A (en) * | 2014-05-04 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Operation recording method and operation recording device |
CN105159806A (en) * | 2015-08-25 | 2015-12-16 | 盛趣信息技术(上海)有限公司 | Terminal compatibility test system and operating method therefor |
CN105183631A (en) * | 2015-07-16 | 2015-12-23 | 小米科技有限责任公司 | Equipment test methods and devices |
CN105204986A (en) * | 2014-06-24 | 2015-12-30 | 广州市动景计算机科技有限公司 | Automated product testing method, server and mobile equipment |
CN105446870A (en) * | 2014-08-25 | 2016-03-30 | 北京畅游天下网络技术有限公司 | Method and apparatus for performing automation test on app |
CN105721864A (en) * | 2016-04-20 | 2016-06-29 | 杭州当虹科技有限公司 | Efficient regression test method based on audio/video packaging layer parameter detection |
CN105866574A (en) * | 2016-03-29 | 2016-08-17 | 东莞华贝电子科技有限公司 | Auxiliary identifying method and auxiliary identifying system for automated testing |
CN106326101A (en) * | 2015-07-06 | 2017-01-11 | 北京华大九天软件有限公司 | Automatic testing method of QT-based application program |
CN106445826A (en) * | 2016-10-14 | 2017-02-22 | 深圳天珑无线科技有限公司 | Preparing method and producing device of differential package |
CN106909504A (en) * | 2017-02-14 | 2017-06-30 | 上海斐讯数据通信技术有限公司 | A kind of automatic test script maintaining method and equipment |
CN104461894B (en) * | 2014-12-17 | 2017-11-07 | 用友网络科技股份有限公司 | The operation record device and method of Android software |
CN104239214B (en) * | 2014-09-29 | 2017-12-01 | 广州视源电子科技股份有限公司 | Method and device for configuring test script |
CN107491391A (en) * | 2017-08-21 | 2017-12-19 | 深圳市天视通电子科技有限公司 | A kind of software testing system and method |
CN107509072A (en) * | 2017-08-30 | 2017-12-22 | 四川长虹电器股份有限公司 | A kind of automated testing method of automatic Memory test path |
CN109144840A (en) * | 2017-06-16 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of test method, device and its equipment |
CN109684196A (en) * | 2018-11-01 | 2019-04-26 | 北京中清龙图网络技术有限公司 | A kind of test method and device |
CN110990842A (en) * | 2019-12-19 | 2020-04-10 | 上海米哈游网络科技股份有限公司 | Recurrence method and device of small probability event, storage medium and electronic equipment |
CN111159008A (en) * | 2018-11-08 | 2020-05-15 | 阿里巴巴集团控股有限公司 | Test method and device and electronic equipment |
CN113535029A (en) * | 2021-07-30 | 2021-10-22 | 西安闻泰电子科技有限公司 | Operation recording method, terminal, computer device and computer-readable storage medium |
-
2011
- 2011-10-18 CN CN 201110317285 patent/CN103064781A/en active Pending
Cited By (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239202A (en) * | 2013-06-09 | 2014-12-24 | 刘伟 | Non-Root testing method and system of interactive intelligent equipment |
CN103365779B (en) * | 2013-07-09 | 2016-11-09 | 广东欧珀移动通信有限公司 | Method for testing software and system |
CN103365779A (en) * | 2013-07-09 | 2013-10-23 | 广东欧珀移动通信有限公司 | Software test method and system |
CN104346276A (en) * | 2013-08-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for software tests |
CN104636247A (en) * | 2013-11-12 | 2015-05-20 | 财团法人资讯工业策进会 | Testing device and testing method thereof |
CN103744787A (en) * | 2014-01-21 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Cellphone automated testing method |
CN103928038B (en) * | 2014-04-29 | 2017-06-30 | 广东欧珀移动通信有限公司 | The test recording of electronic equipment and back method |
CN103928038A (en) * | 2014-04-29 | 2014-07-16 | 广东欧珀移动通信有限公司 | Electronic equipment test recording and playing back method |
CN105094766B (en) * | 2014-05-04 | 2019-06-18 | 腾讯科技(深圳)有限公司 | Operate method for recording and operation record device |
CN105094766A (en) * | 2014-05-04 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Operation recording method and operation recording device |
CN105204986A (en) * | 2014-06-24 | 2015-12-30 | 广州市动景计算机科技有限公司 | Automated product testing method, server and mobile equipment |
CN105446870A (en) * | 2014-08-25 | 2016-03-30 | 北京畅游天下网络技术有限公司 | Method and apparatus for performing automation test on app |
CN104239214B (en) * | 2014-09-29 | 2017-12-01 | 广州视源电子科技股份有限公司 | Method and device for configuring test script |
CN104461894B (en) * | 2014-12-17 | 2017-11-07 | 用友网络科技股份有限公司 | The operation record device and method of Android software |
CN104717337B (en) * | 2015-04-03 | 2018-03-02 | 杭州昕云信息科技有限公司 | A kind of method of batch testing mobile phone application and its equipment used |
CN104717337A (en) * | 2015-04-03 | 2015-06-17 | 杭州昕云信息科技有限公司 | Method for testing mobile application in batch and equipment used in method |
CN104935639A (en) * | 2015-05-06 | 2015-09-23 | 上海斐讯数据通信技术有限公司 | Intelligent terminal, and applied distributed exploitation system and method |
CN106326101A (en) * | 2015-07-06 | 2017-01-11 | 北京华大九天软件有限公司 | Automatic testing method of QT-based application program |
CN105183631A (en) * | 2015-07-16 | 2015-12-23 | 小米科技有限责任公司 | Equipment test methods and devices |
CN105159806A (en) * | 2015-08-25 | 2015-12-16 | 盛趣信息技术(上海)有限公司 | Terminal compatibility test system and operating method therefor |
CN105866574A (en) * | 2016-03-29 | 2016-08-17 | 东莞华贝电子科技有限公司 | Auxiliary identifying method and auxiliary identifying system for automated testing |
CN105866574B (en) * | 2016-03-29 | 2018-07-17 | 东莞华贝电子科技有限公司 | Automatic test assists in identifying method and assists in identifying system |
CN105721864A (en) * | 2016-04-20 | 2016-06-29 | 杭州当虹科技有限公司 | Efficient regression test method based on audio/video packaging layer parameter detection |
CN106445826A (en) * | 2016-10-14 | 2017-02-22 | 深圳天珑无线科技有限公司 | Preparing method and producing device of differential package |
CN106909504A (en) * | 2017-02-14 | 2017-06-30 | 上海斐讯数据通信技术有限公司 | A kind of automatic test script maintaining method and equipment |
CN109144840A (en) * | 2017-06-16 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of test method, device and its equipment |
CN107491391A (en) * | 2017-08-21 | 2017-12-19 | 深圳市天视通电子科技有限公司 | A kind of software testing system and method |
CN107509072A (en) * | 2017-08-30 | 2017-12-22 | 四川长虹电器股份有限公司 | A kind of automated testing method of automatic Memory test path |
CN109684196A (en) * | 2018-11-01 | 2019-04-26 | 北京中清龙图网络技术有限公司 | A kind of test method and device |
CN109684196B (en) * | 2018-11-01 | 2024-01-09 | 北京中清龙图网络技术有限公司 | Test method and device |
CN111159008A (en) * | 2018-11-08 | 2020-05-15 | 阿里巴巴集团控股有限公司 | Test method and device and electronic equipment |
CN111159008B (en) * | 2018-11-08 | 2023-05-05 | 阿里巴巴集团控股有限公司 | Test method and device and electronic equipment |
CN110990842A (en) * | 2019-12-19 | 2020-04-10 | 上海米哈游网络科技股份有限公司 | Recurrence method and device of small probability event, storage medium and electronic equipment |
CN113535029A (en) * | 2021-07-30 | 2021-10-22 | 西安闻泰电子科技有限公司 | Operation recording method, terminal, computer device and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103064781A (en) | Mobile software automated testing method | |
US7529990B2 (en) | Systems and methods for managing multi-device test sessions | |
CN102521118B (en) | Automatic testing method of Android program | |
CN105608258B (en) | A kind of Model-based diagnosis and information flow visual simulation system and method | |
CN110515848B (en) | Automatic test system and automatic test method | |
CN104268310A (en) | Method for calling UVM verification environment through special graphical interface | |
CN102999419B (en) | A kind of Android test incident record back method and device | |
CN101247292B (en) | Test equipment and method based on universal test meter API | |
CN103377120A (en) | Test method and device for application programs | |
CN107665168A (en) | A kind of embedded software GUI automated test devices | |
CN112270149A (en) | Verification platform automation integration method and system, electronic equipment and storage medium | |
CN112732576B (en) | Automatic testing method, device and equipment based on user interface | |
TW201321968A (en) | Test method for handheld electronic device application | |
CN106484613A (en) | A kind of interface automated test frame based on fitnese | |
CN107124236A (en) | A kind of receiver performance indication test method based on script | |
CN112231206A (en) | Script editing method for application program test, computer readable storage medium and test platform | |
CN104199770A (en) | Automated mobile phone music APK testing method | |
JP5677924B2 (en) | Test automation system | |
CN101944061A (en) | Method and device for debugging codes | |
CN104239202A (en) | Non-Root testing method and system of interactive intelligent equipment | |
CN111124893B (en) | Automatic testing method and system based on Android device | |
RU2729210C1 (en) | Electronic devices software testing system | |
Raut et al. | Android mobile automation framework | |
US10339229B1 (en) | Simulation observability and control of all hardware and software components of a virtual platform model of an electronics system | |
CN111858315A (en) | Software debugging method, device, equipment and medium based on version management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130424 |