CN108804328A - Android application compatibility test method - Google Patents
Android application compatibility test method Download PDFInfo
- Publication number
- CN108804328A CN108804328A CN201810601281.4A CN201810601281A CN108804328A CN 108804328 A CN108804328 A CN 108804328A CN 201810601281 A CN201810601281 A CN 201810601281A CN 108804328 A CN108804328 A CN 108804328A
- Authority
- CN
- China
- Prior art keywords
- android
- test
- compatibility test
- server
- testing
- 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
- 238000010998 test method Methods 0.000 title description 2
- 238000012360 testing method Methods 0.000 claims abstract description 82
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000013515 script Methods 0.000 claims abstract description 24
- 241000282693 Cercopithecidae Species 0.000 claims abstract description 17
- 238000009434 installation Methods 0.000 claims abstract description 4
- 238000013480 data collection Methods 0.000 claims description 3
- 230000033772 system development Effects 0.000 claims description 3
- 238000004458 analytical method Methods 0.000 abstract description 3
- 238000012430 stability testing Methods 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 238000013467 fragmentation Methods 0.000 description 2
- 238000006062 fragmentation reaction Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for testing compatibility of android applications, which relates to the field of android operating systems.A android device for testing is placed at a cloud end for management, a user calls a test script through a web service, and the test script is executed on the android device in batches for compatibility testing; the method comprises the following steps: 1) connecting the installation equipment with a server for testing; 2) developing a web service on a server for opening; 3) and carrying out application compatibility test on the android device through the web service. According to the method and the device, the testing equipment is placed at the cloud for management, the utilization rate of the equipment is improved, compatibility testing is automatically carried out by using the android application stability testing tool monkey, the testing time cost is reduced, and screenshots and error logs can be automatically stored in the testing process, so that a user can conveniently carry out bug analysis.
Description
Technical field
The present invention relates to Android operation system field, specifically a kind of method of Android application compatibility test.
Background technology
Android (Android) is a kind of freedom based on Linux and the operating system of open source code, is mainly used for moving
Dynamic equipment by Google companies and open mobile phone alliance leader and is developed such as smart mobile phone and tablet computer.In November, 2007,
Google and 84 hardware manufacturer, software developer and the open mobile phone alliance of Telecom operators establishment research and develop improvement jointly
Android system.Subsequent Google is increased income the authorization of licensing with Apache, has issued the source code of Android.First
Portion's Android intelligent is published in October, 2008.The first quarter in 2011, Android the whole world the market share for the first time
More than Saipan system, the whole world first is leapt to.Fourth quarter in 2013, the world market share of Android platform mobile phone is
Reach 78.1%.The equipment that the operating system Android of the exploitation of 24 days 09 month Googles in 2013 uses this system in the whole world
Quantity has reached 1,000,000,000.
The birth of Android platform is that the universal of mobile intelligent performs deeds of valour in battle, but the disadvantage of Android platform maximum is also got over
More to highlight, that is, fragmentation is serious:Equipment is various, and brand is numerous, and version is different, and resolution ratio disunity etc., these are all
It is increasingly becoming the obstacle of Android system development, fragmentation seriously not only causes Android system chaotic, also causes Android to be applied hidden
Shape development cost increases.Nowadays in order to carry out Android application compatibility test, large number of equipment progress can only traditionally be purchased
Manual test, although meeting portion requirements, equipment purchase is of high cost, the testing time is long and equipment coverage rate is low.
Invention content
The present invention is directed to the demand and shortcoming of current technology development, provides a kind of side of Android application compatibility test
Method.
A kind of method of Android application compatibility test of the present invention solves the technical solution that above-mentioned technical problem uses
It is as follows:Test is placed on high in the clouds management by a kind of method of Android application compatibility test with Android device, and user passes through
Web services are called test script, and test script is executed in Android device in batches carries out compatibility test;Specifically include as
Lower step:1) installation equipment is connected with test with server;2) exploitation web services are opened on the server;3)
Android device is carried out by web services to apply compatibility test.
Specifically, the step 1), the Android device is connected with test with server, is realized using adb modes
It is communicated between server and Android device.
Specifically, the Android device is using a collection of Android mobile phone.
Specifically, the step 2), after the server has configured adb, by the Android device management system of server end
System exploitation is opened at web services;User directly carries out using peace loading, unloading at web services end and calls test script behaviour
Make.
Specifically, the step 2), the test script is monkey scripts, and compatible survey is carried out using monkey scripts
Examination.
Specifically, the step 3), carries out Android device by web services to apply compatibility test:
Test program is uploaded with user orientation server first, then selects to be tested Android device type, into background queue system
System is lined up;When task is performed, background system installs application on a tested Android group of planes, then executes monkey feet
This, is carried out at the same time data collection effort;
When monkey scripts stop, then this applies the compatibility test failure in this tested Android device, carries out immediately
Sectional drawing and log recording.
Specifically, the step 3), sectional drawing is carried out using adb orders, alternatively, log truncation Android logcat daily records.
Specifically, test result fed back to web user after the completion of test, to be shown if wrong wrong sectional drawing and
Logcat daily records.
A kind of method of Android application compatibility test of the present invention, has the advantage that compared with prior art
It is:Test equipment is placed on high in the clouds and is managed by the present invention, improves the utilization rate of equipment, utilizes Android application stability test
Tool monkey carries out compatibility test automatically, reduces testing time cost, sectional drawing and mistake can be automatically saved in test process
Accidentally daily record facilitates user to carry out bug analyses;Whole implementation is simple and convenient to operate, and can realize the quick compatibility of batch device
Test has preferable popularizing value.
Specific implementation mode
The technical issues of to make technical scheme of the present invention, solving and technique effect are more clearly understood, below in conjunction with tool
Body embodiment is checked technical scheme of the present invention, is completely described, it is clear that described embodiment is only this hair
Bright a part of the embodiment, instead of all the embodiments.Based on the embodiment of the present invention, those skilled in the art are not doing
All embodiments obtained under the premise of going out creative work, all within protection scope of the present invention.
Embodiment
The present embodiment proposes a kind of method of Android application compatibility test, and test is placed on high in the clouds pipe with Android device
Reason, user are called test script by web services, execute test script in Android device in batches and carry out compatible survey
Examination;Specifically comprise the following steps:1) installation equipment is connected with test with server;2) exploitation web takes on the server
Business is opened;3) Android device is carried out by web services applying compatibility test.
The method of the present embodiment Android application compatibility test, for step 1), it is necessary first to prepare a collection of test peace
Tall and erect equipment can be before common occupation rate of market 50 Android mobile phone;Then, this collection of Android device is serviced with test
Device connects, and is realized using adb modes and is communicated between server and Android device.The so-called full name Andorid Debug of adb
Bridge is the tool of the CS structures of a standard, is to want Connection Service device and Android device.Adb includes following several parts:
The ends Clien are run in the server, for sending adb orders;Deamon finger daemons, operate in Android device, that is, adjust peace
Zhuo Shouji;The ends Server in the server as a background process operation are used for the ends Client in management server and peace
Communication between the Deamon of tall and erect equipment.
The method of the present embodiment Android application compatibility test, for step 2), after server has configured adb,
The Android device management system development of server end is opened at web services, and user can directly apply at web services end
Pacify loading, unloading and call the operations such as test script, is that Android device is run beyond the clouds, is opened to comes in the form of services.
In order to improve compatibility test efficiency, compatibility test is carried out using automatic test script.The present embodiment Android
Using the method for compatibility test, compatibility test is carried out using monkey scripts.Monkey is one carried in Android system
A program may operate in simulator or practical Android device.Monkey sends pseudorandom customer incident stream (such as to system
Key-press input, touch screen input, gesture input etc.), Android application is tested in realization.When application crashes or there is ANR
When mistake, monkey is automatically stopped, and monkey can simultaneously be operated in multiple Android devices.Note Android in following word is set
It is standby to refer to mobile phone to be measured;Python code is realized as follows:
The method of the present embodiment Android application compatibility test carries out Android device by web services step 3)
Using compatibility test, detailed implementation is:Test program is uploaded with user orientation server first, then selects to be tested Android
Equipment type is lined up into background queue system;When task is performed, background system is installed on a tested Android group of planes
Using then execution monkey scripts, are carried out at the same time data collection effort.
When monkey scripts stop, it is believed that this applies the compatibility test failure in this tested Android device, immediately into
Row sectional drawing and log recording, sectional drawing are carried out using adb orders, log truncation Android logcat daily records.After being completed, according to obtaining
Data to web user show test result, errors excepted then to show wrong sectional drawing and logcat daily records facilitate user into
Row analysis.Test result is fed back into web user after the completion of test, test result includes Apply Names, using packet name, version
Number, tested type it is total, successfully number, unsuccessfully number, submit task time and complete task time.
Use above specific case elaborates the principle of the present invention and embodiment, these embodiments are
It is used to help understand core of the invention technology contents, the protection domain being not intended to restrict the invention, technical side of the invention
Case is not limited in above-mentioned specific implementation mode.Based on the above-mentioned specific embodiment of the present invention, those skilled in the art
Without departing from the principle of the present invention, any improvement and modification to made by the present invention should all fall into the special of the present invention
Sharp protection domain.
Claims (8)
1. a kind of method of Android application compatibility test, which is characterized in that test is placed on high in the clouds management with Android device, is used
Family is called test script by web services, and test script is executed in Android device in batches carries out compatibility test;Specifically
Include the following steps:1) installation equipment is connected with test with server;2) exploitation web services are opened on the server
It puts;3) Android device is carried out by web services applying compatibility test.
2. a kind of method of Android application compatibility test according to claim 1, which is characterized in that the step 1), institute
It states Android device to be connected with server with test, is realized using adb modes and communicated between server and Android device.
3. a kind of method of Android application compatibility test according to claim 2, which is characterized in that the Android device is adopted
With a collection of Android mobile phone.
4. a kind of method of Android application compatibility test according to claim 1, which is characterized in that the step 2), institute
It states after server configured adb, the Android device management system development of server end is opened at web services;User
It is directly carried out using peace loading, unloading at web services end and calls test script operation.
5. a kind of method of Android application compatibility test according to claim 4, which is characterized in that the step 2), institute
It is monkey scripts to state test script, and compatibility test is carried out using monkey scripts.
6. a kind of method of Android application compatibility test according to claim 5, which is characterized in that the step 3) is led to
Web services are crossed Android device is carried out to apply compatibility test:
Upload test program with user orientation server first, then select to be tested Android device type, into background queue system into
Row is lined up;When task is performed, background system installs application on a tested Android group of planes, then executes monkey scripts, together
Shi Jinhang data collection efforts;
When monkey scripts stop, then this applies the compatibility test failure in this tested Android device, carries out sectional drawing immediately
And log recording.
7. a kind of method of Android application compatibility test according to claim 6, which is characterized in that the step 3) is cut
Figure is carried out using adb orders, alternatively, log truncation Android logcat daily records.
8. a kind of method of Android application compatibility test according to claim 7, which is characterized in that will be surveyed after the completion of test
Test result feeds back to web user, and wrong sectional drawing and logcat daily records are shown if wrong.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810601281.4A CN108804328A (en) | 2018-06-12 | 2018-06-12 | Android application compatibility test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810601281.4A CN108804328A (en) | 2018-06-12 | 2018-06-12 | Android application compatibility test method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108804328A true CN108804328A (en) | 2018-11-13 |
Family
ID=64085354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810601281.4A Pending CN108804328A (en) | 2018-06-12 | 2018-06-12 | Android application compatibility test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804328A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885480A (en) * | 2019-01-14 | 2019-06-14 | 珠海金山网络游戏科技有限公司 | A kind of automatic interface compatibility test method and device based on debugging bridge |
WO2021159736A1 (en) * | 2020-09-27 | 2021-08-19 | 平安科技(深圳)有限公司 | Application compatibility test method and apparatus, and computer device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130139129A1 (en) * | 2011-11-29 | 2013-05-30 | Askey Computer Corp. | Test method for handheld electronic device application |
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
US8819638B2 (en) * | 2011-09-20 | 2014-08-26 | Alcatel Lucent | Application protoyping suite |
CN105302727A (en) * | 2015-11-17 | 2016-02-03 | 小米科技有限责任公司 | Testing method, device and system |
CN106528415A (en) * | 2016-10-27 | 2017-03-22 | 广东浪潮大数据研究有限公司 | Software compatibility test method, business platform and system |
CN107025165A (en) * | 2017-03-07 | 2017-08-08 | 腾讯科技(深圳)有限公司 | Game automated testing method and relevant apparatus |
CN107315683A (en) * | 2017-06-22 | 2017-11-03 | 四川长虹电器股份有限公司 | The automatic test platform and method of testing of a kind of Android Mobile solution |
-
2018
- 2018-06-12 CN CN201810601281.4A patent/CN108804328A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8819638B2 (en) * | 2011-09-20 | 2014-08-26 | Alcatel Lucent | Application protoyping suite |
US20130139129A1 (en) * | 2011-11-29 | 2013-05-30 | Askey Computer Corp. | Test method for handheld electronic device application |
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
CN105302727A (en) * | 2015-11-17 | 2016-02-03 | 小米科技有限责任公司 | Testing method, device and system |
CN106528415A (en) * | 2016-10-27 | 2017-03-22 | 广东浪潮大数据研究有限公司 | Software compatibility test method, business platform and system |
CN107025165A (en) * | 2017-03-07 | 2017-08-08 | 腾讯科技(深圳)有限公司 | Game automated testing method and relevant apparatus |
CN107315683A (en) * | 2017-06-22 | 2017-11-03 | 四川长虹电器股份有限公司 | The automatic test platform and method of testing of a kind of Android Mobile solution |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885480A (en) * | 2019-01-14 | 2019-06-14 | 珠海金山网络游戏科技有限公司 | A kind of automatic interface compatibility test method and device based on debugging bridge |
CN109885480B (en) * | 2019-01-14 | 2022-07-01 | 珠海金山网络游戏科技有限公司 | Automatic interface compatibility testing method and device based on debugging bridge |
WO2021159736A1 (en) * | 2020-09-27 | 2021-08-19 | 平安科技(深圳)有限公司 | Application compatibility test method and apparatus, and computer device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109062780B (en) | Development method of automatic test case and terminal equipment | |
US9122804B2 (en) | Logic validation and deployment | |
EP2572294B1 (en) | System and method for sql performance assurance services | |
CN107135390A (en) | Automatic testing method and system for television application | |
CN108563567A (en) | Automated testing method, device, equipment and computer readable storage medium | |
CN110362490B (en) | Automatic testing method and system for integrating iOS and Android mobile applications | |
CN105426298A (en) | ADB (Android debug bridge)-based software test method and system | |
CN111538659B (en) | Interface testing method, system, electronic equipment and storage medium of business scene | |
CN105094783A (en) | Method and device for testing Android application stability | |
CN110875858B (en) | Application test data grabbing method, system, equipment and storage medium | |
CN103377120A (en) | Test method and device for application programs | |
CN109284225A (en) | A kind of quality determining method and electronic equipment of multi-person synergy exploitation programming code | |
CN111176629A (en) | Application development method and device | |
CN104899016A (en) | Call stack relationship obtaining method and call stack relationship obtaining device | |
CN108121650B (en) | Method and device for testing page user interface | |
WO2012080262A1 (en) | Software error code injection | |
CN112231206A (en) | Script editing method for application program test, computer readable storage medium and test platform | |
CN108804328A (en) | Android application compatibility test method | |
US10915426B2 (en) | Intercepting and recording calls to a module in real-time | |
CN111970355A (en) | Method for automatically downloading numbered files | |
CN109522174B (en) | Method, device, terminal and storage medium for controlling adb enabling | |
US20200387370A1 (en) | Intercepting and replaying interactions with transactional and database environments | |
US20200387369A1 (en) | Determining caller of a module in real-time | |
CN113157429A (en) | SAAS cloud service implementation method and system | |
CN113392002B (en) | Test system construction method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |