CN105653451A - Software performance testing method and device - Google Patents
Software performance testing method and device Download PDFInfo
- Publication number
- CN105653451A CN105653451A CN201511017817.0A CN201511017817A CN105653451A CN 105653451 A CN105653451 A CN 105653451A CN 201511017817 A CN201511017817 A CN 201511017817A CN 105653451 A CN105653451 A CN 105653451A
- Authority
- CN
- China
- Prior art keywords
- data
- software
- tested
- scene
- performance index
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a software performance testing method and a device, which are applied to a terminal, wherein the terminal is in communication connection with a server, software to be tested is installed in the terminal, the software to be tested comprises N scenes to be tested, and the method comprises the following steps: receiving a test instruction aiming at the software to be tested, which is sent by the server, wherein the test instruction at least comprises a first performance index to be monitored and a second performance index to be monitored; sequentially obtaining the data of the first performance index corresponding to each scene to be tested according to the test sequence of the N scenes to be tested; and after the data of the first performance indexes corresponding to all scenes to be tested are obtained, the data of the second performance indexes of the software to be tested are obtained. By applying the embodiment of the invention, the user experience effect and the software performance testing efficiency are improved.
Description
Technical field
The present invention relates to software test technical field, in particular to a kind of software performance testing method and device.
Background technology
Software test is when specifying to program process operation, with discovery procedure mistake, weighs software quality, and to the process whether it can meet design requirement and assess.
Difference according to test purpose, software test mainly comprises: function test, regression test, pressure test and performance test etc.
Software performance test refers in the process of running software, every performance index of operating system is tested, and performance index generally include: CPU utilization ratio, EMS memory occupation, electric quantity consumption and data traffic etc.
Current software performance test, after testing a scene, it is necessary to tester (user) is manually switched to later scene, is then tested by later scene. In actual applications, but user does not know when the scene tested tests, it is necessary to wait, Consumer's Experience poor effect, test efficiency is lower.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of software performance testing method and device, with the efficiency of the experience effect and software performance test that improve user.
For achieving the above object, the embodiment of the invention discloses a kind of software performance testing method, it is applied to terminal, described terminal is connected with server communication, being provided with software to be tested in described terminal, the N number of scene to be measured of described software include to be tested, described method comprises:
Receive the test instruction for described software to be tested that described server sends, wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, and described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested;
Testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively;
After the data obtaining described first performance index corresponding to all scenes to be measured, obtain the data of the described secondary energy index of described software to be tested.
Optionally, obtain the data of described first performance index corresponding to scene to be measured, comprising:
Obtain the data of described first performance index corresponding to scene to be measured in real time;
Or every preset duration, obtain the data of described first performance index corresponding to scene to be measured.
Optionally, in the described testing sequence according to described N number of scene to be measured, before obtaining the data of described first performance index corresponding to each scene to be measured successively, described method also comprises:
Remove data cached for described software to be tested.
Optionally, described method also comprises:
Data according to described first performance index corresponding to the scene each to be measured obtained, whether the first performance index described in real-time judge are abnormal;
If it does, obtain the current daily record for described software to be tested and proceeding internal memory mirror image;
The daily record obtained and proceeding internal memory mirror image are sent to described server, so that server shows received daily record and proceeding internal memory mirror image to user.
Optionally, described method also comprises:
By at least comprise described first performance index obtained data and described secondary can the data upload of index to server so that data are stored and analyze by server.
For achieving the above object, the embodiment of the invention discloses a kind of software performance test device, it is applied to terminal, described terminal is connected with server communication, being provided with software to be tested in described terminal, the N number of scene to be measured of described software include to be tested, described device comprises: receiver module, the first acquisition module and the 2nd acquisition module, wherein
Described receiver module, for receiving the test instruction for described software to be tested that described server sends, wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, and described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested;
Described first acquisition module, for the testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively;
Described 2nd acquisition module, after the data for described first performance index corresponding in the described first acquisition all scenes to be measured of module acquisition, obtains the data of the described secondary energy index of described software to be tested.
Optionally, described first acquisition module, specifically for:
Testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to scene to be measured successively in real time;
Or the testing sequence according to described N number of scene to be measured, successively every preset duration, obtain the data of described first performance index corresponding to scene to be measured.
Optionally, described device also comprises: remove module,
Described removing module, data cached for what remove for described software to be tested.
Optionally, described device also comprises: judge module, the 3rd acquisition module and sending module, wherein,
Described judgement module, the data of described first performance index that the scene each to be measured for obtaining according to described first acquisition module is corresponding, whether the first performance index described in real-time judge are abnormal;
Described 3rd acquisition module, for when described judgement module judged result is for being, obtaining the current daily record for described software to be tested and proceeding internal memory mirror image;
Described sending module, daily record and proceeding internal memory mirror image for described 3rd acquisition module being obtained are sent to described server, so that server shows received daily record and proceeding internal memory mirror image to user.
Optionally, described device also comprises: upper transmission module,
Described upper transmission module, for will at least comprise described first performance index obtained data and described secondary can the data upload of index to server so that data are stored and analyze by server.
As seen from the above technical solutions, embodiments provide a kind of software performance testing method and device, it is applied to terminal, described terminal is connected with server communication, described terminal is provided with software to be tested, the N number of scene to be measured of described software include to be tested, method comprises: receive the test instruction for described software to be tested that described server sends, wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested, testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively, after the data obtaining described first performance index corresponding to all scenes to be measured, obtain the data of the described secondary energy index of described software to be tested.
The technical scheme that the application embodiment of the present invention provides, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test.
Certainly, arbitrary product or the method for implementing the present invention must not necessarily need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is 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, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The first schematic flow sheet of the software performance testing method that Fig. 1 provides for the embodiment of the present invention;
2nd kind of schematic flow sheet of the software performance testing method that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet of the software performance testing method that Fig. 3 provides for the embodiment of the present invention;
4th kind of schematic flow sheet of the software performance testing method that Fig. 4 provides for the embodiment of the present invention;
The first structural representation of the software performance test device that Fig. 5 provides for the embodiment of the present invention;
2nd kind of structural representation of the software performance test device that Fig. 6 provides for the embodiment of the present invention;
The third structural representation of the software performance test device that Fig. 7 provides for the embodiment of the present invention;
4th kind of structural representation of the software performance test device that Fig. 8 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that 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 other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to solve prior art problem, embodiments provide a kind of software performance testing method and device. First a kind of software performance testing method embodiment of the present invention provided below is introduced.
It should be noted that, embodiments of the invention preferably are applicable to install iOS operating system (iOS is the handheld equipment operating system developed by Apple) or the terminal of Android operation system (android system is a kind of based on the freedom of Linux and the operating system of open source code) or WindowsPhone operating system (WindowsPhone is a mobile phone operating system that Microsoft issues), certainly being also applicable to other-end, this is not construed as limiting by the present invention. And terminal is connected with server communication, terminal is provided with software to be tested, the N number of scene to be measured of described software include to be tested. Wherein, scene has been the display at interface corresponding to a series of operation of a certain function and this function, such as homepage operation, garbage-cleaning, internal memory acceleration etc.
The first schematic flow sheet of the software performance testing method that Fig. 1 provides for the embodiment of the present invention, it is possible to comprising:
S101: receive the test instruction for described software to be tested that described server sends;
Wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, and described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested;
S102: according to the testing sequence of described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively;
In actual applications, the testing sequence of test scene can be after tester installs software to be tested in the terminal, configures; Can also being that server sends in test instruction and comprises, namely tester configures the testing sequence of the scene to be measured of software to be tested in the server, is included in test instruction by testing sequence to be sent to terminal.
S103: after the data obtaining described first performance index corresponding to all scenes to be measured, obtains the data of the described secondary energy index of described software to be tested.
Exemplary, it is assumed that software to be tested is A, and it comprises 3 scenes to be measured, is respectively scene 1, scene 2, scene 3.
Assume that testing sequence is for first testing scene 1, scene 3 tested, scene 2 tested.
Then terminal is after receiving the test instruction for software A to be tested that server sends, and first for scene 1, obtains the data of the first performance index of scene 1 correspondence; Again for scene 3, obtain the data of the first performance index of scene 3 correspondence; Again for scene 2, obtain the data of the first performance index of scene 2 correspondence.
Concrete, the data obtaining performance index can call the data that the performance monitored instruction relevant to performance index built-in in terminal obtains performance index.
In actual applications, the data of the first performance index corresponding to each scene are obtained, it is possible to obtain the data of the first performance index corresponding to scene to be measured in real time; Every preset duration, the data of the first performance index corresponding to scene to be measured can also be obtained.
To obtain the data instance of the first performance index of scene 1 correspondence.
The data of the first performance index of scene 1 correspondence can be obtained in real time; Every preset duration, the data of the first performance index of scene 1 correspondence can also be obtained, such as, obtain the data of the first performance index of scene 1 correspondence every 2 seconds.
Assume that the bag of software A to be tested is called: com.android.A.
Then call the data that adbshelldumpsysmeminfocom.android.A obtains scene 1 EMS memory occupation, it is assumed that the data of acquisition are as follows:
NativeSize:10056KB, DalvikSize:7175KB, TotalSize:17231KB.
Wherein, above-mentioned adbshelldumpsys is the performance monitored instruction relevant to performance index, meminfo represents internal memory information, com.android.A is the bag name of software A to be tested, NativeSize is the internal memory used by native heap, DalvikSize is the internal memory that dalvik uses, and TotalSize is shared total amount of memory, and dalvik is the Java virtual machine for Android platform.
Owing to now only there being scene 1 to run, therefore obtain the internal memory that current software A to be tested takies and also it is the internal memory shared by scene 1
Call the data that adbshelldumpsyscpuinfocom.android.A obtains scene 1CPU utilization ratio, it is assumed that the CPU utilization ratio obtaining scene 1 is 15%.
After the data of the first performance index after obtaining 3 above-mentioned scenes, obtain the data of the secondary energy index of software A to be tested.
Concrete, call adbshelldumpsysbatterystats and it is obtained from software to be tested A working time to current time, the time of software A to be tested actual use CPU, according to the electricity consumed in obtained software A to be tested actual use time of CPU and unit time, calculate the electric quantity consumption of software A reality to be tested, wherein, the electricity consumed in unit time time * of the electric quantity consumption of software A reality to be tested=software A to be tested actual use CPU.
Under normal circumstances, the network uploading data flow of a certain application be stored in system /proc/uid_stat/ $ UID/tcp_rcv file in, web download data traffic be stored in system /proc/uid_stat/ $ UID/tcp_snd file in, wherein, $ UID represents the UID of this application correspondence.
Concrete, the UID that software is corresponding be stored in this software corresponding /proc/ $ PID/status file in, therefore, call ps | the PID of grepcom.android.A order acquisition software A to be tested, it is assumed that the value of acquisition is 10928; Calling cd/proc/10928, catstatus order obtains the UID of software A to be tested, it is assumed that obtaining value is 10006; Calling cd/proc/uid_stat/10006, cattcp_rcv obtains the uploading data flow of software A to be tested; Calling cd/proc/uid_stat/10006, cattcp_snd obtains the download data traffic of software A to be tested.
It should be noted that, above-mentioned it is described for software A to be tested, be only a specific examples of the present invention, do not form limitation of the invention.
The present invention is embodiment illustrated in fig. 1 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test.
2nd kind of schematic flow sheet of the software performance testing method that Fig. 2 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 2 on basis embodiment illustrated in fig. 1, before S102, increases S104: remove data cached for described software to be tested.
Exemplary, also it is described for above-mentioned software A to be tested.
Concrete, in actual applications, it is possible to remove all data cached to reach the data cached object of removing for software A to be tested; In actual applications, it is also possible to that only removes for software A to be tested is data cached. Removing the function of the data cached cleaning buffer memory that terminal can be utilized to carry for software A to be tested, that removes for software A to be tested is data cached; Third party can also be utilized to clear up software and to remove data cached for software A to be tested.
It should be noted that, above-mentioned it is described for software A to be tested, be only a specific examples of the present invention, do not form limitation of the invention.
The present invention is embodiment illustrated in fig. 2 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test. And before obtaining the data of software performance index, by the data cached removing of software, avoid the generation of the data cached situation affecting test result, ensure that the accuracy of test result.
The third schematic flow sheet of the software performance testing method that Fig. 3 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 1, increases following three steps,
S105: according to the data of described first performance index corresponding to the scene each to be measured obtained, whether the first performance index described in real-time judge are abnormal, if it does, perform S106;
S106: obtain the current daily record for described software to be tested and proceeding internal memory mirror image;
S107: the daily record obtained and proceeding internal memory mirror image are sent to described server, so that server shows received daily record and proceeding internal memory mirror image to user.
Exemplary, it is described for above-mentioned software A to be tested, performance index as EMS memory occupation.
Assume that the EMS memory occupation preset value for scene 1 is 15000KB; And actual scene 1 EMS memory occupation 17231KB, it is greater than preset value, represent that EMS memory occupation is abnormal, then current daily record and proceeding internal memory mirror image for software A to be tested is sent to server, daily record and proceeding internal memory mirror image for software A to be tested is shown by server to user, so that user causes the reason of EMS memory occupation abnormal problem according to daily record and proceeding internal memory mirror image analysis, and then solve the problem of EMS memory occupation exception.
In actual applications, it is also possible to when performance index are abnormal, corresponding interface carries out sectional drawing, and sectional drawing is sent to server, and sectional drawing is shown by server to user so that user can filter out the useless information in daily record fast according to sectional drawing, and quick position is to problem. Improve the speed of the problem solving EMS memory occupation exception.
In actual applications, S105, S106 and the S107 shown in the embodiment of the present invention can also increase on basis embodiment illustrated in fig. 2.
It should be noted that, above-mentioned it is described as EMS memory occupation for software A to be tested, performance index, be only a specific examples of the present invention, do not form limitation of the invention.
The present invention is embodiment illustrated in fig. 3 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test. And when performance index occur abnormal, it is possible to abnormal corresponding data upload will occur to server, and then show to user; The abnormal problem occurred according to the abnormal reason occurred of the data analysis shown, and then can be solved by user.
4th kind of schematic flow sheet of the software performance testing method that Fig. 4 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 4 on basis embodiment illustrated in fig. 1, increase S108: by least comprise described first performance index obtained data and described secondary can the data upload of index to server so that data are stored and analyze by server.
Concrete, terminal by the data upload of CPU utilization ratio, EMS memory occupation, electric quantity consumption, data traffic etc. to server, when server and multiple terminal are tested, multiple test result can be preserved by server, analysis etc., can also showing a platform to multiple user, each uses the test result that can be checked each terminal per family by this platform.
In actual applications, terminal this version of software to be tested can be sent to server.
In actual applications, it is also possible to test result is carried out contrast and shows. Such as, the test data of the Same Scene of the different editions of same software to be tested; Test data of different scenes of identical version of same software to be tested etc. Test result carries out contrast displaying can to scheme or to show in the way of table.
In actual applications, the S108 shown in the embodiment of the present invention can also increase on Fig. 2 or basis embodiment illustrated in fig. 3.
The present invention is embodiment illustrated in fig. 4 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test. And server test result data uploaded, server stores so that test result can be checked by user at any time, it is to increase the experience effect of user. And server can obtain correlation data according to test result data, correlation data is shown to user so that software to be tested is optimized by user according to comparing result, and then improve software to be tested competitive power commercially.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of software performance test device. Described application of installation is in terminal, and terminal is connected with server communication, is provided with software to be tested in terminal, the N number of scene to be measured of described software include to be tested.
The first structural representation of the software performance test device that Fig. 5 provides for the embodiment of the present invention; Can comprise: receiver module 201, first obtains module 202 and the 2nd acquisition module 203, wherein,
Receiver module 201, for receiving the test instruction for described software to be tested that described server sends, wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, and described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested;
First acquisition module 202, for the testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively;
In actual applications, the first acquisition module 202 shown in the embodiment of the present invention, specifically may be used for:
Testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to scene to be measured successively in real time;
Or the testing sequence according to described N number of scene to be measured, successively every preset duration, obtain the data of described first performance index corresponding to scene to be measured.
2nd acquisition module 203, after obtaining, first, the data that module 202 obtains described first performance index corresponding to all scenes to be measured, obtains the data of the described secondary energy index of described software to be tested.
The present invention is embodiment illustrated in fig. 5 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test.
2nd kind of structural representation of the software performance test device that Fig. 6 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 6 on basis embodiment illustrated in fig. 5, increases and removes module 204,
Remove module 204, data cached for what remove for described software to be tested.
The present invention is embodiment illustrated in fig. 6 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test. And before obtaining the data of software performance index, by the data cached removing of software, avoid the generation of the data cached situation affecting test result, ensure that the accuracy of test result.
The third structural representation of the software performance test device that Fig. 7 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 7 on basis embodiment illustrated in fig. 5, increases and judges module 205, the 3rd acquisition module 206 and sending module 207, wherein,
Judging module 205, the data of described first performance index that the scene each to be measured for obtaining is corresponding according to the first acquisition module 202, whether the first performance index described in real-time judge are abnormal;
3rd acquisition module 206, for when judging module 205 judged result for being, obtaining the current daily record for described software to be tested and proceeding internal memory mirror image;
Sending module 207, daily record and proceeding internal memory mirror image for the 3rd acquisition module 206 being obtained are sent to described server, so that server shows received daily record and proceeding internal memory mirror image to user.
In actual applications, the judgement module 205 shown in the embodiment of the present invention, the 3rd obtains module 206 and sending module 207, it is also possible to increase on basis embodiment illustrated in fig. 6.
The present invention is embodiment illustrated in fig. 7 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test. And when performance index occur abnormal, it is possible to abnormal corresponding data upload will occur to server, and then show to user; The abnormal problem occurred according to the abnormal reason occurred of the data analysis shown, and then can be solved by user.
4th kind of structural representation of the software performance test device that Fig. 8 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 8 on basis embodiment illustrated in fig. 5, transmission module 208 in increase,
Upper transmission module 208, for will at least comprise described first performance index obtained data and described secondary can the data upload of index to server so that data are stored and analyze by server.
In actual applications, the upper transmission module 208 shown in the embodiment of the present invention, it is also possible to increase on Fig. 6 or basis embodiment illustrated in fig. 7.
The present invention is embodiment illustrated in fig. 8 in application, it is not necessary to user waits that scrnario testing completes, and scene is switched; The scene to be measured contained by software package to be tested successively automatically is tested, save the participation time of user in test process, it is to increase Consumer's Experience effect, it is to increase the efficiency of software performance test. And server test result data uploaded, server stores so that test result can be checked by user at any time, it is to increase the experience effect of user. And server can obtain correlation data according to test result data, correlation data is shown to user so that software to be tested is optimized by user according to comparing result, and then software to be tested competitive power commercially can be improved.
It should be noted that, herein, the such as relational terms of first and second grades and so on is only used for separating an entity or operation with another entity or operational zone, and not necessarily requires or imply to there is any this kind of actual relation or sequentially between these entities or operation. And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, so that comprise the process of a series of key element, method, article or equipment not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise the key element intrinsic for this kind of process, method, article or equipment. When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification sheets all adopts relevant mode to describe, and what between each embodiment, identical similar part illustrated see, each embodiment emphasis mutually is the difference with other embodiments. Especially, for device embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in aforesaid method enforcement mode can be completed by the hardware that program carrys out instruction relevant, described program can be stored in computer read/write memory medium, here the alleged storage media obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only the better embodiment of the present invention, it is not intended to limit protection scope of the present invention. All do within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
Claims (10)
1. a software performance testing method, it is characterised in that, it is applied to terminal, described terminal is connected with server communication, is provided with software to be tested in described terminal, the N number of scene to be measured of described software include to be tested, and described method comprises:
Receive the test instruction for described software to be tested that described server sends, wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, and described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested;
Testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively;
After the data obtaining described first performance index corresponding to all scenes to be measured, obtain the data of the described secondary energy index of described software to be tested.
2. method according to claim 1, it is characterised in that, obtain the data of described first performance index corresponding to scene to be measured, comprising:
Obtain the data of described first performance index corresponding to scene to be measured in real time;
Or every preset duration, obtain the data of described first performance index corresponding to scene to be measured.
3. method according to claim 1, it is characterised in that, in the described testing sequence according to described N number of scene to be measured, before obtaining the data of described first performance index corresponding to each scene to be measured successively, described method also comprises:
Remove data cached for described software to be tested.
4. method according to claim 1, it is characterised in that, described method also comprises:
Data according to described first performance index corresponding to the scene each to be measured obtained, whether the first performance index described in real-time judge are abnormal;
If it does, obtain the current daily record for described software to be tested and proceeding internal memory mirror image;
The daily record obtained and proceeding internal memory mirror image are sent to described server, so that server shows received daily record and proceeding internal memory mirror image to user.
5. method according to Claims 1-4 any one, it is characterised in that, described method also comprises:
By at least comprise described first performance index obtained data and described secondary can the data upload of index to server so that data are stored and analyze by server.
6. a software performance test device, it is characterized in that, it is applied to terminal, described terminal is connected with server communication, being provided with software to be tested in described terminal, the N number of scene to be measured of described software include to be tested, described device comprises: receiver module, the first acquisition module and the 2nd acquisition module, wherein
Described receiver module, for receiving the test instruction for described software to be tested that described server sends, wherein, described test instruction at least comprises the first performance index to be monitored and secondary energy index to be monitored, described first performance index comprise CPU utilization ratio and/or EMS memory occupation, and described secondary energy index comprises electric quantity consumption and/or the data traffic of software to be tested;
Described first acquisition module, for the testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to each scene to be measured successively;
Described 2nd acquisition module, after the data for described first performance index corresponding in the described first acquisition all scenes to be measured of module acquisition, obtains the data of the described secondary energy index of described software to be tested.
7. device according to claim 6, it is characterised in that, described first acquisition module, specifically for:
Testing sequence according to described N number of scene to be measured, obtains the data of described first performance index corresponding to scene to be measured successively in real time;
Or the testing sequence according to described N number of scene to be measured, successively every preset duration, obtain the data of described first performance index corresponding to scene to be measured.
8. device according to claim 6, it is characterised in that, described device also comprises: remove module,
Described removing module, data cached for what remove for described software to be tested.
9. device according to claim 6, it is characterised in that, described device also comprises: judge module, the 3rd acquisition module and sending module, wherein,
Described judgement module, the data of described first performance index that the scene each to be measured for obtaining according to described first acquisition module is corresponding, whether the first performance index described in real-time judge are abnormal;
Described 3rd acquisition module, for when described judgement module judged result is for being, obtaining the current daily record for described software to be tested and proceeding internal memory mirror image;
Described sending module, daily record and proceeding internal memory mirror image for described 3rd acquisition module being obtained are sent to described server, so that server shows received daily record and proceeding internal memory mirror image to user.
10. device according to claim 6 to 9 any one, it is characterised in that, described device also comprises: upper transmission module,
Described upper transmission module, for will at least comprise described first performance index obtained data and described secondary can the data upload of index to server so that data are stored and analyze by server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511017817.0A CN105653451A (en) | 2015-12-29 | 2015-12-29 | Software performance testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511017817.0A CN105653451A (en) | 2015-12-29 | 2015-12-29 | Software performance testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105653451A true CN105653451A (en) | 2016-06-08 |
Family
ID=56477369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511017817.0A Pending CN105653451A (en) | 2015-12-29 | 2015-12-29 | Software performance testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653451A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776330A (en) * | 2016-12-26 | 2017-05-31 | 北京金山安全软件有限公司 | Application testing method and device and electronic equipment |
CN107145447A (en) * | 2017-05-09 | 2017-09-08 | 网易(杭州)网络有限公司 | Detect method, device and the electronic equipment of memory overflow |
CN107888550A (en) * | 2016-09-30 | 2018-04-06 | 腾讯科技(深圳)有限公司 | Performance indications collecting method and device, tactful sending method and device |
WO2018120720A1 (en) * | 2016-12-30 | 2018-07-05 | 上海壹账通金融科技有限公司 | Method for locating test error of client program, electronic device, and storage medium |
CN110098978A (en) * | 2019-04-12 | 2019-08-06 | 网宿科技股份有限公司 | A kind of test method, device and the network equipment of DNS scheduling |
CN113157593A (en) * | 2021-05-24 | 2021-07-23 | 网易(杭州)网络有限公司 | Performance data acquisition method, device, system, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060129870A1 (en) * | 2004-11-29 | 2006-06-15 | Microsoft Corporation | Reliability testing of software modules |
CN102819466A (en) * | 2012-06-29 | 2012-12-12 | 华为技术有限公司 | Method and device for processing operating system exceptions |
CN103425577A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Test method and device |
CN104166619A (en) * | 2013-05-20 | 2014-11-26 | 腾讯科技(深圳)有限公司 | Performance measuring method and terminal of application program |
CN104317709A (en) * | 2014-10-21 | 2015-01-28 | 工业和信息化部电子第五研究所 | Method and system for testing performance of software |
CN105045707A (en) * | 2015-07-24 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Python-based server stability test method |
-
2015
- 2015-12-29 CN CN201511017817.0A patent/CN105653451A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060129870A1 (en) * | 2004-11-29 | 2006-06-15 | Microsoft Corporation | Reliability testing of software modules |
CN103425577A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Test method and device |
CN102819466A (en) * | 2012-06-29 | 2012-12-12 | 华为技术有限公司 | Method and device for processing operating system exceptions |
CN104166619A (en) * | 2013-05-20 | 2014-11-26 | 腾讯科技(深圳)有限公司 | Performance measuring method and terminal of application program |
CN104317709A (en) * | 2014-10-21 | 2015-01-28 | 工业和信息化部电子第五研究所 | Method and system for testing performance of software |
CN105045707A (en) * | 2015-07-24 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Python-based server stability test method |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888550A (en) * | 2016-09-30 | 2018-04-06 | 腾讯科技(深圳)有限公司 | Performance indications collecting method and device, tactful sending method and device |
CN107888550B (en) * | 2016-09-30 | 2021-06-01 | 腾讯科技(深圳)有限公司 | Performance index data acquisition method and device and strategy sending method and device |
CN106776330A (en) * | 2016-12-26 | 2017-05-31 | 北京金山安全软件有限公司 | Application testing method and device and electronic equipment |
WO2018120720A1 (en) * | 2016-12-30 | 2018-07-05 | 上海壹账通金融科技有限公司 | Method for locating test error of client program, electronic device, and storage medium |
CN107145447A (en) * | 2017-05-09 | 2017-09-08 | 网易(杭州)网络有限公司 | Detect method, device and the electronic equipment of memory overflow |
CN110098978A (en) * | 2019-04-12 | 2019-08-06 | 网宿科技股份有限公司 | A kind of test method, device and the network equipment of DNS scheduling |
CN110098978B (en) * | 2019-04-12 | 2021-02-26 | 网宿科技股份有限公司 | DNS scheduling test method and device, network equipment and storage medium |
CN113157593A (en) * | 2021-05-24 | 2021-07-23 | 网易(杭州)网络有限公司 | Performance data acquisition method, device, system, electronic equipment and storage medium |
CN113157593B (en) * | 2021-05-24 | 2024-05-10 | 网易(杭州)网络有限公司 | Performance data acquisition method, device, system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105653451A (en) | Software performance testing method and device | |
CN102708050B (en) | Method and system for testing mobile application | |
CN104765678A (en) | Method and device for testing applications on mobile terminal | |
CN107294808A (en) | The methods, devices and systems of interface testing | |
CN105955862A (en) | Abnormal problem monitoring positioning method and device | |
CN102761856B (en) | Terminal room shares the methods, devices and systems of software | |
EP3547236A1 (en) | Method and device for calculating household appliance faults | |
CN107038120B (en) | Software testing method and device | |
CN104360921A (en) | Method, device and system for monitoring performance of mobile terminal | |
CN102799522A (en) | Managing method and system for software version tracing test | |
CN104298602A (en) | Method and device for debugging application program | |
CN104954431A (en) | Network selection method, device and system | |
CN104601401A (en) | Detection method, device and system of cloud control household appliances | |
CN103246606A (en) | Method and system for testing performances of ESB (enterprises service bus) platform | |
CN103024540A (en) | Method for collecting network activation information of intelligent television | |
CN113852426A (en) | Remote testing method, device and system | |
CN104717670A (en) | Business quality testing method, device and system | |
CN111190875A (en) | Log aggregation method and device based on container platform | |
CN102595455B (en) | Method and device for managing test module in automatic road test system | |
CN102480722B (en) | Sucking fee terminal identification method, apparatus and system thereof | |
CN104049983A (en) | Information update promoting method, information update promoting device and electronic equipment | |
CN110401549A (en) | Internet user complains scene retrogressive method, apparatus and system | |
CN110134607A (en) | A kind of app automated testing method and device | |
CN104320310A (en) | Broadband network speed measurement system | |
CN109960657A (en) | A kind of test environment dispositions method and relevant apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160608 |