CN104809063A - Test method and device of distributed system - Google Patents

Test method and device of distributed system Download PDF

Info

Publication number
CN104809063A
CN104809063A CN201510201665.3A CN201510201665A CN104809063A CN 104809063 A CN104809063 A CN 104809063A CN 201510201665 A CN201510201665 A CN 201510201665A CN 104809063 A CN104809063 A CN 104809063A
Authority
CN
China
Prior art keywords
distributed system
described distributed
test
daily record
data
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
Application number
CN201510201665.3A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510201665.3A priority Critical patent/CN104809063A/en
Publication of CN104809063A publication Critical patent/CN104809063A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a test method and a device of a distributed system. According to the embodiment of the invention, running state data of a tested distributed system is obtained, so that the test result of the distributed system can be obtained according to the running state date and preset reference state data, and the operation is simple and the accuracy is high, so that the efficiency and the reliability of test of the distributed system are improved.

Description

The method of testing of distributed system and device
[technical field]
The present invention relates to measuring technology, particularly relate to a kind of method of testing and device of distributed system.
[background technology]
Distributed system is a computer system be made up of multiple process resource be connected to each other, and they are the same task of collaborative execution under the control of whole system.These process resource, can be called node device again, can be geographically adjacent, also can disperse geographically.At present, for the test operation of distributed system, what generally adopt is business function feature for tested distributed system, writes test script respectively.
But, the complicated operation of existing test operation, and easily make mistakes, thus result in the efficiency of the test of distributed system and the reduction of reliability.
[summary of the invention]
Many aspects of the present invention provide a kind of method of testing and device of distributed system, in order to improve efficiency and the reliability of the test of distributed system.
An aspect of of the present present invention, provides a kind of method of testing of distributed system, comprising:
Obtain the running state data of tested distributed system;
According to described running state data and the normal condition data pre-set, obtain the test result of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, the running state data of described distributed system further, comprises at least one item in following data:
The test run daily record of distributed system; And
The test feature data of distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the running state data of described distributed system comprises the test run daily record of distributed system; The running state data of the distributed system that described acquisition is tested, comprising:
Gather the daily record data of each node device at least one node device comprised in described distributed system;
The facility information of the node device belonging to daily record data and this daily record data is carried out encapsulation process, to obtain the test run daily record of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the test run daily record of described distributed system comprises at least one item in following daily record:
The test function daily record of described distributed system;
The test abnormal log of described distributed system; And
The test and debugging daily record of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the running state data of the distributed system that described acquisition is tested, comprising:
In described distributed system, run at least one test case;
Obtain the running state data that described distributed system runs at least one test case described.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described in described distributed system, runs at least one test case, comprising:
In described distributed system, according to time sequencing, run each test case at least one test case described successively.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described according to described running state data and the normal condition data pre-set, and obtains the test result of described distributed system, comprising:
According to described running state data and described normal condition data, determine that described distributed system occurs abnormal;
There is abnormal temporal information and the execution time of described each test case according to described distributed system, obtain the test case run when described distributed system occurs abnormal.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described according to described running state data and the normal condition data pre-set, and before obtaining the test result of described distributed system, also comprises:
According to the source code of each functional unit disposed in described distributed system, generate the benchmark running log of described distributed system; And/or
According to described distributed system, obtain the reference characteristic data of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the benchmark running log of described distributed system comprises at least one item in following daily record:
The benchmark function daily record of described distributed system;
The benchmark abnormal log of described distributed system; And
The benchmark debugging log of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described according to described running state data and the normal condition data pre-set, and obtains the test result of described distributed system, comprising:
Described running state data and described normal condition data are carried out matching treatment, to obtain matching result;
According to described matching result, obtain at least one item in the daily record coverage rate of described distributed system and the system performance of described distributed system.
Another aspect of the present invention, provides a kind of proving installation of distributed system, comprising:
Acquiring unit, for obtaining the running state data of tested distributed system;
Analytic unit, for according to described running state data and the normal condition data pre-set, obtains the test result of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, the running state data of described distributed system further, comprises at least one item in following data:
The test run daily record of distributed system; And
The test feature data of distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the running state data of described distributed system comprises the test run daily record of distributed system; Described acquiring unit, specifically for
Gather the daily record data of each node device at least one node device comprised in described distributed system; And
The facility information of the node device belonging to daily record data and this daily record data is carried out encapsulation process, to obtain the test run daily record of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the test run daily record of described distributed system comprises at least one item in following daily record:
The test function daily record of described distributed system;
The test abnormal log of described distributed system; And
The test and debugging daily record of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described acquiring unit further, specifically for
In described distributed system, run at least one test case; And
Obtain the running state data that described distributed system runs at least one test case described.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described acquiring unit further, specifically for
In described distributed system, according to time sequencing, run each test case at least one test case described successively.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described analytic unit further, specifically for
According to described running state data and described normal condition data, determine that described distributed system occurs abnormal; And
There is abnormal temporal information and the execution time of described each test case according to described distributed system, obtain the test case run when described distributed system occurs abnormal.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described analytic unit further, also for
According to the source code of each functional unit disposed in described distributed system, generate the benchmark running log of described distributed system; And/or
According to described distributed system, obtain the reference characteristic data of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the benchmark running log of described distributed system comprises at least one item in following daily record:
The benchmark function daily record of described distributed system;
The benchmark abnormal log of described distributed system; And
The benchmark debugging log of described distributed system.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described analytic unit further, specifically for
Described running state data and described normal condition data are carried out matching treatment, to obtain matching result; And
According to described matching result, obtain at least one item in the daily record coverage rate of described distributed system and the system performance of described distributed system.
As shown from the above technical solution, the embodiment of the present invention is by obtaining the running state data of tested distributed system, make it possible to according to described running state data and the normal condition data pre-set, obtain the test result of described distributed system, simple to operate, and accuracy is high, thus improve efficiency and the reliability of the test of distributed system.
In addition, adopt technical scheme provided by the present invention, without the need to the business function feature for tested distributed system, write test script respectively, make no longer to need to write test script miscellaneous in a large number, therefore, it is possible to effectively improve the efficiency of the test of distributed system.
In addition, adopt technical scheme provided by the present invention, due in tested distributed system, according to time sequencing, run each test case successively, along feature when making these test cases have, therefore, easily can analyze the test case run when this distributed system occurs abnormal, and then this distributed system is tested targetedly.
In addition, adopt technical scheme provided by the present invention, owing to adopting the test run daily record of tested distributed system to test, therefore, it is possible to effectively improve the test granularity of distributed system.
[accompanying drawing explanation]
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the method for testing of the distributed system that Fig. 1 provides for one embodiment of the invention;
The structural representation of the proving installation of the distributed system that Fig. 2 provides for another embodiment of the present invention.
[embodiment]
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments whole obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, terminal involved in the embodiment of the present invention can include but not limited to mobile phone, personal digital assistant (Personal Digital Assistant, PDA), radio hand-held equipment, panel computer (Tablet Computer), PC (Personal Computer, PC), MP3 player, MP4 player, wearable device (such as, intelligent glasses, intelligent watch, Intelligent bracelet etc.) etc.
In addition, term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
The schematic flow sheet of the method for testing of the distributed system that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1.
101, the running state data of tested distributed system is obtained.
Wherein, the running state data of described distributed system, can include but not limited at least one item in following data:
The test run daily record of distributed system; And
The test feature data of distributed system.
In a concrete implementation procedure, the test run daily record of described distributed system, can include but not limited at least one item in following daily record:
The test function daily record of described distributed system;
The test abnormal log of described distributed system; And
The test and debugging daily record of described distributed system.
In the implementation procedure that another is concrete, the test feature data of described distributed system, can include but not limited at least one item in following data:
Number of request per second;
Number of concurrent;
Response time; And
Handling capacity.
102, according to described running state data and the normal condition data that pre-set, the test result of described distributed system is obtained.
Wherein, described in the normal condition data that pre-set, at least one item in following data can be included but not limited to:
The benchmark running log of distributed system; And
The reference characteristic data of distributed system.
In a concrete implementation procedure, the benchmark running log of described distributed system, can include but not limited at least one item in following daily record:
The benchmark function daily record of described distributed system;
The benchmark abnormal log of described distributed system; And
The benchmark debugging log of described distributed system.
In the implementation procedure that another is concrete, the reference characteristic data of described distributed system, can include but not limited at least one item in following data:
Number of request per second;
Number of concurrent;
Response time; And
Handling capacity.
Alternatively, in one of the present embodiment possible implementation, before 102, further according to the source code of each functional unit disposed in described distributed system, the benchmark running log of described distributed system can also be generated.
Particularly, specifically can utilize source code path, such as, Sub Version (SVN) path, obtains the source code of each functional unit disposed in described distributed system.Then, do not carry out the analyses such as any morphology, grammer, only adopt the analytical approach of lightweight, the source code of each functional unit of lining by line scan, and utilize the AD HOC pre-set to match filename and the line number of daily record, and then obtain the daily record data of distributed system.Then, then can carry out extension process to the daily record data of obtained distributed system, with obtain can canonical coupling benchmark running log.
So far, the benchmark running log of obtained distributed system can be carried out stores processor.Particularly, specifically by the benchmark running log of described distributed system, test monitoring pattern library can be written to, be stored in the memory device of terminal.
In a concrete implementation procedure, the memory device of described terminal can memory device at a slow speed, be specifically as follows the hard disk of computer system, or can also be inoperative internal memory and the physical memory of mobile phone, such as, ROM (read-only memory) (Read-Only Memory, ROM) and RAM (random access memory) card etc., the present embodiment is not particularly limited this.
In the implementation procedure that another is concrete, the memory device of described terminal can also be speedy storage equipment, be specifically as follows the internal memory of computer system, or can also be running memory and the Installed System Memory of mobile phone, such as, random access memory (Random Access Memory, RAM) etc., the present embodiment is not particularly limited this.
Alternatively, in one of the present embodiment possible implementation, before 102, further according to described distributed system, the reference characteristic data of described distributed system can also be obtained.
So far, the reference characteristic data of obtained distributed system can be carried out stores processor.Particularly, specifically by the reference characteristic data of described distributed system, test monitoring pattern library can be written to, be stored in the memory device of terminal.
The memory device of terminal herein, see description above, can repeat no more herein.
It should be noted that, the executive agent of 101 ~ 102 partly or entirely can for being positioned at the application of local terminal, or can also for being arranged in plug-in unit or SDK (Software Development Kit) (the Software Development Kit of the application of local terminal, the functional unit such as SDK), or can also for being arranged in the processing engine of the server of network side, or can also for being positioned at the distributed system of network side, the present embodiment is not particularly limited this.
Be understandable that, described application can be mounted in the local program (nativeApp) in terminal, or can also be a web page program (webApp) of browser in terminal, and the present embodiment does not limit this.
Like this, by obtaining the running state data of tested distributed system, make it possible to according to described running state data and the normal condition data pre-set, obtain the test result of described distributed system, simple to operate, and accuracy is high, thus improve efficiency and the reliability of the test of distributed system.
Alternatively, in one of the present embodiment possible implementation, if the running state data of the described distributed system obtained in 101 can comprise the test run daily record of distributed system, so, in at least one node device that specifically can comprise in described distributed system on each node device, dispose an agent component.
Correspondingly, in 101, the agent component that each node device is disposed specifically can gather the daily record data of this node device, and then, then the facility information of the node device belonging to daily record data and this daily record data can be carried out encapsulation process, to obtain the test run daily record of described distributed system.
Wherein, the facility information of described node device, can include but not limited at least one item in following message:
Device hardware information; And
Functional unit information.
Meanwhile, the agent component that each node device is disposed, after the test run daily record obtaining described distributed system, can also be sent to the distributed transmission cluster of self-defined transmission pipeline further.That is, by self-defined transmission pipeline, be transferred to distributed transmission cluster.Like this, without the need to information such as configuration of IP address, equipment domain names, only need to carry out transmitting according to self-defined transmission pipeline.
In 102, specifically can adopt another distributed system, analyzing and processing is carried out to the test run daily record of the described distributed system of acquisition that distributed transmission cluster transmits, namely according to the test run daily record of described distributed system and the benchmark running log that pre-sets, the test result of described distributed system is obtained.
Particularly, another distributed system adopted can be existing any distributed system.In recent years, along with the fast development of broadband network technology and parallel computation theory, namely a kind of distributed system more simplified maps and gathers (MapReduce) distributed system and arise at the historic moment, and thinks that multiple application provides service.
In MapReduce distributed system, such as, Hadoop system, in, a data handling procedure is called an operation (Job), after Job submits to, pending data are divided into N part, every part of pending data are processed by mapping (Map) task, on the node device of Map task run in this MapReduce distributed system, a node device can run one or more Map task; The Output rusults of all Map tasks gathers by gathering (Reduce) task, exports corresponding result.Wherein, Hadoop is an open source projects under Apache's software fund.
Like this, due to the operation of multitask, therefore, it is possible to effectively ensure the efficiency of the test of distributed system.
Alternatively, in one of the present embodiment possible implementation, if the running state data of the described distributed system obtained in 101 can comprise the test feature data of distributed system, so, specifically can adopt existing public instrument, the data of Real-time Obtaining representation system key feature, using the test feature data as distributed system.
Alternatively, in one of the present embodiment possible implementation, in 102, specifically described running state data and described normal condition data can be carried out matching treatment, to obtain matching result, and then, then according to described matching result, at least one item in the daily record coverage rate of described distributed system and the system performance of described distributed system can be obtained.
In a concrete implementation procedure, specifically the benchmark running log of the test run daily record of obtained distributed system and distributed system can be carried out matching treatment, to analyze the running log branch situation that each node device is passed by, and then count the daily record coverage rate of system level and the daily record coverage rate etc. of facility level.
In the implementation procedure that another is concrete, specifically the reference characteristic data of the test feature data of obtained distributed system and distributed system can be carried out matching treatment, with the performance of analysis distribution formula system.
Alternatively, in one of the present embodiment possible implementation, in 101, specifically can in described distributed system, run at least one test case, and then, then can obtain the running state data that described distributed system runs at least one test case described.
In a concrete implementation procedure, specifically automated test tool can be utilized, such as, WebDriver etc., user operation involved on several pages of being correlated with by the application scenarios of tested distributed system, carries out encapsulation process, to obtain the test case required for execution 101.
In the implementation procedure that another is concrete, specifically in described distributed system, according to time sequencing, each test case at least one test case described can be run successively.
Like this, due in tested distributed system, according to time sequencing, run each test case successively, along feature when making these test cases have, therefore, it is possible to easily analyze the test case run when this distributed system occurs abnormal, and then this distributed system is tested targetedly.
In the implementation procedure that another is concrete, in 102, specifically can according to described running state data and described normal condition data, determine that described distributed system occurs abnormal, and then, then can there is abnormal temporal information and the execution time of described each test case according to described distributed system, obtain the test case run when described distributed system occurs abnormal.
Like this, due in tested distributed system, according to time sequencing, run each test case successively, along feature when making these test cases have, therefore, it is possible to easily analyze the test case run when this distributed system occurs abnormal, and then this distributed system is tested targetedly.
In the present embodiment, by obtaining the running state data of tested distributed system, make it possible to according to described running state data and the normal condition data pre-set, obtain the test result of described distributed system, simple to operate, and accuracy is high, thus improve efficiency and the reliability of the test of distributed system.
In addition, adopt technical scheme provided by the present invention, without the need to the business function feature for tested distributed system, write test script respectively, make no longer to need to write test script miscellaneous in a large number, therefore, it is possible to effectively improve the efficiency of the test of distributed system.
In addition, adopt technical scheme provided by the present invention, due in tested distributed system, according to time sequencing, run each test case successively, along feature when making these test cases have, therefore, easily can analyze the test case run when this distributed system occurs abnormal, and then this distributed system is tested targetedly.
In addition, adopt technical scheme provided by the present invention, owing to adopting the test run daily record of tested distributed system to test, therefore, it is possible to effectively improve the test granularity of distributed system.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
The structural representation of the proving installation of the distributed system that Fig. 2 provides for another embodiment of the present invention, as shown in Figure 2.The proving installation of the distributed system of the present embodiment can comprise acquiring unit 21 and analytic unit 22.Wherein, acquiring unit 21, for obtaining the running state data of tested distributed system; Analytic unit 22, for according to described running state data and the normal condition data pre-set, obtains the test result of described distributed system.
Wherein, the running state data of described distributed system, can include but not limited at least one item in following data:
The test run daily record of distributed system; And
The test feature data of distributed system.
In a concrete implementation procedure, the test run daily record of described distributed system, can include but not limited at least one item in following daily record:
The test function daily record of described distributed system;
The test abnormal log of described distributed system; And
The test and debugging daily record of described distributed system.
In the implementation procedure that another is concrete, the test feature data of described distributed system, can include but not limited at least one item in following data:
Number of request per second;
Number of concurrent;
Response time; And
Handling capacity.
Wherein, described in the normal condition data that pre-set, at least one item in following data can be included but not limited to:
The benchmark running log of distributed system; And
The reference characteristic data of distributed system.
In a concrete implementation procedure, the benchmark running log of described distributed system, can include but not limited at least one item in following daily record:
The benchmark function daily record of described distributed system;
The benchmark abnormal log of described distributed system; And
The benchmark debugging log of described distributed system.
In the implementation procedure that another is concrete, the reference characteristic data of described distributed system, can include but not limited at least one item in following data:
Number of request per second;
Number of concurrent;
Response time; And
Handling capacity.
Alternatively, in one of the present embodiment possible implementation, described analytic unit 22, can also be further used for the source code according to each functional unit disposed in described distributed system, generates the benchmark running log of described distributed system.
Alternatively, in one of the present embodiment possible implementation, described analytic unit 22, can also be further used for according to described distributed system, obtains the reference characteristic data of described distributed system.
Alternatively, in one of the present embodiment possible implementation, described analytic unit 22, the source code according to each functional unit disposed in described distributed system can also be further used for, generate the benchmark running log of described distributed system, and according to described distributed system, obtain the reference characteristic data of described distributed system.
Alternatively, in one of the present embodiment possible implementation, if the running state data of the described distributed system that described acquiring unit obtains can comprise the test run daily record of distributed system, so, described acquiring unit 21, specifically then may be used for gathering the daily record data of each node device at least one node device comprised in described distributed system; And the facility information of the node device belonging to daily record data and this daily record data is carried out encapsulation process, to obtain the test run daily record of described distributed system.
Wherein, the facility information of described node device, can include but not limited at least one item in following message:
Device hardware information; And
Functional unit information.
Alternatively, in one of the present embodiment possible implementation, described analytic unit 22, specifically may be used for described running state data and described normal condition data to carry out matching treatment, to obtain matching result; And according to described matching result, obtain at least one item in the daily record coverage rate of described distributed system and the system performance of described distributed system.
Alternatively, in one of the present embodiment possible implementation, described acquiring unit 21, specifically may be used for, in described distributed system, running at least one test case; And obtain the running state data that described distributed system runs at least one test case described.
In a concrete implementation procedure, described acquiring unit 21, specifically may be used in described distributed system, according to time sequencing, runs each test case at least one test case described successively.Like this, due in tested distributed system, according to time sequencing, run each test case successively, along feature when making these test cases have, therefore, it is possible to easily analyze the test case run when this distributed system occurs abnormal, and then this distributed system is tested targetedly.
In the implementation procedure that another is concrete, described analytic unit 22, specifically may be used for according to described running state data and described normal condition data, determines that described distributed system occurs abnormal; And there is abnormal temporal information and the execution time of described each test case according to described distributed system, obtain the test case run when described distributed system occurs abnormal.
It should be noted that, method in the embodiment that Fig. 1 is corresponding, the proving installation of the distributed system that can be provided by the present embodiment realizes.Detailed description see the related content in embodiment corresponding to Fig. 1, can repeat no more herein.
In the present embodiment, the running state data of tested distributed system is obtained by acquiring unit, make analytic unit can according to described running state data and the normal condition pre-set data, obtain the test result of described distributed system, simple to operate, and accuracy is high, thus improve efficiency and the reliability of the test of distributed system.
In addition, adopt technical scheme provided by the present invention, without the need to the business function feature for tested distributed system, write test script respectively, make no longer to need to write test script miscellaneous in a large number, therefore, it is possible to effectively improve the efficiency of the test of distributed system.
In addition, adopt technical scheme provided by the present invention, due in tested distributed system, according to time sequencing, run each test case successively, along feature when making these test cases have, therefore, easily can analyze the test case run when this distributed system occurs abnormal, and then this distributed system is tested targetedly.
In addition, adopt technical scheme provided by the present invention, owing to adopting the test run daily record of tested distributed system to test, therefore, it is possible to effectively improve the test granularity of distributed system.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (20)

