CN105320601A - Testing method and device for application program - Google Patents

Testing method and device for application program Download PDF

Info

Publication number
CN105320601A
CN105320601A CN201510870075.XA CN201510870075A CN105320601A CN 105320601 A CN105320601 A CN 105320601A CN 201510870075 A CN201510870075 A CN 201510870075A CN 105320601 A CN105320601 A CN 105320601A
Authority
CN
China
Prior art keywords
application program
time
mobile terminal
reference object
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
Application number
CN201510870075.XA
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510870075.XA priority Critical patent/CN105320601A/en
Publication of CN105320601A publication Critical patent/CN105320601A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a testing method for an application program. The testing method comprises the steps that the application program to be tested is installed on a system of a mobile terminal; reference objects are started N times, wherein the reference objects include the system of the mobile terminal and/or other application programs installed on the system of the mobile terminal; time for N times of starting of the reference objects is recorded; time for M times of starting of the reference objects before the application program to be tested is installed on the system of the mobile terminal is acquired; the time for N times of starting and the time for M times of starting are output. The testing method provides a scientific basis for evaluating the influences of the application program to be tested on a system environment of the mobile terminal and other APPs in the system environment and facilitates improvements in the application program to be tested by research personnel so as to reduce as far as possible the influences of the application program to be tested on the system and other APPs. The invention further provides a testing device for the application program.

Description

