CN109376067A - Monkey test method, device, electronic equipment and computer readable storage medium - Google Patents
Monkey test method, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109376067A CN109376067A CN201810930554.XA CN201810930554A CN109376067A CN 109376067 A CN109376067 A CN 109376067A CN 201810930554 A CN201810930554 A CN 201810930554A CN 109376067 A CN109376067 A CN 109376067A
- Authority
- CN
- China
- Prior art keywords
- test
- testing time
- time
- test event
- event
- 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
- 241000282693 Cercopithecidae Species 0.000 title claims abstract description 34
- 238000010998 test method Methods 0.000 title claims abstract description 24
- 238000012360 testing method Methods 0.000 claims abstract description 729
- 238000012544 monitoring process Methods 0.000 claims abstract description 13
- 238000000034 method Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000009434 installation Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
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/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
-
- 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/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
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 present invention provides a kind of Monkey test method, device, electronic equipment and computer readable storage medium.The Monkey test method includes: to obtain the beginning testing time of the test event when monitoring that test event executes;Determine the configuration testing time of the test event;According to the beginning testing time and the configuration testing time, the end testing time of the test event is determined;When the current time of acquisition is more than or equal to the end testing time, stop the test event.The present invention can be realized the intelligent control to Monkey test, it is integrated to facilitate automatic test for the controllability for not only realizing the dwell time of the test event, and due to the accurate testing time, the availability of test data is also added, user experience is more preferably.
Description
Technical field
The present invention relates to intelligent measuring technology field more particularly to a kind of Monkey test method, device, electronic equipment and
Computer readable storage medium.
Background technique
In prior art, in Monkey test, a test event generally includes multiple test targets, and leads to
Often the test event can only be executed by way of setting test target sum, that is to say, that when test target sum reaches
When configuration sum, the test event can be stopped.
But the above-mentioned test mode based on test target sum, the testing time be it is uncontrollable, user can not be accurate to
The time of test also can not just be aware of when that test terminates, be further carried out subsequent operation, user experience is bad.
Summary of the invention
In view of the foregoing, it is necessary to a kind of Monkey test method, device, electronic equipment are provided and computer-readable deposited
Storage media can determine the end testing time of test event, method of determination according to testing time and configuration testing time is started
Accurately, and then according to current time, determine whether the testing time stops, i.e., when the current time of acquisition is more than or equal to
When the end testing time, stop the test event, not only realize the controllability of the dwell time of the test event,
It is integrated to facilitate automatic test, and due to also adding the availability of test data, user's body with the accurate testing time
It tests more preferably.
A kind of Monkey test method, which comprises
When monitoring that test event executes, the beginning testing time of the test event is obtained;
Determine the configuration testing time of the test event;
According to the beginning testing time and the configuration testing time, when determining the end test of the test event
Between;
When the current time of acquisition is more than or equal to the end testing time, stop the test event.
The configuration testing time of preferred embodiment according to the present invention, the determination test event includes following any one
Kind mode:
The time of user setting is received, the time determines the configuration testing time of the test event based on the received;Or
The history testing time is obtained, the configuration testing time of the test event is determined according to the history testing time;
Or
The quantity of test target in the test event is obtained, and obtains the mean test time of each test target, root
Quantity and the mean test time according to the test target, determine the configuration testing time of the test event.
Preferred embodiment according to the present invention, it is described according to the beginning testing time and the configuration testing time, it determines
The end testing time of the test event includes:
On the basis of the beginning testing time, in addition the configuration testing time;
Time after adding is determined as to the end testing time of the test event.
Preferred embodiment according to the present invention includes at least one test target in the test event.
Preferred embodiment according to the present invention is being more than or equal to the end testing time when the current time obtained
When, after stopping the test event, the method also includes:
The quantity of test target in the test event is recorded, and records the test data of each test target.
Preferred embodiment according to the present invention is being more than or equal to the end testing time when the current time obtained
When, after stopping the test event, the method also includes:
Obtain the quantity of test target in the test event;
According to the quantity of the test target and the configuration testing time, the stability of the test event is determined.
Preferred embodiment according to the present invention, the quantity according to the test target and the configuration testing time, really
The stability of the test event includes: calmly
According to the quantity of the test target and the configuration testing time, the unit of test target in the unit of account time
Test quantity;
When the unit testing quantity is more than or equal to Configuration Values, determine that the test event is stablized.
A kind of test device, described device include:
Acquiring unit, for obtaining the beginning testing time of the test event when monitoring that test event executes;
Determination unit, for determining the configuration testing time of the test event;
The determination unit is also used to determine the survey according to the beginning testing time and the configuration testing time
The end testing time of examination event;
Stop unit, for when the current time of acquisition is more than or equal to the end testing time, described in stopping
Test event.
Preferred embodiment according to the present invention, the determination unit determine the configuration testing time of the test event include with
Any one lower mode:
The time of user setting is received, the time determines the configuration testing time of the test event based on the received;Or
The history testing time is obtained, the configuration testing time of the test event is determined according to the history testing time;
Or
The quantity of test target in the test event is obtained, and obtains the mean test time of each test target, root
Quantity and the mean test time according to the test target, determine the configuration testing time of the test event.
Preferred embodiment according to the present invention, when the determination unit is tested according to the beginning testing time and the configuration
Between, determine that the end testing time of the test event includes:
On the basis of the beginning testing time, in addition the configuration testing time;
Time after adding is determined as to the end testing time of the test event.
Preferred embodiment according to the present invention includes at least one test target in the test event.
Preferred embodiment according to the present invention, described device further include:
Recording unit, for stopping institute when the current time of acquisition is more than or equal to the end testing time
After stating test event, the quantity of test target in the test event is recorded, and records the test data of each test target.
Preferred embodiment according to the present invention, the acquiring unit are also used to when the current time obtained is greater than or waits
When the end testing time, after stopping the test event, the quantity of test target in the test event is obtained;
The determination unit, is also used to quantity and the configuration testing time according to the test target, determine described in
The stability of test event.
Preferred embodiment according to the present invention, the determination unit are tested according to the quantity of the test target and the configuration
Time determines that the stability of the test event includes:
According to the quantity of the test target and the configuration testing time, the unit of test target in the unit of account time
Test quantity;
When the unit testing quantity is more than or equal to Configuration Values, determine that the test event is stablized.
A kind of electronic equipment, the electronic equipment include:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize the Monkey test method.
A kind of computer readable storage medium is stored at least one instruction, institute in the computer readable storage medium
At least one instruction is stated to be executed by the processor in electronic equipment to realize the Monkey test method.
As can be seen from the above technical solutions, the present invention can be determined according to testing time and configuration testing time is started
The end testing time of test event, method of determination is accurate, and then according to current time, determines whether the testing time stops
Only, i.e., stop the test event when the current time of acquisition is more than or equal to the end testing time, not only realize
The controllability of the dwell time of the test event facilitates automatic test integrated, and when due to having accurate test
Between, the availability of test data is also added, user experience is more preferably.
Detailed description of the invention
Fig. 1 is the flow chart of the preferred embodiment of Monkey test method of the present invention.
Fig. 2 is the functional block diagram of the preferred embodiment of Monkey test device of the present invention.
Fig. 3 is the structural schematic diagram of the electronic equipment for the preferred embodiment that the present invention realizes Monkey test method.
Main element symbol description
Electronic equipment | 1 |
Memory | 12 |
Processor | 13 |
Monkey test device | 11 |
Acquiring unit | 110 |
Determination unit | 111 |
Stop unit | 112 |
Recording unit | 113 |
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
As shown in Figure 1, being the flow chart of the preferred embodiment of Monkey test method of the present invention.According to different requirements,
The sequence of step can change in the flow chart, and certain steps can be omitted.
The Monkey test method is applied in one or more electronic equipment, and the electronic equipment is that one kind can
According to the instruction for being previously set or storing, the automatic equipment for carrying out numerical value calculating and/or information processing, hardware includes but unlimited
In microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), may be programmed
Gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal
Processor, DSP), embedded device etc..
The electronic equipment can be any electronic product that human-computer interaction can be carried out with user, for example, personal meter
Calculation machine, tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), game machine, friendship
Mutual formula Web TV (Internet Protocol Television, IPTV), intellectual wearable device etc..
The electronic equipment can also include the network equipment and/or user equipment.Wherein, the network equipment includes, but
It is not limited to single network server, the server group of multiple network servers composition or based on cloud computing (Cloud
Computing the cloud being made of a large amount of hosts or network server).
Network locating for the electronic equipment include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, it is virtual specially
With network (Virtual Private Network, VPN) etc..
S10, the electronic equipment obtain when starting test of the test event when monitoring that test event executes
Between.
In at least one embodiment of the present invention, in Monkey test, a test event generally includes multiple surveys
Target is tried, and executes the test event typically only by the mode of setting test target sum, that is to say, that works as test
When target sum reaches configuration sum, the test event can be stopped.But the above-mentioned test side based on test target sum
Formula, the testing time be it is uncontrollable, user can not be accurate to the time of test, also can not just be aware of when test terminate, then into
One step carries out subsequent operation.
In at least one embodiment of the present invention, the electronic equipment, will simultaneously after receiving the test event
The test event is monitored, the test event may include the test etc. of all controls on a webpage, and the present invention does not limit.
Specifically, the electronic equipment receives the test event and includes, but are not limited to any one following form:
(1) electronic equipment receives the test instruction of user's input, and thereby determines that and receive the test event.
(2) electronic equipment receives the test event that automated system operation generates, and thereby determines that and receive the survey
Examination event.
By above embodiment, the electronic equipment is ready to receive to arrive the test event, and further described in acquisition
Test event.
Preferably, in the test event include at least one test target, wherein the test target refer to need into
The target of row test, such as: when the test event is one webpage of test, then the test target may include on webpage
Control.
Such as: it may include hundreds and thousands of a test targets in a test event.
In the prior art, the electronic equipment is generally according to test event number in need of test to described
At least one test target is tested, that is to say, that when reaching configuration testing time, the electronic equipment can just stop
The test event needs the case where timely responding to after test when encountering in this way, user will be unable to how long know execution
When, the user will need to be monitored always, bring inconvenience.
And in the present solution, the electronic equipment is tested according to the time, specific embodiment will carry out below in detail
It is thin to illustrate.
S11, the electronic equipment determine the configuration testing time of the test event.
In at least one embodiment of the present invention, when the configuration testing time refers to a preconfigured test
Between, after being configured with the configuration testing time, the electronic equipment will be tested within the configuration testing time.
Preferably, the electronic equipment determines that the configuration testing time of the test event includes, but are not limited to following
It anticipates a kind of mode:
(1) electronic equipment receives the time of user setting, and the time determines matching for the test event based on the received
Set the testing time.
Such as: the time that the electronic equipment receives the user setting is 2 hours, then the electronic equipment is according to connecing
The time 2 h received further determines that the configuration testing time of the test event is 2 hours.
By above embodiment, the electronic equipment can determine the test event according to the actual demand of user
The testing time is configured, in this way, the user is without monitoring always when encountering the case where needs timely respond to after test
Test mode, it is only necessary to which the exact p-value result before the testing time reaches is provided convenience to the user, is brought more preferable
Usage experience.
(2) electronic equipment obtains the history testing time, determines the test event according to the history testing time
The configuration testing time.
Such as: the history testing time that the electronic equipment is got is 2 hours, then the electronic equipment is gone through according to
The history testing time 2 hours, further determine that the configuration testing time of the test event is 2 hours.
By above embodiment, the electronic equipment can get empirical data, i.e. root from history test event
The configuration testing time that the test event is determined according to the history testing time realizes full-automatic configuration mode, reduces
The amount of labour of the user.
(3) electronic equipment obtains the quantity of test target in the test event, and obtains each test target
Mean test time, quantity and the mean test time of the electronic equipment according to the test target, determines the survey
The configuration testing time of examination event.
Specifically, the electronic equipment calculates the quantity of the test target and the product of the mean test time, and
The product is determined as to the configuration testing time of the test event.
Such as: the quantity that the electronic equipment gets test target in the test event is 360, meanwhile, it is described
The mean test time that electronic equipment gets each test target is 1s, and the electronic equipment calculates the number of the test target
* 1s=1 hours of product 360 of amount and the mean test time, then the electronic equipment determines matching for the test event
Setting the testing time is 1 hour.
By above embodiment, the electronic equipment can traverse all test targets in the test event, and
The configuration testing time can also be determined simultaneously.
It should be noted that the electronic equipment can choose different sides according to the different demands of different test events
Formula determines the configuration testing time of the test event, and the present invention is with no restrictions.
Further, the configuration testing time can be exactly accurate, such as: the configuration testing time can be as accurate as
Millisecond rank etc., the present invention is with no restrictions.
S12, according to the beginning testing time and the configuration testing time, the electronic equipment determines the test thing
The end testing time of part.
In at least one embodiment of the present invention, the electronic equipment has been after having determined the end time, just can be with
The test event is controlled according to the end testing time, that is to say, that the electronic equipment will be strict controlled in the knot
When the beam testing time arrives, terminate the test event.
Preferably, described that institute is determined according to the beginning testing time and the configuration testing time, the electronic equipment
The end testing time for stating test event includes:
The electronic equipment adds the configuration testing time, the electronics on the basis of the beginning testing time
Time after adding is determined as the end testing time of the test event by equipment.
Such as: when it is the morning 9 that the electronic equipment, which gets the beginning testing time, if the electronic equipment
Getting the configuration testing time simultaneously is 1 hour, then the electronic equipment is using described 9 points of beginning morning testing time as base
Standard, in addition 1 hour configuration testing time, the electronic equipment be can be obtained on the end testing time of the test event
10 points of noon.
By above embodiment, when the electronic equipment can accurately calculate the end test of the test event
Between, determined whether to stop test according to the end testing time convenient for subsequent.
S13, when the current time of acquisition is more than or equal to the end testing time, the electronic equipment stops institute
State test event.
In at least one embodiment of the present invention, the electronic equipment obtains current time first, so as to later use
The current time is compared with the end testing time, obtains comparison result, and be according to comparison result determination
It is no to stop the test event.
That is, the current time is compared by the electronic equipment with the end testing time, convenient for control
The test event is made to stop or continue.
Further, when the current time is less than the end testing time, the electronic equipment continues the survey
Examination event.
By above embodiment, the electronic equipment, which can be realized, controls the test event according to the specific testing time
Stopping purpose, not only realize the controllability of the dwell time of the test event, facilitate automatic test integrated, and
Due to also adding the availability of test data with the accurate testing time.
Preferably, when the current time of acquisition be more than or equal to the end testing time when, the electronic equipment
After stopping the test event, the method also includes:
The electronic equipment records the quantity of test target in the test event, and records the test of each test target
Data.
In at least one embodiment of the present invention, the electronic equipment is by recording test target in the test event
Quantity, can be to determine that the configuration testing time, can also be further according to institute as benchmark in test event next time
The quantity for stating test target determines the stability of test.
In at least one embodiment of the present invention, after the electronic equipment records the test data of each test target,
Can be convenient the subsequent electronic equipment analyzed according to the test data, the operation such as O&M, can also assist understanding it
His relevant achievement data.
Further, by above embodiment, the electronic equipment can be recorded in time and be tested in the test event
The quantity of target, and the test data of each test target is recorded, and can be by the quantity of test target in the test event
And the test data of each test target, it saves into specified database, is convenient for subsequent use.
Specifically, the specified database may include, but be not limited to: the local data base of the electronic equipment, or
It is the database etc. communicated with the electronic equipment.
It is understood that when the specified database be local data base when, the electronic equipment can quickly from
The quantity of test target and the test data of each test target in the test event are read in the specified database, are read
Speed is more dominant.
Either, it when the specified database is the database communicated with the electronic equipment, can not only save
The memory space of the electronic equipment also improves the electronics to ensure that the service ability of the electronic equipment indirectly
The test performance of equipment.
It should be noted that the electronic equipment can select the classification of the specified database according to actual needs, this
Invention is with no restrictions.
Preferably, when the current time of acquisition be more than or equal to the end testing time when, the electronic equipment
After stopping the test event, the method also includes:
The electronic equipment obtains the quantity of test target in the test event, and according to the quantity of the test target
And the configuration testing time, determine the stability of the test event.
By above embodiment, the electronic equipment can be tested according to the quantity of the test target and the configuration
Time determines the stability of the test event, is laid the foundation to the evaluation of the test event for the user, to user with
Carry out better test experience.
Further, quantity and the configuration testing time of the electronic equipment according to the test target, determines institute
The stability for stating test event will elaborate later.
Preferably, the quantity according to the test target and the configuration testing time, the electronic equipment determine
The stability of the test event includes:
According to the quantity of the test target and the configuration testing time, surveyed in the electronic equipment unit of account time
The unit testing quantity for trying target determines the test event when the unit testing quantity is more than or equal to Configuration Values
Stablize.
Such as: the quantity that the electronic equipment gets the test target is 100, meanwhile, the electronic equipment obtains
Get the configuration testing time be 1 hour, then in the electronic equipment unit of account time test target unit testing number
Amount, circular are as follows: the quantity 100 of the test target/1 hour configuration testing time=unit testing
100/hour of quantity.Since 100/hour of unit testing quantity is greater than the Configuration Values (such as: 90/hour), because
This, the electronic equipment determines that the test event is stablized.
By above embodiment, the electronic equipment can accurately determine the stability of the test event, be convenient for
The test event is made and is accurately evaluated.
Specifically, the configuration mode of the Configuration Values includes, but are not limited to any one following mode:
(1) electronic equipment is configured.
(2) electronic equipment receives the configuration data of the user, and configures institute according to the configuration data of the user
State Configuration Values.
(3) electronic equipment provides at least one option for the user, and the electronic equipment receives the user's
Selection result, and the Configuration Values are configured according to the selection result of the user.
By above embodiment, the electronic equipment can configure the Configuration Values, convenient using the Configuration Values as base
Standard evaluates the stability of the test event.
In conclusion the present invention can obtain when starting test of the test event when monitoring that test event executes
Between;Determine the configuration testing time of the test event;According to the beginning testing time and the configuration testing time, determine
The end testing time of the test event;When the current time of acquisition is more than or equal to the end testing time, stop
The only test event.Therefore, the present invention can determine the knot of test event according to testing time and configuration testing time is started
The beam testing time, method of determination is accurate, and then according to current time, determines whether the testing time stops, i.e., when acquisition
When current time is more than or equal to the end testing time, stops the test event, not only realize the test thing
It is integrated to facilitate automatic test for the controllability of the dwell time of part, and due to also adding survey with the accurate testing time
The availability of data is tried, user experience is more preferably.
As shown in Fig. 2, being the functional block diagram of the preferred embodiment of Monkey test device of the present invention.The Monkey is surveyed
It includes acquiring unit 110, determination unit 111, stop unit 112 and recording unit 113 that trial assembly, which sets 11,.The so-called mould of the present invention
Block/unit refers to that one kind can be performed by processor 13, and can complete the series of computation machine program segment of fixed function,
It is stored in memory 12.In the present embodiment, it will be described in detail in subsequent embodiment about the function of each module/unit.
When monitoring that test event executes, acquiring unit 110 obtains the beginning testing time of the test event.
In at least one embodiment of the present invention, in Monkey test, a test event generally includes multiple surveys
Target is tried, and executes the test event typically only by the mode of setting test target sum, that is to say, that works as test
When target sum reaches configuration sum, the test event can be stopped.But the above-mentioned test side based on test target sum
Formula, the testing time be it is uncontrollable, user can not be accurate to the time of test, also can not just be aware of when test terminate, then into
One step carries out subsequent operation
In at least one embodiment of the present invention, the acquiring unit 110, will be same after receiving the test event
When monitor the test event, the test event may include the test etc. of all controls on a webpage, the present invention it is unlimited
System.
Specifically, the electronic equipment receives the test event and includes, but are not limited to any one following form:
(1) electronic equipment receives the test instruction of user's input, and thereby determines that and receive the test event.
(2) electronic equipment receives the test event that automated system operation generates, and thereby determines that and receive the survey
Examination event.
By above embodiment, the electronic equipment is ready to receive to arrive the test event, and further described in acquisition
Test event.
Preferably, in the test event include at least one test target, wherein the test target refer to need into
The target of row test, such as: when the test event is one webpage of test, then the test target may include on webpage
Control.
Such as: it may include hundreds and thousands of a test targets in a test event.
In the prior art, the electronic equipment is generally according to test event number in need of test to described
At least one test target is tested, that is to say, that when reaching configuration testing time, the electronic equipment can just stop
The test event needs the case where timely responding to after test when encountering in this way, user will be unable to how long know execution
When, the user will need to be monitored always, bring inconvenience.
And in the present solution, the electronic equipment is tested according to the time, specific embodiment will carry out below in detail
It is thin to illustrate.
Determination unit 111 determines the configuration testing time of the test event.
In at least one embodiment of the present invention, when the configuration testing time refers to a preconfigured test
Between, after being configured with the configuration testing time, the electronic equipment will be tested within the configuration testing time.
Preferably, it is following to determine that the configuration testing time of the test event includes, but are not limited to for the determination unit 111
Any one mode:
(1) determination unit 111 receives the time of user setting, and the time determines the test event based on the received
Configure the testing time.
Such as: the time that the determination unit 111 receives the user setting is 2 hours, then the determination unit 111
According to the time 2 h received, further determine that the configuration testing time of the test event is 2 hours.
By above embodiment, the electronic equipment can determine the test event according to the actual demand of user
The testing time is configured, in this way, the user is without monitoring always when encountering the case where needs timely respond to after test
Test mode, it is only necessary to which the exact p-value result before the testing time reaches is provided convenience to the user, is brought more preferable
Usage experience.
(2) determination unit 111 obtains the history testing time, determines the test thing according to the history testing time
The configuration testing time of part.
Such as: the history testing time that the determination unit 111 is got is 2 hours, then 111 basis of determination unit
2 hours history testing times further determined that the configuration testing time of the test event was 2 hours.
By above embodiment, the electronic equipment can get empirical data, i.e. root from history test event
The configuration testing time that the test event is determined according to the history testing time realizes full-automatic configuration mode, reduces
The amount of labour of the user.
(3) determination unit 111 obtains the quantity of test target in the test event, and obtains each test target
Mean test time, quantity and the mean test time of the determination unit 111 according to the test target determines institute
State the configuration testing time of test event.
Specifically, the determination unit 111 calculates the quantity of the test target and the product of the mean test time,
And the product is determined as to the configuration testing time of the test event.
Such as: the quantity that the determination unit 111 gets test target in the test event is 360, meanwhile, institute
Stating determination unit 111 and getting the mean test time of each test target is 1s, and the determination unit 111 calculates the test
The quantity of target and * 1s=1 hours of the product of the mean test time 360, then the determination unit 111 determines the survey
The configuration testing time of examination event is 1 hour.
By above embodiment, the electronic equipment can traverse all test targets in the test event, and
The configuration testing time can also be determined simultaneously.
It should be noted that the determination unit 111 can choose different according to the different demands of different test events
Mode determines the configuration testing time of the test event, and the present invention is with no restrictions.
Further, the configuration testing time can be exactly accurate, such as: the configuration testing time can be as accurate as
Millisecond rank etc., the present invention is with no restrictions.
According to the beginning testing time and the configuration testing time, the determination unit 111 determines the test thing
The end testing time of part.
In at least one embodiment of the present invention, the determination unit 111 just may be used after the end time has been determined
To control the test event according to the end testing time, that is to say, that the determination unit 111 will be strict controlled in institute
When stating the arrival of end testing time, terminate the test event.
Preferably, described according to the beginning testing time and the configuration testing time, the determination unit 111 determines
The end testing time of the test event includes:
The determination unit 111 is on the basis of the beginning testing time, in addition the configuration testing time, the determination
Time after adding is determined as the end testing time of the test event by unit 111.
Such as: when it is the morning 9 that the determination unit 111, which gets the beginning testing time, if the determination
Unit 111 get simultaneously the configuration testing time be 1 hour, then the determination unit 111 is with the beginning testing time
On the basis of at 9 points in the morning, in addition 1 hour configuration testing time, the test event is can be obtained in the determination unit 111
Terminate 10 points of morning testing time.
By above embodiment, when the electronic equipment can accurately calculate the end test of the test event
Between, determined whether to stop test according to the end testing time convenient for subsequent.
When the current time of acquisition is more than or equal to the end testing time, stop unit 112 stops the survey
Examination event.
In at least one embodiment of the present invention, the stop unit 112 obtains current time first, so as to subsequent benefit
It is compared with the current time with the end testing time, obtains comparison result, and determine according to the comparison result
Whether the test event is stopped.
That is, the current time is compared by the stop unit 112 with the end testing time, it is convenient for
The test event is controlled to stop or continue.
Further, when the current time is less than the end testing time, the electronic equipment continues the survey
Examination event.
By above embodiment, the electronic equipment, which can be realized, controls the test event according to the specific testing time
Stopping purpose, not only realize the controllability of the dwell time of the test event, facilitate automatic test integrated, and
Due to also adding the availability of test data with the accurate testing time.
Preferably, when the current time of acquisition be more than or equal to the end testing time when, the stop unit
After 112 stop the test event, the method also includes:
Recording unit 113 records the quantity of test target in the test event, and records the test of each test target
Data.
In at least one embodiment of the present invention, the recording unit 113 is tested by recording in the test event
The quantity of target can be the configuration testing time determining in test event next time as benchmark, can also further root
The stability of test is determined according to the quantity of the test target.
In at least one embodiment of the present invention, the recording unit 113 records the test data of each test target
Afterwards, can be convenient the subsequent electronic equipment analyzed according to the test data, the operation such as O&M, can also assist understanding
Other relevant achievement datas.
Further, by above embodiment, the recording unit 113 can be recorded in time and be surveyed in the test event
The quantity of target is tried, and records the test data of each test target, and can be by the number of test target in the test event
The test data of amount and each test target is saved into specified database, is convenient for subsequent use.
Specifically, the specified database may include, but be not limited to: the local data base of the electronic equipment, or
It is the database etc. communicated with the electronic equipment.
It is understood that when the specified database be local data base when, the electronic equipment can quickly from
The quantity of test target and the test data of each test target in the test event are read in the specified database, are read
Speed is more dominant.
Either, it when the specified database is the database communicated with the electronic equipment, can not only save
The memory space of the electronic equipment also improves the electronics to ensure that the service ability of the electronic equipment indirectly
The test performance of equipment.
It should be noted that the electronic equipment can select the classification of the specified database according to actual needs, this
Invention is with no restrictions.
Preferably, when the current time of acquisition be more than or equal to the end testing time when, the stop unit
After 112 stop the test event, the method also includes:
The acquiring unit 110 obtains the quantity of test target in the test event, and according to the test target
Quantity and the configuration testing time, the determination unit 111 determine the stability of the test event.
By above embodiment, the determination unit 111 can be according to the quantity and the configuration of the test target
Testing time determines the stability of the test event, lays the foundation for the user to the evaluation of the test event, to use
Bring better test experience in family.
Further, quantity and the configuration testing time of the determination unit 111 according to the test target determines
The stability of the test event will elaborate later.
Preferably, the quantity according to the test target and the configuration testing time, the determination unit 111 is really
The stability of the test event includes: calmly
According to the quantity of the test target and the configuration testing time, the 111 unit of account time of determination unit
The unit testing quantity of interior test target, when the unit testing quantity is more than or equal to Configuration Values, the determination unit
111 determine that the test event is stablized.
Such as: the quantity that the determination unit 111 gets the test target is 100, meanwhile, the determination unit
111 get the configuration testing time be 1 hour, then in the 111 unit of account time of determination unit test target list
Bit test quantity, circular are as follows: the quantity 100 of the test target/1 hour configuration testing time=described
100/hour of unit testing quantity.Due to 100/hour of unit testing quantity be greater than the Configuration Values (such as: 90/
Hour), therefore, the determination unit 111 determines that the test event is stablized.
By above embodiment, the determination unit 111 can accurately determine the stability of the test event, just
It is accurately evaluated in being made to the test event.
Specifically, the configuration mode of the Configuration Values includes, but are not limited to any one following mode:
(1) electronic equipment is configured.
(2) electronic equipment receives the configuration data of the user, and configures institute according to the configuration data of the user
State Configuration Values.
(3) electronic equipment provides at least one option for the user, and the electronic equipment receives the user's
Selection result, and the Configuration Values are configured according to the selection result of the user.
By above embodiment, the electronic equipment can configure the Configuration Values, convenient using the Configuration Values as base
Standard evaluates the stability of the test event.
In conclusion the present invention can obtain when starting test of the test event when monitoring that test event executes
Between;Determine the configuration testing time of the test event;According to the beginning testing time and the configuration testing time, determine
The end testing time of the test event;When the current time of acquisition is more than or equal to the end testing time, stop
The only test event.Therefore, the present invention can determine the knot of test event according to testing time and configuration testing time is started
The beam testing time, method of determination is accurate, and then according to current time, determines whether the testing time stops, i.e., when acquisition
When current time is more than or equal to the end testing time, stops the test event, not only realize the test thing
It is integrated to facilitate automatic test for the controllability of the dwell time of part, and due to also adding survey with the accurate testing time
The availability of data is tried, user experience is more preferably.
As shown in figure 3, being the structural representation of the electronic equipment for the preferred embodiment that the present invention realizes Monkey test method
Figure.
The electronic equipment 1 be it is a kind of can according to the instruction for being previously set or store, automatic progress numerical value calculating and/or
The equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific
Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number
Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment 1, which can also be but not limited to any one, to pass through keyboard, mouse, remote controler, touching with user
The modes such as template or voice-operated device carry out the electronic product of human-computer interaction, for example, personal computer, tablet computer, smart phone,
Personal digital assistant (Personal Digital Assistant, PDA), game machine, Interactive Internet TV (Internet
Protocol Television, IPTV), intellectual wearable device etc..
The electronic equipment 1 can also be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.
Network locating for the electronic equipment 1 include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, it is virtual specially
With network (Virtual Private Network, VPN) etc..
In one embodiment of the invention, the electronic equipment 1 includes, but are not limited to memory 12, processor 13,
And it is stored in the computer program that can be run in the memory 12 and on the processor 13, such as Monkey tests journey
Sequence.
It will be understood by those skilled in the art that the schematic diagram is only the example of electronic equipment 1, not structure paired electrons
The restriction of equipment 1 may include perhaps combining certain components or different components, example than illustrating more or fewer components
Such as described electronic equipment 1 can also include input-output equipment, network access equipment, bus.
Alleged processor 13 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor 13 is arithmetic core and the control centre of the electronic equipment 1, entire using various interfaces and connection
The various pieces of electronic equipment 1, and execute the operating system of the electronic equipment 1 and types of applications program, the program of installation
Code etc..
The processor 13 executes the operating system of the electronic equipment 1 and the types of applications program of installation.The place
Reason device 13 executes the application program to realize the step in above-mentioned each Monkey test method embodiment, such as shown in Fig. 1
Step S10, S11, S12, S13.
Alternatively, the processor 13 realizes each module in above-mentioned each Installation practice/mono- when executing the computer program
The function of member, such as: when monitoring that test event executes, obtain the beginning testing time of the test event;Described in determination
The configuration testing time of test event;According to the beginning testing time and the configuration testing time, the test thing is determined
The end testing time of part;When the current time of acquisition is more than or equal to the end testing time, stop the test
Event.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory 12, and is executed by the processor 13, to complete the present invention.It is one
Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for retouching
State implementation procedure of the computer program in the electronic equipment 1.It is obtained for example, the computer program can be divided into
Take unit 110, determination unit 111, stop unit 112 and recording unit 113.
The memory 12 can be used for storing the computer program and/or module, the processor 13 by operation or
The computer program and/or module being stored in the memory 12 are executed, and calls the data being stored in memory 12,
Realize the various functions of the electronic equipment 1.The memory 12 can mainly include storing program area and storage data area,
In, storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image
Playing function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory according to mobile phone
Deng) etc..In addition, memory 12 may include high-speed random access memory, it can also include nonvolatile memory, such as firmly
Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital,
SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states
Part.
The memory 12 can be the external memory and/or internal storage of electronic equipment 1.Further, described
Memory 12 can be the circuit with store function for not having physical form in integrated circuit, such as RAM (Random-Access
Memory, random access memory), FIFO (First In First Out) etc..Alternatively, the memory 12 is also possible to
Memory with physical form, such as memory bar, TF card (Trans-flash Card).
If the integrated module/unit of the electronic equipment 1 is realized in the form of SFU software functional unit and as independent
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real
All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program
At the computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.
Wherein, the computer program includes computer program code, and the computer program code can be source code
Form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: can
Carry any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer of the computer program code
Memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access
Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium
The content for including can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as in certain departments
Method administrative area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
In conjunction with Fig. 1, the memory 12 in the electronic equipment 1 stores multiple instruction to realize a kind of Monkey test
The multiple instruction can be performed to realize in method, the processor 13: when monitoring that test event executes, obtaining the survey
The beginning testing time of examination event;Determine the configuration testing time of the test event;According to the beginning testing time and institute
The configuration testing time is stated, determines the end testing time of the test event;When the current time of acquisition is more than or equal to institute
When stating the end testing time, stop the test event.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
The time of user setting is received, the time determines the configuration testing time of the test event based on the received;Or
The history testing time is obtained, the configuration testing time of the test event is determined according to the history testing time;
Or
The quantity of test target in the test event is obtained, and obtains the mean test time of each test target, root
Quantity and the mean test time according to the test target, determine the configuration testing time of the test event.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
On the basis of the beginning testing time, in addition the configuration testing time;
Time after adding is determined as to the end testing time of the test event.
Preferred embodiment according to the present invention includes at least one test target in the test event.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
The quantity of test target in the test event is recorded, and records the test data of each test target.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Obtain the quantity of test target in the test event;
According to the quantity of the test target and the configuration testing time, the stability of the test event is determined.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
According to the quantity of the test target and the configuration testing time, the unit of test target in the unit of account time
Test quantity;
When the unit testing quantity is more than or equal to Configuration Values, determine that the test event is stablized.
Specifically, the processor 13 can refer to the concrete methods of realizing of above-metioned instruction related in Fig. 1 corresponding embodiment
The description of step, this will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.
Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, this
The range of invention is indicated by the appended claims rather than the foregoing description, it is intended that the equivalent requirements of the claims will be fallen in
All changes in meaning and scope are included in the present invention.Any attached associated diagram label in claim should not be considered as limit
Claim involved in making.
Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.In system claims
The multiple units or device of statement can also be implemented through software or hardware by a unit or device.Second equal words are used
It indicates title, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
1. a kind of Monkey test method, which is characterized in that the described method includes:
When monitoring that test event executes, the beginning testing time of the test event is obtained;
Determine the configuration testing time of the test event;
According to the beginning testing time and the configuration testing time, the end testing time of the test event is determined;
When the current time of acquisition is more than or equal to the end testing time, stop the test event.
2. Monkey test method as described in claim 1, which is characterized in that the configuration of the determination test event is surveyed
The examination time includes any of the following mode:
The time of user setting is received, the time determines the configuration testing time of the test event based on the received;Or
The history testing time is obtained, the configuration testing time of the test event is determined according to the history testing time;Or
The quantity of test target in the test event is obtained, and obtains the mean test time of each test target, according to institute
State test target quantity and the mean test time, determine the configuration testing time of the test event.
3. Monkey test method as described in claim 1, which is characterized in that described according to the beginning testing time and institute
The configuration testing time is stated, determines that the end testing time of the test event includes:
On the basis of the beginning testing time, in addition the configuration testing time;
Time after adding is determined as to the end testing time of the test event.
4. Monkey test method as described in claim 1, which is characterized in that include at least one survey in the test event
Try target.
5. Monkey test method as claimed in claim 4, which is characterized in that when the current time obtained is greater than or waits
When the end testing time, after stopping the test event, the method also includes:
The quantity of test target in the test event is recorded, and records the test data of each test target.
6. Monkey test method as claimed in claim 4, which is characterized in that when the current time obtained is greater than or waits
When the end testing time, after stopping the test event, the method also includes:
Obtain the quantity of test target in the test event;
According to the quantity of the test target and the configuration testing time, the stability of the test event is determined.
7. Monkey test method as claimed in claim 6, which is characterized in that the quantity according to the test target and
The configuration testing time determines that the stability of the test event includes:
According to the quantity of the test target and the configuration testing time, the unit testing of test target in the unit of account time
Quantity;
When the unit testing quantity is more than or equal to Configuration Values, determine that the test event is stablized.
8. a kind of test device, which is characterized in that described device includes:
Acquiring unit, for obtaining the beginning testing time of the test event when monitoring that test event executes;
Determination unit, for determining the configuration testing time of the test event;
The determination unit is also used to determine the test thing according to the beginning testing time and the configuration testing time
The end testing time of part;
Stop unit, for stopping the test when the current time of acquisition is more than or equal to the end testing time
Event.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize as claimed in any of claims 1 to 7 in one of claims
Monkey test method.
10. a kind of computer readable storage medium, it is characterised in that: be stored at least one in the computer readable storage medium
A instruction, at least one described instruction are executed by the processor in electronic equipment to realize such as any one of claim 1 to 7
The Monkey test method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810930554.XA CN109376067A (en) | 2018-08-15 | 2018-08-15 | Monkey test method, device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810930554.XA CN109376067A (en) | 2018-08-15 | 2018-08-15 | Monkey test method, device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109376067A true CN109376067A (en) | 2019-02-22 |
Family
ID=65404510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810930554.XA Pending CN109376067A (en) | 2018-08-15 | 2018-08-15 | Monkey test method, device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109376067A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083510A (en) * | 2019-05-06 | 2019-08-02 | 深圳市网心科技有限公司 | Fringe node test method, electronic equipment, system and medium |
CN110427962A (en) * | 2019-06-20 | 2019-11-08 | 厦门网宿有限公司 | A kind of test method, electronic equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103713988A (en) * | 2012-09-29 | 2014-04-09 | 腾讯科技(深圳)有限公司 | Program testing device and program testing method |
US20150143180A1 (en) * | 2013-11-21 | 2015-05-21 | Microsoft Corporation | Validating software characteristics |
CN107608856A (en) * | 2017-09-22 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of monitoring method of test process, device, computer-readable recording medium |
-
2018
- 2018-08-15 CN CN201810930554.XA patent/CN109376067A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103713988A (en) * | 2012-09-29 | 2014-04-09 | 腾讯科技(深圳)有限公司 | Program testing device and program testing method |
US20150143180A1 (en) * | 2013-11-21 | 2015-05-21 | Microsoft Corporation | Validating software characteristics |
CN107608856A (en) * | 2017-09-22 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of monitoring method of test process, device, computer-readable recording medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083510A (en) * | 2019-05-06 | 2019-08-02 | 深圳市网心科技有限公司 | Fringe node test method, electronic equipment, system and medium |
CN110427962A (en) * | 2019-06-20 | 2019-11-08 | 厦门网宿有限公司 | A kind of test method, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109241141B (en) | Deep learning training data processing method and device | |
JP2011008375A (en) | Apparatus and method for supporting cause analysis | |
WO2014206131A1 (en) | Method and apparatus for report generation | |
US20240214428A1 (en) | Platform for management and tracking of collaborative projects | |
CN109542757A (en) | Interface testing environment determines method, apparatus, electronic equipment and storage medium | |
US20210194783A1 (en) | Dynamically generating visualizations of data based on correlation measures and search history | |
CN109165691A (en) | Training method, device and the electronic equipment of the model of cheating user for identification | |
CN109359027A (en) | Monkey test method, device, electronic equipment and computer readable storage medium | |
CN110866205B (en) | Method and apparatus for storing information | |
US10664786B2 (en) | Using run time and historical customer profiling and analytics to determine customer test vs. production differences, and to enhance customer test effectiveness | |
CN109376067A (en) | Monkey test method, device, electronic equipment and computer readable storage medium | |
CN109828902A (en) | Interface parameters determines method, apparatus, electronic equipment and storage medium | |
CN108427637A (en) | Test cases recommends method, electronic device and readable storage medium storing program for executing | |
US9111022B2 (en) | Simulation techniques for predicting in-memory database systems performance | |
CN107291767B (en) | Optimization processing method and device for task execution time | |
US8818831B2 (en) | Service level objective management system, service level objective management method and program | |
US20180004643A1 (en) | Run time tpns workload controls for test workload tuning in relation to customer profiling workload | |
CN111191999A (en) | Product research and development management method and device, computer equipment and storage medium | |
CN109696614A (en) | Circuit test optimization method and device | |
US11003565B2 (en) | Performance change predictions | |
US20220101061A1 (en) | Automatically identifying and generating machine learning prediction models for data input fields | |
US11810022B2 (en) | Contact center call volume prediction | |
CN109213513A (en) | The determination method, apparatus and computer readable storage medium of software share accounting | |
US20180004629A1 (en) | Run time smf/rmf statistical formula methodology for generating enhanced workload data points for customer profiling visualization | |
CN113760672A (en) | Performance test method, equipment and storage medium for multi-cloud platform resources |
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: 20190222 |
|
RJ01 | Rejection of invention patent application after publication |