CN104424098A - Application test method and application testing device - Google Patents

Application test method and application testing device Download PDF

Info

Publication number
CN104424098A
CN104424098A CN201310381538.7A CN201310381538A CN104424098A CN 104424098 A CN104424098 A CN 104424098A CN 201310381538 A CN201310381538 A CN 201310381538A CN 104424098 A CN104424098 A CN 104424098A
Authority
CN
China
Prior art keywords
application program
mobile terminal
tested application
remote control
control command
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
CN201310381538.7A
Other languages
Chinese (zh)
Other versions
CN104424098B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310381538.7A priority Critical patent/CN104424098B/en
Publication of CN104424098A publication Critical patent/CN104424098A/en
Application granted granted Critical
Publication of CN104424098B publication Critical patent/CN104424098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the invention discloses an application test method. The application test method comprises the following steps: invoking a pre-installed component bank to acquire basic information of a tested application program of a mobile terminal, wherein the component bank is used for installing and uninstalling the application program of the mobile terminal; invoking a start command pre-installed in the mobile terminal to start the tested application program by a remote control command according to the basic information of the tested application program; testing the application of the application program by the remote control command. Correspondingly, the invention also discloses an application testing device. The embodiment of the invention can simplify the process of an application test.

Description

A kind of application testing method and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of application testing method and device.
Background technology
The application program that current mobile terminal is installed gets more and more, thus application programs needs to carry out application testing, and application testing can reflect the performance of this application program effectively.Wherein, application testing specifically can comprise random occurrence test (such as: monkey tests) and performance test.Need the source code of this application program just can complete application testing in current application testing.And a lot of user is difficult to acquire the source code of application program or the basic source code obtained less than application program in actual applications, visible, the too complexity of current application testing.
Summary of the invention
Embodiments provide a kind of application testing method and device, the process of application testing can be simplified.
First aspect, a kind of application testing method that the embodiment of the present invention provides, comprising:
Call the essential information that preassembled Component Gallery obtains the tested application program of mobile terminal, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal;
According to the essential information of described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program;
By remote control command, application testing is carried out to described tested application program.
Second aspect, the embodiment of the present invention provides a kind of application testing device, comprising: acquiring unit, start unit and test cell, wherein:
Described acquiring unit, obtain the essential information of the tested application program of mobile terminal for calling preassembled Component Gallery, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal;
Described start unit, for the essential information according to described tested application program, calls preassembled startup command on described mobile terminal by remote control command and starts described tested application program;
Described test cell, for carrying out application testing by remote control command to described tested application program.
In technique scheme, call the essential information that preassembled Component Gallery obtains the tested application program of mobile terminal; According to the essential information of described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program; By remote control command, application testing is carried out to described tested application program.Need source code just can complete application testing compared to existing technology, the embodiment of the present invention can simplify the process of application testing.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of application testing method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of application testing method that the embodiment of the present invention provides;
Fig. 3 is the optional interface schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the another kind of application testing method that the embodiment of the present invention provides;
Fig. 5-Fig. 7 is the optional process schematic that the embodiment of the present invention provides;
Fig. 8 is the structural representation of a kind of application testing device that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the another kind of application testing device that the embodiment of the present invention provides;
Figure 10 is the structural representation of the another kind of application testing device that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only 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.
In the embodiment of the present invention, application testing can be random occurrence test (such as: monkey tests) or performance test.Mobile terminal can be specifically the smart machine that smart mobile phone (such as: the mobile phone of the mobile phone of iOS operating system, the mobile phone of android operating system or windows operating system) panel computer, electronic reader, telepilot, mobile unit, Web TV, wearable device etc. have application function.Wherein, the mobile phone of above-mentioned iOS operating system can also be specifically the mobile phone of the iOS operating system of escaping from prison.
Fig. 1 is the schematic flow sheet of a kind of application testing method that the embodiment of the present invention provides, and as shown in Figure 1, comprises the following steps:
S101, call the essential information of tested application program that preassembled Component Gallery obtains mobile terminal, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal.
Optionally, said modules storehouse can be specifically common function Component Gallery, this common function Component Gallery can be used for install and unloading mobile terminal application program.Such step S101 just can get the essential information of above-mentioned tested application program by this Component Gallery, such as: the identify label number (Identity of above-mentioned tested application program, ID), the sectional drawing of above-mentioned tested application program and/or the icon log of above-mentioned tested application program, can be specifically from the project file (such as: Info.plist file) of tested application program, travel through by said modules storehouse the sectional drawing capturing tested application program, can also be specifically the log obtaining tested application program in the glue file folder by mobile terminal.
S102, essential information according to described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program.
Optionally, above-mentioned startup command can be specifically open order.Above-mentioned remote control command specifically can the remote control command of containment (Secure Shell, SSH) agreement.Can be specifically enter mobile terminal by the remote control command of SSH agreement, and the open order of calling mobile terminal installation start tested application program.It can be specifically the essential information (such as: the ID of tested application program) of carrying actual measurement application program in this remote control command, this open order just can start tested application program according to this ID, and the mode realizing the identifier (Bundle id) applied starts tested application.Can also be specifically that open SSH command tools is installed in advance on mobile terminals, when such step S102 starts tested application by the remote control command of SSH agreement, just more convenient, fast, remote control command security can also be improved simultaneously.
S103, by remote control command, application testing is carried out to described tested application program.
Optionally, can be specifically, by the remote control command of SSH agreement, application testing is carried out to tested application program.Wherein, application testing can comprise following at least one item:
Random occurrence test (such as: monkey tests) and performance test.
Optionally, described method can be specifically be applied to computing machine, and namely computing machine can be to implement the methods.Wherein, computing machine can be the computing machine of Windows operating system or the computing machine of iOS operating system, and computing machine can be specifically notebook computer or desk-top computer.
In technique scheme, call the essential information that preassembled Component Gallery obtains the tested application program of mobile terminal; According to the essential information of described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program; By remote control command, application testing is carried out to described tested application program.Need source code just can complete application testing compared to existing technology, the embodiment of the present invention can simplify the process of application testing.
Fig. 2 is the schematic flow sheet of the another kind of application testing method that the embodiment of the present invention provides, and as shown in Figure 2, comprises the following steps:
S201, call the essential information of tested application program that preassembled Component Gallery obtains mobile terminal, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal.
Optionally, said modules storehouse can be specifically carry out integrating and encapsulate obtained common function Component Gallery for the dynamic link library installing and unload the application program of described mobile terminal at least one.Namely, before step S201, described method can also comprise:
Carried out integrating by least one dynamic link library and encapsulate, to install the described Component Gallery of the application program for installing and unload described mobile terminal, described dynamic link library is the storehouse of the application program for installing and unload described mobile terminal.
Wherein, above-mentioned dynamic link library can be specifically iTunes Mobile Device dynamic link library (this storehouse does not have the concrete Chinese meaning).
Optionally, the interface that at least one can also be used for the application program installing and unload described mobile terminal carries out integrating and encapsulates, to install the interface of the application program for installing and unload described mobile terminal of a unification.So just can by this interface to mobile terminal transmission command, namely the present embodiment can be transmitted by this interface to the order of the transmission of mobile terminal, thus can by unified interface management, testing mobile terminal.
S202, essential information according to described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program.
S203, the performance data of process by described tested application program in remote control command monitoring preset time period.
Optionally, above-mentioned performance data can also be the performance data selected by the operation of user, such as: the occupation value of CPU, i.e. and the sizes values of the CPU shared by process of tested application program, or the occupation value of internal memory, the i.e. sizes values of the internal memory shared by process of tested application program.Above-mentioned preset time period can be arranged according to user operation, such as: 10 minutes or half an hour etc.
S204, carry out data processing to described performance data, to obtain test result, wherein, this test comprises following at least one item:
The performance data that in the performance data that in the performance data that in described preset time period, performance is best, described preset time period, performance is the poorest and described preset time period, property is average.
Optionally, the performance data when performance data that in above-mentioned preset time period, performance is best can refer to that the performance of tested application program in above-mentioned preset time period preferably, the performance data when performance data that in above-mentioned preset time period, performance is the poorest can refer to that the performance of tested application program in above-mentioned preset time period is the poorest, the performance data that in above-mentioned preset time period, property is average specifically can refer to the mean value of the performance data obtained in above-mentioned preset time period.
Optionally, above-mentioned performance data can comprise following at least one item:
The occupation value of CPU and the occupation value of internal memory.
So, the performance data that in above-mentioned preset time period, performance is best can be specifically the minimum occupation value of CPU and internal memory in above-mentioned preset time period, the performance data that in above-mentioned preset time period, performance is the poorest can be specifically the maximum occupation value of CPU and internal memory in above-mentioned preset time period, and the performance data that in above-mentioned preset time period, property is average can be specifically the average occupation value of CPU and internal memory in above-mentioned preset time period.Wherein, above-mentioned test result can be specifically as shown in Figure 3, wherein, tests the performance data that the result obtained specifically can comprise the step S203 acquisition of 301 expressions, and the test result that the 302 step S204 represented obtain.
In technique scheme, above embodiment basis on achieve the performance test of the application program to mobile terminal, and the process simplifying performance test can be realized.
Fig. 4 is the schematic flow sheet of the another kind of application testing method that the embodiment of the present invention provides, and as shown in Figure 4, comprises the following steps:
S401, call the essential information of tested application program that preassembled Component Gallery obtains mobile terminal, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal.
Optionally, said modules storehouse can be specifically carry out integrating and encapsulate obtained common function Component Gallery for the dynamic link library installing and unload the application program of described mobile terminal at least one.Namely, before step S401, described method can also comprise:
Carried out integrating by least one dynamic link library and encapsulate, to install the described Component Gallery of the application program for installing and unload described mobile terminal, described dynamic link library is the storehouse of the application program for installing and unload described mobile terminal.
Wherein, above-mentioned dynamic link library can be specifically iTunes Mobile Device dynamic link library.
Optionally, the interface that at least one can also be used for the application program installing and unload described mobile terminal carries out integrating and encapsulates, to install the interface of the application program for installing and unload described mobile terminal of a unification.So just can by this interface to mobile terminal transmission command, namely the present embodiment can be transmitted by this interface to the order of the transmission of mobile terminal, thus can by unified interface management, testing mobile terminal.
S402, essential information according to described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program.
S403, by remote control command to described mobile terminal preset installation remote response server send random occurrence, with make described tested application program perform described response server receive described random occurrence.
When above-mentioned tested application program performs this random occurrence, just can complete random occurrence test (such as: monkey tests).
Optionally, above-mentioned mobile terminal is above-mentioned is provided with above-mentioned remote response server, so just can set up passage with this mobile terminal, to communicate with mobile terminal at this passage, namely above-mentioned random occurrence be sent to mobile terminal by this passage.Can also be specifically send above-mentioned random occurrence by above-mentioned unified interface to this passage.
Optionally, above-mentioned remote response server can be specifically veency server (this server does not have the concrete Chinese meaning), and Remote Frame Buffer (Remote Frame Buffer, RFB) agreement can be followed above by remote control command to the random occurrence that described mobile terminal sends.And above-mentioned random occurrence can be specifically operation random occurrence, namely the careless event of this operation can be comprise multiple indefinite Action Events.
As the optional embodiment of one, after step S403, described method can also comprise:
S404, to be called the process that described mobile terminal presets the described tested application program of top order monitoring of installation by remote control command and whether exist; If not, then described tested application crash is determined.
Wherein, the process of the described tested application program of above-mentioned monitoring can be specifically the random occurrence test of tested application program (such as: monkey tests) process, and namely tested application program performs the process of above-mentioned random occurrence.
Optionally, after determining described tested application crash, the present embodiment can also restart tested application program by repeated execution of steps S402.
In technique scheme, above embodiment basis on achieve the random occurrence of the application program of mobile terminal tested, and the process simplifying random occurrence test can be realized.
Be illustrated with a concrete example below:
As shown in Figure 5, computing machine 501 is by dynamic link library 502(such as: iTunes Mobile Device dynamic link library) carry out merging and encapsulate, to install the common function Component Gallery 504 of the application program for installing and unload mobile terminal 503.Namely common function Component Gallery 504 installed by computing machine 501, and common function Component Gallery 504 is for installing the application program for installing and unload mobile terminal 503.
For random occurrence test (such as: monkey tests), specifically can reference diagram 6, computing machine 601 travels through the sectional drawing capturing tested application program from mobile terminal 603 project file (such as: Info.plist file) by common function Component Gallery 602, and obtains the log of tested application program in glue file folder.Computing machine 601 is again according to above-mentioned sectional drawing and/or log, and the open order 604 of being called mobile terminal 603 installation by the remote control command of SSH agreement starts described tested application program.The passage that computing machine 601 is set up by the veency server 605 installed with mobile terminal 603, the veency server 605 installed to mobile terminal 603 sends random occurrence, performs the described random occurrence of veency server 605 reception to make described tested application program.Afterwards, whether computing machine 601 can also call by remote control command the process that mobile terminal 603 presets the described tested application program of top order 606 monitoring of installing and exist; If not, then described tested application crash is determined.Described tested application program is restarted in the open order 604 that computing machine 601 calls mobile terminal 603 installation by the remote control command of SSH agreement again.
For performance test, specifically can reference diagram 7, computing machine 701 obtains the process title of the tested application program of mobile terminal 703 by common function Component Gallery 702; Computing machine 701 calls the process particular data performance data of the process of tested application program (in the preset time period) of the top order 704 monitoring and measuring application program that mobile terminal 703 is installed by the remote control command of SSH agreement.Computing machine 701 carries out data processing to this particular data again, to obtain test result.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment one to three, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one, embodiment two and embodiment three.
Fig. 8 is the structural representation of a kind of application testing device that the embodiment of the present invention provides, and as shown in Figure 8, comprising: acquiring unit 81, start unit 82 and test cell 83, wherein:
Acquiring unit 81, obtain the essential information of the tested application program of mobile terminal for calling preassembled Component Gallery, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal.
Optionally, said modules storehouse can be specifically common function Component Gallery, this common function Component Gallery can be used for install and unloading mobile terminal application program.Such acquiring unit 81 just can get the essential information of above-mentioned tested application program by this Component Gallery, such as: the icon log of the ID of above-mentioned tested application program, the sectional drawing of above-mentioned tested application program and/or above-mentioned tested application program, can be specifically from the project file (such as: Info.plist file) of tested application program, travel through by said modules storehouse the sectional drawing capturing tested application program, can also be specifically the log obtaining tested application program in the glue file folder by mobile terminal.
Start unit 82, for the essential information according to described tested application program, calls preassembled startup command on described mobile terminal by remote control command and starts described tested application program.
Optionally, above-mentioned startup command can be specifically open order.Above-mentioned remote control command specifically can the remote control command of SSH agreement.Can be specifically enter mobile terminal by the remote control command of SSH agreement, and the open order of calling mobile terminal installation start tested application program.It can be specifically the essential information (such as: the ID of tested application program) of carrying actual measurement application program in this remote control command, this open order just can start tested application program according to this ID, and the mode realizing the Bundle id applied starts tested application.Can also be specifically that open SSH command tools is installed in advance on mobile terminals, when such start unit 82 starts tested application by the remote control command of SSH agreement, just more convenient, fast, remote control command security can also be improved simultaneously.
Test cell 83, for carrying out application testing by remote control command to described tested application program.
Optionally, can be specifically, by the remote control command of SSH agreement, application testing is carried out to tested application program.Wherein, application testing can comprise following at least one item:
Random occurrence test (such as: monkey tests) and performance test.
Optionally, described device specifically can be applied on computing machine, and namely computing machine can comprise said apparatus.Wherein, computing machine can be the computing machine of Windows operating system or the computing machine of iOS operating system, and computing machine can be specifically notebook computer or desk-top computer.
In technique scheme, call the essential information that preassembled Component Gallery obtains the tested application program of mobile terminal; According to the essential information of described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program; By remote control command, application testing is carried out to described tested application program.Need source code just can complete application testing compared to existing technology, the embodiment of the present invention can simplify the process of application testing.
Fig. 9 is the structural representation of the another kind of application testing device that the embodiment of the present invention provides, as shown in Figure 9, comprise: acquiring unit 91, start unit 92 and test cell 93, test cell 93 comprises: the first monitoring means 931 and data processing unit 932, wherein:
Acquiring unit 91, obtain the essential information of the tested application program of mobile terminal for calling preassembled Component Gallery, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal.
Optionally, said modules storehouse can be specifically carry out integrating and encapsulate obtained common function Component Gallery for the dynamic link library installing and unload the application program of described mobile terminal at least one.Described device can also comprise:
Installation unit 94, for at least one dynamic link library being carried out integrating and encapsulating, to install the described Component Gallery of the application program for installing and unload described mobile terminal, described dynamic link library is the storehouse of the application program for installing and unload described mobile terminal.
Wherein, above-mentioned dynamic link library can be specifically iTunes Mobile Device dynamic link library.
Optionally, the interface that at least one can also be used for the application program installing and unload described mobile terminal by described device carries out integrating and encapsulates, to install the interface of the application program for installing and unload described mobile terminal of a unification.So just can by this interface to mobile terminal transmission command, namely the present embodiment can be transmitted by this interface to the order of the transmission of mobile terminal, thus can by unified interface management, testing mobile terminal.
Start unit 92, for the essential information according to described tested application program, calls preassembled startup command on described mobile terminal by remote control command and starts described tested application program.
First monitoring means 931, for the performance data by the process of described tested application program in remote control command monitoring preset time period.
Optionally, above-mentioned performance data can also be the performance data selected by the operation of user, such as: the occupation value of CPU, i.e. and the sizes values of the CPU shared by process of tested application program, or the occupation value of internal memory, the i.e. sizes values of the internal memory shared by process of tested application program.Above-mentioned preset time period can be arranged according to user operation, such as: 10 minutes or half an hour etc.
Data processing unit 932, for carrying out data processing to described performance data, to obtain following at least one test result:
The performance data that in the performance data that in the performance data that in described preset time period, performance is best, described preset time period, performance is the poorest and described preset time period, property is average.
Optionally, the performance data when performance data that in above-mentioned preset time period, performance is best can refer to that the performance of tested application program in above-mentioned preset time period preferably, the performance data when performance data that in above-mentioned preset time period, performance is the poorest can refer to that the performance of tested application program in above-mentioned preset time period is the poorest, the performance data that in above-mentioned preset time period, property is average specifically can refer to the mean value of the performance data obtained in above-mentioned preset time period.
Optionally, above-mentioned performance data can comprise following at least one item:
The occupation value of CPU and the occupation value of internal memory.
So, the performance data that in above-mentioned preset time period, performance is best can be specifically the minimum occupation value of CPU and internal memory in above-mentioned preset time period, the performance data that in above-mentioned preset time period, performance is the poorest can be specifically the maximum occupation value of CPU and internal memory in above-mentioned preset time period, and the performance data that in above-mentioned preset time period, property is average can be specifically the average occupation value of CPU and internal memory in above-mentioned preset time period.Wherein, above-mentioned test result can be specifically as shown in Figure 3, wherein, tests the performance data that the result obtained specifically can comprise the first monitoring means 931 acquisition of 301 expressions, and the test result that 302 data processing units 932 represented obtain.
In technique scheme, above embodiment basis on achieve the performance test of the application program to mobile terminal, and the process simplifying performance test can be realized.
Figure 10 is the structural representation of the another kind of application testing device that the embodiment of the present invention provides, and as shown in Figure 10, comprising: acquiring unit 101, start unit 102 and test cell 103, wherein:
Acquiring unit 101, obtain the essential information of the tested application program of mobile terminal for calling preassembled Component Gallery, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal.
Optionally, said modules storehouse can be specifically carry out integrating and encapsulate obtained common function Component Gallery for the dynamic link library installing and unload the application program of described mobile terminal at least one.Described device can also comprise:
Installation unit 104, for at least one dynamic link library being carried out integrating and encapsulating, to install the described Component Gallery of the application program for installing and unload described mobile terminal, described dynamic link library is the storehouse of the application program for installing and unload described mobile terminal.
Wherein, above-mentioned dynamic link library can be specifically iTunes Mobile Device dynamic link library.
Optionally, the interface that at least one can also be used for the application program installing and unload described mobile terminal by described device carries out integrating and encapsulates, to install the interface of the application program for installing and unload described mobile terminal of a unification.So just can by this interface to mobile terminal transmission command, namely the present embodiment can be transmitted by this interface to the order of the transmission of mobile terminal, thus can by unified interface management, testing mobile terminal.
Start unit 102, for the essential information according to described tested application program, calls preassembled startup command on described mobile terminal by remote control command and starts described tested application program.
Test cell 103, sends random occurrence for the remote response server presetting installation to described mobile terminal by remote control command, with the described random occurrence making described tested application program perform the reception of described response server.
When above-mentioned tested application program performs this random occurrence, just can complete random occurrence test (such as: monkey tests).
Optionally, above-mentioned mobile terminal is above-mentioned is provided with above-mentioned remote response server, so just can set up passage with this mobile terminal, to communicate with mobile terminal at this passage, namely above-mentioned random occurrence be sent to mobile terminal by this passage.Can also be specifically send above-mentioned random occurrence by above-mentioned unified interface to this passage.
Optionally, above-mentioned remote response server can be specifically veency server, and can follow RFB agreement above by the random occurrence that remote control command sends to described mobile terminal.And above-mentioned random occurrence can be specifically operation random occurrence, namely the careless event of this operation can be comprise multiple indefinite Action Events.
As the optional embodiment of one, described device can also comprise:
Second monitoring means 105, whether the process presetting the described tested application program of top order monitoring of installation for being called described mobile terminal by remote control command is existed;
Determining unit 106, for when the process of the described tested application program of described second monitoring means monitoring does not exist, determines described tested application crash.
Wherein, the process of the described tested application program of above-mentioned monitoring can be specifically the random occurrence test of tested application program (such as: monkey tests) process, and namely tested application program performs the process of above-mentioned random occurrence.
Optionally, after determining described tested application crash, the present embodiment can also repeat start unit 102 and restart tested application program.
In technique scheme, above embodiment basis on achieve the random occurrence of the application program of mobile terminal tested, and the process simplifying random occurrence test can be realized.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (11)

