CN104461888A - Application testing method and system - Google Patents

Application testing method and system Download PDF

Info

Publication number
CN104461888A
CN104461888A CN201410766137.8A CN201410766137A CN104461888A CN 104461888 A CN104461888 A CN 104461888A CN 201410766137 A CN201410766137 A CN 201410766137A CN 104461888 A CN104461888 A CN 104461888A
Authority
CN
China
Prior art keywords
test
application
reference termination
result
terminal
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
Application number
CN201410766137.8A
Other languages
Chinese (zh)
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.)
Institute of Acoustics CAS
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN201410766137.8A priority Critical patent/CN104461888A/en
Publication of CN104461888A publication Critical patent/CN104461888A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an application testing method and system. The application testing method includes analyzing application programs to be tested to obtain a plurality of application widgets of the application programs to be tested; generating test cases according to the application widgets; testing a criterion terminal and a test terminal according to the test cases; comparing outputted test results of the criterion terminal and outputted test results of the test terminal to obtain comparison error; determining that the application programs to be tested pass the test when the comparison error is smaller than the threshold value. Accordingly, by the application testing method, the widgets are adopted to perform adaptability test of the applications, each widget can be covered, test coverage rate is increased, a great quantity of labor and materials can be saved, and test efficiency is improved.

Description