A kind of method of testing for application program and device
Technical field
The present invention relates to technical field of software engineering, particularly relate to a kind of method of testing for application program and device.
Background technology
Along with the development of science and technology, the intelligent terminal such as smart mobile phone, panel computer is extensively popularized, and has become an important ingredient in people's life.People can pass through various types of intelligent terminal, enjoy the comfortable life along with development in science and technology brings.Such as: people can use smart mobile phone to listen to the music, see a film, play games, surf the web etc., to live the pressure brought to alleviate modern fast pace.
Intelligent terminal, there is independently operating system, support user installs various types of APP (Application that the third party service provider provides voluntarily, application program), such as: game class APP, video class APP, music class APP, shopping class APP, security classes APP, the class APP that takes pictures, speculation in stocks class APP, social class APP, purchase by group class APP, the class APP that orders, pay class APP etc., thus meet the various demands in people's daily life.
In APP performance history, need to carry out a large amount of Experience of Software Testing Works.Software test is whether the mode using manual operation or software automatically to run meets the demand of regulation to check APP or understand fully the process of the difference between expected results and actual result.Software test is the process of correctness, completely degree and the quality helping the software (in whole or in part) identifying that exploitation completes (middle or final version), it is the important subdomain of SQA (SoftwareQualityAssurance, software quality assurance).
At present, people often run into after certain a APP installed by intelligent terminal (especially Android intelligent terminal), and the reaction velocity of intelligent terminal is slack-off, this greatly reduces the experience of user.From the actual operation of product, the overall experience before and after user installs for APP takes much count of, but measuring technology not relevant at present, cause this experience never to embody in engineering-environment on real authority reasonably data.So how a APP of Scientific evaluation is extremely important on the impact of other APP under the impact of the system environments of intelligent terminal and system environments.
In sum, how a APP of Scientific evaluation, on the impact of other APP under the impact of the system environments of intelligent terminal and system environments, has become current problem demanding prompt solution.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method for testing for application program solved the problem at least in part and device.
One aspect of the present invention, provides a kind of method of testing for application program, comprising:
The system of mobile terminal installs application program to be tested;
Based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
Record N start-up time of described reference object;
Obtain M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
One is sent to described N start-up time and described M start-up time to preset terminal.
Preferably, when described reference object is the system of described mobile terminal, described start-up time of recording described reference object, comprising:
Record N start-up time of the system of described mobile terminal.
Preferably, when described reference object is other application program described, described based on described testing time N, start reference object N time, comprising:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described N start-up time of recording described reference object, comprising:
N the cold start-up time of record other application program described.
Preferably, when described reference object is other application program described, described based on described testing time N, start reference object N time, comprising:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described N start-up time of recording described reference object, comprising:
N the warm start time of record other application program described.
Preferably, the described installation kit by application program to be tested, before the system of mobile terminal is installed described application program to be tested, also comprises:
Based on testing time M, start described reference object M time;
Record M start-up time of described reference object.
Preferably, when described reference object is the system of described mobile terminal, the described method of testing for application program, also comprises:
When the system of the described mobile terminal of each startup, whether the system detecting described mobile terminal there is exception;
If the system of described mobile terminal occurs abnormal, then record relevant abnormalities information;
Described relevant abnormalities information is sent to described default terminal.
Another aspect of the present invention, provides a kind of proving installation for application program, comprising:
Installation unit, for installing application program to be tested in the system of mobile terminal;
First start unit, for based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
First record cell, for recording N start-up time of described reference object;
Acquiring unit, for obtaining M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
First transmitting element, presets terminal for described N start-up time and described M start-up time being sent to one.
Preferably, when described reference object is the system of described mobile terminal, described record cell, specifically for:
Record N start-up time of the system of described mobile terminal.
Preferably, when described reference object is other application program described, described start unit, specifically for:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described record cell, specifically for:
N the cold start-up time of record other application program described.
Preferably, when described reference object is other application program described, described start unit, specifically for:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described record cell, specifically for:
N the warm start time of record other application program described.
Preferably, the described installation kit by application program to be tested, the described proving installation for application program, also comprises:
Second start unit, before install described application program to be tested in the system of mobile terminal, based on testing time M, starts described reference object M time;
Second record cell, for recording M start-up time of described reference object.
Preferably, when described reference object is the system of described mobile terminal, the described survey device for application program, also comprises:
Detecting unit, for when the system of the described mobile terminal of each startup, whether the system detecting described mobile terminal there is exception;
3rd record cell, if occur abnormal for the system of described mobile terminal, then records relevant abnormalities information;
Second transmitting element, for sending to described default terminal by described relevant abnormalities information.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
According to a kind of method of testing for application program of the present invention and device, the system of mobile terminal installs application program to be tested; Based on testing time N, start reference object (such as: system and/or other application programs) N time; N start-up time of record reference object; Obtain M start-up time of reference object before the system of mobile terminal installs application program to be tested; Export N start-up time and M start-up time.The present invention is that assessment application program to be tested provides the foundation of science to the impact of other APP under the impact of the system environments of mobile terminal and system environments, tester can install the start-up time of cross reference object according to application program to be tested, scientifically assess the impact of application program to be tested on other APP under the impact of the system environments of mobile terminal and system environments, be conducive to research staff like this to treat test application and improve, to reduce the impact of application program to be tested on system and other APP as far as possible.Simultaneously, test application can be treated based on the present invention to test respectively with its early stage version (or APP of competing business), the start-up time of system and/or other APP before and after being installed by each APP obtained, the impact of each APP on system and/or other APP can be assessed accordingly, thus treat test application and its early stage version (or APP of competing business) and compare, be conducive to like this developing on the minimum like product of the impact of system and other APP.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the Organization Chart of automation software testing system according to an embodiment of the invention;
Fig. 2 shows a kind of according to an embodiment of the invention process flow diagram of the method for testing for application program;
Fig. 3 shows a kind of according to an embodiment of the invention structural drawing of the proving installation for application program.
Embodiment
Embodiments provide a kind of method of testing for application program and device, the technical matters of a APP on the impact of other APP under the impact of the system environments of intelligent terminal and system environments cannot be assessed in order to solve prior art.
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
First, the term "and/or" occurred herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Secondly, before formally introducing the method for testing for application program in the present embodiment, being introduced first to the automation software testing system for realizing this method of testing.As shown in Figure 1, this automation software testing system is primarily of PC (PersonalComputer, PC) and mobile terminal composition.Wherein, described mobile terminal can be: smart mobile phone or the intelligent terminal such as panel computer or vehicle-mounted computer, be not specifically limited herein.And, an OS (OperatingSystem, operating system) is installed in described mobile terminal, such as: IOS, Andorid, Windows8 or Windows10 etc., is also not specifically limited herein.In PC side, one test script is installed, at mobile terminal side, one test APP (Application is installed, application program), the method for testing for application program that the present embodiment provides, namely completes primarily of the test script of PC side and the test APP of mobile terminal side.
Embodiment one
Present embodiments provide a kind of method of testing for application program, be applied to mobile terminal side, can be completed by the test APP being arranged on mobile terminal side, as shown in Figure 2, the method comprises:
Step S101: install application program to be tested in the system of mobile terminal.
In specific implementation process, before step S101, also comprise: based on testing time M, start reference object M time, and M start-up time of this reference object before being recorded in installation application program to be tested, M is positive integer.
In specific implementation process, this reference object can be: the system of mobile terminal, and/or be arranged on other application program in the system of mobile terminal, these other application programs can be the arbitrary application programs different from application program to be tested.The impact of application program to be tested on other APP under the impact of the system environments of mobile terminal and system environments can be known like this.
For example, can based on testing time M, start system M time of mobile terminal continuously, and M start-up time of system before being recorded in installation application program to be tested; Or based on testing time M, continuously M cold start-up is carried out to other application program, and be recorded in M the cold start-up time of installing other programs before application program to be tested; Or based on testing time M, continuously M warm start is carried out to other application program, and be recorded in M the warm start time of installing other programs before application program to be tested.
In specific implementation process, testing time M can be 1 time or 10 times or 50 times or 100 times etc., and specifically how many for testing time M, the present embodiment does not do concrete restriction.Wherein, testing time M can be prestored in mobile terminal side test APP.Tester also can as required, self-defined testing time M, and such as, PC side test script can obtain the testing time M of the input of tester, and testing time M is sent to mobile terminal side test APP.
In specific implementation process, when performing step S101, mobile terminal can be connected with PC by data line, and the test script of PC side can obtain the installation kit of the application program to be tested that tester provides, and application program to be tested is installed in mobile terminal based on this installation kit.Concrete installation process has following two kinds of modes:
The first, the installation data after decompress(ion) by the installation kit decompress(ion) of application program to be tested, and can be sent to mobile terminal by data line by PC side test script; After mobile terminal side test APP receives this installation data, based on this installation data, application program to be tested is arranged in the system of mobile terminal.
The second, the installation kit of application program to be tested can directly be sent to mobile terminal side test APP by data line by PC side test script; After mobile terminal side test APP receives this installation kit, run this installation kit, application program to be tested to be arranged in the system of mobile terminal.
In specific implementation process, but the like product APP of described application program redaction APP to be tested or its early stage version APP or competing business exploitation.Described application program to be tested can be: game class APP or video class APP or music class APP or shopping class APP or security classes APP take pictures class APP or speculation in stocks class APP or social class APP purchase by group class APP or order class APP or pay class APP, or browser class APP, etc.Herein, for described application program to be tested specifically which kind of APP, the present embodiment is not specifically limited.
In specific implementation process, owing to may comprise some functions in application program to be tested, these functions, when by use, can create some files or do some adjustment to the system environments of mobile terminal.So in order to fully simulate software to be tested scene in actual use, after installation application program to be tested, also should fully run application program to be tested.Specifically, can travel through perform on application program UI to be tested whole can operational controls (such as: order button control), thus make the most of function in application program to be tested all run one time, thus simulate software to be tested situation in actual use fully as far as possible.
Step S102: based on testing time N, starts reference object N time.
In specific implementation process, testing time N can be 1 time or 10 times or 50 times or 100 times etc., and specifically how many for testing time N, the present embodiment does not do concrete restriction.Wherein, testing time N can be prestored in mobile terminal side test APP.Tester also can as required, self-defined testing time N, and such as, PC side test script can obtain the testing time N of the input of tester, and testing time N is sent to mobile terminal side test APP.Wherein, N with M can be identical, also can be different.
Step S103: N start-up time of record reference object, N is positive integer.
In specific implementation process, can based on testing time N, start system N time of mobile terminal continuously, and N start-up time of system after being recorded in installation application program to be tested; Or based on testing time N, continuously N cold start-up is carried out to other application program, and be recorded in N the cold start-up time of installing other programs after application program to be tested; Or based on testing time N, continuously N warm start is carried out to other application program, and be recorded in N the warm start time of installing other programs after application program to be tested.
Step S104: M the start-up time obtaining reference object before the system of mobile terminal installs application program to be tested, M is positive integer.
For example, namely obtain just now obtained in M the start-up time of installing system before application program to be tested; Or M the cold start-up time of other programs before application program to be tested is being installed; Or M the warm start time of other programs before application program to be tested is being installed.
Step S105: send to one to preset terminal (such as: the PC in Fig. 1) N start-up time and M start-up time.
In specific implementation process, by mobile terminal side test APP, the start-up time of the references object before and after installation application program to be tested can be sent to PC side test script, and by PC side test script, these data are presented on the display screen of PC, analyze for tester.
In specific implementation process, compared to references object (that is: the system of mobile terminal before installation application program to be tested, or other application programs in system) start-up time, if the start-up time of references object shortens that (that is: the system start-up time of mobile terminal shortens after installing application program to be tested, or other application programs cold/warm start time shortens), the impact that application program to be tested has had references object is then described, Consumer's Experience also can improve thereupon, and become the start-up time of references object shorter, illustrate that application program to be tested is larger on the impact that references object is good, if after installing application program to be tested elongated (that is: the system start-up time of mobile terminal is elongated the start-up time of reference object, or other application programs cold/warm start time is elongated), then illustrate that application program to be tested has bad impact to references object, Consumer's Experience also can be deteriorated thereupon, and become the start-up time of references object longer, illustrate that application program to be tested is larger on the impact that references object is bad.
As a kind of optional embodiment, when described reference object is the system of described mobile terminal, the described method of testing for application program, also comprises: when the system of the described mobile terminal of each startup, and whether the system detecting mobile terminal occurs exception; If the system of mobile terminal occurs abnormal, then record relevant abnormalities information; Export relevant abnormalities information.
In specific implementation process, the system of described mobile terminal occurs extremely can for there is blank screen phenomenon, start the system of mobile terminal at mobile terminal side test APP after, if detect there is blank screen phenomenon in mobile terminal, then by representing that the relevant abnormalities information of blank screen sends to PC side test script, can be shown by the screen of test script by PC.Like this, be conducive to tester and occur this phenomenon of blank screen according to mobile terminal, treat the impact of test application on the system environments of mobile terminal and analyze.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
According to a kind of method of testing for application program of the present invention, the system of mobile terminal is installed application program to be tested; Based on testing time N, start reference object (such as: system and/or other application programs) N time; N start-up time of record reference object; Obtain M start-up time of reference object before the system of mobile terminal installs application program to be tested; Export N start-up time and M start-up time.The present invention is that assessment application program to be tested provides the foundation of science to the impact of other APP under the impact of the system environments of mobile terminal and system environments, tester can install the start-up time of cross reference object according to application program to be tested, scientifically assess the impact of application program to be tested on other APP under the impact of the system environments of mobile terminal and system environments, be conducive to research staff like this to treat test application and improve, to reduce the impact of application program to be tested on system and other APP as far as possible.Simultaneously, test application can be treated based on the present invention to test respectively with its early stage version (or APP of competing business), the start-up time of system and/or other APP before and after being installed by each APP obtained, the impact of each APP on system and/or other APP can be assessed accordingly, thus treat test application and its early stage version (or APP of competing business) and compare, be conducive to like this developing on the minimum like product of the impact of system and other APP.
Embodiment two
Based on same inventive concept, the present embodiment additionally provides a kind of proving installation for application program, comprising:
Installation unit 201, for installing application program to be tested in the system of mobile terminal;
First start unit 202, for based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
First record cell 203, for recording N start-up time of described reference object;
Acquiring unit 204, for obtaining M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
First transmitting element 205, presets terminal for described N start-up time and described M start-up time being sent to one.
As a kind of optional embodiment, when described reference object is the system of described mobile terminal, described first record cell 203, specifically for:
Record N start-up time of the system of described mobile terminal.
As a kind of optional embodiment, when described reference object is other application program described, described first start unit 202, specifically for:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described first record cell 203, specifically for:
N the cold start-up time of record other application program described.
As a kind of optional embodiment, when described reference object is other application program described, described first start unit 202, specifically for:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described first record cell 203, specifically for:
N the warm start time of record other application program described.
As a kind of optional embodiment, the described installation kit by application program to be tested, the described proving installation for application program, also comprises:
Second start unit, before install described application program to be tested in the system of mobile terminal, based on testing time M, starts described reference object M time;
Second record cell, for recording M start-up time of described reference object.
As a kind of optional embodiment, when described reference object is the system of described mobile terminal, the described survey device for application program, also comprises:
Detecting unit, for when the system of the described mobile terminal of each startup, whether the system detecting described mobile terminal there is exception;
3rd record cell, if occur abnormal for the system of described mobile terminal, then records relevant abnormalities information;
Second transmitting element, for sending to described default terminal by described relevant abnormalities information.
Due to the device adopted for the method for testing for application program in enforcement the embodiment of the present application for the proving installation of application program that the present embodiment is introduced, so based on the method for testing for application program introduced in the embodiment of the present application, those skilled in the art can understand embodiment and its various version of the proving installation for application program of the present embodiment, so introduce no longer in detail in this method of testing for application program how realized in the embodiment of the present application for this proving installation for application program.As long as those skilled in the art implement for the device that the method for testing of application program adopts in the embodiment of the present application, all belong to the application for protection scope.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
According to a kind of proving installation for application program of the present invention, comprising: installation unit, for installing application program to be tested in the system of mobile terminal; First start unit, for based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal; First record cell, for recording N start-up time of described reference object; Acquiring unit, for obtaining M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer; First transmitting element, presets terminal for described N start-up time and described M start-up time being sent to one.The present invention is that assessment application program to be tested provides the foundation of science to the impact of other APP under the impact of the system environments of mobile terminal and system environments, tester can install the start-up time of cross reference object according to application program to be tested, scientifically assess the impact of application program to be tested on other APP under the impact of the system environments of mobile terminal and system environments, be conducive to research staff like this to treat test application and improve, to reduce the impact of application program to be tested on system and other APP as far as possible.Simultaneously, test application can be treated based on the present invention to test respectively with its early stage version (or APP of competing business), the start-up time of system and/or other APP before and after being installed by each APP obtained, the impact of each APP on system and/or other APP can be assessed accordingly, thus treat test application and its early stage version (or APP of competing business) and compare, be conducive to like this developing on the minimum like product of the impact of system and other APP.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although to comprise in other embodiment some included feature instead of further feature in this some embodiments, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in gateway according to the embodiment of the present invention, proxy server, system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses, A1, a kind of method of testing for application program, is characterized in that, comprising:
The system of mobile terminal installs application program to be tested;
Based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
Record N start-up time of described reference object;
Obtain M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
One is sent to described N start-up time and described M start-up time to preset terminal.
A2, the method for testing for application program as described in A1, is characterized in that, when described reference object is the system of described mobile terminal, described start-up time of recording described reference object, comprising:
Record N start-up time of the system of described mobile terminal.
A3, the method for testing for application program as described in A1, is characterized in that, when described reference object is other application program described, described based on described testing time N, starts reference object N time, comprising:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described N start-up time of recording described reference object, comprising:
N the cold start-up time of record other application program described.
A4, the method for testing for application program as described in A1, is characterized in that, when described reference object is other application program described, described based on described testing time N, starts reference object N time, comprising:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described N start-up time of recording described reference object, comprising:
N the warm start time of record other application program described.
A5, the method for testing for application program as described in A1, is characterized in that the described installation kit by application program to be tested, install described application program to be tested in the system of mobile terminal before, also comprises:
Based on testing time M, start described reference object M time;
Record M start-up time of described reference object.
A6, the method for testing for application program as described in A1 ~ A5, it is characterized in that, when described reference object is the system of described mobile terminal, the described method of testing for application program, also comprises:
When the system of the described mobile terminal of each startup, whether the system detecting described mobile terminal there is exception;
If the system of described mobile terminal occurs abnormal, then record relevant abnormalities information;
Described relevant abnormalities information is sent to described default terminal.
B7, a kind of proving installation for application program, is characterized in that, comprising:
Installation unit, for installing application program to be tested in the system of mobile terminal;
First start unit, for based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
First record cell, for recording N start-up time of described reference object;
Acquiring unit, for obtaining M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
First transmitting element, presets terminal for described N start-up time and described M start-up time being sent to one.
B8, the proving installation for application program as described in B7, is characterized in that, when described reference object is the system of described mobile terminal, and described first record cell, specifically for:
Record N start-up time of the system of described mobile terminal.
B9, the proving installation for application program as described in B7, is characterized in that, when described reference object is other application program described, and described first start unit, specifically for:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described first record cell, specifically for:
N the cold start-up time of record other application program described.
B10, the proving installation for application program as described in B7, is characterized in that, when described reference object is other application program described, and described first start unit, specifically for:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described first record cell, specifically for:
N the warm start time of record other application program described.
B11, the proving installation for application program as described in B7, it is characterized in that, the described installation kit by application program to be tested, the described proving installation for application program, also comprises:
Second start unit, before install described application program to be tested in the system of mobile terminal, based on testing time M, starts described reference object M time;
Second record cell, for recording M start-up time of described reference object.
B12, the survey device for application program as described in B7 ~ B11, it is characterized in that, when described reference object is the system of described mobile terminal, the described survey device for application program, also comprises:
Detecting unit, for when the system of the described mobile terminal of each startup, whether the system detecting described mobile terminal there is exception;
3rd record cell, if occur abnormal for the system of described mobile terminal, then records relevant abnormalities information;
Second transmitting element, for sending to described default terminal by described relevant abnormalities information.