1. a method of testing for distributed system, is characterized in that, comprising:
Obtain the running state data of tested distributed system;
According to described running state data and the normal condition data pre-set, obtain the test result of described distributed system.
2. method according to claim 1, is characterized in that, the running state data of described distributed system, comprises at least one item in following data:
The test run daily record of distributed system; And
The test feature data of distributed system.
3. method according to claim 2, is characterized in that, the running state data of described distributed system comprises the test run daily record of distributed system; The running state data of the distributed system that described acquisition is tested, comprising:
Gather the daily record data of each node device at least one node device comprised in described distributed system;
The facility information of the node device belonging to daily record data and this daily record data is carried out encapsulation process, to obtain the test run daily record of described distributed system.
4. method according to claim 2, is characterized in that, the test run daily record of described distributed system, comprises at least one item in following daily record:
The test function daily record of described distributed system;
The test abnormal log of described distributed system; And
The test and debugging daily record of described distributed system.
5. method according to claim 1, is characterized in that, the running state data of the distributed system that described acquisition is tested, comprising:
In described distributed system, run at least one test case;
Obtain the running state data that described distributed system runs at least one test case described.
6. method according to claim 5, is characterized in that, described in described distributed system, runs at least one test case, comprising:
In described distributed system, according to time sequencing, run each test case at least one test case described successively.
7. method according to claim 6, is characterized in that, described according to described running state data and the normal condition data pre-set, and obtains the test result of described distributed system, comprising:
According to described running state data and described normal condition data, determine that described distributed system occurs abnormal;
There is abnormal temporal information and the execution time of described each test case according to described distributed system, obtain the test case run when described distributed system occurs abnormal.
8. method according to claim 1, is characterized in that, described according to described running state data and the normal condition data pre-set, and before obtaining the test result of described distributed system, also comprises:
According to the source code of each functional unit disposed in described distributed system, generate the benchmark running log of described distributed system; And/or
According to described distributed system, obtain the reference characteristic data of described distributed system.
9. method according to claim 8, is characterized in that, the benchmark running log of described distributed system, comprises at least one item in following daily record:
The benchmark function daily record of described distributed system;
The benchmark abnormal log of described distributed system; And
The benchmark debugging log of described distributed system.
10. the method according to the arbitrary claim of claim 1 ~ 9, is characterized in that, described according to described running state data and the normal condition data pre-set, and obtains the test result of described distributed system, comprising:
Described running state data and described normal condition data are carried out matching treatment, to obtain matching result;
According to described matching result, obtain at least one item in the daily record coverage rate of described distributed system and the system performance of described distributed system.
The proving installation of 11. 1 kinds of distributed systems, is characterized in that, comprising:
Acquiring unit, for obtaining the running state data of tested distributed system;
Analytic unit, for according to described running state data and the normal condition data pre-set, obtains the test result of described distributed system.
12. devices according to claim 11, is characterized in that, the running state data of described distributed system, comprise at least one item in following data:
The test run daily record of distributed system; And
The test feature data of distributed system.
13. devices according to claim 12, is characterized in that, the running state data of described distributed system comprises the test run daily record of distributed system; Described acquiring unit, specifically for
Gather the daily record data of each node device at least one node device comprised in described distributed system; And
The facility information of the node device belonging to daily record data and this daily record data is carried out encapsulation process, to obtain the test run daily record of described distributed system.
14. devices according to claim 12, is characterized in that, the test run daily record of described distributed system, comprise at least one item in following daily record:
The test function daily record of described distributed system;
The test abnormal log of described distributed system; And
The test and debugging daily record of described distributed system.
15. devices according to claim 11, is characterized in that, described acquiring unit, specifically for
In described distributed system, run at least one test case; And
Obtain the running state data that described distributed system runs at least one test case described.
16. devices according to claim 15, is characterized in that, described acquiring unit, specifically for
In described distributed system, according to time sequencing, run each test case at least one test case described successively.
17. devices according to claim 16, is characterized in that, described analytic unit, specifically for
According to described running state data and described normal condition data, determine that described distributed system occurs abnormal; And
There is abnormal temporal information and the execution time of described each test case according to described distributed system, obtain the test case run when described distributed system occurs abnormal.
18. devices according to claim 11, is characterized in that, described analytic unit, also for
According to the source code of each functional unit disposed in described distributed system, generate the benchmark running log of described distributed system; And/or
According to described distributed system, obtain the reference characteristic data of described distributed system.
19. devices according to claim 18, is characterized in that, the benchmark running log of described distributed system, comprise at least one item in following daily record:
The benchmark function daily record of described distributed system;
The benchmark abnormal log of described distributed system; And
The benchmark debugging log of described distributed system.
20. devices according to the arbitrary claim of claim 11 ~ 19, is characterized in that, described analytic unit, specifically for
Described running state data and described normal condition data are carried out matching treatment, to obtain matching result; And
According to described matching result, obtain at least one item in the daily record coverage rate of described distributed system and the system performance of described distributed system.
CN201510201665.3A 2015-04-24 2015-04-24 Test method and device of distributed system Pending CN104809063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510201665.3A CN104809063A (en) 2015-04-24 2015-04-24 Test method and device of distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510201665.3A CN104809063A (en) 2015-04-24 2015-04-24 Test method and device of distributed system