A kind of application testing method and system
Technical field
The present invention relates to application suitability field tests, particularly relate to a kind of application testing method and system.
Background technology
Along with electronic information technology and Internet technology flourish, terminal device constantly increases, based on the basis of terminal device, the software of magnanimity arises at the historic moment, different application software realizes different functions, enrich the life of user by various software, bring huge change to the life of people.But different terminal devices also all varies in the software and hardwares such as internal memory, operating system, screen size, and these terminal devices are also all in renewal of constantly upgrading separately.Such as i Phone, all can release oneself new product every year, new product has new lifting and improvement in software and hardware; The intelligent terminal of Android system, due to the increasing income property of Android, makes Android system to have upgraded within the short time countless version.But with a software in the face of different terminal devices, its suitability is also different, therefore, the suitability test of software to different terminals is essential.Common traditional suitability method of testing has two kinds: (1) is manually tested; (2) just suitability test is carried out to application, do not provide suitability test result.
And above-mentioned suitability method of testing exists following shortcoming: manual testing can waste a large amount of man power and materials, and accurately can not obtain test result; Only carry out applying the test that suitability test can not get suitability test result still to need to waste a large amount of manpowers.
Summary of the invention
The method of testing of a kind of application provided by the invention and system, in order to improve the efficiency of application suitability test.
First aspect, the invention provides a kind of application testing method, and described application testing method comprises:
Application program to be measured is resolved, obtains multiple application controls of described application program to be measured;
According to described multiple application controls generating test use case;
Respectively reference termination and test terminal are tested according to described test case;
The test result that the test result export described reference termination and test terminal export is compared, and obtains comparison error;
When described comparison error is less than first threshold, determine that described application program to be measured is by described test.
Preferably, to be describedly specially according to described multiple application controls generating test use case:
According to the relation between the type of described multiple application controls, quantity and described multiple application controls, generate described test case by described reference termination.
Preferably, described test terminal is one or more.
Preferably, describedly respectively test is carried out respectively to reference termination and test terminal according to described test case and is specially:
Successively according to each application controls in described test case, described reference termination and test terminal are tested respectively;
After the test of each application controls terminates, described reference termination and test terminal output test result item respectively.
Preferably, the test result that the described test result that exports described reference termination and test terminal export is compared, and obtains comparison error and is specially:
Described reference termination and described test terminal are exported successively each described in the result items of application controls compare;
The comparison result of whole test result items that described reference termination and test terminal export is added up, obtains described compare error.
Second aspect, the invention provides a kind of application test systems, and described application test systems comprises: testing control module, test case module, testing execution module, result treatment module;
Described testing control module, for resolving application program to be measured, obtains multiple application controls of described application program to be measured;
Described test case module, for according to described multiple application controls generating test use case;
Described testing execution module, for testing reference termination and test terminal respectively according to described test case;
Described result treatment module, the test result exported for the test result that exports described reference termination and test terminal compares, and obtains matching error;
Described test processes module also for, when described matching error is less than first threshold, determine that described application program to be measured is by described test.
Preferably, described test case module specifically for, according to the relation between the type of described multiple application controls, quantity and described multiple control, generate described test case by described reference termination.
Preferably, described testing execution module specifically for,
Successively according to each application controls in described test case, described reference termination and test terminal are tested respectively;
After the test of each application controls terminates, described reference termination and test terminal output test result item respectively.
Preferably, described result treatment module specifically for,
Described reference termination and described test terminal are exported successively each described in the result items of application controls compare;
The comparison result of whole test result items that described reference termination and test terminal export is added up, obtains described matching error.
Therefore, the method of testing of a kind of application provided by the invention and system, be example by selection reference terminal in required multiple terminals, reference termination carries out suitability test, generating test use case, according to test case, carries out suitability test on application controls is on multiple test terminal, and the test result of the test result of multiple test terminal and benchmark test terminal is compared, obtain suitability test result.A large amount of man power and materials can be saved, improve testing efficiency.In addition, adopt control to carry out the test of application suitability, can ensure that each control can be capped, improve test coverage.
Accompanying drawing explanation
The schematic diagram of a kind of application test systems that Fig. 1 provides for the embodiment of the present invention one;
The process flow diagram of a kind of application testing method that Fig. 2 provides for the embodiment of the present invention two;
The network topology schematic diagram of a kind of application test systems that Fig. 3 provides for the embodiment of the present invention three.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For ease of the understanding to the present patent application, make further explanation with specific embodiment below in conjunction with accompanying drawing.
The schematic diagram of a kind of application test systems that Fig. 1 provides for the embodiment of the present invention two.
As shown in Figure 1, a kind of test macro of application that the embodiment of the present invention provides comprises testing control module 101, test case module 102, testing execution module 103 and result treatment module 104.
Testing control module 101, for resolving application program to be measured, obtains multiple application controls of application program to be measured.
Test case module 102, for according to described multiple application controls generating test use case.
Preferably, test case module 102 specifically for, according to the relation between the type of multiple application controls, quantity and multiple control, generate described test case by reference termination.
Testing execution module 103, for testing reference termination and test terminal respectively according to described test case.
Wherein, testing execution module specifically for, successively according to each application controls in test case, reference termination and test terminal are tested respectively.
After the test of each application controls terminates, reference termination and test terminal output test result item respectively.
Described result treatment module 104, the test result exported for the test result that exports reference termination and test terminal compares, and obtains matching error.
Particularly, result treatment module specifically for, the result items of each application controls that reference termination and described test terminal export successively is compared.
The comparison result of whole test result items that reference termination and test terminal export is added up, obtains matching error.
Described test processes module 104 also for, when described matching error is less than first threshold, determine application program to be measured by test.
Therefore, a kind of application test systems that the embodiment of the present invention provides, by the parsing of testing control module to application program to be measured, to make test case CMOS macro cell test case, testing execution module is tested reference termination and test terminal according to test case, obtain test result, a large amount of man power and materials can be saved, improve testing efficiency.
The process flow diagram of a kind of application testing method that Fig. 2 provides for the embodiment of the present invention two.
As shown in Figure 2, a kind of application testing method comprises the steps:
Step 201, resolves application program to be measured, obtains multiple application controls of described application program to be measured.
Particularly, decompiling is carried out to the application program to be measured received, obtain the source code of application program to be measured, and the multiple application controls obtained according to source code in application program to be measured, wherein application controls can be specially the applications keys in application program, in application program use procedure, user friendlyly search application.
Step 202, according to described multiple application controls generating test use case.
Particularly, according to the relation between the type of multiple application controls, quantity and described multiple application controls, described test case can be generated by reference termination.
Before step 202, the suitability that can be applied on different terminals to test program to be applied is tested, multiple terminals of the suitability first selecting application program to be measured to need, wherein, terminal can comprise the mobile phone of multiple different type of machines, and reference termination can be specially the mobile phone of the arbitrary type selected from the mobile phone of multiple different type of machines.
Be test case according to reference termination, obtain test case according to multiple application controls, save expending in time of Test cases technology and resource.
Step 203, tests reference termination and test terminal respectively according to described test case.
Particularly, test terminal can be one or more terminal.
By the test case generated by reference termination, respectively in order to reference termination and test terminal to carry out the test of application program, to meet the suitability test of application program.
Step 204, the test result that the test result export described reference termination and test terminal export is compared, and obtains comparison error.
Particularly, according to test case, successively to each application controls in reference termination and test terminal application program to testing, terminate when an application controls of reference termination and test terminal is tested, when an another application controls starts to test, reference termination exports the test result item of this application controls, and test terminal exports this application controls test result item, and compares to two the test result items exported.The result items of each application controls that described reference termination and test terminal export successively is compared; And the comparison result of whole test result items that reference termination and test terminal export is added up, obtain compare error.
Step 205, when described comparison error is less than first threshold, determines that described application program to be measured is by described test.
Particularly, preset first threshold value, when comparison error is less than default first threshold, can determine application program to be measured adaptation and reference termination and test terminal.
Preferably, first threshold can be set as 10%.
The application testing method that the embodiment of the present invention provides, also comprises: when comparison error is greater than first threshold value, determines application program to be measured not by test, namely can determine that application program to be measured is not suitable for test terminal.
In a specific embodiment, when an application program comprises 20 application controls, in comparing result, the test result of an application controls of arbitrary test terminal is different from the test result of reference termination, then, this comparison error is 5%, and this application program to be measured is applicable to reference termination and test terminal.
Therefore, a kind of application testing method that the embodiment of the present invention provides, by application program to be measured, in required multiple terminals, selection reference terminal is example, reference termination carries out suitability test, generating test use case, according to test case, on multiple test terminal, carry out suitability test by application controls, and the test result of the test result of multiple test terminal and benchmark test terminal is compared, obtain suitability test result.Adopt control to carry out the test of application suitability, can ensure that each control can be capped, improve test coverage, and a large amount of man power and materials can be saved, improve testing efficiency.
The network topology schematic diagram of a kind of application testing that Fig. 3 provides for the embodiment of the present invention three.
As shown in Figure 3, a kind of network of application testing comprises application test systems 301, network 302 and the terminal 303 that embodiment 1 provides.
Wherein, application test systems 301 comprises testing control module 101, test case module 102, testing execution module 103 and result treatment module 104.Terminal comprises multiple measured terminal, is four measured terminals in the present embodiment.
Application test systems 301, for realizing the system of application program suitability test terminal to be measured.
Network 302, for connecting application test systems 301 and terminal 303.
Terminal 303, for the test case sent by network 302 according to application test systems, the suitability of test terminal.
Professional should recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. an application testing method, is characterized in that, described application testing method comprises:
Application program to be measured is resolved, obtains multiple application controls of described application program to be measured;
According to described multiple application controls generating test use case;
Respectively reference termination and test terminal are tested according to described test case;
The test result that the test result export described reference termination and test terminal export is compared, and obtains comparison error;
When described comparison error is less than first threshold, determine that described application program to be measured is by described test.
2. application testing method according to claim 1, is characterized in that, is describedly specially according to described multiple application controls generating test use case:
According to the relation between the type of described multiple application controls, quantity and described multiple application controls, generate described test case by described reference termination.
3. application testing method according to claim 1, is characterized in that, described test terminal is one or more.
4. application testing method according to claim 1, is characterized in that, describedly carries out test respectively to reference termination and test terminal respectively according to described test case and is specially:
Successively according to each application controls in described test case, described reference termination and test terminal are tested respectively;
After the test of each application controls terminates, described reference termination and test terminal output test result item respectively.
5. application testing method according to claim 4, is characterized in that, the test result that the described test result that exports described reference termination and test terminal export is compared, and obtains comparison error and is specially:
Described reference termination and described test terminal are exported successively each described in the result items of application controls compare;
The comparison result of whole test result items that described reference termination and test terminal export is added up, obtains described compare error.
6. an application test systems, is characterized in that, described application test systems comprises: testing control module, test case module, testing execution module, result treatment module;
Described testing control module, for resolving application program to be measured, obtains multiple application controls of described application program to be measured;
Described test case module, for according to described multiple application controls generating test use case;
Described testing execution module, for testing reference termination and test terminal respectively according to described test case;
Described result treatment module, the test result exported for the test result that exports described reference termination and test terminal compares, and obtains matching error;
Described test processes module also for, when described matching error is less than first threshold, determine that described application program to be measured is by described test.
7. application test systems according to claim 6, it is characterized in that, described test case module specifically for, according to the relation between the type of described multiple application controls, quantity and described multiple control, generate described test case by described reference termination.
8. application test systems according to claim 6, is characterized in that, described testing execution module specifically for,
Successively according to each application controls in described test case, described reference termination and test terminal are tested respectively;
After the test of each application controls terminates, described reference termination and test terminal output test result item respectively.
9. application test systems according to claim 8, is characterized in that, described result treatment module specifically for,
Described reference termination and described test terminal are exported successively each described in the result items of application controls compare;
The comparison result of whole test result items that described reference termination and test terminal export is added up, obtains described matching error.
CN201410766137.8A 2014-12-11 2014-12-11 Application testing method and system Pending CN104461888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410766137.8A CN104461888A (en) 2014-12-11 2014-12-11 Application testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410766137.8A CN104461888A (en) 2014-12-11 2014-12-11 Application testing method and system