Claims (10)

1. for a method of testing for application program, it is characterized in that, comprising:
The system of mobile terminal installs application program to be tested;
Based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
Record N start-up time of described reference object;
Obtain M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
One is sent to described N start-up time and described M start-up time to preset terminal.
2., as claimed in claim 1 for the method for testing of application program, it is characterized in that, when described reference object is the system of described mobile terminal, described start-up time of recording described reference object, comprising:
Record N start-up time of the system of described mobile terminal.
3., as claimed in claim 1 for the method for testing of application program, it is characterized in that, when described reference object is other application program described, described based on described testing time N, start reference object N time, comprising:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described N start-up time of recording described reference object, comprising:
N the cold start-up time of record other application program described.
4., as claimed in claim 1 for the method for testing of application program, it is characterized in that, when described reference object is other application program described, described based on described testing time N, start reference object N time, comprising:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described N start-up time of recording described reference object, comprising:
N the warm start time of record other application program described.
5., as claimed in claim 1 for the method for testing of application program, it is characterized in that the described installation kit by application program to be tested, install described application program to be tested in the system of mobile terminal before, also comprises:
Based on testing time M, start described reference object M time;
Record M start-up time of described reference object.
6. the method for testing for application program as described in Claims 1 to 5, is characterized in that, when described reference object is the system of described mobile terminal, the described method of testing for application program, also comprises:
When the system of the described mobile terminal of each startup, whether the system detecting described mobile terminal there is exception;
If the system of described mobile terminal occurs abnormal, then record relevant abnormalities information;
Described relevant abnormalities information is sent to described default terminal.
7. for a proving installation for application program, it is characterized in that, comprising:
Installation unit, for installing application program to be tested in the system of mobile terminal;
First start unit, for based on testing time N, start reference object N time, wherein, N is positive integer, and described reference object comprises: the system of described mobile terminal and/or other application program different from described application program to be tested be arranged in the system of described mobile terminal;
First record cell, for recording N start-up time of described reference object;
Acquiring unit, for obtaining M start-up time of described reference object before the system of described mobile terminal installs described application program to be tested, M is positive integer;
First transmitting element, presets terminal for described N start-up time and described M start-up time being sent to one.
8., as claimed in claim 7 for the proving installation of application program, it is characterized in that, when described reference object is the system of described mobile terminal, described first record cell, specifically for:
Record N start-up time of the system of described mobile terminal.
9., as claimed in claim 7 for the proving installation of application program, it is characterized in that, when described reference object is other application program described, described first start unit, specifically for:
Based on described testing time N, continuously N cold start-up is carried out to other application program described;
Described first record cell, specifically for:
N the cold start-up time of record other application program described.
10., as claimed in claim 7 for the proving installation of application program, it is characterized in that, when described reference object is other application program described, described first start unit, specifically for:
Based on described testing time N, continuously N warm start is carried out to other application program described;
Described first record cell, specifically for:
N the warm start time of record other application program described.
CN201510870075.XA 2015-12-02 2015-12-02 Testing method and device for application program Pending CN105320601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510870075.XA CN105320601A (en) 2015-12-02 2015-12-02 Testing method and device for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510870075.XA CN105320601A (en) 2015-12-02 2015-12-02 Testing method and device for application program

