CN104536876A - An Android platform based automatically updating and testing method and system - Google Patents
An Android platform based automatically updating and testing method and system Download PDFInfo
- Publication number
- CN104536876A CN104536876A CN201410690100.1A CN201410690100A CN104536876A CN 104536876 A CN104536876 A CN 104536876A CN 201410690100 A CN201410690100 A CN 201410690100A CN 104536876 A CN104536876 A CN 104536876A
- Authority
- CN
- China
- Prior art keywords
- file
- code
- authority
- highest version
- upgrading
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses an Android platform based automatically updating and testing method and system, relates to the technical field of updating the Android system, and aims at providing an automatically updating and testing tool for updating the Android system. The technical main points of the method include: obtaining MD 5 codes of all files in a higher version system, and associating titles of the files with corresponding MD 5 codes for storage; obtaining authorities of all the files in the higher version system, and associating the titles of the files with the corresponding authorities for storage; performing an update test in the updated system, to obtain an MD 5 code and authority of each file in the updated system; comparing the MD 5 code of the file of the updated system with the MD 5 code corresponding to the same title of the file in the higher version system, and outputting a comparison result if the two MD 5 codes are different; and comparing the authority of the file of the updated system with the authority corresponding to the same title of the file in the higher version system, and outputting a comparison result if the two authorities are different.
Description
Technical field
The present invention relates to a kind of android system upgrade technique field, particularly relate to a kind of Android platform auto-update method of testing.
Background technology
The speed goes of current Android platform iteration upgrading is fast, needed to do upgrading test to difference and the whole system after upgrading of wrapping before delivery system AKU, the content of upgrading test mainly comprises: the test of the authority of non-user subregion file and the correctness of MD5 code after upgrading.
But different from other system upgrading test, testing cost can be reduced at present in the automatic updating field tests of android system, to improve the automated test tool of software quality little.The system of major part Android platform does not have automatic updating test script.If manufacturer will carry out android system upgrading test, tester can only be simple functional module or whether a certain file verifies the correctness of upgrading, cannot realize automatic updating test.
Summary of the invention
Technical matters to be solved by this invention is: for above-mentioned Problems existing, provides a kind of auto-update method of testing based on Android platform and system.
A kind of auto-update method of testing based on Android platform provided by the invention, comprising:
Step 1: the MD5 code obtaining All Files in highest version system, and by the MD5 code association store of described filename and correspondence thereof; Obtain the authority of All Files in highest version system, and by the authority association store of described filename and correspondence thereof;
Step 2: carry out upgrading test in the system after upgrading:
Obtain MD5 code and the authority of each file in the rear system of upgrading;
MD5 code corresponding with same file name in step 1 for the MD5 code of system file after upgrading is compared, as comparative result then exports by both differences;
Authority corresponding with same file name in step 1 for the authority of system file after upgrading is compared, as comparative result then exports by both differences.
Further, the method obtaining the MD5 code of highest version system file in step 1 comprises:
Have at copy on the server of the whole bag of highest version system and perform acquisition MD5 code script, obtain the MD5 code of All Files in the whole bag of described highest version system.
Further, the method obtaining the MD5 code of highest version system file in step 1 comprises:
Each file in the whole bag of traversal highest version system;
The MD5 code of each file is obtained according to filename;
Be saved in after the association of the MD5 code of filename and correspondence thereof in file.
Further, the method obtaining the authority of highest version system file in step 1 comprises:
Perform in the system being upgraded to highest version by bin AKU and obtain authority script, obtain the authority of All Files in described highest version system.
Further, the method obtaining the authority of highest version system file in step 1 comprises:
Each file traveling through this system is upgraded in the system of highest version by bin AKU described;
The authority of each file is obtained according to filename;
Be saved in after the association of the authority of filename and correspondence thereof in file.
Step 2 is included in further to be upgraded in the system of highest version by the upgrading of whole bag or difference and performs comparison document MD5 code and authority script carries out upgrading test:
After traversal upgrading, each file in system, obtains MD5 code and the authority of each file;
MD5 code corresponding with same file name in step 1 for the MD5 code of system file after upgrading is compared, and both difference is stored in file;
Authority corresponding with same file name in step 1 for the authority of system file after upgrading is compared, and both difference is stored in file.
Present invention also offers a kind of auto-update test macro based on Android platform, comprising:
Highest version system file MD5 code acquisition module, for obtaining the MD5 code of All Files in highest version system, and by the MD5 code association store of described filename and correspondence thereof;
Highest version system file authority acquiring module, for obtaining the authority of All Files in highest version system, and by the authority association store of described filename and correspondence thereof;
Upgrade-system file MD5 code acquisition module, for obtaining the MD5 code of each file in the system after by whole bag upgrading or difference upgrading;
Upgrade-system file permission acquisition module, for obtaining the authority of each file in the system after by whole bag upgrading or difference upgrading;
File MD5 code comparison module, for comparing MD5 code corresponding with same file name in highest version system for the MD5 code of system file after upgrading, as comparative result then exports by both differences;
File permission comparison module, for comparing authority corresponding with same file name in highest version system for the authority of system file after upgrading, as comparative result then exports by both differences.
Described highest version system file MD5 code acquisition module is further used for:
Each file in the traversal copy whole bag of highest version system on the server;
The MD5 code of each file is obtained according to filename;
Be saved in after the association of the MD5 code of filename and correspondence thereof in file.
Described highest version system file authority acquiring module is further used for:
Each file of this system is traveled through in the system of the highest version be upgraded to by bin AKU;
The authority of each file is obtained according to filename;
Be saved in after the association of the authority of filename and correspondence thereof in file.
In sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
Achieve automatic test approach and the system of android system upgrading, automatically the MD5 code of system file after upgrading and authority and highest version system file are compared, and discrepant for tool filename is exported, be convenient to tester and find unsuccessful file of upgrading intuitively, improve testing efficiency, effectively reduce iteration upgrading risk.
Accompanying drawing explanation
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is the process flow diagram of one embodiment of the invention.
Fig. 2 is an example by filename and MD5 code association store in the present invention.
Fig. 3 is an example by filename and authority association store in the present invention.
Fig. 4 is an example by the MD5 code of upgrade-system file and highest version system file or different filename, MD5 code and the authority association store of authority in the present invention.
Embodiment
All features disclosed in this instructions, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this instructions, unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
It is for reference with the highest version system of a standard that technical scheme of the present invention is opened one's minds, test one upgraded by the AKU (can be the form of whole bag upgrading or difference upgrading, can by system upgrade to highest version system by this AKU) being about to issue after the upgrade case of system.
Specific practice is MD5 code and the authority of each file in reading standard highest version system, by the MD5 code of rear to itself and upgrading system corresponding document and authority, as there are differences, then think that exception has appearred in this file in escalation process, only need the foundation of carrying out AKU adjustment or upgrading risk assessment in this, as tester.
As Fig. 1, a specific embodiment of the present invention comprises the following steps:
Have at a copy on the server of the whole bag of highest version system and perform acquisition file MD5 code script, script performs following steps: each file in the whole bag of traversal highest version system; The MD5 code of each file is obtained according to filename; By being saved in file after the association of the MD5 code of filename and correspondence thereof, preferably store according to the structure shown in Fig. 2.
Here the whole bag of system refers to the compressing file bag including this highest version system All Files.
Utilize the bin AKU of described standard highest version system, by a system upgrade to highest version system, perform on this system and obtain file permission script, this script performs following steps: be upgraded in the system of highest version described each file traveling through this system by bin AKU; The authority of each file is obtained according to filename; Be saved in after the association of the authority of filename and correspondence thereof in file.
See Fig. 3, the authority of filename and correspondence thereof stored, in figure, perm is file permission, and owner is file owners, and group is file group.
Because the probability of the whole bag of system and the system fault that is upgraded to highest version by bin AKU is very little, the above-mentioned steps therefore performing the present embodiment can obtain MD5 code and the authority of the file of standard highest version system, also namely carries out " object of reference " of upgrading test.
Next the file of the MD5 code of the file of standard highest version system and authority and the system after being upgraded by the AKU being about to issue is compared, test upgrade case.
Perform comparison document MD5 code and authority script in system after upgrading, this script performs following steps: each file in system after traversal upgrading, obtains MD5 code and the authority of each file; MD5 code corresponding with same file name in step 1 for the MD5 code of system file after upgrading is compared, and both difference is stored in file; Authority corresponding with same file name in step 1 for the authority of system file after upgrading is compared, and both difference is stored in file.
Difference stored according to the structure shown in Fig. 4: in MD5 code comparative result, org is the MD5 code of whole APMB package, and now is the MD5 code of system file after upgrading.In authority comparative result, org is the authority of the file in the system after being upgraded by bin AKU, and now is the authority of system file after upgrading.In this way both can the authority difference of comparison document.
After obtaining differential file, can there is abnormal file to upgrading by quick position in tester, directly carries out follow-up analysis and upgrading risk assessment work, abnormal without the need to carrying out manual detection upgrading, effectively improves the work efficiency of tester.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature of disclosing in this manual or any combination newly, and the step of the arbitrary new method disclosed or process or any combination newly.
Claims (9)
1., based on an auto-update method of testing for Android platform, it is characterized in that, comprising:
Step 1: the MD5 code obtaining All Files in highest version system, and by the MD5 code association store of described filename and correspondence thereof; Obtain the authority of All Files in highest version system, and by the authority association store of described filename and correspondence thereof;
Step 2: carry out upgrading test in the system after upgrading:
Obtain MD5 code and the authority of each file in the rear system of upgrading;
MD5 code corresponding with same file name in step 1 for the MD5 code of system file after upgrading is compared, as comparative result then exports by both differences;
Authority corresponding with same file name in step 1 for the authority of system file after upgrading is compared, as comparative result then exports by both differences.
2. a kind of auto-update method of testing based on Android platform according to claim 1, it is characterized in that, the method obtaining the MD5 code of highest version system file in step 1 comprises:
Have at copy on the server of the whole bag of highest version system and perform acquisition MD5 code script, obtain the MD5 code of All Files in the whole bag of described highest version system.
3. a kind of auto-update method of testing based on Android platform according to claim 2, it is characterized in that, the method obtaining the MD5 code of highest version system file in step 1 comprises:
Each file in the whole bag of traversal highest version system;
The MD5 code of each file is obtained according to filename;
Be saved in after the association of the MD5 code of filename and correspondence thereof in file.
4. a kind of auto-update method of testing based on Android platform according to claim 1, it is characterized in that, the method obtaining the authority of highest version system file in step 1 comprises:
Perform in the system being upgraded to highest version by bin AKU and obtain authority script, obtain the authority of All Files in described highest version system.
5. a kind of auto-update method of testing based on Android platform according to claim 4, it is characterized in that, the method obtaining the authority of highest version system file in step 1 comprises:
Each file traveling through this system is upgraded in the system of highest version by bin AKU described;
The authority of each file is obtained according to filename;
Be saved in after the association of the authority of filename and correspondence thereof in file.
6. a kind of auto-update method of testing based on Android platform according to claim 1, it is characterized in that, step 2 is included in further to be upgraded in the system of highest version by the upgrading of whole bag or difference and performs comparison document MD5 code and authority script carries out upgrading test:
After traversal upgrading, each file in system, obtains MD5 code and the authority of each file;
MD5 code corresponding with same file name in step 1 for the MD5 code of system file after upgrading is compared, and both difference is stored in file;
Authority corresponding with same file name in step 1 for the authority of system file after upgrading is compared, and both difference is stored in file.
7., based on an auto-update test macro for Android platform, it is characterized in that, comprising:
Highest version system file MD5 code acquisition module, for obtaining the MD5 code of All Files in highest version system, and by the MD5 code association store of described filename and correspondence thereof;
Highest version system file authority acquiring module, for obtaining the authority of All Files in highest version system, and by the authority association store of described filename and correspondence thereof;
Upgrade-system file MD5 code acquisition module, for obtaining the MD5 code of each file in the system after by whole bag upgrading or difference upgrading;
Upgrade-system file permission acquisition module, for obtaining the authority of each file in the system after by whole bag upgrading or difference upgrading;
File MD5 code comparison module, for comparing MD5 code corresponding with same file name in highest version system for the MD5 code of system file after upgrading, as comparative result then exports by both differences;
File permission comparison module, for comparing authority corresponding with same file name in highest version system for the authority of system file after upgrading, as comparative result then exports by both differences.
8. a kind of auto-update test macro based on Android platform according to claim 1, is characterized in that, highest version system file MD5 code acquisition module, is further used for:
Each file in the traversal copy whole bag of highest version system on the server;
The MD5 code of each file is obtained according to filename;
Be saved in after the association of the MD5 code of filename and correspondence thereof in file.
9. a kind of auto-update test macro based on Android platform according to claim 7, is characterized in that, described highest version system file authority acquiring module is further used for:
Each file of this system is traveled through in the system of the highest version be upgraded to by bin AKU;
The authority of each file is obtained according to filename;
Be saved in after the association of the authority of filename and correspondence thereof in file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410690100.1A CN104536876A (en) | 2014-11-26 | 2014-11-26 | An Android platform based automatically updating and testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410690100.1A CN104536876A (en) | 2014-11-26 | 2014-11-26 | An Android platform based automatically updating and testing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104536876A true CN104536876A (en) | 2015-04-22 |
Family
ID=52852406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410690100.1A Pending CN104536876A (en) | 2014-11-26 | 2014-11-26 | An Android platform based automatically updating and testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104536876A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126297A (en) * | 2016-06-30 | 2016-11-16 | 西安诺瓦电子科技有限公司 | Method for upgrading system based on Android operation system |
CN106484453A (en) * | 2015-09-02 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of method and device realizing system upgrade |
CN106502883A (en) * | 2016-10-09 | 2017-03-15 | 武汉斗鱼网络科技有限公司 | The database synchronization method and system of client and service end during automatic test |
CN107450943A (en) * | 2017-07-06 | 2017-12-08 | 上海斐讯数据通信技术有限公司 | One kind test whether normal method and system of upgraded version detection function |
CN107729043A (en) * | 2017-11-10 | 2018-02-23 | 深圳Tcl新技术有限公司 | Method of calibration, device and the computer-readable recording medium of increment AKU |
CN108170453A (en) * | 2018-01-17 | 2018-06-15 | 中国平安人寿保险股份有限公司 | A kind of MIT method for upgrading system, storage medium and terminal device |
CN108270917A (en) * | 2017-12-01 | 2018-07-10 | 南京嘉谷初成通信科技有限公司 | A kind of encryption smart mobile phone |
CN108804316A (en) * | 2018-05-24 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of method of inspection and system of test script program standardization |
CN110716735A (en) * | 2019-10-11 | 2020-01-21 | 东莞市小精灵教育软件有限公司 | System upgrading method and device, intelligent terminal and computer readable storage medium |
CN111629200A (en) * | 2019-02-27 | 2020-09-04 | 深圳Tcl数字技术有限公司 | Method and device for rapidly detecting differential packet reliability and readable storage medium |
WO2024001543A1 (en) * | 2022-06-30 | 2024-01-04 | 中兴通讯股份有限公司 | System update file configuration method and apparatus, system update method and apparatus, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040054946A1 (en) * | 2002-09-18 | 2004-03-18 | Dario Atallah | System and method for assessing compatibility risk |
CN101382914A (en) * | 2008-10-15 | 2009-03-11 | 北大方正集团有限公司 | Testing method and device for software update file |
CN102346692A (en) * | 2010-08-03 | 2012-02-08 | 深圳Tcl新技术有限公司 | Verification method of IPTV (Internet Protocol Television) updating files |
CN103729201A (en) * | 2012-10-11 | 2014-04-16 | 上海手机测试公共服务平台有限公司 | Testing method for wireless firmware upgrade |
CN103745166A (en) * | 2013-12-27 | 2014-04-23 | 曙光云计算技术有限公司 | Method and device for inspecting file attribute value |
-
2014
- 2014-11-26 CN CN201410690100.1A patent/CN104536876A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040054946A1 (en) * | 2002-09-18 | 2004-03-18 | Dario Atallah | System and method for assessing compatibility risk |
CN101382914A (en) * | 2008-10-15 | 2009-03-11 | 北大方正集团有限公司 | Testing method and device for software update file |
CN102346692A (en) * | 2010-08-03 | 2012-02-08 | 深圳Tcl新技术有限公司 | Verification method of IPTV (Internet Protocol Television) updating files |
CN103729201A (en) * | 2012-10-11 | 2014-04-16 | 上海手机测试公共服务平台有限公司 | Testing method for wireless firmware upgrade |
CN103745166A (en) * | 2013-12-27 | 2014-04-23 | 曙光云计算技术有限公司 | Method and device for inspecting file attribute value |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484453A (en) * | 2015-09-02 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of method and device realizing system upgrade |
CN106484453B (en) * | 2015-09-02 | 2021-04-20 | 中兴通讯股份有限公司 | Method and device for realizing system upgrading |
CN106126297A (en) * | 2016-06-30 | 2016-11-16 | 西安诺瓦电子科技有限公司 | Method for upgrading system based on Android operation system |
CN106502883B (en) * | 2016-10-09 | 2019-03-15 | 武汉斗鱼网络科技有限公司 | The database synchronization method and system of client and server-side when automatic test |
CN106502883A (en) * | 2016-10-09 | 2017-03-15 | 武汉斗鱼网络科技有限公司 | The database synchronization method and system of client and service end during automatic test |
CN107450943A (en) * | 2017-07-06 | 2017-12-08 | 上海斐讯数据通信技术有限公司 | One kind test whether normal method and system of upgraded version detection function |
CN107729043A (en) * | 2017-11-10 | 2018-02-23 | 深圳Tcl新技术有限公司 | Method of calibration, device and the computer-readable recording medium of increment AKU |
CN108270917A (en) * | 2017-12-01 | 2018-07-10 | 南京嘉谷初成通信科技有限公司 | A kind of encryption smart mobile phone |
CN108270917B (en) * | 2017-12-01 | 2021-01-15 | 南京嘉谷初成通信科技有限公司 | Encrypted smart phone |
CN108170453B (en) * | 2018-01-17 | 2021-01-01 | 中国平安人寿保险股份有限公司 | MIT system upgrading method, storage medium and terminal equipment |
CN108170453A (en) * | 2018-01-17 | 2018-06-15 | 中国平安人寿保险股份有限公司 | A kind of MIT method for upgrading system, storage medium and terminal device |
CN108804316A (en) * | 2018-05-24 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of method of inspection and system of test script program standardization |
CN111629200A (en) * | 2019-02-27 | 2020-09-04 | 深圳Tcl数字技术有限公司 | Method and device for rapidly detecting differential packet reliability and readable storage medium |
CN110716735A (en) * | 2019-10-11 | 2020-01-21 | 东莞市小精灵教育软件有限公司 | System upgrading method and device, intelligent terminal and computer readable storage medium |
WO2024001543A1 (en) * | 2022-06-30 | 2024-01-04 | 中兴通讯股份有限公司 | System update file configuration method and apparatus, system update method and apparatus, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104536876A (en) | An Android platform based automatically updating and testing method and system | |
US11048493B2 (en) | Computer system, method of updating software with computer system, and program therefor | |
CN104573525B (en) | A kind of specific information service software leak repair system based on white list | |
US10459695B2 (en) | Correction of code errors using machine learning | |
US9075633B2 (en) | Configuration of life cycle management for configuration files for an application | |
CN106610854B (en) | Model updating method and device | |
US9189135B2 (en) | Three-dimensional GUI object stores in automation test tools | |
CN107193612B (en) | Version upgrading method and device for mobile terminal | |
CN104461578A (en) | Automatic code merging method and system | |
CN105589706B (en) | A kind of upgrade package generation method and device | |
CN106326116B (en) | The method and apparatus of product test | |
CN104699511B (en) | Plug-in unit upgrade method and device | |
CN104516755A (en) | Installation package generating method and device | |
CN107301070A (en) | A kind of upgrade method and terminal | |
CN113157651B (en) | Method, system, equipment and medium for renaming resource files of android project in batches | |
CN105391763A (en) | Method and server for reinforcing a plurality of apk files | |
CN101800840B (en) | Set top box upgrading method | |
CN107368513B (en) | Method and device for updating client database | |
CN106250548A (en) | A kind of code update method | |
CN111142922B (en) | Application program updating method, device, terminal and server | |
CN105117329A (en) | Application automatic online system and method | |
CN105205074A (en) | File increment upgrading method and system | |
CN104951333A (en) | Method for checking for the presence of a current firmware version | |
CN103198250B (en) | The checking method of intelligent television application program | |
CN108319551B (en) | Software testing method and device, computer equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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: 20150422 |
|
RJ01 | Rejection of invention patent application after publication |