Publications (1)

Publication Number Publication Date
CN104461888A true CN104461888A (en) 2015-03-25

Family

ID=52907977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410766137.8A Pending CN104461888A (en) 2014-12-11 2014-12-11 Application testing method and system

Country Status (1)

Country Link
CN (1) CN104461888A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201856A (en) * 2015-05-04 2016-12-07 阿里巴巴集团控股有限公司 A kind of multi version performance test methods and device
CN106294106A (en) * 2015-05-27 2017-01-04 航天信息股份有限公司 The method of testing of Web application system and device
CN106484614A (en) * 2016-09-29 2017-03-08 厦门美图之家科技有限公司 A kind of method of verification picture processing effect, device and mobile terminal
CN106897216A (en) * 2017-02-13 2017-06-27 北京趣拿软件科技有限公司 The method and apparatus of test software
CN108063691A (en) * 2016-11-08 2018-05-22 阿里巴巴集团控股有限公司 One kind buries point data consistency detecting method, apparatus and system
CN109815145A (en) * 2019-01-18 2019-05-28 中国农业银行股份有限公司 A kind of batch program test method and device
CN112583660A (en) * 2020-12-02 2021-03-30 广州品唯软件有限公司 Main domain and standby domain test comparison method, device and system of recommendation platform
CN114915578A (en) * 2021-02-08 2022-08-16 中国电信股份有限公司 WAF test method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685323A (en) * 2012-04-21 2012-09-19 北京迈凯互动网络科技有限公司 Mobile device testing method and system
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application
US20140189648A1 (en) * 2012-12-27 2014-07-03 Nvidia Corporation Facilitated quality testing
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685323A (en) * 2012-04-21 2012-09-19 北京迈凯互动网络科技有限公司 Mobile device testing method and system
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application
US20140189648A1 (en) * 2012-12-27 2014-07-03 Nvidia Corporation Facilitated quality testing
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201856A (en) * 2015-05-04 2016-12-07 阿里巴巴集团控股有限公司 A kind of multi version performance test methods and device
CN106294106A (en) * 2015-05-27 2017-01-04 航天信息股份有限公司 The method of testing of Web application system and device
CN106294106B (en) * 2015-05-27 2019-03-22 航天信息股份有限公司 The test method and device of Web application system
CN106484614A (en) * 2016-09-29 2017-03-08 厦门美图之家科技有限公司 A kind of method of verification picture processing effect, device and mobile terminal
CN106484614B (en) * 2016-09-29 2019-01-22 厦门美图之家科技有限公司 A kind of method, device and mobile terminal for checking picture treatment effect
CN108063691A (en) * 2016-11-08 2018-05-22 阿里巴巴集团控股有限公司 One kind buries point data consistency detecting method, apparatus and system
CN106897216A (en) * 2017-02-13 2017-06-27 北京趣拿软件科技有限公司 The method and apparatus of test software
CN109815145A (en) * 2019-01-18 2019-05-28 中国农业银行股份有限公司 A kind of batch program test method and device
CN112583660A (en) * 2020-12-02 2021-03-30 广州品唯软件有限公司 Main domain and standby domain test comparison method, device and system of recommendation platform
CN114915578A (en) * 2021-02-08 2022-08-16 中国电信股份有限公司 WAF test method and device
CN114915578B (en) * 2021-02-08 2024-04-30 中国电信股份有限公司 WAF test method and device

