CN103778054A - Application program pressure measuring method and pressure measuring device - Google Patents
Application program pressure measuring method and pressure measuring device Download PDFInfo
- Publication number
- CN103778054A CN103778054A CN201210400919.0A CN201210400919A CN103778054A CN 103778054 A CN103778054 A CN 103778054A CN 201210400919 A CN201210400919 A CN 201210400919A CN 103778054 A CN103778054 A CN 103778054A
- Authority
- CN
- China
- Prior art keywords
- application program
- described application
- status information
- clicking operation
- clicked
- 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
Images
Abstract
The invention provides an application program pressure measuring method and a pressure measuring device. The pressure measuring method comprises judging whether a measured application program is started or not, closing the application program and restarting to execute if the application program is started; starting the application program if the application program is not started; generating into simulated click operation of the application program randomly and monitoring state information of the application program and ending a measuring process if the application program is exited. The application program pressure measuring method and the pressure measuring device can simulate various click operation and effectively measure pressure of the application program.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method for testing pressure and pressure test device of application program.
Background technology
Application program is computer operating system, for example important composition of Windows operating system part, and its normal need of work computer memory device and operating system are carried out cooperation, rational management.When pressure is larger, when namely application programs is carried out various clicking operation, more easily there is mistake in application program, so by the actual operating environment of simulation, application programs is carried out pressure test and just seemed very important.
In prior art, also there is no the instrument that can application programs carries out pressure test, can not well simulate actual clicking operation, now, just solve the problems referred to above in the urgent need to a kind of pressure test instrument that can simulate various clicking operation.
Summary of the invention
The technical problem to be solved in the present invention is, for above-mentioned defect, how to provide a kind of method for testing pressure and pressure test device of application program, and it can simulate various clicking operation, and application programs is carried out pressure test effectively.
For solving the problems of the technologies described above, the invention provides a kind of method for testing pressure of application program, comprising:
Judge whether tested application program starts, if described application program starts, will after described closing application program, restart execution; Otherwise, start described application program;
Before described application program exits, generate at random the simulation clicking operation to described application program and monitor the status information of described application program, if described application program exits, finish testing process.
The present invention also provides a kind of pressure test device of application program, comprising:
Application program launching unit, for judging whether tested application program starts, if described application program starts, will restart execution after described closing application program; Otherwise, start described application program;
Operation generation unit, be used for according to the startup result of application program launching unit, before described application program exits, generate at random the simulation clicking operation to described application program and monitor the status information of described application program, if described application program exits, finish testing process.
The invention discloses a kind of method for testing pressure and pressure test device of application program, utilize method for testing pressure and the pressure test device of application program of the present invention, by starting application program; Generate at random the simulation clicking operation to described application program and monitor the status information of described application program; Described application program exits rear process ends, can simulate various clicking operation, and application programs is carried out pressure test effectively.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for testing pressure of the application program described in the embodiment of the present invention;
Fig. 2 is the structural representation of the pressure test device of the application program described in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
Referring to Fig. 1, the invention provides a kind of method for testing pressure of application program, comprise step:
A, judge whether tested application program starts, if described application program starts, will after described closing application program, restart execution; Otherwise, start described application program;
B, before described application program exits, generate at random the simulation clicking operation to described application program and monitor the status information of described application program, if described application program exits, finish testing process.
This step can be similar to and in operating system, start two threads, and one generates the simulation clicking operation to described application program at random, and another monitors the status information of described application program; Simulation clicking operation can be simulated clicking operation in key area according to the requirement of tested application program;
Preferably, described simulation clicking operation specifically comprises: simulation is Metro style at Windows8() gesture and the upper desktop mouse clicking operation of Windows on flat board, for example left mouse button is clicked, clicked by mouse right button, left mouse button is long slides or the double-click of mouse right and left key by, left mouse button.
Preferably, the status information of described application program specifically comprises: the CPU usage of described application program or EMS memory occupation amount.
Preferably, after generating at random the simulation clicking operation of described application program, further comprise:
Record the status information of described simulation clicking operation.
Preferably, the status information of described simulation clicking operation comprises: step content and the time of described simulation clicking operation.
Preferably, monitoring described application program status information after after, further comprise step:
Record the status information of described application program.
Preferably, after finishing testing process, further comprise step:
Obtain the error message of described application program.
Referring to Fig. 2, the present invention also provides a kind of pressure test device of application program, comprising:
Application program launching unit 100, for judging whether tested application program starts, if described application program starts, will restart execution after described closing application program; Otherwise, start described application program;
Operation generation unit 200, be used for according to the startup result of application program launching unit 100, before described application program exits, generate at random the simulation clicking operation to described application program and monitor the status information of described application program, if described application program exits, finish testing process.
Above-mentioned unit can be realized based on existing AutoIT technology, AutoIT is a freeware that uses similar BASIC script, it is designed in Windows GUI (graphic user interface) carries out automation mechanized operation, it utilizes keyboard button simulating, and mouse moves and the combination of window/control realizes automation mechanized operation.
Preferably, described simulation clicking operation specifically comprises: left mouse button is clicked, is clicked by mouse right button, left mouse button long by, left mouse button slides or mouse right and left key is double-clicked.
Preferably, the status information of described application program specifically comprises: the CPU usage of described application program or EMS memory occupation amount.
Preferably, further comprise:
Operation note unit 300 is clicked in simulation, for recording the status information of described simulation clicking operation.
Preferably, the status information of described simulation clicking operation comprises: step content and the time of described simulation clicking operation.
Preferably, further comprise:
Application records unit 400, for recording the status information of described application program.
Preferably, further comprise:
Error message acquiring unit 500, for obtaining the error message of described application program.
In sum, the invention discloses a kind of method for testing pressure and pressure test device of application program, utilize method for testing pressure and the pressure test device of application program of the present invention, by starting application program; Generate at random the simulation clicking operation to described application program and monitor the status information of described application program; Described application program exits rear process ends, can simulate various clicking operation, and application programs is carried out pressure test effectively.
The kind of pick-up unit of the present invention is not particularly limited, and can realize the various pick-up units of function of the present invention all within the scope of the invention.
The present invention is not limited to the above mode; no matter do any variation in its shape or structure, within the technical scheme that every utilization generates at random the simulation clicking operation to described application program and monitors the status information of described application program all drops on protection domain of the present invention.
Above embodiment is only for illustrating the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (14)
1. a method for testing pressure for application program, is characterized in that, comprising:
Judge whether tested application program starts, if described application program starts, will after described closing application program, restart execution; Otherwise, start described application program;
Before described application program exits, generate at random the simulation clicking operation to described application program and monitor the status information of described application program, if described application program exits, finish testing process.
2. method for testing pressure according to claim 1, is characterized in that, after generating at random the simulation clicking operation of described application program, further comprises:
Record the status information of described simulation clicking operation.
3. method for testing pressure according to claim 2, is characterized in that, the status information of described simulation clicking operation comprises: step content and the time of described simulation clicking operation.
4. method for testing pressure according to claim 1, is characterized in that, after the status information of the described application program of monitoring, further comprises:
Record the status information of described application program.
5. method for testing pressure according to claim 1, is characterized in that, after finishing testing process, further comprises:
Obtain the error message of described application program.
6. according to the method for testing pressure described in any one in claim 1-5, it is characterized in that, described simulation clicking operation specifically comprises: left mouse button is clicked, is clicked by mouse right button, left mouse button long by, left mouse button slides or mouse right and left key is double-clicked.
7. according to the method for testing pressure described in any one in claim 1-5, it is characterized in that, the status information of described application program specifically comprises: the CPU usage of described application program or EMS memory occupation amount.
8. a pressure test device for application program, is characterized in that, comprising:
Application program launching unit, for judging whether tested application program starts, if described application program starts, will restart execution after described closing application program; Otherwise, start described application program;
Operation generation unit, be used for according to the startup result of application program launching unit, before described application program exits, generate at random the simulation clicking operation to described application program and monitor the status information of described application program, if described application program exits, finish testing process.
9. pressure test device according to claim 8, is characterized in that, further comprises:
Operation note unit is clicked in simulation, for recording the status information of described simulation clicking operation.
10. pressure test device according to claim 9, is characterized in that, the status information of described simulation clicking operation comprises: step content and the time of described simulation clicking operation.
11. pressure test devices according to claim 8, is characterized in that, further comprise:
Application records unit, for recording the status information of described application program.
12. pressure test devices according to claim 8, is characterized in that, further comprise:
Error message acquiring unit, for obtaining the error message of described application program.
Pressure test device in 13. according to Claim 8-12 described in any one, is characterized in that, described simulation clicking operation specifically comprises: left mouse button is clicked, is clicked by mouse right button, left mouse button long by, left mouse button slides or mouse right and left key is double-clicked.
Pressure test device in 14. according to Claim 8-12 described in any one, is characterized in that, the status information of described application program specifically comprises: the CPU usage of described application program or EMS memory occupation amount.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210400919.0A CN103778054A (en) | 2012-10-19 | 2012-10-19 | Application program pressure measuring method and pressure measuring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210400919.0A CN103778054A (en) | 2012-10-19 | 2012-10-19 | Application program pressure measuring method and pressure measuring device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103778054A true CN103778054A (en) | 2014-05-07 |
Family
ID=50570315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210400919.0A Pending CN103778054A (en) | 2012-10-19 | 2012-10-19 | Application program pressure measuring method and pressure measuring device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103778054A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105700979A (en) * | 2016-01-12 | 2016-06-22 | 浪潮电子信息产业股份有限公司 | CPU pressure test automatic test method |
CN106339314A (en) * | 2016-08-12 | 2017-01-18 | 北京奇虎科技有限公司 | Application living testing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184001A (en) * | 2007-12-14 | 2008-05-21 | 北京金山软件有限公司 | Network server pressure testing method and system |
CN101211311A (en) * | 2006-12-25 | 2008-07-02 | 中国电信股份有限公司 | Performance prediction method for application software in manufacturing environment |
US20100100767A1 (en) * | 2008-10-22 | 2010-04-22 | Huan Liu | Automatically connecting remote network equipment through a graphical user interface |
CN102236598A (en) * | 2010-05-07 | 2011-11-09 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
-
2012
- 2012-10-19 CN CN201210400919.0A patent/CN103778054A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211311A (en) * | 2006-12-25 | 2008-07-02 | 中国电信股份有限公司 | Performance prediction method for application software in manufacturing environment |
CN101184001A (en) * | 2007-12-14 | 2008-05-21 | 北京金山软件有限公司 | Network server pressure testing method and system |
US20100100767A1 (en) * | 2008-10-22 | 2010-04-22 | Huan Liu | Automatically connecting remote network equipment through a graphical user interface |
CN102236598A (en) * | 2010-05-07 | 2011-11-09 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105700979A (en) * | 2016-01-12 | 2016-06-22 | 浪潮电子信息产业股份有限公司 | CPU pressure test automatic test method |
CN106339314A (en) * | 2016-08-12 | 2017-01-18 | 北京奇虎科技有限公司 | Application living testing method and device |
CN106339314B (en) * | 2016-08-12 | 2019-05-31 | 北京奇虎科技有限公司 | A kind of the survival test method and device of application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8793578B2 (en) | Automating execution of arbitrary graphical interface applications | |
CN109840207B (en) | AutoSAR-based network management automation test system and test method | |
US9619367B1 (en) | Object monitoring in code debugging | |
CN102568522B (en) | The method of testing of hard disk performance and device | |
CN104484274B (en) | A kind of internal memory taking turn audit function method of testing based on ITP instruments | |
US10176078B1 (en) | Debugging process | |
US9239773B1 (en) | Method and system for debugging a program that includes declarative code and procedural code | |
US8291388B2 (en) | System, method and program for executing a debugger | |
CN103838663A (en) | Application testing method and device | |
CN103268289B (en) | Record the method and system of application testing script on mobile terminals | |
US8996928B2 (en) | Devices for indicating a physical layer error | |
CN104035867A (en) | Android-based application function traverse test method | |
TW201514686A (en) | Method and system for automated test and result comparison | |
CN103365643A (en) | Method and device for automatically generating testing script of graphical user interface | |
US10698805B1 (en) | Method and system for profiling performance of a system on chip | |
CN104268076A (en) | Memory bandwidth automatically testing method applicable to various processor platforms | |
CN102981949A (en) | Method for on-line automatic tests of server | |
US20140082420A1 (en) | Automated program testing to facilitate recreation of test failure | |
CN114281624A (en) | Method, system, device and equipment for testing I2C signal integrity | |
CN103778054A (en) | Application program pressure measuring method and pressure measuring device | |
US10579761B1 (en) | Method and system for reconstructing a graph presentation of a previously executed verification test | |
US8566074B2 (en) | Mapping between stress-test systems and real world systems | |
US9860155B1 (en) | Code coverage and data analysis | |
CN102279797A (en) | Method and system for detecting memory leakage | |
US20120284564A1 (en) | Topology Independent Network-Based Automation Infrastructure |
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: 20140507 |