1. an application testing method, is characterized in that, comprising:
Call the essential information that preassembled Component Gallery obtains the tested application program of mobile terminal, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal;
According to the essential information of described tested application program, call preassembled startup command on described mobile terminal by remote control command and start described tested application program;
By remote control command, application testing is carried out to described tested application program.
2. as the method that right power requires as described in 1, it is characterized in that, describedly by remote control command, application testing carried out to described tested application program, comprising:
By the performance data of the process of described tested application program in remote control command monitoring preset time period;
Data processing is carried out to described performance data, to obtain following at least one test result:
The performance data that in the performance data that in the performance data that in described preset time period, performance is best, described preset time period, performance is the poorest and described preset time period, property is average.
3. method as claimed in claim 2, it is characterized in that, described performance data comprises following at least one item:
The occupation value of CPU and the occupation value of internal memory.
4. the method for claim 1, is characterized in that, describedly carries out application testing by remote control command to described tested application program, comprising:
The remote response server presetting installation to described mobile terminal by remote control command sends random occurrence, with the described random occurrence making described tested application program perform the reception of described response server.
5. method as claimed in claim 4, is characterized in that, described by remote control command to after the remote response server that described mobile terminal presets installation sends random occurrence, described method also comprises:
By remote control command call described mobile terminal preset installation top order monitoring described tested application program process whether exist; If not, then described tested application crash is determined.
6. the method according to any one of claim 1-5, is characterized in that, described in call preassembled Component Gallery obtain mobile terminal tested application program essential information before, described method also comprises:
Carried out integrating by least one dynamic link library and encapsulate, to install the described Component Gallery of the application program for installing and unload described mobile terminal, described dynamic link library is the storehouse of the application program for installing and unload described mobile terminal.
7. an application testing device, is characterized in that, comprising: acquiring unit, start unit and test cell, wherein:
Described acquiring unit, obtain the essential information of the tested application program of mobile terminal for calling preassembled Component Gallery, described Component Gallery is the Component Gallery of the application program for installing and unload described mobile terminal;
Described start unit, for the essential information according to described tested application program, calls preassembled startup command on described mobile terminal by remote control command and starts described tested application program;
Described test cell, for carrying out application testing by remote control command to described tested application program.
8., as right power requires the device as described in 7, it is characterized in that, described test cell comprises:
First monitoring means, for the performance data by the process of described tested application program in remote control command monitoring preset time period;
Data processing unit, for carrying out data processing to described performance data, to obtain following at least one test result:
The performance data that in the performance data that in the performance data that in described preset time period, performance is best, described preset time period, performance is the poorest and described preset time period, property is average.
9. device as claimed in claim 7, it is characterized in that, the remote response server of described test cell also for presetting installation by remote control command to described mobile terminal sends random occurrence, with the described random occurrence making described tested application program perform the reception of described response server.
10. device as claimed in claim 9, it is characterized in that, described device also comprises:
Second monitoring means, whether the process presetting the described tested application program of top order monitoring of installation for being called described mobile terminal by remote control command is existed;
Determining unit, for when the process of the described tested application program of described second monitoring means monitoring does not exist, determines described tested application crash.
11. devices according to any one of claim 7-10, it is characterized in that, described device also comprises:
Installation unit, for at least one dynamic link library being carried out integrating and encapsulating, to install the described Component Gallery of the application program for installing and unload described mobile terminal, described dynamic link library is the storehouse of the application program for installing and unload described mobile terminal.
CN201310381538.7A 2013-08-28 2013-08-28 A kind of application testing method and device Active CN104424098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310381538.7A CN104424098B (en) 2013-08-28 2013-08-28 A kind of application testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310381538.7A CN104424098B (en) 2013-08-28 2013-08-28 A kind of application testing method and device