Similar Documents

Publication Publication Date Title
CN104461888A (en) Application testing method and system
CN104268055A (en) Program exception monitoring method and device
CN107957888B (en) Application program gray scale upgrading method and device
AU2017404119A9 (en) Random forest model training method, electronic apparatus and storage medium
CN107632827B (en) Method and device for generating installation package of application
CN104636144A (en) Background program management method and device of mobile terminal
CN105677573A (en) Halt detection method and device and computing device
CN104217161A (en) Virus scanning method and system and terminal device
CN108182146B (en) Method and system for detecting memory leakage
CN111459818B (en) Visual test method and device
CN104317749A (en) Information writing method and device
CN106557419B (en) Program testing method and device
CN105653438A (en) Method and device for cross-process automated testing of Android device
CN104751053A (en) Static behavior analysis method of mobile smart terminal software
CN104636240A (en) Method for acquiring information report and terminal
CN109800560A (en) A kind of device identification method and device
CN110795162B (en) Method and device for generating container mirror image file
CN104899009A (en) Identification method and device of Android application
CN105229605A (en) The concentrated distribution that application program is analyzed
CN109543409B (en) Method, device and equipment for detecting malicious application and training detection model
CN104915596A (en) apk virus characteristic library establishing method and device and apk virus detection system
CN113533923A (en) GaN HEMT device testing method and device
CN112306529A (en) System upgrading method, device, equipment and storage medium
CN107154971A (en) One kind application method for down loading and device
CN108133123B (en) Application program identification method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
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: 20150325