Publications (1)

Publication Number Publication Date
CN105320601A true CN105320601A (en) 2016-02-10

Family

ID=55248019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510870075.XA Pending CN105320601A (en) 2015-12-02 2015-12-02 Testing method and device for application program

Country Status (1)

Country Link
CN (1) CN105320601A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708728A (en) * 2016-11-18 2017-05-24 武汉斗鱼网络科技有限公司 Method and system for automatically testing Android application startup time
CN112181822A (en) * 2020-09-24 2021-01-05 北京达佳互联信息技术有限公司 Test method and test method for starting time consumption of application program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620561A (en) * 2008-07-04 2010-01-06 宏碁股份有限公司 Method for monitoring computer system efficiency and computer readable media
CN102591769A (en) * 2011-12-27 2012-07-18 奇智软件(北京)有限公司 Method and device for off time detection
CN102591770A (en) * 2011-12-27 2012-07-18 奇智软件(北京)有限公司 Method and device for detecting starting time of target application
JP2014048720A (en) * 2012-08-29 2014-03-17 Dainippon Printing Co Ltd Use result evaluation system for application program
CN104360921A (en) * 2014-10-17 2015-02-18 微梦创科网络科技(中国)有限公司 Method, device and system for monitoring performance of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620561A (en) * 2008-07-04 2010-01-06 宏碁股份有限公司 Method for monitoring computer system efficiency and computer readable media
CN102591769A (en) * 2011-12-27 2012-07-18 奇智软件(北京)有限公司 Method and device for off time detection
CN102591770A (en) * 2011-12-27 2012-07-18 奇智软件(北京)有限公司 Method and device for detecting starting time of target application
JP2014048720A (en) * 2012-08-29 2014-03-17 Dainippon Printing Co Ltd Use result evaluation system for application program
CN104360921A (en) * 2014-10-17 2015-02-18 微梦创科网络科技(中国)有限公司 Method, device and system for monitoring performance of mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708728A (en) * 2016-11-18 2017-05-24 武汉斗鱼网络科技有限公司 Method and system for automatically testing Android application startup time
CN106708728B (en) * 2016-11-18 2019-06-04 武汉斗鱼网络科技有限公司 The method and system of automatic test Android application starting time
CN112181822A (en) * 2020-09-24 2021-01-05 北京达佳互联信息技术有限公司 Test method and test method for starting time consumption of application program

