CN104714888B - test environment monitoring system and method - Google Patents

test environment monitoring system and method Download PDF

Info

Publication number
CN104714888B
CN104714888B CN201510141366.5A CN201510141366A CN104714888B CN 104714888 B CN104714888 B CN 104714888B CN 201510141366 A CN201510141366 A CN 201510141366A CN 104714888 B CN104714888 B CN 104714888B
Authority
CN
China
Prior art keywords
test
module
information
test machine
given threshold
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.)
Active
Application number
CN201510141366.5A
Other languages
Chinese (zh)
Other versions
CN104714888A (en
Inventor
叶亚明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201510141366.5A priority Critical patent/CN104714888B/en
Publication of CN104714888A publication Critical patent/CN104714888A/en
Application granted granted Critical
Publication of CN104714888B publication Critical patent/CN104714888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of test environment monitoring system and method, detection module is used to send N to i-th of test machineiIndividual test information, wherein 1≤i≤k;I-th of test machine is used to receive the test information sent and sends n to detection moduleiIndividual feedback information, the feedback information includes the identification information of i-th of test machine;Detection module is used to parse the n that i-th of test machine is sentiThe individual feedback information;First computing module is used to utilize formulaCalculate the first healthy coefficient of the test environment of those test machines composition;First judge module is used to judge whether the first healthy coefficient is more than a given threshold, and calls the first display module to show the excellent information of a test environment when the first healthy coefficient is more than given threshold.The present invention can fast and effeciently analyze the quality of test environment, save the time cost and human cost of tester, effectively promote the automated process of software test, improve operating efficiency.

Description

Test environment monitoring system and method
Technical field
The present invention relates to software test industry technology field, more particularly to a kind of test wrapper applied for software test The test environment monitoring system and method in border.
Background technology
With computer technology being generally applicable in all trades and professions, the exploitation of all kinds of softwares is also like a raging fire to be expanded, But after the completion for the treatment of software Preliminary Exploitation, software function, performance test are also essential in software development link.It is same with this When, build a healthy test environment and be just particularly important, both can guarantee that being smoothed out for test job, can guarantee that again every One defect being submitted is tested out exactly, has been reduced as far as the variation of test environment to Experience of Software Testing Work Adverse effect, further can produce positive effect to the raising of the efficiency and quality of test job.UAT(User Acceptance Test, user's acceptance test) it is the use that analog subscriber actual application environment and some conventional data are carried out Family Acceptance Test, is the last time test in software production cluster environment (also being tested including fort), thus seems particularly heavy Will.
The present invention is built upon all kinds of test status being likely encountered in test process, such as hardware configuration, CPU operation speed The software environment problem such as the hardware environment such as degree, network connection status problem or data base read-write, code issue, and the guarantor proposed Hinder the quick healthy operation, and rapidly being fed back when running into corresponding problem in most cases of UAT test environments To tester, timely and effectively to take measures to solve the problems, such as.
The content of the invention
The technical problem to be solved in the present invention is that do not possess simple and effective to test environment to overcome in the prior art There is provided a kind of test environment monitoring system and method for the defect for the system tested.
The present invention is to solve above-mentioned technical problem by following technical proposals:
The present invention provides a kind of test environment monitoring system, and its feature is that it includes a server and k test machine, The server and the k test machine set up communication connection, and the server includes a detection module, one first computing module, one First judge module and one first display module;
The detection module is used to send N to i-th of test machineiIndividual test information, wherein 1≤i≤k;
I-th of test machine is used to receive the test information sent and sends n to the detection moduleiIndividual feedback information, this is anti- Feedforward information includes the identification information of i-th of test machine;
The detection module is additionally operable to parse the n that i-th of test machine is sentiThe individual feedback information;
First computing module is used to utilize formulaCalculate the of the test environment of those test machines composition One healthy coefficient;
First judge module is used to judge whether the first healthy coefficient is more than a given threshold, and in first health Coefficient calls first display module to show the excellent information of a test environment when being more than the given threshold, now shows the test The health status of environment is excellent, stably and controllable, and software is tested using this test environment, can accurately and efficiently detect The defect that software is present.
It is preferred that the test environment monitoring system also includes one second computing module, one second judge module and one second Display module, first judge module is used to call the second calculating mould when the first healthy coefficient is less than the given threshold Block;
Second computing module is used to utilize formulaCalculate the second healthy coefficient of i-th of test machine;
Second judge module is used to judge whether the second healthy coefficient is more than the given threshold, in the second health system Number be more than the given threshold when call second display module to show the excellent information of i-th of test machine environment, show this i-th The health status of individual test machine is excellent, otherwise call second display module show i-th of test machine environment it is bad under information, Show that the health status of i-th of test machine is poor, this test machine is unfavorable for follow-up software test.
The present invention also provides a kind of test environment monitoring method, and its feature is, it is monitored using above-mentioned test environment System is realized, is comprised the following steps:
S1, the detection module send N to i-th test machineiIndividual test information, wherein 1≤i≤k;
S2, i-th test machine receive after the test information sent, send n to the detection moduleiIndividual feedback information, this is anti- Feedforward information includes the identification information of i-th of test machine;
S3, the detection module parse the n that i-th of test machine is sentiThe individual feedback information;
S4, first computing module utilize formulaCalculate the first of the test environment of those test machines composition Healthy coefficient;
S5, first judge module judge whether the first healthy coefficient is more than the given threshold, if the first health system Number is more than the given threshold and then enters step S6
S6, first display module show the excellent information of the test environment.
It is preferred that the test environment monitoring system also includes one second computing module, one second judge module and one second Display module, in step S5In the first healthy coefficient then second computing module utilizes formula when being less than the given thresholdCalculate the second healthy coefficient of i-th of test machine;
Second judge module judges whether the second healthy coefficient is more than the given threshold, if the second healthy coefficient is big In the given threshold, then second display module shows the excellent information of i-th of test machine environment, otherwise the second display mould Block show i-th of test machine environment it is bad under information.
On the basis of common sense in the field is met, above-mentioned each optimum condition can be combined, and produce each preferable reality of the present invention Example.
The positive effect of the present invention is:
The function of health status of the present invention with quick detection test environment so that tester recognizes survey in time The robustness in test ring border, has saved the time cost and human cost of tester, can effectively promote software test automation Process, improves operating efficiency.
Brief description of the drawings
Fig. 1 is the structured flowchart of the test environment monitoring system of the embodiment of the present invention 1.
Fig. 2 is the flow chart of the test environment monitoring method of the embodiment of the present invention 1.
Fig. 3 is the structured flowchart of the test environment monitoring system of the embodiment of the present invention 2.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment 1
The present embodiment provides a kind of test environment monitoring system, software test of the system suitable for software development cycle Health status identification of the stage early stage to the test environment of software, the function of the health status with quick detection test environment, So that tester recognizes the robustness of test environment, the convenient follow-up accurate test to software function and performance in time.
As shown in figure 1, the test environment monitoring system includes a server 1 and k test machine 2, the server 1 and the k Individual test machine 2 sets up communication connection, and the server 1 includes a detection module 11, one first computing module 12, one first and judged The display module 14 of module 13 and 1 first.
The function that each part that lower mask body is introduced the test environment monitoring system and included possesses:
The detection module 11 is used to send N to i-th of test machineiIndividual test information, wherein 1≤i≤k;
I-th of test machine 2 is used to receive the test information sent and sends n to the detection module 11iIndividual feedback information, should Feedback information includes the identification information of i-th of test machine;
The detection module 11 is additionally operable to parse the n that i-th of test machine is sentiThe individual feedback information;
First computing module 12 is used to utilize formulaCalculate the test environment of those test machines composition First healthy coefficient;
First judge module 13 is used to judging whether the first healthy coefficient to be more than a given threshold, and first is good at this Health coefficient calls first display module 14 to show a test environment excellent information when being more than the given threshold, now show this The health status of test environment is excellent, stably and controllable, and software is tested using this test environment, can accurately and efficiently examine Measure the defect of software presence.
The present embodiment also provides a kind of test environment monitoring method, and it is realized using above-mentioned test environment monitoring system, It comprises the following steps:
Step 101, the detection module send N to i-th of test machineiIndividual test information, wherein 1≤i≤k;
Step 102, i-th of test machine are received after the test information sent, and n is sent to the detection moduleiIndividual feedback letter Breath, the feedback information includes the identification information of i-th of test machine;
Step 103, the detection module parse the n that i-th of test machine is sentiThe individual feedback information;
Step 104, first computing module utilize formulaCalculate the test environment of those test machines composition The first healthy coefficient;
Step 105, first judge module judge whether the first healthy coefficient is more than the given threshold, if this first is good for Health coefficient is more than the given threshold and then enters step 106, otherwise into step 107;
Step 106, first display module show the excellent information of the test environment, terminate flow;
Step 107, first display module show the test environment it is bad under information, terminate flow.
In order that obtaining those skilled in the art more fully understands the present invention, name a specific example to illustrate this hair It is bright:
With reference to Fig. 1 and 2, if the quantity of the test machine in this example is 5, this 5 test machines 2 set up logical with server 1 Letter.First, detection module 11 is respectively to this 5 test machine mass-sending test information, if the test information sent to each test machine It is 100, the 1st test machine is received after the test information sent, 99 feedback informations, the 2nd is sent to detection module 11 Individual test machine is received after the test information sent, and 98 feedback informations are sent to detection module 11, and the 3rd test machine is received After the test information sent, 97 feedback informations are sent to detection module 11, the 4th test machine receives the test information sent Afterwards, 99 feedback informations are sent to detection module 11, the 5th test machine is received after the test information sent, to detection module 11 send 100 feedback informations.
Thereafter, detection module 11 is separately recovered these feedback informations and parsed, and the first computing module 12 is calculated using formula First healthy coefficient of the test environment of this 5 test machine compositions, the first health coefficient F=(99+98+97+99+100)/ (100*5)=0.986.
First judge module 13 judges that whether the first healthy coefficient (0.986) is more than given threshold (0.8), and judge First healthy coefficient is more than the given threshold, then the first display module 14 shows the excellent information of the test environment.
Embodiment 2
As shown in figure 3, the test environment monitoring system of the present embodiment also includes one second on the basis of embodiment 1 calculates mould Block 15, one second judge module 16 and one second display module 17.
Second computing module 15 is used to utilize formula when the first healthy coefficient is less than given thresholdCalculating should The healthy coefficient of the second of i-th of test machine.
Second judge module 16 is used to judge whether the second healthy coefficient is more than the given threshold, in second health Coefficient calls second display module 17 to show i-th of test machine environment excellent information when being more than the given threshold, show The health status of i-th of test machine is excellent, under otherwise calling second display module 17 display, i-th of test machine environment bad Information, show that the health status of i-th of test machine is poor, this test machine is unfavorable for follow-up software test.
The test environment monitoring method of the present embodiment also includes on the basis of the method for embodiment 1:
When the first healthy coefficient is less than the given threshold, second computing module utilizes formulaCalculating should The healthy coefficient of the second of i-th of test machine;Thereafter second judge module judges whether the second healthy coefficient is more than the setting Threshold value, second display module shows that i-th of test machine environment is excellent if the second healthy coefficient is more than the given threshold Information, otherwise second display module show i-th of test machine environment it is bad under information.
Although the foregoing describing the embodiment of the present invention, it will be appreciated by those of skill in the art that these It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back On the premise of principle and essence from the present invention, various changes or modifications can be made to these embodiments, but these are changed Protection scope of the present invention is each fallen within modification.

Claims (4)

1. a kind of test environment monitoring system, it is characterised in that it includes a server and k test machine, the server and the k Individual test machine sets up communication connection, the server include a detection module, one first computing module, one first judge module and One first display module;
The detection module is used to send N to i-th of test machineiIndividual test information, wherein 1≤i≤k;
I-th of test machine is used to receive the test information sent and sends n to the detection moduleiIndividual feedback information, the feedback letter Breath includes the identification information of i-th of test machine;
The detection module is additionally operable to parse the n that i-th of test machine is sentiThe individual feedback information;
First computing module is used to utilize formulaCalculate the test environment of those test machines composition first is good for Health coefficient;
First judge module is used to judge whether the first healthy coefficient is more than a given threshold, and in the first healthy coefficient First display module is called to show a test environment excellent information during more than the given threshold.
2. test environment monitoring system as claimed in claim 1, it is characterised in that the test environment monitoring system also includes one Second computing module, one second judge module and one second display module, first judge module are used in the first health system Number calls second computing module when being less than the given threshold;
Second computing module is used to utilize formulaCalculate the second healthy coefficient of i-th of test machine;
Second judge module is used to judge whether the second healthy coefficient is more than the given threshold, big in the second healthy coefficient Call second display module to show i-th of test machine environment excellent information when the given threshold, otherwise call this Two display modules show i-th of test machine environment it is bad under information.
3. a kind of test environment monitoring method, it is characterised in that it utilizes test environment monitoring system as claimed in claim 1 Realize, comprise the following steps:
S1, the detection module send N to i-th test machineiIndividual test information, wherein 1≤i≤k;
S2, i-th test machine receive after the test information sent, send n to the detection moduleiIndividual feedback information, the feedback letter Breath includes the identification information of i-th of test machine;
S3, the detection module parse the n that i-th of test machine is sentiThe individual feedback information;
S4, first computing module utilize formulaCalculate the first health of the test environment of those test machines composition Coefficient;
S5, first judge module judge whether the first healthy coefficient is more than the given threshold, if the first healthy coefficient is more than The given threshold then enters step S6
S6, first display module show the excellent information of the test environment.
4. test environment monitoring method as claimed in claim 3, it is characterised in that the test environment monitoring system also includes one Second computing module, one second judge module and one second display module, in step S5In the first healthy coefficient be less than should Then second computing module utilizes formula during given thresholdCalculate the second healthy coefficient of i-th of test machine;
Second judge module judges whether the second healthy coefficient is more than the given threshold, is somebody's turn to do if the second healthy coefficient is more than Then second display module shows the excellent information of i-th of test machine environment to given threshold, and otherwise second display module shows Show i-th of test machine environment it is bad under information.
CN201510141366.5A 2015-03-27 2015-03-27 test environment monitoring system and method Active CN104714888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510141366.5A CN104714888B (en) 2015-03-27 2015-03-27 test environment monitoring system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510141366.5A CN104714888B (en) 2015-03-27 2015-03-27 test environment monitoring system and method

Publications (2)

Publication Number Publication Date
CN104714888A CN104714888A (en) 2015-06-17
CN104714888B true CN104714888B (en) 2017-09-01

Family

ID=53414246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510141366.5A Active CN104714888B (en) 2015-03-27 2015-03-27 test environment monitoring system and method

Country Status (1)

Country Link
CN (1) CN104714888B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978747A (en) * 2016-04-20 2016-09-28 上海斐讯数据通信技术有限公司 Environment monitoring system and environment monitoring method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042673A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Software testing system and testing method
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150234907A1 (en) * 2013-03-29 2015-08-20 Hitachi, Ltd. Test environment management apparatus and test environment construction method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042673A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Software testing system and testing method
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无线网络性能测试标准;chenkai619;《blog.csdn.net/chenkai619/article/details/7822742》;20120802;第1页 *

Also Published As

Publication number Publication date
CN104714888A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN103106134B (en) A kind of performance deficiency detection method, device and system
CN110532152A (en) A kind of monitoring alarm processing method and system based on Kapacitor computing engines
CN116993532B (en) Method and system for improving preparation efficiency of battery parts
CN102866885B (en) Method and device for confirming clicking position in webpage
CN104714888B (en) test environment monitoring system and method
WO2019019429A1 (en) Anomaly detection method, device and apparatus for virtual machine, and storage medium
CN110321144A (en) Recognition methods, device, equipment and the storage medium of offline source code
CN106651513A (en) Quoting method and apparatus for circuit board order
CN107341202A (en) Appraisal procedure, device and the storage medium of business datum table amendment risk factor
CN104123469B (en) Detection scheduling system and method for context consistency in pervasive computing environment
CN111241432A (en) User behavior analysis method and device and computer readable storage medium
CN115314424B (en) Method and device for rapidly detecting network signals
West et al. Comparative study of methods for the real-time detection of dynamic bottlenecks in serial production lines
CN110971483B (en) Pressure testing method and device and computer system
CN114742412A (en) Software technology service system and method
CN115630855A (en) Intelligent crude tin smelting system and method
CN111985901A (en) Marketing product configuration method, device, equipment and storage medium in telecommunication industry
CN112580869A (en) Service optimization method, device and equipment
CN107515821A (en) Components testing method and apparatus
CN109816480A (en) It is a kind of to promote the method and device for extracting quotation parameter accuracy rate
CN117251769B (en) Abnormal data identification method, device, equipment and medium based on monitoring component
CN109738694A (en) A kind of chip power-consumption prediction technique, device, electronic equipment and storage medium
CN113342872B (en) PUE energy consumption monitoring-based method and electronic equipment
CN101419281B (en) Radar data true north fan moveout monitoring method
CN107133179B (en) Website defect prediction method based on Bayesian network and implementation system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160203

Address after: 200335 Shanghai city Changning District Admiralty Road No. 968 Building No. 16 10 floor

Applicant after: SHANGHAI XIECHENG BUSINESS CO., LTD.

Address before: 200335 Shanghai City, Changning District Fuquan Road No. 99, Ctrip network technology building

Applicant before: Ctrip computer technology (Shanghai) Co., Ltd.

GR01 Patent grant
GR01 Patent grant