CN106445827A - System and method for detecting compatibility of application program - Google Patents

System and method for detecting compatibility of application program Download PDF

Info

Publication number
CN106445827A
CN106445827A CN201610908059.XA CN201610908059A CN106445827A CN 106445827 A CN106445827 A CN 106445827A CN 201610908059 A CN201610908059 A CN 201610908059A CN 106445827 A CN106445827 A CN 106445827A
Authority
CN
China
Prior art keywords
application program
detected
title
result
judging
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.)
Granted
Application number
CN201610908059.XA
Other languages
Chinese (zh)
Other versions
CN106445827B (en
Inventor
章玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JIANGSU DANSEN INFORMATION CONSULTANT Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610908059.XA priority Critical patent/CN106445827B/en
Publication of CN106445827A publication Critical patent/CN106445827A/en
Application granted granted Critical
Publication of CN106445827B publication Critical patent/CN106445827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system and method for detecting compatibility of an application program. The method comprises the steps of running the application program to be detected; determining whether the running result is successful or not, and obtaining the name of a currently running application program when the determined result is yes; conducting automatic testing and running according to the name; determining whether the automatic testing and running is successful or not, and confirming that the application program to be detected is compatible with the device to be detected when the determined result is yes. Through the way above, the system for detecting compatibility of the application program can conduct detection in replacement of manpower, so manpower is reduced, efficiency is improved and degree of accuracy is extremely high.

Description

A kind of system and method for the compatibility of detection application program
Technical field
The present invention relates to application program detection technique field, especially relate to a kind of compatibility of detection application program is System and method.
Background technology
The compatibility of application program (App) is embodied in installation, use and three parts of unloading of application program.Existing skill In art, generally manually or single command set up applications one by one method, operation is also required to by being artificially controlled Just can confirm that whether application program can run, if extensive application program will be tested for measurement equipment to be checked, such as mobile phone When compatible, need to consume a large amount of manpowers and time, relatively costly.
Content of the invention
The present invention solves the technical problem of providing a kind of system and method for the compatibility of detection application program, energy Enough substitute manpower to be detected, reduce manpower, efficiency is improved, and accuracy is high.
For solving above-mentioned technical problem, one aspect of the present invention is:A kind of detection application program is provided The method of compatibility, the method includes:Operation application program to be detected;Judge whether operation result is successful, and in judgement As a result for obtaining the title of the current application program of operation when being;Automatic test is carried out according to the title;Described in judging certainly Dynamicization is tested whether successfully, and is to confirm when being that the application program to be detected is simultaneous with equipment to be detected in the result for judging Hold.
Wherein, include before the step of running application program to be detected:
Preserve the application program to be detected.
Wherein, the step of running application program to be detected includes:
Operation Adb install-r XXX.app, wherein, the XXX represents the application program to be detected.
Wherein, included before the step of the title of acquisition current application program:
The compressed package of the application program is obtained, wherein, title of the compressed package comprising the current application.
Wherein, method also includes:
The application program to be detected is unloaded, and feeds back unloading information.
For solving above-mentioned technical problem, another technical solution used in the present invention is:A kind of detection application program is provided Compatibility system, the system includes:
Prefabricated block, for running application program to be detected;
Operation module is driven, for judging whether operation result is successful, and is when being, to obtain operation in the result for judging The title of current application program, carries out automatic test according to the title further, and whether judges the automatic test Success, and be when being, to confirm the application program to be detected and hardware compatibility to be detected in the result for judging.
Wherein, system also includes memory module, for preserving the application program to be detected.
Wherein, Prefabricated block specifically runs Adb install-r XXX.app, and wherein, the XXX represents described to be checked The application program of survey.
Wherein, operation module is driven to obtain the compression of the application program before the title of current application program is obtained Bag, wherein, title of the compressed package comprising the current application.
Wherein, system also includes Unload module, for unloading the application program to be detected, and feeds back unloading information.
The invention has the beneficial effects as follows:The situation of prior art is different from, the present invention provides a kind of detection application program The system and method for compatibility, the method is comprised the following steps:Run application program to be detected first, then judge operation knot Whether fruit is successful, and in the title that the result for judging is the current application program for obtaining operation when being, and then carried out according to title Automatic test, finally judges whether automatic test is successful, and is to confirm application journey to be detected when being in the result for judging Sequence and hardware compatibility to be detected.Therefore, the present invention can substitute manpower and be detected, reduce manpower, improve efficiency, and accurately Degree is high.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for the compatibility of detection application program provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of the system of the compatibility of detection application program provided in an embodiment of the present invention.
Specific embodiment
Refer to the method that Fig. 1, Fig. 1 are a kind of compatibility of detection application program provided in an embodiment of the present invention, such as Fig. 1 Shown, the method for the present embodiment is comprised the following steps:
Step S1:Operation application program to be detected.
Wherein, application program to be detected was preserved before this step first.All to be detected applications are specifically preserved Program, when compatibility detection is carried out, is detected one by one to the application program to be detected for preserving.
In this step, specifically Adb install-r XXX.app is run, wherein, XXX represents application journey to be detected Sequence.For example, if the application program of detection is qq, Adb install-r QQ.app is run.
Step S2:Judge whether operation result is successful.
In this step, jump to step S3 when the result for judging is as being, the result for judging as no when jump to step S4.
Step S3:Obtain the title of the current application program of operation.
Wherein, obtain the compressed package (jar bag) of application program before this step first, the jar bag of application program is led Enter in electronic equipment to be detected, for example, electronic equipment to be detected is mobile phone, then the jar bag of application program is imported mobile phone In.Wherein, title of the compressed package comprising current application.
This step obtains the title of application program particular by this method of get Current Package Name ().
Step S4:Record is asserted, as a result collects output.
Step S5:Automatic test is carried out according to title.
This step specifically carry out Monkey (automatic test) operation, more specifically, be by Adb Monkey-p Com.xxx.xxx runs.
Step S6:Judge whether institute's automatic test is successful.
In this step, jump to step S7 when the result for judging is as being, the result for judging as no when jump to step S4.
It should be noted that step S4 assert record, as a result collect output be with report in the form of exported, and For the different report of different situation output.For example, if determine operation result failure in step s 2, step S4 is defeated Gone out is the result of operation application program failure to be detected.If in step s 6 during automatic test failure, step S4 is defeated Gone out is the result of automatic test failure.It is incompatible that both the above situation is all defined as application program.
Step S7:Confirm application program to be detected and hardware compatibility to be detected.
Confirmation in this step can also be exported in the form of reporting by step S4.To be detected determining After application program and hardware compatibility to be detected, the application program is installed further.
Further, the method for the present embodiment also includes to unload application program to be detected, and feeds back unloading information.
After detection terminates, application program to be detected is unloaded, the space of storage can be saved, can ensure that survey further The speed of examination.
It should be noted that after completing to unload application program to be detected, feeding back unloading situation further.
Therefore, the present embodiment is using function simplicity, and operability is good, simple to operate, by most succinct effectively method reality Show the detection process of complexity, and instrument packaging effects are good, without the need for user in the complicated procedure operation of input, just can export test As a result.Secondly the present invention is to realize function by JAVA voice, it should be appreciated that the present invention can also use other programming languages It is packaged making and uses.
The embodiment of the present invention additionally provides a kind of system of the compatibility of detection application program, and the system is applied to institute above In the method that states, can specifically apply in the mobile terminal of Android system, mobile end of the test application program to Android system Whether end is compatible.Fig. 2 is specifically referred to.
As shown in Fig. 2 the system 20 of the present embodiment includes Prefabricated block 21 and drives operation module 22.
Wherein, Prefabricated block 21 is used for running application program to be detected.Wherein, Prefabricated block 21 specifically runs Adb Install-r XXX.app, wherein, XXX represents the application program to be detected.For example, if the application program of detection is qq, Adb install-r QQ.app is then run.
Further, system 20 also includes memory module 23, for preserving all application programs to be detected.Carry out and During capacitive detection, the application program to be detected of 21 pairs of preservations of Prefabricated block is detected one by one.
Operation module 22 is driven to be used for carrying out automatic operating to Prefabricated block 21.Specifically, operation module 22 is driven to sentence Whether the result that disconnected Prefabricated block 21 runs is successful, and in the name that the result for judging is the current application program for obtaining operation when being Claiming, drives Prefabricated block 21 automatic test to be carried out according to title further, and judge whether automatic test is successful, and sentencing Disconnected result is to confirm application program to be detected with hardware compatibility to be detected when being.Further, operation module 22 is driven Also drive Prefabricated block 21 that the application program is installed.
Wherein, operation module 22 is driven to obtain the compressed package of application program before the title of current application program is obtained (jar bag), the jar bag of application program is imported in electronic equipment to be detected, and for example, electronic equipment to be detected is mobile phone, Then the jar bag of application program is imported in mobile phone.Wherein, title of the compressed package comprising current application.Operation module 22 is driven to have Body is the title for obtaining application program by this method of get Current Package Name ().
Prefabricated block 21 specifically carries out Monkey operation, more specifically, be by Adb Monkey-p Com.xxx.xxx runs.
Further, system 20 also includes Unload module 24, for unloading application program to be detected, and feeds back and unloads information carrying Breath.After detection terminates, application program to be detected is unloaded, the space of storage can be saved, can ensure that test further Speed.
It should be noted that after completing to unload application program to be detected, feeding back unloading situation further.
Further, system 20 also includes to assert module 25, asserts module 25 for carrying out asserting record, by detection knot Fruit is exported with report form.Specifically, fail in the result for driving operation module 22 to judge that Prefabricated block 21 runs and judge During automatic test operation failure, it is incompatible to be defined as application program, generates corresponding report output respectively.Driving operation mould When block 22 judges that 21 automatic test of Prefabricated block runs successfully, corresponding report output is generated.
In the present embodiment, Prefabricated block 21, driving run module 22, Unload module 24 and assert that module 25 can be integrated Tester is adapted to for an application program.
Therefore, the present embodiment is using function simplicity, and operability is good, simple to operate, by most succinct effectively method reality Show the detection process of complexity, and instrument packaging effects are good, without the need for user in the complicated procedure operation of input, just can export test As a result.Secondly the present invention is to realize function by JAVA voice, it should be appreciated that the present invention can also use other programming languages It is packaged making and uses.
Embodiments of the invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of detection application program compatibility method, it is characterised in that methods described includes:
Operation application program to be detected;
Judge whether operation result is successful, and in the title that the result for judging is the current application program for obtaining operation when being;
Automatic test is carried out according to the title;
Judge the automatic test whether success, and the result for judging be confirm when being the application program to be detected with Hardware compatibility to be detected.
2. method according to claim 1, it is characterised in that included before the step of operation application program to be detected:
Preserve the application program to be detected.
3. method according to claim 1, it is characterised in that include the step of operation application program to be detected:
Operation Adb install-r XXX.app, wherein, the XXX represents the application program to be detected.
4. method according to claim 1, it is characterised in that before the step of the title of the acquisition current application program Including:
The compressed package of the application program is obtained, wherein, title of the compressed package comprising the current application.
5. method according to claim 1, it is characterised in that methods described also includes:
The application program to be detected is unloaded, and feeds back unloading information.
6. a kind of detection application program compatibility system, it is characterised in that the system includes:
Prefabricated block, for running application program to be detected;
Operation module is driven, whether the result for judging Prefabricated block operation is successful, and when the result for judging is as being The title of the current application program of operation is obtained, and drives the Prefabricated block automatization's survey to be carried out according to the title further Examination, and judge whether the automatic test is successful, and be when being, to confirm the application program to be detected in the result for judging With hardware compatibility to be detected.
7. system according to claim 6, it is characterised in that the system also includes memory module, described for preserving Application program to be detected.
8. system according to claim 6, it is characterised in that the Prefabricated block specifically runs Adb install-r XXX.app, wherein, the XXX represents the application program to be detected.
9. system according to claim 6, it is characterised in that the driving operation module is obtaining current application program The compressed package of the application program is obtained before title, wherein, title of the compressed package comprising the current application.
10. system according to claim 6, it is characterised in that the system also includes Unload module, described for unloading Application program to be detected, and feed back unloading information.
CN201610908059.XA 2016-10-18 2016-10-18 A kind of system and method for the compatibility of detection application program Active CN106445827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610908059.XA CN106445827B (en) 2016-10-18 2016-10-18 A kind of system and method for the compatibility of detection application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610908059.XA CN106445827B (en) 2016-10-18 2016-10-18 A kind of system and method for the compatibility of detection application program

Publications (2)

Publication Number Publication Date
CN106445827A true CN106445827A (en) 2017-02-22
CN106445827B CN106445827B (en) 2019-10-15

Family

ID=58176227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610908059.XA Active CN106445827B (en) 2016-10-18 2016-10-18 A kind of system and method for the compatibility of detection application program

Country Status (1)

Country Link
CN (1) CN106445827B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423208A (en) * 2017-03-03 2017-12-01 上海斐讯数据通信技术有限公司 A kind of Android compatibility test methods, apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996041283A1 (en) * 1995-06-07 1996-12-19 Trusted Information Systems, Inc. System and method for superimposing attributes on hierarchically organized file systems
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application
CN103516559A (en) * 2012-12-13 2014-01-15 Tcl集团股份有限公司 Method and system for testing application compatibility of intelligent terminal
CN105426298A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 ADB (Android debug bridge)-based software test method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996041283A1 (en) * 1995-06-07 1996-12-19 Trusted Information Systems, Inc. System and method for superimposing attributes on hierarchically organized file systems
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application
CN103516559A (en) * 2012-12-13 2014-01-15 Tcl集团股份有限公司 Method and system for testing application compatibility of intelligent terminal
CN105426298A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 ADB (Android debug bridge)-based software test method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423208A (en) * 2017-03-03 2017-12-01 上海斐讯数据通信技术有限公司 A kind of Android compatibility test methods, apparatus and system

Also Published As

Publication number Publication date
CN106445827B (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN104050075B (en) The method of testing and device of Andriod application programs
EP3842948A3 (en) Method and apparatus for testing edge computing, device, and readable storage medium
CN104317709A (en) Method and system for testing performance of software
CN104731701B (en) Test system and the method and apparatus for performing test assignment
CN106888060B (en) Anti-interference test method and system for wireless communication module
CN111624427A (en) Detection method and system of relay protection device
TW200801552A (en) Ultra low pin count interface for die testing
CN108983077B (en) Circuit board test system and test method based on JTAG link
CN106872575A (en) A kind of classification risk evaluating method of plastic device lamination defect
CN107835482A (en) Detection method, device and the electronic equipment of sound leakage rate
CN108664372A (en) Monitoring device, method and the computer readable storage medium of test process
CN105279093B (en) Method for testing software, device and equipment
CN107122293A (en) software performance testing method, device, server and system
US20110057643A1 (en) Oscillograph and signal integrity test method using the oscillograph
CN106526367A (en) Electronic equipment testing method and device
CN106445827A (en) System and method for detecting compatibility of application program
CN102262582A (en) Mobile terminal and method for detecting memory leakage thereof
CN103969572B (en) SIP (system in package) chip testing platform and method
CN106028367A (en) Automatic testing method and system based on CMWrun testing platform
CN104008043B (en) Cross-terminal method of testing, end to be tested and test lead
CN107491395A (en) A kind of self-defined test case framework application method
CN106226721A (en) A kind of fault oscillograph starting performance method of testing and system
CN104601260B (en) A kind of method and system of test receiver sensitivity
CN116609718A (en) Ammeter aging character-moving test method and device, electronic equipment and storage medium
CN108051767B (en) A kind of automatic diagnosis method for integrated circuit tester

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201126

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201221

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210202

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230302

Address after: Room 1105, Building J, Building 5, Yunmi City, No. 19, Ningshuang Road, Yuhuatai District, Nanjing City, Jiangsu Province, 210000

Patentee after: JIANGSU DANSEN INFORMATION CONSULTANT Co.,Ltd.

Address before: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee before: Huzhou YingLie Intellectual Property Operation Co.,Ltd.