Similar Documents

Publication Publication Date Title
CN105354143A (en) Test method and device for application programs
CN104699616B (en) The method of a kind of application test, Apparatus and system
US8612947B2 (en) System and method for remotely compiling multi-platform native applications for mobile devices
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
CN103425574B (en) A kind of method and device of test application program
CN107451474B (en) Software bug fixing method and device for terminal
CN105224869A (en) Assembly test method and device
KR20080068385A (en) Program test system, method and computer readable medium on which program for executing the method is recorded
CN102402479B (en) For the intermediate representation structure of static analysis
CN105426310A (en) Method and apparatus for detecting performance of target process
CN108920359B (en) Application program testing method and device, storage medium and electronic device
CN105550101A (en) Test method for application program, electronic device and system
CN109471768B (en) Service problem monitoring method and device and electronic equipment
CN105573911A (en) Application popup window processing method and apparatus
CN108111364B (en) Service system testing method and device
CN102968371B (en) The method of test JAVA API unit component and device
CN104331662A (en) Method and device for detecting Android malicious application
CN107391362A (en) Application testing method, mobile terminal and storage medium
CN103729293A (en) GUI testing method based on UML activity diagrams
US20150007145A1 (en) Computing system with instrumentation mechanism and capture mechanism and method of operation thereof
CN109739704A (en) A kind of interface test method, server-side and computer readable storage medium
CN105320601A (en) Testing method and device for application program
CN104216820A (en) Browser performance testing method and device and server
CN103577326B (en) DEBUG method and device
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium

Legal Events

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

RJ01 Rejection of invention patent application after publication