Publications (2)

Publication Number Publication Date
CN104424098A true CN104424098A (en) 2015-03-18
CN104424098B CN104424098B (en) 2019-01-29

Family

ID=52973142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310381538.7A Active CN104424098B (en) 2013-08-28 2013-08-28 A kind of application testing method and device

Country Status (1)

Country Link
CN (1) CN104424098B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN108345533A (en) * 2017-01-24 2018-07-31 腾讯科技(深圳)有限公司 A kind of application program adjustment method, equipment and server
CN111198758A (en) * 2020-01-08 2020-05-26 深圳忆联信息系统有限公司 SSH-based Windows software starting method and device and computer equipment
CN113268407A (en) * 2020-02-17 2021-08-17 北京沃东天骏信息技术有限公司 Page testing method and device, computer storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020053070A1 (en) * 2000-10-27 2002-05-02 Kabushiki Kaisha Toshiba Application development system and method
CN102801755A (en) * 2011-05-27 2012-11-28 腾讯科技(深圳)有限公司 Application management method and application platform
CN102855184A (en) * 2012-07-24 2013-01-02 北京播思软件技术有限公司 Android automatic test cross application device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020053070A1 (en) * 2000-10-27 2002-05-02 Kabushiki Kaisha Toshiba Application development system and method
CN102801755A (en) * 2011-05-27 2012-11-28 腾讯科技(深圳)有限公司 Application management method and application platform
CN102855184A (en) * 2012-07-24 2013-01-02 北京播思软件技术有限公司 Android automatic test cross application device and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN108345533A (en) * 2017-01-24 2018-07-31 腾讯科技(深圳)有限公司 A kind of application program adjustment method, equipment and server
CN111198758A (en) * 2020-01-08 2020-05-26 深圳忆联信息系统有限公司 SSH-based Windows software starting method and device and computer equipment
CN111198758B (en) * 2020-01-08 2024-02-13 深圳忆联信息系统有限公司 Windows software starting method and device based on SSH and computer equipment
CN113268407A (en) * 2020-02-17 2021-08-17 北京沃东天骏信息技术有限公司 Page testing method and device, computer storage medium and electronic equipment

