CN107608856A - A kind of monitoring method of test process, device, computer-readable recording medium - Google Patents
A kind of monitoring method of test process, device, computer-readable recording medium Download PDFInfo
- Publication number
- CN107608856A CN107608856A CN201710867663.7A CN201710867663A CN107608856A CN 107608856 A CN107608856 A CN 107608856A CN 201710867663 A CN201710867663 A CN 201710867663A CN 107608856 A CN107608856 A CN 107608856A
- Authority
- CN
- China
- Prior art keywords
- test
- testing time
- presumptive
- testing
- monitoring method
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of monitoring method of test process, including preset the testing time used in completion presumptive test;Timing is carried out when presumptive test starts;When reaching the testing time, judge whether complete presumptive test within the testing time;If it is not, then stop with testing the Virtual User process associated.As can be seen here, monitoring method provided by the present invention, can be to presetting the testing time used in completion presumptive test, timing is carried out when starting test to presumptive test, when reaching the testing time set in advance, judges whether complete presumptive test within the testing time, if do not complete, with regard to stopping with testing the Virtual User process associated, and then the phenomenon for occurring program endless loop in test process can be avoided, improve testing efficiency and Security of test.In addition, present invention also offers a kind of supervising device of test process, computer-readable recording medium, effect is as above.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of monitoring method of test process, device, computer can
Read storage medium.
Background technology
LoadRunner is a kind of testing tool of forecasting system behavior and the load of performance.It is commonly used to verify that certain system is
It is no to meet performance requirement and capable of supporting several protocols, concurrent operations can be implemented by simulating a large number of users and monitored in real time
Mode confirms that certain system whether there is problem, i.e., whether relevant performance indications are normal, and so-called concurrent operations refer to for the moment
Between may there are multiple users to be written and read operation to same data, if through test the system it is below standard, test can be passed through
How data analysis research reaches performance indications requirement, can be by test data to system if up to standard by testing
Being adjusted is optimal systematic function.
LoadRunner is packaged as criticizing by creating Virtual User, simulation real load, by such scrnario testing file
Processing routine, the process for performing these programs is exactly the test one by one to scene, and allows scrnario testing uninterruptedly to perform automatically, but
It is that current LoadRunner is when carrying out scrnario testing, often in scrnario testing automatic running because some reasons cause to surpass
Spend the predetermined testing time or scene spilling occur, that is, retreat to the region outside scene, or even program endless loop occurs
Phenomenon so that scrnario testing can not continue executing with.
As can be seen here, how to overcome caused testing efficiency when being tested using LoadRunner software low, survey
It is those skilled in the art's urgent problem to be solved to try the problem of security is low.
The content of the invention
The embodiment of the present application provides a kind of monitoring method of test process, device, computer-readable recording medium, with solution
Caused testing efficiency is low when certainly being tested in the prior art using LoadRunner software, and Security of test is low to ask
Topic.
In order to solve the above technical problems, the invention provides a kind of monitoring method of test process, including:
Preset the testing time used in completion presumptive test;
Timing is carried out when the presumptive test starts;
When reaching the testing time, judge the presumptive test whether is completed within the testing time;
If it is not, then stop testing the Virtual User process associated with described.
Preferably, in addition to:When not completing the presumptive test within the testing time, by buzzer and/or
Indicator light alarm is prompted.
Preferably, in addition to:
When not completing the presumptive test within the testing time, the test process of the presumptive test is obtained;
The test speed of the test process is calculated according to the test process and the testing time;
The testing time needed for the remaining process of the presumptive test is calculated according to the test speed.
Preferably, the test is tested specifically by LoadRunner.
In order to solve the above technical problems, present invention also offers a kind of device corresponding with the monitoring method of test process,
Including:
Setup unit, for presetting the testing time used in completion presumptive test;
Timing unit, for carrying out timing when the presumptive test starts;
Judging unit, it is described pre- for when reaching the testing time, judging whether to complete within the testing time
Location survey tries, if it is not, then triggering stop element;
The stop element, for stopping testing the Virtual User process associated with described.
Preferably, in addition to:
Alarm unit, for when the test that program corresponding with the testing time is not completed within the testing time
When, prompted by buzzer and/or indicator light alarm.
Preferably, in addition to:
Acquiring unit, for when not completing the presumptive test within the testing time, obtaining the presumptive test
Test process;
First computing unit, for calculating the test of the test process according to the test process and the testing time
Speed;
Second computing unit, for calculating the test needed for the remaining process of the presumptive test according to the test speed
Time.
Preferably, the test is tested especially by LoadRunner.
In order to solve the above technical problems, present invention also offers another dress corresponding with the monitoring method of test process
Put, including:
Memory, for storing computer program;
Processor, for performing the step of computer program is to realize the monitoring method of above-mentioned test process.
In order to solve the above technical problems, present invention also offers a kind of a kind of meter corresponding with the monitoring method of test process
Calculation machine readable storage medium storing program for executing.
Be stored with computer program on the computer-readable recording medium, the computer program be executed by processor with
The step of realizing the monitoring method of above-mentioned test process.
Compared to prior art, a kind of monitoring method of test process provided by the present invention, including preset completion
Testing time used in presumptive test;Timing is carried out when presumptive test starts;When reaching the testing time, judge in test
It is interior whether to complete presumptive test;If it is not, then stop with testing the Virtual User process associated.As can be seen here, institute of the present invention
The monitoring method of offer, testing time used in presumptive test can be completed to presetting, when starting to test to presumptive test
Shi Jinhang timing, when reaching the testing time set in advance, judge whether complete presumptive test within the testing time, if
Do not complete, just stop with testing the Virtual User process associated, and then can avoid occurring program endless loop in test process
Phenomenon, improve testing efficiency and Security of test.In addition, present invention also offers a kind of supervising device of test process,
Computer-readable recording medium, effect is as above.
Brief description of the drawings
The monitoring method flow chart for the test process that Fig. 1 is provided by the embodiment of the present invention;
A kind of supervising device composition schematic diagram for test process that Fig. 2 is provided by the embodiment of the present invention;
The supervising device composition schematic diagram for another test process that Fig. 3 is provided by the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained all other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The core of the present invention is to provide the monitoring method of test process, device, computer-readable recording medium, can solve
The problem of caused testing efficiency is low during software test, and Security of test is low.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
The monitoring method flow chart for the test process that Fig. 1 is provided by the embodiment of the present invention, as shown in figure 1, including following
Step:
S101:Preset the testing time used in completion presumptive test.
Before product export, the relative program of the modules in the product is repeatedly tested, finally obtains and holds
The average time of time used in the program of each module of row, and using the average time as setting in advance in actual application
The fixed testing time, that is, preset the testing time completed used in presumptive test.
S102:Timing is carried out when presumptive test starts.
S103:When reaching the testing time, judge whether complete presumptive test within the testing time.
Carry out timing when starting and performing presumptive test, if, set before performed testing time of presumptive test as
10 seconds, that timing since 0 second when starting to perform presumptive test, count always by 10 seconds, at this moment just reached the testing time, survey
It is 10 seconds simply examples to try the time, and during actual test, the testing time, which differs, to be set to 10 seconds, it is necessary to according to actual feelings
Condition is set, and certainly, the setting of testing time can't influence the realization of the embodiment of the present application.
When reaching the testing time set before, judge whether complete presumptive test within the testing time, for example, in advance
The testing time first set should complete tests of the A to B section programs as 10 seconds in this 10 seconds, and this is ideal situation, such as
Fruit is during actual test, at the end of timing in 10 seconds, also completes tests of the A to B section programs, at this moment just illustrates in the test
Presumptive test is completed in time, if at the end of timing in 10 seconds, having only completed tests of the A to B1 section programs, B1 is located in A, B
Between a certain position, at this moment just explanation within the testing time do not complete presumptive test;During actual test, set in advance
Presumptive test is not completed in the fixed testing time, there is a lot of reasons, such as network congestion, IP address conflict.
S104:If it is not, then stop with testing the Virtual User process associated.
When not completing presumptive test within the testing time set in advance, at this moment just stop by force with testing the void associated
Intend consumer process, be to stop with testing the Virtual User process associated, that is, stopping by force by program in the embodiment of the present application
All Virtual User processes associated with the test, scene spilling or the phenomenon of program endless loop can be thus prevented,
Avoid the problem of follow-up test can not continue executing with, it is also ensured that the automatic progress tested in the case of unattended,
Improve testing efficiency.
A kind of monitoring method of test process provided by the present invention, including preset the survey used in completion presumptive test
Try the time;Timing is carried out when presumptive test starts;When reaching the testing time, judge whether complete to make a reservation within the testing time
Test;If it is not, then stop with testing the Virtual User process associated.This method, presumptive test can be completed to presetting
Testing time used, timing is carried out when starting test to presumptive test, when reaching the testing time set in advance, judged
Whether presumptive test is completed within the testing time, if do not completed, just stopped with testing the Virtual User process associated, and then
The phenomenon for occurring program endless loop in test process can be avoided, improves testing efficiency and Security of test.
On the basis of above-described embodiment, preferably embodiment, in addition to:
When not completing presumptive test within the testing time, prompted by buzzer and/or indicator light alarm.
When not completing presumptive test within the testing time set in advance, buzzer and/or instruction at this moment can be passed through
Lamp alarm, relevant staff can be reminded by the step, facilitate staff to take measures in time.
On the basis of above-described embodiment, preferably embodiment, in addition to:
When not completing presumptive test within the testing time, the test process of presumptive test is obtained;
The test speed of test process is calculated according to test process and testing time;
The testing time needed for the remaining process of presumptive test is calculated according to test speed.
Preferably embodiment, when not completing presumptive test within the testing time set in advance, obtain predetermined
The test process of test, then foundation test process and testing time calculate the test speed of test process, last according to calculating
The test speed gone out calculates the testing time needed for the remaining process of presumptive test, and it is complete that so final can calculates execution
Time needed for individual presumptive test, if repeatedly test can all appear in unfinished presumptive test in the testing time set in advance
Situation, it is possible to be that testing time set in advance is inaccurate, the step can facilitate the later stage to check.
On the basis of above-described embodiment, preferably embodiment, tests and is carried out specifically by LoadRunner
Test.
LoadRunner is a kind of testing tool of forecasting system behavior and the load of performance.It is commonly used to verify that certain system is
It is no to meet performance requirement and capable of supporting several protocols, concurrent operations can be implemented by simulating a large number of users and monitored in real time
Mode confirms that certain system whether there is problem, i.e., whether relevant performance indications are normal, and so-called concurrent operations refer to for the moment
Between may have multiple users that same data are written and read with operation, LoadRunner is true negative by creating Virtual User, simulation
Carry, such scrnario testing file is packaged as batch program, the process for performing these programs is exactly the survey one by one to scene
Examination, and scrnario testing can be allowed uninterruptedly to perform automatically, it is to be understood that except LoadRunner can also be other symbols
The testing tool of conjunction condition, choose LoadRunner and tested a kind of simply preferably mode, do not represent only this one kind
Mode, certainly, the selection of testing tool can't influence the realization of the embodiment of the present application.
It is described in detail above for the embodiment of the monitoring method of test process, is described based on above-described embodiment
Test process monitoring method, the embodiment of the present invention additionally provide a kind of test process corresponding with this method monitoring dress
Put.Because the embodiment of device part and the embodiment of method part are mutually corresponding, therefore the embodiment of device part refer to
The embodiment description of method part, is no longer described in detail here.
A kind of supervising device composition schematic diagram for test process that Fig. 2 is provided by the embodiment of the present invention, as shown in Fig. 2
Including:Setup unit 201, timing unit 202, judging unit 203, stop element 204.
Setup unit 201, for presetting the testing time used in completion presumptive test;
Timing unit 202, for carrying out timing when presumptive test starts;
Judging unit 203, for when reaching the testing time, judging presumptive test whether is completed within the testing time, such as
Fruit is no, then triggers stop element 204;
Stop element 204, for the Virtual User process for stopping and testing to associate.
The supervising device of a kind of test process provided by the present invention, when presetting the test used in completion presumptive test
Between;Then timing is carried out when presumptive test starts;Finally when reaching the testing time, judge whether completed within the testing time
Presumptive test;If it is not, then stop with testing the Virtual User process associated.As can be seen here, monitoring dress provided by the present invention
Put, timing can be carried out when starting test to presumptive test to presetting the testing time used in completion presumptive test, when
When reaching the testing time set in advance, judge whether complete presumptive test within the testing time, if do not completed, just stop
With testing the Virtual User process associated, and then the phenomenon for occurring program endless loop in test process can be avoided, improved
Testing efficiency and Security of test.
On the basis of above-described embodiment, preferably embodiment, in addition to:
Alarm unit, for when not completing the test of program corresponding with the testing time within the testing time, passing through honeybee
Ring device and/or indicator light alarm prompting.
On the basis of above-described embodiment, preferably embodiment, in addition to:
Acquiring unit, for when not completing presumptive test within the testing time, obtaining the test process of presumptive test;
First computing unit, for calculating the test speed of test process according to test process and testing time;
Second computing unit, for calculating the testing time needed for the remaining process of presumptive test according to test speed.
On the basis of above-described embodiment, preferably embodiment, tests and is surveyed especially by LoadRunner
Examination.
The embodiment of monitoring method and device above for test process is described in detail, the embodiment of the present invention
Additionally provide a kind of supervising device of test process corresponding with the monitoring method.Embodiment and method portion due to device part
The embodiment divided is mutually corresponding, therefore the embodiment of device part refer to the embodiment description of method part, no longer detailed here
Carefully repeat.
The supervising device composition schematic diagram for another test process that Fig. 3 is provided by the embodiment of the present invention, such as Fig. 3 institutes
Show, including:
Memory 301, for storing computer program;
Processor 302, the step of for performing computer program to realize the monitoring method of test process.
A kind of supervising device of test process provided by the present invention, it can be completed to presetting used in presumptive test
Testing time, timing is carried out when starting test to presumptive test, when reaching the testing time set in advance, is judged in the survey
Whether presumptive test is completed in the examination time, if do not completed, just stopped with testing the Virtual User process associated, and then can keep away
Exempt from the phenomenon for occurring program endless loop in test process, improve testing efficiency and Security of test.
In order that those skilled in the art is better understood from the technical scheme that the embodiment of the present invention is provided, the present invention is also
A kind of computer-readable recording medium corresponding with the monitoring method embodiment of above-mentioned test process is provided, because computer can
It is mutually corresponding to read embodiment and the embodiment of monitoring method part of storage medium part, therefore computer-readable recording medium portion
The embodiment divided refer to the embodiment description of monitoring method part, and in this not go into detail.
A kind of computer-readable recording medium, computer program, computer journey are stored with computer-readable recording medium
The step of sequence is executed by processor to realize the monitoring method of test process.
A kind of computer-readable recording medium provided by the present invention, it can be completed to presetting used in presumptive test
Testing time, timing is carried out when starting test to presumptive test, when reaching the testing time set in advance, is judged in the survey
Whether presumptive test is completed in the examination time, if do not completed, just stopped with testing the Virtual User process associated, and then can keep away
Exempt from the phenomenon for occurring program endless loop in test process, improve testing efficiency and Security of test.
A kind of monitoring method of test process provided by the present invention, device, computer-readable recording medium are entered above
Go and be discussed in detail.The principle and embodiment of the present invention are set forth with several examples herein, above example
Explanation, be only intended to help understand the present invention method and its core concept;Meanwhile for the general technology people of this area
Member, according to the thought of the present invention, there will be changes in specific embodiments and applications, in summary, this explanation
Book content should not be construed as limiting the invention, those skilled in the art, on the premise of no creative work, to this hair
Bright made modification, equivalent substitution, improvement etc., should be included in the application.
Claims (10)
- A kind of 1. monitoring method of test process, it is characterised in that including:Preset the testing time used in completion presumptive test;Timing is carried out when the presumptive test starts;When reaching the testing time, judge the presumptive test whether is completed within the testing time;If it is not, then stop testing the Virtual User process associated with described.
- 2. monitoring method according to claim 1, it is characterised in that also include:When not completing the presumptive test within the testing time, prompted by buzzer and/or indicator light alarm.
- 3. monitoring method according to claim 1, it is characterised in that also include:When not completing the presumptive test within the testing time, the test process of the presumptive test is obtained;The test speed of the test process is calculated according to the test process and the testing time;The testing time needed for the remaining process of the presumptive test is calculated according to the test speed.
- 4. monitoring method according to claim 1, it is characterised in that the test is carried out specifically by LoadRunner Test.
- A kind of 5. supervising device of test process, it is characterised in that including:Setup unit, for presetting the testing time used in completion presumptive test;Timing unit, for carrying out timing when the presumptive test starts;Judging unit, for when reaching the testing time, judging the pre- location survey whether is completed within the testing time Examination, if it is not, then triggering stop element;The stop element, for stopping testing the Virtual User process associated with described.
- 6. supervising device according to claim 5, it is characterised in that also include:Alarm unit, for when not completing the test of program corresponding with the testing time within the testing time, leading to Cross buzzer and/or indicator light alarm prompting.
- 7. supervising device according to claim 5, it is characterised in that also include:Acquiring unit, for when not completing the presumptive test within the testing time, obtaining the survey of the presumptive test Examination process;First computing unit, for calculating the test speed of the test process according to the test process and the testing time Degree;Second computing unit, during for calculating the test needed for the remaining process of the presumptive test according to the test speed Between.
- 8. supervising device according to claim 5, it is characterised in that the test is surveyed especially by LoadRunner Examination.
- A kind of 9. supervising device of test process, it is characterised in that including:Memory, for storing computer program;Processor, for performing the computer program to realize the prison of the test process as described in Claims 1-4 any one The step of prosecutor method.
- 10. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the computer program are executed by processor to realize the monitoring of the test process as described in Claims 1-4 any one The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710867663.7A CN107608856A (en) | 2017-09-22 | 2017-09-22 | A kind of monitoring method of test process, device, computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710867663.7A CN107608856A (en) | 2017-09-22 | 2017-09-22 | A kind of monitoring method of test process, device, computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107608856A true CN107608856A (en) | 2018-01-19 |
Family
ID=61057519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710867663.7A Pending CN107608856A (en) | 2017-09-22 | 2017-09-22 | A kind of monitoring method of test process, device, computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107608856A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376067A (en) * | 2018-08-15 | 2019-02-22 | 中国平安人寿保险股份有限公司 | Monkey test method, device, electronic equipment and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102479146A (en) * | 2010-11-30 | 2012-05-30 | 金蝶软件(中国)有限公司 | Scenario testing monitoring method, device and system |
CN105144116A (en) * | 2013-02-22 | 2015-12-09 | 微软技术许可有限责任公司 | Estimating time remaining for an operation |
-
2017
- 2017-09-22 CN CN201710867663.7A patent/CN107608856A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102479146A (en) * | 2010-11-30 | 2012-05-30 | 金蝶软件(中国)有限公司 | Scenario testing monitoring method, device and system |
CN105144116A (en) * | 2013-02-22 | 2015-12-09 | 微软技术许可有限责任公司 | Estimating time remaining for an operation |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376067A (en) * | 2018-08-15 | 2019-02-22 | 中国平安人寿保险股份有限公司 | Monkey test method, device, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW201734841A (en) | Reference test method and device for supervised learning algorithm in distributed environment | |
CN105653338B (en) | A kind of update method and device of application | |
CN107038120A (en) | A kind of method for testing software and equipment | |
CN110262977A (en) | A kind of full link performance test method, calculates equipment and storage medium at device | |
CN103903312B (en) | The execution method and apparatus of automatic detecting | |
CN110334013A (en) | Test method, device and the electronic equipment of decision engine | |
CN107220165A (en) | The method and apparatus of pressure test on a kind of artificial line | |
CN107608856A (en) | A kind of monitoring method of test process, device, computer-readable recording medium | |
CN104063307A (en) | Software testing method and system | |
CN114218072A (en) | Test script generation method and device, storage medium and computer equipment | |
CN107153601B (en) | Unit performance test method and device | |
CN110888809B (en) | Risk prediction method and device for test task | |
CN105893233A (en) | Method and system used for automatically testing firmware | |
CN108090736A (en) | The measures and procedures for the examination and approval, device and readable storage medium storing program for executing based on workflow examination and approval document | |
CN105653445B (en) | A kind of implementation method for meeting DO 178C test results | |
CN116055349A (en) | Method, device and equipment for detecting stream data | |
CN107590039A (en) | A kind of continuous test method, device and storage medium | |
KR101403685B1 (en) | System and method for relating between failed component and performance criteria of manintenance rule by using component database of functional importance determination of nuclear power plant | |
CN104239199A (en) | Virtual robot generation method, automatic test method and related device | |
CN113360389A (en) | Performance test method, device, equipment and storage medium | |
CN111061621B (en) | Method, device and equipment for verifying program performance and storage medium | |
CN113590498A (en) | Method and system for testing application starting time of desktop operating system | |
CN109815083B (en) | Application crash monitoring method and device, electronic equipment and medium | |
CN109614307B (en) | Online pressure testing method and device of service system and server | |
CN110362461A (en) | The test method and computer readable storage medium of average time between failures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |
|
RJ01 | Rejection of invention patent application after publication |