CN105302706A - Application test method and apparatus - Google Patents

Application test method and apparatus Download PDF

Info

Publication number
CN105302706A
CN105302706A CN201410248198.5A CN201410248198A CN105302706A CN 105302706 A CN105302706 A CN 105302706A CN 201410248198 A CN201410248198 A CN 201410248198A CN 105302706 A CN105302706 A CN 105302706A
Authority
CN
China
Prior art keywords
test
parameter
described test
client
assignment
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
CN201410248198.5A
Other languages
Chinese (zh)
Other versions
CN105302706B (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 CN201410248198.5A priority Critical patent/CN105302706B/en
Publication of CN105302706A publication Critical patent/CN105302706A/en
Application granted granted Critical
Publication of CN105302706B publication Critical patent/CN105302706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses an application test method and apparatus. The application test method comprises: determining, by a test client, a test parameter of a to-be-tested application; reading, by the test client, a test task corresponding to the test parameter, wherein the test task is a task of testing the to-be-tested application; performing, by the test client, the test task according to the test parameter, to obtain a test result; and recording, by the test client, the test parameter and the test result. According to the application test method and apparatus, a low efficiency problem when a test is performed in the prior art is solved, so that an effect of improving test efficiency is achieved.

Description

Applied program testing method and device
Technical field
The present invention relates to field tests, in particular to a kind of applied program testing method and device.
Background technology
Increasing along with application program for mobile terminal, the test-types for application program also increases gradually.Existing technical scheme is mainly passed through artificial at mobile terminal set up applications, tests corresponding application program for different test-types.Such as, test-types is the speed of download of application program from different applying electronic market, when application programs performs test from the speed of download in different applying electronic market, tester needs to download corresponding application program one by one from different applying electronic market, and record the speed that this application program is downloaded in each applying electronic market, analyze and obtain comparing result.
For above-mentioned technical scheme, when carrying out Application testing, owing to needing manually to download corresponding application program to test from different applying electronic market, thus a large amount of human resources are consumed, especially, when testing multiple test-types, speed is slow, and efficiency is low.
Carry out the lower problem of testing time-effectiveness rate for application programs in correlation technique, not yet propose effective solution at present.
Summary of the invention
The fundamental purpose of the embodiment of the present invention is to provide a kind of applied program testing method and device, carries out the lower problem of testing time-effectiveness rate to solve application programs in prior art.
To achieve these goals, according to an aspect of the embodiment of the present invention, a kind of applied program testing method is provided.Applied program testing method according to the embodiment of the present invention comprises: test client determines the test parameter of application program to be tested; Described test client reads test assignment corresponding to described test parameter, and wherein, described test assignment is the task of testing described application program to be tested; Described test client performs described test assignment according to described test parameter, obtains test result; And test parameter and described test result described in described test client record.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of Application testing device.Determining unit, for determining the test parameter of application program to be tested by test client; Reading unit, reads test assignment corresponding to described test parameter for test client described in same work, and wherein, described test assignment is the task of testing described application program to be tested; Performance element, for performing described test assignment by described test client according to described test parameter, obtains test result; And record cell, for by test parameter and described test result described in described test client record.
In embodiments of the present invention, test client determines the test parameter of application program to be tested; The test assignment that test client read test parameter is corresponding, wherein, test assignment is treat the task that test application carries out testing; Test client performs test assignment according to test parameter, obtains test result; And test client record test parameter and test result, read corresponding test assignment by test client according to test parameter to treat test application and test, avoid when manually testing and need to spend a large amount of manpower and time, solve in prior art and carry out the lower problem of testing time-effectiveness rate, and then reach the effect improving testing efficiency.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the applied program testing method according to the embodiment of the present invention;
Fig. 2 is the schematic diagram of the test interface according to the embodiment of the present invention;
Fig. 3 is the flowchart of the test assignment according to the embodiment of the present invention;
Fig. 4 is the process flow diagram of record test parameter according to the embodiment of the present invention and test result;
Fig. 5 is the operational flow diagram of the server according to the embodiment of the present invention;
Fig. 6 is the schematic diagram of the displaying speed of download according to the embodiment of the present invention;
Fig. 7 is the comparison diagram of the speed of download according to the embodiment of the present invention;
Fig. 8 is the Organization Chart of the method for testing of application program according to the embodiment of the present invention; And
Fig. 9 is the schematic diagram of the proving installation of application program according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, 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, should belong to the scope of protection of the invention.
Before introducing the concrete scheme of the embodiment of the present invention, introduce the term related in the following embodiment of the present invention:
Android: Chinese claims Android, is the semi-open source code operating system based on Linux, is mainly used in mobile device, the OpenHandsetAlliance set up by Google (OHA, open handheld device alliance) continue leader and exploitation.
App: the abbreviation of application Application, Android APP and Android application software.
Applying electronic market: refer to apply the applying electronic market that app can be downloaded in treasured, 360 mobile phone assistants, 91 assistants, Android market etc.
Monkeyrunner:monkeyrunner instrument provides an API, and the program using this API to write out can control Android device and simulator outside Android code.By monkeyrunner, you can write out a program and remove installation Android application program or test pack, bootup window, send simulation keystroke to it.The major design object of monkeyrunner instrument is application program in test function/framework level and equipment, or for running unit protos test suite PROTOS.
Embodiment 1
According to the embodiment of the present invention, a kind of embodiment of the method that may be used for implementing the application's device embodiment can be provided, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
According to the embodiment of the present invention, provide a kind of applied program testing method.This applied program testing method may operate in the terminals such as mobile phone, panel computer and PC.
Fig. 1 is the process flow diagram of the applied program testing method according to the embodiment of the present invention.As shown in the figure, this applied program testing method comprises the steps:
Step S102, test client determines the test parameter of application program to be tested.Test client can be operate in the terminals such as mobile phone, panel computer and PC.Application program to be tested can be arbitrary application program that can be arranged in Android system, and usually, this application program can be downloaded by approach such as webpage, applying electronic markets and obtain.
Usually, when test application renewal treated by needs, treat test application carry out mistake investigation time, or before application issued to be tested, all need to treat test application to test, to determine the performance etc. of application program to be tested, to ensure as user provides good Consumer's Experience.Because the test parameter affecting application program to be tested has a variety of, treat the impact of test application in order to test certain test parameter targetedly, first test client will determine the test parameter of application program to be tested.
Application program to be tested can be instant messaging program, mapping program and browser etc.Test parameter can be the speed of download of application program to be tested on application treasured, the fluency etc. of the internal memory taken when running application program to be tested and operation application program to be tested.Such as, application program to be tested is " micro-letter ", and test parameter is the speed of download of the application program from " application is precious " download " micro-letter ".
Step S104, the test assignment that test client read test parameter is corresponding, wherein, test assignment is treat the task that test application carries out testing.Due to the difference of test parameter, the test assignment for this test parameter also may be different, and therefore, test client, after determining parameter to be tested, reads the test assignment that parameter to be tested is corresponding.
Test parameter be application program to be tested when the speed of download in applying electronic market, corresponding test assignment is for download this application program to be tested in applying electronic market; During the internal memory that test parameter takies when being and running application program to be tested, corresponding test assignment is for running this application program to be tested, and the test assignment of other test parameters in like manner can push away, and repeats no longer one by one.
Illustrate as follows: such as, test parameter be apply precious download the application program of " micro-letter " time speed of download, test assignment corresponding to test client read test parameter be the application program in application bag download " micro-letter ".Again such as, test parameter is the internal memory that when running QQ browser, system takies, then the test assignment that test client reads is operation QQ browser.
Step S106, test client performs test assignment according to test parameter, obtains test result.
Because test parameter is corresponding with test assignment, test client needs to perform test assignment according to test parameter, such as, test when the speed of download of the application program applying precious download " micro-letter ", test client needs the test assignment performed to be download " micro-letter " from application is precious, and non-executing starts the task of " micro-letter ".After test client performs test assignment according to test parameter, obtain test result.
Step S108, test client record test parameter and test result.After test client record test parameter and test result, can determine the test result obtained is for which test parameter, namely concerning with certain test parameter, test what the test result that application program to be tested obtains is.Like this, when analyzing test result, the performance of test application can be determined easily according to test parameter and test result.
Be described below in conjunction with example 1 pair of above-described embodiment.
Example 1: application program to be tested is " micro-letter ", test parameter is the speed of download downloading " micro-letter ", and test assignment is for downloading " micro-letter ".First, test client determination test parameter is the speed of download of test " micro-letter ".Secondly, test client read test task is " downloading micro-letter ".Then, perform test assignment, namely download " micro-letter " in applying electronic market, the speed of download after test assignment is finished during record download " micro-letter ".
Pass through above-described embodiment, test client is utilized to determine the test parameter of application program to be tested, and according to test parameter read test task, perform test assignment to obtain the test result after treating test application test, undertaken in the process of testing by treating test application, test client can select corresponding test assignment according to test parameter, and record the test result obtained, test without the need to manually clicking, human resources are not only saved, also more accurate by the result of test, test errors can not be caused due to human error.
The test interface of the Application testing side of the embodiment of the present invention can be as shown in Figure 2, user can select to start test, terminate test and uploading data etc. as required, and, can also select whether to empty original result data, after the selection receiving user, perform corresponding program.
Preferably, in order to improve the accuracy of carrying out speed and the test tested, test parameter comprises multiple parameter, the corresponding test assignment of multiple parameter, and test client performs test assignment according to test parameter and comprises: in multiple parameter, select a parameter.Test client performs test assignment for the parameter selected and tests to treat test application, and test client record test parameter and test result comprise: the test result that test client stylus point obtains after performing test assignment to parameter each in multiple parameter.
Test parameter can comprise multiple parameter, comprising multiple parameter can for application program to be tested be from the speed of download in different applying electronic market, also can for the internal memory consumed when running application program to be tested, CPU when can also be operation application program to be tested takies, and the page open speed etc. of application program to be tested.In addition, when test application program to be tested downloads bag from different applying electronic market, different applying electronic market also can as test parameter.
When performing test assignment according to multiple parameter, a parameter can be selected in multiple parameter to perform test assignment, and stylus point perform the test result after test assignment to each parameter.Such as, in above-mentioned multiple parameter, Stochastic choice CPU takies as test parameter, then take execution test assignment for CPU, namely runs application program to be tested, and record performs the test result (as taking 80%) after this test assignment.When selecting a parameter in multiple parameter, can any one parameter in the multiple parameter of Stochastic choice, also can select a parameter in sequence.After performing test assignment to the parameter selected, can continue as required select next parameter to carry out and carry out test assignment.Such as, after selection to take CPU and tests, can also select to test the speed opening the page and test.
The parameter selected can be mutually related parameter, also can be the parameter joined that is independent of each other, accurate in order to ensure the test result recorded, when an execution test assignment, just record the test parameter of this test assignment, and after test assignment terminates, record test result corresponding to this test assignment.When performing test assignment, can detect start to test time, call Monkeyrunner instrument and carry out simulation click, to trigger the startup of test assignment, in like manner, when needing to perform next test assignment after a test assignment terminates, Monkeyrunner instrument also can be utilized to carry out simulation and to click.Such as, after the test assignment performing " downloading QQ browser ", determine that the speed downloading QQ browser is 89Kb/S, after this test assignment terminates, test " set-up time of QQ browser ", so, utilize Monkeyrunner instrument to simulate the installation kit of the QQ browser clicking download to install QQ browser, and the time of browser installed in record.
Pass through above-described embodiment, the parameter that user can be selected in multiple parameter to expect to carry out testing also performs corresponding test assignment, logging test results, when testing multiple parameter, after executing the test assignment for a parameter, then the test assignment for next parameter can be performed, thus avoid the test errors caused due to misoperation when manually testing, not only save human cost, also improve speed and the accuracy of test.
Preferably, after the test result that each parameter obtains after performing test assignment in stylus point is to multiple parameter, applied program testing method also comprises: test client is recorded in the selecting sequence of Selection parameter in multiple parameter.Test client performs test assignment according to selecting sequence.Test client repeats test assignment.
After recording the test result that in multiple parameter, each parameter obtains after performing test assignment, if need to carry out repeated test to multiple parameter, then can record the selecting sequence of Selection parameter in multiple parameter, and perform test assignment according to the selecting sequence of Selection parameter.The test assignment performed can be that same test assignment repeats, and can also be that different test assignments repeats.
Such as, multiple parameter is for applying treasured, 360 assistants, 91 assistants, peace intelligence market, Android market, Baidu and pea folder, the installation kit of " micro-letter " is downloaded one by one according to this order, namely download the installation kit of " micro-letter " one by one from application treasured, 360 assistants, 91 assistants, peace intelligence market, Android market, Baidu and pea folder, and record downloads the speed of download of " micro-letter " installation kit from each applying electronic market.Wherein, test assignment is " downloading micro-letter installation kit ", for the speed of download of different parameter testings application program to be tested.In order to test speed of download under identical network state as far as possible, and reduce network state to the impact of speed of download as far as possible, when then repeating test assignment, the order of pressing from both sides according to application treasured, 360 assistants, 91 assistants, peace intelligence market, Android market, Baidu and pea is downloaded, and records speed of download.
Again such as, in order to reduce testing process, improve test speed, multiple parameter can be the time of the speed of download QQ browser, installation QQ browser and the committed memory running QQ browser, like this, after the test assignment executing test speed of download, perform the test assignment of test set-up time, after the installation is complete, QQ browser is run to perform the task of test committed memory.Can successively to speed of download according to said sequence, set-up time and taking of internal memory are tested, all linked with one another, have saved the time of whole testing process, thus improve and carry out detection efficiency.
Above-mentioned steps can as shown in Figure 3:
Step S301, obtains the test parameter of application program to be tested, namely reads local profile parameter: testing location, application market title, the application of download, download time, cycle index.
Step S302, initiating task circulation performs.
Step S303, performs test assignment, namely starts application market, automatization simulation button carries out downloading task, downloaded closedown application market.
Step S304, record test parameter and test result, namely record the flow that the start time of downloading process, time of reception and download produce.
Step S305, result of calculation writing in files.
Step S306, after duty cycle lavatory is terminated, uploads destination file to server.
Fig. 4 is the process flow diagram of record test parameter according to the embodiment of the present invention and test result.As shown in the figure, comprise the steps:
(set-up time of QQ browser, the speed etc. of download, averaging time etc.)
Step S402, test client collects test data when performing test assignment.When performing test assignment for test parameter, for the ease of obtaining test result, test data when performing test assignment can be recorded, and extrapolate final test result according to test data, certainly, the test data of collection also can be final test result.
Step S404, test client judges whether test data mates with test parameter.
After collecting test data when performing test assignment, judge whether the test data collected mates with test parameter, namely whether test data is the data expecting to obtain, and whether can reflect the performance etc. of application program to be tested.
Step S406, if test data is not mated with test parameter, then test client processes test data, wherein, matches to the result after test data process and test parameter.
If test data is not mated with test parameter, then the process such as calculating are carried out to test data, matched by the test data after process and test parameter.
Step S408, if test data is mated with test parameter, then test client record test data is test result.
Such as, when testing the speed of download of " downloading micro-letter installation kit ", speed of download inconvenience directly records, and so, the flow produced and download time, calculates speed of download by flow and download time when collecting " downloading micro-letter installation kit ".For linux system, information all under linux system exists all in the form of a file, so the flow information of application program also can be stored in the file of operating system.For android system, under the flow information of the system before Android2.2 version all leaves proc/net/dev (or proc/self/net/dev) file in, read these files and then carry out resolving the flow that just can obtain download to it.Downloading process can have different modes to realize for the acquisition of beginning download time, download deadline, such as, adopt mobile phone automatically to record screen, picture framing, download time, download deadline from picture UI judges.
In order to ensure the accuracy of test result, get rid of network condition to the impact of speed of download, can test assignment be repeated, after the test result obtaining each test assignment, get multiple test result and calculating mean value, using mean value as final test result.For the example of " downloading micro-letter installation kit ", after test 10 ~ 20 times, the speed of download of repeatedly testing can be collected, and calculate the mean value of the speed of download of repeatedly testing.
Preferably, for the ease of checking test result in different terminals, after record test parameter and test result, applied program testing method also comprises: test parameter and test result are sent to server by test client, wherein, server judges that whether test result is abnormal.If test result is abnormal, then the test result of filtering exception, preserves normal test result, as shown in Figure 5.
First, process is monitored, and obtains the data uploaded; Then write into Databasce after exceptional value of coming; Finally in PC page presentation result data and chart contrast.Particularly, after test parameter and test result are sent to server, the data obtained after the data of Exception Filter according to the data of test parameter and test data Exception Filter, and can be preserved in a database by server.These test results can be shown in a computer by server, can also carry out simple Treatment Analysis to test result, such as, generate chart (as shown in Figure 6 and Figure 7).Server can dispose monitoring, finds the test result of being reported and submitted by test client at any time.
Test parameter and test result send to the step of server to realize in the following manner by test client:
The framework of the applied program testing method of above-described embodiment as shown in Figure 8, as shown in the figure, tester starts test client, test assignment is started by android foreground client, then test sequence to start to automatically perform download test assignment, and preserve test result, after test assignment terminates, automatically upload destination file to server.After uploading data to server, server obtains data, and is stored into database, shows, can be held the data of Visitor Logs by tester by PC to data.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprise some instructions in order to (can being mobile phone by a station terminal equipment, computing machine, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of proving installation of application program of the method for testing for implementing above-mentioned application program, the proving installation of this application program is mainly used in the method for testing performing the application program that embodiment of the present invention foregoing provides, and does concrete introduction below to the test monitoring device of the application program that the embodiment of the present invention provides:
Fig. 9 is the schematic diagram of the Application testing device according to the embodiment of the present invention.As shown in the figure, this Application testing device comprises determining unit 10, reading unit 20, performance element 30 and record cell 40.
Determining unit 10 is for determining the test parameter of application program to be tested by test client.
Application program to be tested can be arbitrary application program that can be arranged in Android system, and usually, this application program can be downloaded by approach such as webpage, applying electronic markets and obtain.
Usually, when test application renewal treated by needs, treat test application carry out mistake investigation time, or before application issued to be tested, all need to treat test application to test, to determine the performance etc. of application program to be tested, to ensure as user provides good Consumer's Experience.Because the test parameter affecting application program to be tested has a variety of, treat the impact of test application in order to test certain test parameter targetedly, first test client will determine the test parameter of application program to be tested.
Application program to be tested can be instant messaging program, mapping program and browser etc.Test parameter can be the speed of download of application program to be tested on application treasured, the fluency etc. of the internal memory taken when running application program to be tested and operation application program to be tested.Such as, application program to be tested is " micro-letter ", and test parameter is the speed of download of the application program from " application is precious " download " micro-letter ".
Reading unit 20 is for by test assignment corresponding to test client read test parameter, and wherein, test assignment is treat the task that test application carries out testing.Due to the difference of test parameter, the test assignment for this test parameter also may be different, and therefore, test client, after determining parameter to be tested, reads the test assignment that parameter to be tested is corresponding.
Test parameter be application program to be tested when the speed of download in applying electronic market, corresponding test assignment is for download this application program to be tested in applying electronic market; During the internal memory that test parameter takies when being and running application program to be tested, corresponding test assignment is for running this application program to be tested, and the test assignment of other test parameters in like manner can push away, and repeats no longer one by one.
Illustrate as follows: such as, test parameter be apply precious download the application program of " micro-letter " time speed of download, test assignment corresponding to test client read test parameter be the application program in application bag download " micro-letter ".Again such as, test parameter is the internal memory that when running QQ browser, system takies, then the test assignment that test client reads is operation QQ browser.
Performance element 30, for performing test assignment by test client according to test parameter, obtains test result.
Because test parameter is corresponding with test assignment, test client needs to perform test assignment according to test parameter, such as, test when the speed of download of the application program applying precious download " micro-letter ", test client needs the test assignment performed to be download " micro-letter " from application is precious, and non-executing starts the task of " micro-letter ".After test client performs test assignment according to test parameter, obtain test result.
Record cell 40 is for by test client record test parameter and test result.
After test client record test parameter and test result, can determine the test result obtained is for which test parameter, namely concerning with certain test parameter, test what the test result that application program to be tested obtains is.Like this, when analyzing test result, the performance of test application can be determined easily according to test parameter and test result.
Be described below in conjunction with example 1 pair of above-described embodiment.
Example 1: application program to be tested is " micro-letter ", test parameter is the speed of download downloading " micro-letter ", and test assignment is for downloading " micro-letter ".First, test client determination test parameter is the speed of download of test " micro-letter ".Secondly, test client read test task is " downloading micro-letter ".Then, perform test assignment, namely download " micro-letter " in applying electronic market, the speed of download after test assignment is finished during record download " micro-letter ".
Pass through above-described embodiment, test client is utilized to determine the test parameter of application program to be tested, and according to test parameter read test task, perform test assignment to obtain the test result after treating test application test, making to treat test application carries out in the process of testing, test client can select corresponding test assignment according to test parameter, and record the test result obtained, test without the need to manually clicking, human resources are not only saved, also make the result of test more accurate, test errors can not be caused due to human error.
Preferably, in order to improve the accuracy of carrying out speed and the test tested, test parameter comprises multiple parameter, and the corresponding test assignment of multiple parameter, performance element comprises: select module, for selecting a parameter by test client in multiple parameter.Execution module, test to treat test application for performing test assignment by test client for the parameter selected, the test result of record cell also for obtaining after performing test assignment by test client stylus point to parameter each in multiple parameter.
Test parameter can comprise multiple parameter, comprising multiple parameter can for application program to be tested be from the speed of download in different applying electronic market, also can for the internal memory consumed when running application program to be tested, CPU when can also be operation application program to be tested takies, and the page open speed etc. of application program to be tested.In addition, when test application program to be tested downloads bag from different applying electronic market, different applying electronic market also can as test parameter.
When performing test assignment according to multiple parameter, a parameter can be selected in multiple parameter to perform test assignment, and stylus point perform the test result after test assignment to each parameter.Such as, in above-mentioned multiple parameter, Stochastic choice CPU takies as test parameter, then take execution test assignment for CPU, namely runs application program to be tested, and record performs the test result (as taking 80%) after this test assignment.When selecting a parameter in multiple parameter, can any one parameter in the multiple parameter of Stochastic choice, also can select a parameter in sequence.After performing test assignment to the parameter selected, can continue as required select next parameter to carry out and carry out test assignment.Such as, after selection to take CPU and tests, can also select to test the speed opening the page and test.
The parameter selected can be mutually related parameter, also can be the parameter joined that is independent of each other, accurate in order to ensure the test result recorded, when an execution test assignment, just record the test parameter of this test assignment, and after test assignment terminates, record test result corresponding to this test assignment.When performing test assignment, can detect start to test time, call Monkeyrunner instrument and carry out simulation click, to trigger the startup of test assignment, in like manner, when needing to perform next test assignment after a test assignment terminates, Monkeyrunner instrument also can be utilized to carry out simulation and to click.Such as, after the test assignment performing " downloading QQ browser ", determine that the speed downloading QQ browser is 89Kb/S, after this test assignment terminates, test " set-up time of QQ browser ", so, utilize Monkeyrunner instrument to simulate the installation kit of the QQ browser clicking download to install QQ browser, and the time of browser installed in record.
Pass through above-described embodiment, the parameter that user can be selected in multiple parameter to expect to carry out testing also performs corresponding test assignment, logging test results, when testing multiple parameter, after executing the test assignment for a parameter, then the test assignment for next parameter can be performed, thus avoid the test errors caused due to misoperation when manually testing, not only save human cost, also improve speed and the accuracy of test.
Preferably, Application testing device also comprises: sequential recording-unit, after the test result obtained after performing test assignment for parameter each in stylus point is to multiple parameter, be recorded in the selecting sequence of Stochastic choice parameter in multiple parameter by test client.Order performance element, for performing test assignment by test client according to selecting sequence.And repeat unit, for repeating test assignment by test client.
After recording the test result that in multiple parameter, each parameter obtains after performing test assignment, if need to carry out repeated test to multiple parameter, then can record the selecting sequence of Selection parameter in multiple parameter, and perform test assignment according to the selecting sequence of Selection parameter.The test assignment performed can be that same test assignment repeats, and can also be that different test assignments repeats.
Such as, multiple parameter is for applying treasured, 360 assistants, 91 assistants, peace intelligence market, Android market, Baidu and pea folder, the installation kit of " micro-letter " is downloaded one by one according to this order, namely download the installation kit of " micro-letter " one by one from application treasured, 360 assistants, 91 assistants, peace intelligence market, Android market, Baidu and pea folder, and record downloads the speed of download of " micro-letter " installation kit from each applying electronic market.Wherein, test assignment is " downloading micro-letter installation kit ", for the speed of download of different parameter testings application program to be tested.In order to test speed of download under identical network state as far as possible, and reduce network state to the impact of speed of download as far as possible, when then repeating test assignment, the order of pressing from both sides according to application treasured, 360 assistants, 91 assistants, peace intelligence market, Android market, Baidu and pea is downloaded, and records speed of download.
Again such as, in order to reduce testing process, improve test speed, multiple parameter can be the time of the speed of download QQ browser, installation QQ browser and the committed memory running QQ browser, like this, after the test assignment executing test speed of download, perform the test assignment of test set-up time, after the installation is complete, QQ browser is run to perform the task of test committed memory.Can successively to speed of download according to said sequence, set-up time and taking of internal memory are tested, all linked with one another, have saved the time of whole testing process, thus improve and carry out detection efficiency.
Further, record cell comprises: collection module, for collecting test data when performing test assignment.When performing test assignment for test parameter, for the ease of obtaining test result, test data when performing test assignment can be recorded, and extrapolate final test result according to test data, certainly, the test data of collection also can be final test result.
Judge module, for judging by test client whether test data mates with test parameter.
After collecting test data when performing test assignment, judge whether the test data collected mates with test parameter, namely whether test data is the data expecting to obtain, and whether can reflect the performance etc. of application program to be tested.
Processing module, for by test client when test data is not mated with test parameter, test data is processed, wherein, the result after test data process and test parameter is matched.
If test data is not mated with test parameter, then test client carries out the process such as calculating to test data, and the test data after processing and test parameter are matched.
Logging modle, for when test data is mated with test parameter, is test result by test client record test data.
Such as, when testing the speed of download of " downloading micro-letter installation kit ", speed of download inconvenience directly records, and so, the flow produced and download time, calculates speed of download by flow and download time when collecting " downloading micro-letter installation kit ".For linux system, information all under linux system exists all in the form of a file, so the flow information of application program also can be stored in the file of operating system.For android system, under the flow information of the system before Android2.2 version all leaves proc/net/dev (or proc/self/net/dev) file in, read these files and then carry out resolving the flow that just can obtain download to it.Downloading process can have different modes to realize for the acquisition of beginning download time, download deadline, such as, adopt mobile phone automatically to record screen, picture framing, download time, download deadline from picture UI judges.
In order to ensure the accuracy of test result, get rid of network condition to the impact of speed of download, can test assignment be repeated, after the test result obtaining each test assignment, get multiple test result and calculating mean value, using mean value as final test result.For the example of " downloading micro-letter installation kit ", after test 10 ~ 20 times, the speed of download of repeatedly testing can be collected, and calculate the mean value of the speed of download of repeatedly testing.
Preferably, for the ease of checking test result in different terminals, Application testing device also comprises: transmitting element, for after record test parameter and test result, by test client, test parameter and test result are sent to server, wherein, server judges that whether test result is abnormal.If test result is abnormal, then the test result of filtering exception, preserves normal test result.
First, process is monitored, and obtains the data uploaded; Then write into Databasce after exceptional value of coming; Finally in PC page presentation result data and chart contrast.Particularly, after test parameter and test result are sent to server, the data obtained after the data of Exception Filter according to the data of test parameter and test data Exception Filter, and can be preserved in a database by server.These test results can be shown in a computer by server, can also carry out simple Treatment Analysis to test result, such as, generate chart.Server can dispose monitoring, finds the test result of being reported and submitted by test client at any time.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. an applied program testing method, is characterized in that, comprising:
Test client determines the test parameter of application program to be tested;
Described test client reads test assignment corresponding to described test parameter, and wherein, described test assignment is the task of testing described application program to be tested;
Described test client performs described test assignment according to described test parameter, obtains test result; And
Test parameter and described test result described in described test client record.
2. applied program testing method according to claim 1, is characterized in that, described test parameter comprises multiple parameter, the corresponding described test assignment of described multiple parameter,
Described test client performs described test assignment according to described test parameter and comprises: described test client selects a parameter in described multiple parameter; Described test client performs described test assignment to test described application program to be tested for the parameter selected;
Described in described test client record, test parameter and described test result comprise: the test result that described test client stylus point obtains after performing described test assignment each parameter in described multiple parameter.
3. applied program testing method according to claim 2, it is characterized in that, after the test result that each parameter obtains after performing described test assignment in described test client stylus point is to described multiple parameter, described applied program testing method also comprises:
Described test client is recorded in the selecting sequence of Stochastic choice parameter in described multiple parameter;
Described test client performs described test assignment according to described selecting sequence; And
Described test client repeats described test assignment.
4. applied program testing method according to claim 1, is characterized in that, described in described test client record, test parameter and described test result comprise:
Described test client collects test data when performing described test assignment;
Described test client judges whether described test data mates with described test parameter;
If described test data is not mated with described test parameter, then by described test client, described test data is processed, wherein, the result after described test data process and described test parameter are matched; And
If described test data is mated with described test parameter, be then described test result by test data described in described test client record.
5. the applied program testing method according to any one of Claims 1-4, is characterized in that, after recording described test parameter and described test result, described applied program testing method also comprises:
Described test parameter and test result are sent to server by described test client, wherein,
Described server judges that whether described test result is abnormal;
If described test result is abnormal, then the test result of filtering exception, preserves normal test result.
6. an Application testing device, is characterized in that, comprising:
Determining unit, for determining the test parameter of application program to be tested by the test client be arranged on described Application testing device;
Reading unit, for reading test assignment corresponding to described test parameter by described test client, wherein, described test assignment is the task of testing described application program to be tested;
Performance element, for performing described test assignment by described test client according to described test parameter, obtains test result; And
Record cell, for by test parameter and described test result described in described test client record.
7. Application testing device according to claim 6, is characterized in that, described test parameter comprises multiple parameter, the corresponding described test assignment of described multiple parameter,
Described performance element comprises: select module, for selecting a parameter by described test client in described multiple parameter; Execution module, for performing described test assignment to test described application program to be tested by described test client for the parameter selected,
The test result of described record cell also for being obtained after performing described test assignment each parameter in described multiple parameter by described test client stylus point.
8. Application testing device according to claim 7, is characterized in that, described Application testing device also comprises:
Sequential recording-unit, for after the test result that each parameter in described test client stylus point is to described multiple parameter obtains after performing described test assignment, be recorded in the selecting sequence of Stochastic choice parameter in described multiple parameter by described test client;
Order performance element, for performing described test assignment by described test client according to described selecting sequence; And
Repeat unit, for repeating described test assignment by described test client.
9. Application testing device according to claim 6, is characterized in that, described record cell comprises:
Collection module, for collecting test data when performing described test assignment by described test client;
By described test client, judge module, for judging whether described test data mates with described test parameter;
Processing module, for when described test data is not mated with described test parameter, is processed described test data by described test client, wherein, matches to the result after described test data process and described test parameter; And
Logging modle, for when described test data is mated with described test parameter, is described test result by test data described in described test client record.
10. the Application testing device according to any one of claim 6 to 9, is characterized in that, described Application testing device also comprises:
Transmitting element, for after recording described test parameter and described test result, sends to server by described test parameter and test result, wherein,
Described server judges that whether described test result is abnormal;
If described test result is abnormal, then the test result of filtering exception, preserves normal test result.
CN201410248198.5A 2014-06-05 2014-06-05 Applied program testing method and device Active CN105302706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410248198.5A CN105302706B (en) 2014-06-05 2014-06-05 Applied program testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410248198.5A CN105302706B (en) 2014-06-05 2014-06-05 Applied program testing method and device

Publications (2)

Publication Number Publication Date
CN105302706A true CN105302706A (en) 2016-02-03
CN105302706B CN105302706B (en) 2019-05-24

Family

ID=55199996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410248198.5A Active CN105302706B (en) 2014-06-05 2014-06-05 Applied program testing method and device

Country Status (1)

Country Link
CN (1) CN105302706B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341681A (en) * 2016-08-09 2017-01-18 青岛海信传媒网络技术有限公司 Television application testing method and apparatus
CN106375140A (en) * 2016-08-22 2017-02-01 腾讯科技(深圳)有限公司 Pressure testing method and device
CN106557421A (en) * 2016-10-10 2017-04-05 深圳市证通电子股份有限公司 POS applied program testing methods and device
CN106845927A (en) * 2016-12-28 2017-06-13 曙光信息产业(北京)有限公司 A kind of method and device of automatic arranging test result
CN107885627A (en) * 2017-11-09 2018-04-06 郑州云海信息技术有限公司 A kind of server automated test system and method
CN108009085A (en) * 2017-11-29 2018-05-08 广州君海网络科技有限公司 Channel bag test method
CN108132940A (en) * 2016-12-01 2018-06-08 北京金山云网络技术有限公司 A kind of application data extracting method and device
CN110875858A (en) * 2018-08-31 2020-03-10 北京京东尚科信息技术有限公司 Application test data capturing method, system, equipment and storage medium
CN111338971A (en) * 2020-03-27 2020-06-26 北京达佳互联信息技术有限公司 Application testing method and device, electronic equipment and storage medium
CN112559325A (en) * 2020-12-02 2021-03-26 海南车智易通信息技术有限公司 Application program testing system and method, computing device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880535A (en) * 2012-07-24 2013-01-16 北京播思软件技术有限公司 Wireless automation testing device and method used for mobile equipment
US20130078983A1 (en) * 2011-09-27 2013-03-28 W2Bi, Inc. End to end application automatic testing
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103425577A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Test method and device
CN103631703A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Software performance testing method and device in Android device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130078983A1 (en) * 2011-09-27 2013-03-28 W2Bi, Inc. End to end application automatic testing
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103425577A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Test method and device
CN102880535A (en) * 2012-07-24 2013-01-16 北京播思软件技术有限公司 Wireless automation testing device and method used for mobile equipment
CN103631703A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Software performance testing method and device in Android device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341681A (en) * 2016-08-09 2017-01-18 青岛海信传媒网络技术有限公司 Television application testing method and apparatus
CN106341681B (en) * 2016-08-09 2018-08-07 青岛海信传媒网络技术有限公司 Television applications test method and device
CN106375140A (en) * 2016-08-22 2017-02-01 腾讯科技(深圳)有限公司 Pressure testing method and device
CN106557421A (en) * 2016-10-10 2017-04-05 深圳市证通电子股份有限公司 POS applied program testing methods and device
CN108132940A (en) * 2016-12-01 2018-06-08 北京金山云网络技术有限公司 A kind of application data extracting method and device
CN106845927A (en) * 2016-12-28 2017-06-13 曙光信息产业(北京)有限公司 A kind of method and device of automatic arranging test result
CN107885627A (en) * 2017-11-09 2018-04-06 郑州云海信息技术有限公司 A kind of server automated test system and method
CN108009085A (en) * 2017-11-29 2018-05-08 广州君海网络科技有限公司 Channel bag test method
CN108009085B (en) * 2017-11-29 2021-01-12 广州君海网络科技有限公司 Channel package testing method
CN110875858A (en) * 2018-08-31 2020-03-10 北京京东尚科信息技术有限公司 Application test data capturing method, system, equipment and storage medium
CN110875858B (en) * 2018-08-31 2023-06-27 北京京东尚科信息技术有限公司 Application test data grabbing method, system, equipment and storage medium
CN111338971A (en) * 2020-03-27 2020-06-26 北京达佳互联信息技术有限公司 Application testing method and device, electronic equipment and storage medium
CN111338971B (en) * 2020-03-27 2023-10-03 北京达佳互联信息技术有限公司 Application testing method and device, electronic equipment and storage medium
CN112559325A (en) * 2020-12-02 2021-03-26 海南车智易通信息技术有限公司 Application program testing system and method, computing device and readable storage medium
CN112559325B (en) * 2020-12-02 2024-02-23 海南车智易通信息技术有限公司 Application program testing system, method, computing device and readable storage medium

Also Published As

Publication number Publication date
CN105302706B (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN105302706A (en) Application test method and apparatus
CN110442511B (en) Visual embedded point testing method and device
CN103136471B (en) A kind of malice Android application program detection method and system
CN108874268B (en) User behavior data acquisition method and device
CN108717393A (en) A kind of applied program testing method and mobile terminal
CN108255729B (en) Mobile phone game automatic testing method and system based on Unity platform
CN110245073A (en) Client code coverage rate monitoring method, system, medium and electronic equipment
CN105247493A (en) Identifying impacted tests from statically collected data
CN109871326A (en) A kind of method and apparatus that script is recorded
CN102662836B (en) Evaluation system and method for virtual machine
CN104461903A (en) Method and device for testing client side based on browser
CN104424089A (en) Terminal testing method and device
US10360140B2 (en) Production sampling for determining code coverage
CN112270149A (en) Verification platform automation integration method and system, electronic equipment and storage medium
CN108664372A (en) Monitoring device, method and the computer readable storage medium of test process
CN110196801B (en) Code coverage rate based test method and device
CN106528429A (en) UI testing method and device
CN108509348A (en) A kind of test method and mobile terminal of system aging
CN108170600A (en) The coverage rate statistical method of front-end code test, apparatus and system
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
US11775419B2 (en) Performing software testing with best possible user experience
CN110597733A (en) Method and device for testing stability of automatic front end and storage medium
CN114546850A (en) Automatic testing method, system and device for embedded point and storage medium
CN114924963A (en) Distributed execution method, device, equipment and medium for webpage compatibility test
CN109800114B (en) BMC visual test method, device, terminal 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
GR01 Patent grant
GR01 Patent grant