Publications (1)

Publication Number Publication Date
CN104809063A true CN104809063A (en) 2015-07-29

Family

ID=53693905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510201665.3A Pending CN104809063A (en) 2015-04-24 2015-04-24 Test method and device of distributed system

Country Status (1)

Country Link
CN (1) CN104809063A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812210A (en) * 2016-05-25 2016-07-27 赵鹏 Distributed network performance measuring system
CN106067043A (en) * 2016-06-01 2016-11-02 重庆中科云丛科技有限公司 A kind of performance test methods and system
WO2017157203A1 (en) * 2016-03-18 2017-09-21 阿里巴巴集团控股有限公司 Reference test method and device for supervised learning algorithm in distributed environment
CN108763089A (en) * 2018-05-31 2018-11-06 新华三信息安全技术有限公司 A kind of test method, apparatus and system
CN110457222A (en) * 2019-08-12 2019-11-15 上海漫酷网络技术有限公司 A kind of tracking error-checking method for distribution on line formula system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707632A (en) * 2009-10-28 2010-05-12 浪潮电子信息产业股份有限公司 Method for dynamically monitoring performance of server cluster and alarming real-timely
CN102075384A (en) * 2010-12-20 2011-05-25 创新科存储技术有限公司 Performance test system and method
CN103365780A (en) * 2013-07-22 2013-10-23 百度在线网络技术(北京)有限公司 Method and device for calculating coverage rate of abnormal test
US20140058689A1 (en) * 2012-08-21 2014-02-27 Omicron Electronics Gmbh Method of Monitoring Operation of An Electric Power System and Monitoring System
US20140245069A1 (en) * 2013-02-28 2014-08-28 International Business Machines Corporation Managing software performance tests based on a distributed virtual machine system
CN104077218A (en) * 2013-03-29 2014-10-01 百度在线网络技术(北京)有限公司 Test method and device of MapReduce distributed system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707632A (en) * 2009-10-28 2010-05-12 浪潮电子信息产业股份有限公司 Method for dynamically monitoring performance of server cluster and alarming real-timely
CN102075384A (en) * 2010-12-20 2011-05-25 创新科存储技术有限公司 Performance test system and method
US20140058689A1 (en) * 2012-08-21 2014-02-27 Omicron Electronics Gmbh Method of Monitoring Operation of An Electric Power System and Monitoring System
US20140245069A1 (en) * 2013-02-28 2014-08-28 International Business Machines Corporation Managing software performance tests based on a distributed virtual machine system
CN104077218A (en) * 2013-03-29 2014-10-01 百度在线网络技术(北京)有限公司 Test method and device of MapReduce distributed system
CN103365780A (en) * 2013-07-22 2013-10-23 百度在线网络技术(北京)有限公司 Method and device for calculating coverage rate of abnormal test

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡瑶: "分布式系统自动化测试平台设计与实现", 《万方数据企业知识服务平台》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157203A1 (en) * 2016-03-18 2017-09-21 阿里巴巴集团控股有限公司 Reference test method and device for supervised learning algorithm in distributed environment
CN107203467A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 The reference test method and device of supervised learning algorithm under a kind of distributed environment
TWI742040B (en) * 2016-03-18 2021-10-11 香港商阿里巴巴集團服務有限公司 Benchmark test method and device for supervised learning algorithm in distributed environment
CN105812210A (en) * 2016-05-25 2016-07-27 赵鹏 Distributed network performance measuring system
CN106067043A (en) * 2016-06-01 2016-11-02 重庆中科云丛科技有限公司 A kind of performance test methods and system
CN108763089A (en) * 2018-05-31 2018-11-06 新华三信息安全技术有限公司 A kind of test method, apparatus and system
CN108763089B (en) * 2018-05-31 2022-04-22 新华三信息安全技术有限公司 Test method, device and system
CN110457222A (en) * 2019-08-12 2019-11-15 上海漫酷网络技术有限公司 A kind of tracking error-checking method for distribution on line formula system