Also Published As

Publication number Publication date
CN104424098B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN103516559A (en) Method and system for testing application compatibility of intelligent terminal
WO2022016847A1 (en) Automatic test method and device applied to cloud platform
CN111427803B (en) Automated random test method, apparatus, computer device and medium
CN113190464B (en) mock testing method and device, electronic equipment and medium
CN104063305A (en) Pressure testing method, device and system for intelligent terminal software
CN104765612A (en) System and method for having access to credible execution environment and credible application
CN109344066B (en) Method, system and terminal for testing browser page
CN107526676B (en) Cross-system test method and device
CN107644075B (en) Method and device for collecting page information
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN110377341B (en) Method, device, medium and electronic equipment for monitoring no-response exception
CN112269744A (en) System abnormity testing method and device, computer equipment and storage medium
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN104424098A (en) Application test method and application testing device
CN105760307A (en) Testing method, device and system of intelligent terminal
CN112241362A (en) Test method, test device, server and storage medium
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN115729727A (en) Fault repairing method, device, equipment and medium
CN114449052B (en) Data compression method and device, electronic equipment and storage medium
CN112416734A (en) Test method, device and storage medium
CN113360172B (en) Application deployment method, device, computer equipment and storage medium
CN112379967B (en) Simulator detection method, device, equipment and medium
CN113535580A (en) CTS (clear to send) testing method, device and testing equipment
CN110602162B (en) Terminal evidence obtaining method, device, equipment and storage medium
CN110677320A (en) Internet of things communication end-to-end testing device and testing method thereof

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