Similar Documents

Publication Publication Date Title
US9009677B2 (en) Application testing and analysis
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
US20130132933A1 (en) Automated compliance testing during application development
US9093841B2 (en) Power distribution network event correlation and analysis
CN104809063A (en) Test method and device of distributed system
CN105159833A (en) Automatic testing device and method
CN104407980A (en) Mobile application automated testing device and method
CN112491602B (en) Behavior data monitoring method and device, computer equipment and medium
CN103577328A (en) Method and device for analyzing performance of application
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN107025167B (en) Method and apparatus for data flow analysis using compiler type information in processor trace logs
US10084637B2 (en) Automatic task tracking
US9317416B2 (en) Merging automated testing reports
CN104765689A (en) Method and device for conducting real-time supervision to interface performance data
US11816479B2 (en) System and method for implementing a code audit tool
US11740997B2 (en) Method and apparatus for debugging a device
CN110806931A (en) Method and device for realizing call link tracking of distributed service and electronic equipment
CN109284450B (en) Method and device for determining order forming paths, storage medium and electronic equipment
US10255127B2 (en) Optimized diagnostic data collection driven by a ticketing system
CN109408309A (en) The test method and device of multiple terminals
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
US20170161176A1 (en) Trace recovery via statistical reasoning
CN112579406A (en) Log call chain generation method and device
CN112162954B (en) User operation log generation and path positioning method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150729

RJ01 Rejection of invention patent application after publication