CN103455425A - System and method for distributed type tests - Google Patents
System and method for distributed type tests Download PDFInfo
- Publication number
- CN103455425A CN103455425A CN2013104597869A CN201310459786A CN103455425A CN 103455425 A CN103455425 A CN 103455425A CN 2013104597869 A CN2013104597869 A CN 2013104597869A CN 201310459786 A CN201310459786 A CN 201310459786A CN 103455425 A CN103455425 A CN 103455425A
- Authority
- CN
- China
- Prior art keywords
- test
- testing apparatus
- test case
- central control
- control equipment
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a system and method for distributed type tests. The system comprises a centralized control device and at least two testing devices. The centralized control device is used for monitoring the testing state fed back through each testing device, obtaining information of test cases needing to be distributed again according to the testing states of the testing devices, setting testing devices newly corresponding to the test cases needing to be distributed again and execution plans newly corresponding to the test cases needing to be distributed again according to the loading condition of each testing device and sending dynamic scheduling orders to the testing devices newly corresponding to the test cases needing to be distributed again. Each testing device is used for feeding back the test state, and if the test cases needing to be distributed again exist, the test state which is fed back at least comprises the information of the test cases needing to be distributed again; when the testing devices receive the dynamic scheduling orders sent from the centralized control device, the tests are conducted according to the execution plans newly corresponding to the test cases needing to be distributed again. According to the technical scheme, loads of the testing devices are balanced and the purpose that the testing efficiency is improved can be achieved.
Description
Technical field
The application relates to the distributed system technical field, particularly relates to a kind of distributed test system and method.
Background technology
In in the past traditional testing scheme, usually adopt a computing machine to carry out the test of serial.Test mode inefficiency due to serial, in testing scheme now commonly used, usually by the test script pre-save on many computing machines, be kept at the test script of self until complete test by many concurrent execution of computing machine, thereby improved to a certain extent testing efficiency.
But, during the test script that prestores in each computing machine executed in parallel, other test scripts that indivedual test script operands that some computing machines may prestore because of it cause being pre-stored in greatly on this computing machine are carried out by overstocked can not get, and the test script on some computing machines may have certain associated and in waiting status with the sequential of test script on other computing machines, data etc., therefore, testing efficiency is still very low.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of distributed test system and method, to improve testing efficiency.
In the first aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of distributed test system, comprises central control equipment, at least two testing apparatuss, wherein:
Described central control equipment comprises:
Monitoring means, after starting test for the executive plan corresponding by test case in each testing apparatus, monitor the test mode of each testing apparatus feedback, obtains the information of the test case that need redistribute according to the test mode of testing apparatus;
The reallocation unit, for the loading condition according to each testing apparatus, this test case that need redistribute new corresponding testing apparatus and executive plan are set, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence;
Described testing apparatus comprises:
Feedback unit, be used for to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test mode of described feedback at least comprises the information of the test case that need redistribute, and cancels the execution of the test case that need are redistributed;
Performance element again, for when receiving the dynamic dispatching instruction of central control equipment transmission, obtain according to the dynamic dispatching instruction test case that the need corresponding with this testing apparatus are redistributed, the new corresponding executive plan of the test case that need redistribute according to this is tested.
Alternatively, described central control equipment also comprises and concerns storage unit, comprises the incidence relation of execution sequential and this test case and other test cases of this test case for the corresponding relation of preserving described test case and executive plan, described executive plan;
And described reallocation unit can comprise:
The inquiry subelement, for the information from concerning that storage unit is preserved, inquire about the incidence relation of this test case that need redistribute and other test cases;
Plan arranges subelement, for the incidence relation of the test case that need redistribute according to this and other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the executive plan of the new correspondence of this test case that need redistribute is set;
Equipment arranges subelement, for inquiring about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
Relation is upgraded subelement, this test case that need redistribute of preserving for renewal and the corresponding relation of executive plan;
The scheduling sublayer unit, send for the new corresponding testing apparatus of test case that need redistribute to this dynamic dispatching instruction of being tested by the executive plan of its new correspondence.
Alternatively, described reallocation unit, can also, for after sending the dynamic dispatching instruction, trigger monitoring means and re-execute;
Described performance element again, after also being tested for the new corresponding executive plan of the test case redistributing according to this, trigger feedback unit and re-execute.
Alternatively, described central control equipment can also comprise the data relay unit, the associated data request sent for receiving testing apparatus, send the associated data needed from this associated data request of other testing apparatuss acquisitions to this testing apparatus according to this associated data request;
Described testing apparatus also comprises the associated data processing unit, for obtaining the associated data request generated when performance element is tested again, send this associated data request to central control equipment, and the associated data returned according to this associated data request of receiving center opertaing device;
Described performance element, for when being tested, if need associated data, generate the associated data request, and, after the associated data that obtains the reception of associated data processing unit, continue to carry out test.
Alternatively, the feedback unit of described testing apparatus, can also be for when completing test, to central control equipment feedback test result;
Described central control equipment can also comprise the report generation unit, for receiving the test result of each testing apparatus feedback, and generates the test synthesis report according to the test result of each testing apparatus feedback.
In the second aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of distributed test method, can be applied to comprise the distributed test system of central control equipment and at least two testing apparatuss, comprising:
Described testing apparatus is to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test mode of described feedback at least comprises the information of the test case that need redistribute, and cancels the execution of the test case that need are redistributed;
Described central control equipment after the executive plan corresponding by test case starts test in each testing apparatus, is monitored the test mode of each testing apparatus feedback, obtains the information of the test case that need redistribute according to the test mode of testing apparatus;
Described central control equipment arranges this test case that need redistribute new corresponding testing apparatus and executive plan according to the loading condition of each testing apparatus, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence;
Described testing apparatus is when receiving the dynamic dispatching instruction of central control equipment transmission, obtain according to the dynamic dispatching instruction test case that the need corresponding with this testing apparatus are redistributed, the new corresponding executive plan of the test case that need redistribute according to this is tested.
Alternatively, described central control equipment also pre-save described test case and the corresponding relation of executive plan, described executive plan comprise the incidence relation of execution sequential and this test case and other test cases of this test case;
Described central control equipment arranges this test case that need redistribute new corresponding testing apparatus and executive plan according to the loading condition of each testing apparatus and comprises:
Described central control equipment is from the corresponding relation of the test case of pre-save and executive plan, inquire about the incidence relation of this test case that need redistribute and other test cases, the test case that need redistribute according to this and the incidence relation of other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the new corresponding executive plan of this test case that need redistribute is set;
Described central control equipment is inquired about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
This test case that need redistribute that described central control equipment renewal is preserved and the corresponding relation of executive plan.
Alternatively, described central control equipment, after sending the dynamic dispatching instruction, also turns back to the step of the test mode of each testing apparatus feedback of monitoring;
The new corresponding executive plan of the test case that described testing apparatus need be redistributed according to this also turns back to the step of central control equipment feedback test state after being tested.
Alternatively, described testing apparatus, when being tested, if need associated data, also generates the associated data request, to central control equipment, sends this associated data request;
Described central control equipment also receives the associated data request that testing apparatus sends, and sends the associated data needed from this associated data request of other testing apparatuss acquisitions to this testing apparatus;
Described testing apparatus, go back the associated data that the receiving center opertaing device returns according to this associated data request, continues to carry out test.
Alternatively, described testing apparatus is also when completing test, to central control equipment feedback test result;
Described central control equipment receives the test result of each testing apparatus feedback, and generates the test synthesis report according to the test result of each testing apparatus feedback.
The technical scheme that the embodiment of the present application provides, the low defect for testing efficiency in prior art, by testing apparatus to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test case information that need redistribute to the central control equipment feedback, and cancel the execution of the test case that need are redistributed, described central control equipment in each testing apparatus the executive plan corresponding by test case start the test after, monitor the test mode of each testing apparatus feedback, obtain the information of the test case that need redistribute according to the test mode of testing apparatus, thereby the test case that makes the overweight testing apparatus of some load need redistribute to the central control equipment feedback, make central control equipment, according to the loading condition of each testing apparatus, this test case that need redistribute new corresponding testing apparatus and executive plan are set, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence, make in waiting status or newly-increased testing apparatus and can obtain the test case that need redistribute, carry out the test case that this need be redistributed, make load balancing between each testing apparatus, reach the purpose that improves testing efficiency.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, the accompanying drawing the following describes is only some embodiment that put down in writing in the application, for those of ordinary skills, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the networking schematic diagram of the embodiment of the present application distributed test system;
Fig. 2 is one of the structural representation of each equipment of the embodiment of the present application distributed test system;
Fig. 3 be the embodiment of the present application distributed test system each equipment structural representation two;
Fig. 4 be the embodiment of the present application distributed test system each equipment structural representation three;
Fig. 5 be the embodiment of the present application distributed test system each equipment structural representation four;
Fig. 6 be the embodiment of the present application distributed test system each equipment structural representation five;
Fig. 7 is the schematic flow sheet of the embodiment of the present application distributed test method.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is carried out to clear, complete description, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, the every other embodiment that those of ordinary skills obtain, should belong to the scope that the application protects.
As shown in Figure 1, be the networking schematic diagram of the embodiment of the present application distributed system.As shown in the figure, this distributed test system comprises central control equipment, at least two testing apparatuss.Wherein, be provided with the essential information of each testing apparatus in central control equipment, comprise testing apparatus IP address, test case deposit position etc., for distributing test case and management testing equipment unitedly, testing apparatus is carried out test for the test case of distributing according to central control equipment.
It should be noted that, in the application, test case is comprised of some test scripts, for realizing the test function of appointment, is the primitive that forms whole testing scheme.The tester, when the design test scheme, without adjusting test script, but carries out layout for test case again, can reduce the tester operation, raise the efficiency.
When implementing the embodiment of the present application, between central control equipment 110 and testing apparatus 120, can realize by information communication mechanism the scheduling of test resource in whole test process.When test starts, can need to use all test cases to be stored in central control equipment whole testing scheme in advance, after the good test case of layout, according to carrying out the requirement of sequential between the performance of testing apparatus and each test case, testing apparatus corresponding to test case and executive plan are set, test case and corresponding executive plan thereof are assigned to corresponding testing apparatus, by each testing apparatus the executive plan load balancing ground corresponding by distributed test case, tested in an orderly manner.
Particularly, wherein:
Described central control equipment 110, after can starting for the executive plan corresponding by test case in each testing apparatus test, monitor the test mode of each testing apparatus feedback, obtains the information of the test case that need redistribute according to the test mode of testing apparatus; According to the loading condition of each testing apparatus, this test case that need redistribute new corresponding testing apparatus and executive plan are set, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence;
Described testing apparatus 120, can be for to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test mode of described feedback at least comprises the information of the test case that need redistribute, and cancels the execution of the test case that need are redistributed; When receiving the dynamic dispatching instruction of central control equipment transmission, obtain according to the dynamic dispatching instruction test case that the need corresponding with this testing apparatus are redistributed, the new corresponding executive plan of the test case that need redistribute according to this is tested.
It should be noted that the sign of the test case that the information of the test case that the need that the described test mode of the embodiment of the present application comprises are redistributed can be redistributed for need, the test case itself that also can redistribute for need; Described test mode can also comprise such as testing apparatus add, testing apparatus exits, cpu load situation etc., do not limited in the present invention.
As shown in Figure 2, be one of the structural representation of each equipment of the embodiment of the present application distributed system.For the sake of clarity, only show a testing apparatus 220 in Fig. 2, the structure of each testing apparatus in described distributed test system can be identical.
Wherein, described central control equipment 210 comprises:
Monitoring means 211, after can starting for the executive plan corresponding by test case in each testing apparatus test, monitor the test mode of feeding back when the executive plan corresponding by test case of each testing apparatus tested, obtain the information of the test case that need redistribute according to the test mode of testing apparatus;
Described testing apparatus 220 comprises:
Continuation is with reference to Fig. 2, in the embodiment of the present application, the feedback unit 221 of described testing apparatus 220 can trigger described feedback by various situations to central control equipment feedback test state, for example: can regularly to administered testing apparatus, send status query requests by the monitoring means 211 of central control equipment 210, the status query requests feedback test state that the feedback unit 221 of described testing apparatus 220 sends according to central control equipment; Perhaps, can be directly by feedback unit 221 regularly to described central control equipment 210 feedback test states; Perhaps, when the unenforced test case quantity that can be overstock in place testing apparatus 220 by feedback unit 221 surpasses threshold value to central control equipment 210 feedback test states, make central control equipment 210 redistribute overstocked test case to other testing apparatuss, when place testing apparatus 220 is the wait task state, to central control equipment 210 feedback test states, make central control equipment 210 redistribute other testing apparatuss overstocked test case for the wait task state to this testing apparatus according to this testing apparatus 220.It should be noted that, each testing apparatus can be separate execution to central control equipment feedback test state, and without synchronously, specifically the condition by set triggering feedback test state is determined.And the condition that the feedback unit 221 that triggers testing apparatus 220 is carried out the feedback test states can need to be arranged according to implementing, do not limited in this application.
Visible, the embodiment of the present application distributed test system, other test cases that cause the indivedual test case operands that are assigned with in the testing apparatus had are greatly overstock while can not get carrying out, the test case that can need redistribute to the central control equipment feedback, make central control equipment redistribute this test case, and some testing apparatuss are the sequential due to test case and other test cases, data etc. have certain association and when waiting status, or during newly-increased testing apparatus, can obtain the test case that need redistribute, carry out the test case that this need be redistributed, thereby make the test load equilibrium between each testing apparatus, reach the purpose that improves testing efficiency.
In order to make central control equipment in the situation that the dynamic dispatching test case to each testing apparatus, the test case that is mutually related can access orderly execution, with reference to the embodiment of the present application shown in Fig. 3, provide the distributed test system central control equipment structural representation two.
As shown in the figure, in this embodiment, described central control equipment 310 is except comprising: monitoring means 311 and reallocation unit 312, can further include: concern storage unit 313, can comprise for the corresponding relation of preserving described test case and executive plan, described executive plan the incidence relation of execution sequential and this test case and other test cases of this test case;
And described reallocation unit 312 specifically can comprise:
Plan arranges subelement 312b, for the incidence relation of the test case that need redistribute according to this and other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the executive plan of the new correspondence of this test case that need redistribute is set;
Equipment arranges subelement 312c, for inquiring about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
For example, in the embodiment of the present application, loading condition can refer to that the CPU of testing apparatus takies situation etc., specifically can when testing apparatus feedback test state, the loading condition of self be fed back to central control equipment.Central control equipment can generate corresponding state matrix according to the loading condition of each testing apparatus feedback so that inquiry.
Relation is upgraded subelement 312d, this test case that need redistribute of preserving for renewal and the corresponding relation of executive plan;
For the distributed test system that the embodiment of the present application is provided can the test mode according to each testing apparatus dynamically be adjusted at any time the execution of test case in whole testing process, continuation is with reference to Fig. 3, the reallocation unit 312 of the central control equipment 310 of the embodiment of the present application, can also, for after sending the dynamic dispatching instruction, trigger monitoring means 311 and re-execute; The performance element again 322 of described testing apparatus 320, after can also being tested for the new corresponding executive plan of the test case redistributing according to this, trigger feedback unit 321 and re-execute.
In addition, in order to guarantee can to carry out smoothly when test case on different testing apparatuss need to be shared test data, three of the structural representation of the distributed test system testing apparatus provided with reference to the embodiment of the present application shown in Fig. 4.Described testing apparatus 420 is except feedback unit 421, again performance element 422, can also comprise associated data processing unit 423, the associated data request generated while being tested for obtaining again performance element 422, send these associated data requests to central control equipment 410, and the associated data returned according to this associated data request of receiving center opertaing device; And described performance element again 422, also for when being tested, if need associated data, generate the associated data request, and, after the associated data that obtains the reception of associated data processing unit, continue to carry out test.
Correspondingly, described central control equipment 410 is except comprising detecting unit 411, reallocation unit 412, can further include data relay unit 414, the associated data request sent for receiving testing apparatus 420, send the associated data needed from this associated data request of other testing apparatuss acquisitions to this testing apparatus according to this association request.
Based on above-described embodiment, each testing apparatus is under the scheduling of central control equipment, and executed in parallel is tested in phase.And each testing apparatus can also automatically record test process in carrying out test process, generate test result and it is fed back to central control equipment.Four of the structural representation of the distributed test system provided with reference to the embodiment of the present application shown in Fig. 5.Described testing apparatus 520 comprises feedback unit 521 and performance element 522 again, and wherein feedback unit 521, can also be for when completing test, to central control equipment feedback test result; Correspondingly, described central control equipment 510 is except comprising monitoring means 511, reallocation unit 512, can further include report generation unit 515, for receiving the test result of each testing apparatus feedback, and generate the test synthesis report according to the test result of each testing apparatus feedback.Once, after each testing apparatus all completes like this, described central control equipment will generate a complete test synthesis report, finish current testing process.
Below, more at length introduce this distributed test system with a possible embodiment.Five of the structural representation of the distributed test system provided with reference to the embodiment of the present application shown in Fig. 6.As shown in the figure, wherein:
Described central control equipment 610 can comprise:
Monitoring means 614, after starting test for the executive plan corresponding by test case in each testing apparatus, monitor the test mode of each testing apparatus feedback, obtains the information of the test case that need redistribute according to the test mode of testing apparatus;
Plan arranges subelement 615b, for the incidence relation of the test case that need redistribute according to this and other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the executive plan of the new correspondence of this test case that need redistribute is set;
Equipment arranges subelement 615c, for inquiring about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
Relation is upgraded subelement 615d, this test case that need redistribute of preserving for renewal and the corresponding relation of executive plan;
Described testing apparatus 620 can comprise:
Associated data processing unit 623, the associated data request generated when obtaining that performance element is tested again, send this associated data request to central control equipment, and the associated data returned according to this associated data request of receiving center opertaing device;
Check post processing unit 627, at test process, verified test data, generates test result.
It should be noted that, system embodiment described above is only schematic, the wherein said unit as the separating component explanation can or can not be also physically to separate, the parts that show as unit can be can not be also physical location, can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the purpose of the present embodiment scheme.Those of ordinary skills in the situation that do not pay creative work, can understand and implement.
Correspondingly, the embodiment of the present application also provides a kind of distributed test method, and the system of using said method at least can comprise central control equipment and at least two testing apparatuss.
In the method, be provided with the essential information of each testing apparatus in central control equipment, comprise testing apparatus IP address, test case deposit position etc., for distributing test case and management testing equipment unitedly, testing apparatus is carried out test for the test case of distributing according to central control equipment.Each testing apparatus can be to central control equipment feedback test state, wherein, test mode is such as comprising: have the state that overstocked test case need redistribute, the state that newly increases testing apparatus, the state that exits test, testing apparatus resource using status etc.Thereby make central control equipment in each testing apparatus the executive plan corresponding by test case start the test after, test case new corresponding testing apparatus and the executive plan that can need redistribute according to the test mode setting of each testing apparatus feedback, and the dynamic dispatching instruction is sent to the new corresponding testing apparatus of the test case that need redistribute, make the test load equilibrium between each testing apparatus, improve testing efficiency.
As shown in Figure 7, be the schematic flow sheet of the embodiment of the present application distributed test method.
In this embodiment, described method comprises following basic step:
S701, described testing apparatus are to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test mode of described feedback at least comprises the information of the test case that need redistribute, and cancels the execution of the test case that need are redistributed;
It should be noted that, when application the embodiment of the present application, the essential information of each testing apparatus can be set on central control equipment, comprise the IP of testing apparatus, the deposit position of test case etc.After the good test case of layout, testing apparatus corresponding to each test case and executive plan can be set, the testing apparatus corresponding to test case sends the initial schedule instruction that corresponding executive plan is tested by this test case.Owing to being after the good test case of layout, send for the first time dispatch command, central control equipment can, when sending the initial schedule instruction, send to test case in the corresponding deposit position of its corresponding testing apparatus.Like this, testing apparatus, after receiving the initial schedule instruction, can extract test case from its corresponding deposit position, and the executive plan corresponding to this test case of carrying according to the initial schedule instruction tested.Thereby can be to central control equipment feedback test state in test process.
In the embodiment of the present application, described testing apparatus can trigger described feedback by various situations to central control equipment feedback test state, for example: can regularly to administered testing apparatus, send status query requests by central control equipment, the status query requests feedback test state that described testing apparatus sends according to central control equipment; Perhaps, can be directly by testing apparatus regularly to described central control equipment feedback test state; Perhaps, when surpassing threshold value, the unenforced test case quantity that can be overstock at it by testing apparatus to central control equipment feedback test state, make central control equipment redistribute overstocked test case to other testing apparatuss.Perhaps, can also trigger testing apparatus by other situations and carry out feedback, do not limited in this application.
Wherein, judge whether to exist the specific implementation of the test case that need redistribute can be for example: when the feedback test state, the test case that judges current execution causes overstocked to the loading condition possibility of CPU to other unenforced test cases, if, can determine the test case that existence need be redistributed, and add the information of the test case that need redistribute in the test mode of its feedback, and cancel the execution of the test case that need are redistributed.Certainly, judge whether to exist the method for the test case that need redistribute to be not limited to this example, specifically can need to arrange according to implementing, do not limited in the present invention.
S702, described central control equipment after the executive plan corresponding by test case starts test in each testing apparatus, are monitored the test mode of each testing apparatus feedback, obtain the information of the test case that need redistribute according to the test mode of testing apparatus;
Wherein, the information of the test case that described need are redistributed can refer to the unique identification of the test case that need redistribute, or, also can refer to test case itself, do not limited in the present invention.
S703, described central control equipment arrange this test case that need redistribute new corresponding testing apparatus and executive plan according to the loading condition of each testing apparatus, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence;
For example, when the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction, if the existing test case that need redistribute of new corresponding testing apparatus, without resending test case itself, only in the dynamic dispatching instruction, carry the unique identification of the test case that need redistribute, if there is not the test case that need redistribute in new corresponding testing apparatus, the test case that can when sending the dynamic dispatching instruction, need be redistributed sends to corresponding testing apparatus.
In order to make the test case that is mutually related can access orderly execution, central control equipment can be corresponding in the initial setting up test case testing apparatus and during executive plan, its corresponding relation is recorded, and, when resetting the new corresponding testing apparatus of this test case that need redistribute and executive plan, from the corresponding relation record of its record, carry out corresponding renewal.Wherein, described executive plan can comprise the incidence relation of execution sequential and test case and other test cases of test case.Correspondingly, described central control equipment arranges testing apparatus and the executive plan that this test case that need redistribute is new corresponding and can comprise:
Described central control equipment, from the corresponding relation of the test case of pre-save and executive plan, is inquired about the incidence relation of this test case that need redistribute and other test cases;
The test case that described central control equipment need be redistributed according to this and the incidence relation of other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the new corresponding executive plan of this test case that need redistribute is set;
Described central control equipment is inquired about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
This test case that need redistribute that described central control equipment renewal is preserved and the corresponding relation of executive plan.
For example, suppose that this test case that need redistribute is test case A, there are incidence relation in test case A and test case B, and the execution time that this incidence relation is test case should be after test case B carries out end.Now, the incidence relation of the described test case A that need redistribute according to this and test case B and with the execution sequential of the associated test case B of this test case A redistributed, the new corresponding executive plan of this test case A that need redistribute is set can be comprised: according to the execution sequential of test case B, judge whether test case B is finished; If so, the new corresponding executive plan of test case A is instant the execution; If not, the new corresponding executive plan of test case A is for when receiving the execution end of test case B feedback, and test case A starts to carry out.It should be noted that, this example, only for schematically illustrating, in the embodiment of the present application practical application, can need to be set concrete setting procedure according to implementing.
S704, described testing apparatus are when receiving the dynamic dispatching instruction of central control equipment transmission, obtain according to the dynamic dispatching instruction test case that the need corresponding with this testing apparatus are redistributed, the new corresponding executive plan of the test case that need redistribute according to this is tested.
Consider that the distributed test method that the embodiment of the present application provides need to the test mode according to each testing apparatus dynamically adjust at any time the execution of test case in whole testing process, therefore, as shown in Figure 6, after the described central control equipment of step S703 is sending the dynamic dispatching instruction, can also turn back to the step of the test mode of each testing apparatus feedback of monitoring; The new corresponding executive plan of the test case that need redistribute according to this in the described testing apparatus of step S704 can also turn back to the step of central control equipment feedback test state after being tested.
In addition, in order to guarantee can to carry out smoothly when test case on different testing apparatuss need to be shared test data, described testing apparatus is when being tested, if need associated data, can also generate the associated data request, to central control equipment, send this associated data request; Described central control equipment can also receive the associated data request that testing apparatus sends, and sends the associated data needed from this associated data request of other testing apparatuss acquisitions to this testing apparatus; Described testing apparatus, go back the associated data that the receiving center opertaing device returns according to this associated data request, continues to carry out test.
It should be noted that, the above-mentioned relevant specific implementation process of sharing test data can need to be arranged according to implementing, and is not limited in the present invention.Wherein a kind of possible implementation can be for example: described central control equipment receives the associated data of each testing apparatus feedback, and place it in the associated data cache pool, central control equipment is after the associated data request that receives the testing apparatus transmission, according to the associated data request, in the associated data cache pool, inquired about, judge in the associated data cache pool associated data that whether exists this associated data request to need, if exist, to this testing apparatus, send the associated data needed from this associated data request, if there is no, this associated data request can also be carried out to buffer memory, and when the newly-increased associated data of associated data cache pool, the associated data request of institute's buffer memory is extracted, perhaps regularly the associated data request of institute's buffer memory is extracted, according to extracted associated data request, in the associated data cache pool, inquired about, judge in the associated data cache pool associated data that whether exists this associated data request to need, if inquiring about the number of times of its associated data needed again, a certain associated data request surpasses predetermined threshold value, perhaps surpass the Preset Time interval, can abandon this associated data request, and return to unexpected message.
Based on above-described embodiment, each testing apparatus is under the scheduling of central control equipment, and executed in parallel is tested in phase.And each testing apparatus can also automatically record test process in carrying out test process, generate test result and it is fed back to central control equipment.Specific implementation can be: described testing apparatus is also when completing test, to central control equipment feedback test result; Described central control equipment receives the test result of each testing apparatus feedback, and generates the test synthesis report according to the test result of each testing apparatus feedback.
Visible by above the embodiment of the present application, the distributed test method that the embodiment of the present application provides make central control equipment flexibly many testing apparatuss of dynamic dispatching carry out in order each test case, share associated test data, take full advantage of the resource of testing apparatus, significantly improved testing efficiency.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program element.Usually, program element comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, by the testing apparatus be connected by communication network, carry out implementation of test cases.In distributed computing environment, program element can be arranged in the local and remote computer-readable storage medium that comprises memory device.
The above is only the application's embodiment; it should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection domain.
Claims (10)
1. a distributed test system, is characterized in that, comprises central control equipment, at least two testing apparatuss, wherein:
Described central control equipment comprises:
Monitoring means, after starting test for the executive plan corresponding by test case in each testing apparatus, monitor the test mode of each testing apparatus feedback, obtains the information of the test case that need redistribute according to the test mode of testing apparatus;
The reallocation unit, for the loading condition according to each testing apparatus, this test case that need redistribute new corresponding testing apparatus and executive plan are set, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence;
Described testing apparatus comprises:
Feedback unit, be used for to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test mode of described feedback at least comprises the information of the test case that need redistribute, and cancels the execution of the test case that need are redistributed;
Performance element again, for when receiving the dynamic dispatching instruction of central control equipment transmission, obtain according to the dynamic dispatching instruction test case that the need corresponding with this testing apparatus are redistributed, the new corresponding executive plan of the test case that need redistribute according to this is tested.
2. system according to claim 1, it is characterized in that, described central control equipment also comprises and concerns storage unit, comprises the incidence relation of execution sequential and this test case and other test cases of this test case for the corresponding relation of preserving described test case and executive plan, described executive plan;
Described reallocation unit comprises:
The inquiry subelement, for the information from concerning that storage unit is preserved, inquire about the incidence relation of this test case that need redistribute and other test cases;
Plan arranges subelement, for the incidence relation of the test case that need redistribute according to this and other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the executive plan of the new correspondence of this test case that need redistribute is set;
Equipment arranges subelement, for inquiring about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
Relation is upgraded subelement, this test case that need redistribute of preserving for renewal and the corresponding relation of executive plan;
The scheduling sublayer unit, send for the new corresponding testing apparatus of test case that need redistribute to this dynamic dispatching instruction of being tested by the executive plan of its new correspondence.
3. according to claim 1 or the described system of 2 any one, it is characterized in that described reallocation unit, also for after sending the dynamic dispatching instruction, triggers monitoring means and re-executes;
Described performance element again, after also being tested for the new corresponding executive plan of the test case redistributing according to this, trigger feedback unit and re-execute.
4. according to claim 1 or the described system of 2 any one, it is characterized in that, described central control equipment also comprises the data relay unit, the associated data request sent for receiving testing apparatus, send the associated data needed from this associated data request of other testing apparatuss acquisitions to this testing apparatus according to this associated data request;
Described testing apparatus also comprises the associated data processing unit, for obtaining the associated data request generated when performance element is tested again, send this associated data request to central control equipment, and the associated data returned according to this associated data request of receiving center opertaing device;
Described performance element, for when being tested, if need associated data, generate the associated data request, and, after the associated data that obtains the reception of associated data processing unit, continue to carry out test.
5. according to claim 1 or the described system of 2 any one, it is characterized in that, the feedback unit of described testing apparatus, also for when completing test, to central control equipment feedback test result;
Described central control equipment also comprises the report generation unit, for receiving the test result of each testing apparatus feedback, and generates the test synthesis report according to the test result of each testing apparatus feedback.
6. a distributed test method, is characterized in that, is applied to comprise the distributed test system of central control equipment and at least two testing apparatuss, comprising:
Described testing apparatus is to central control equipment feedback test state, if there is the test case that need redistribute when the feedback test state, the test mode of described feedback at least comprises the information of the test case that need redistribute, and cancels the execution of the test case that need are redistributed;
Described central control equipment after the executive plan corresponding by test case starts test in each testing apparatus, is monitored the test mode of each testing apparatus feedback, obtains the information of the test case that need redistribute according to the test mode of testing apparatus;
Described central control equipment arranges this test case that need redistribute new corresponding testing apparatus and executive plan according to the loading condition of each testing apparatus, and the new corresponding testing apparatus of the test case that need redistribute to this sends the dynamic dispatching instruction of being tested by the executive plan of its new correspondence;
Described testing apparatus is when receiving the dynamic dispatching instruction of central control equipment transmission, obtain according to the dynamic dispatching instruction test case that the need corresponding with this testing apparatus are redistributed, the new corresponding executive plan of the test case that need redistribute according to this is tested.
7. method according to claim 6, it is characterized in that, described central control equipment also pre-save described test case and the corresponding relation of executive plan, described executive plan comprise the incidence relation of execution sequential and this test case and other test cases of this test case;
Described central control equipment arranges this test case that need redistribute new corresponding testing apparatus and executive plan according to the loading condition of each testing apparatus and comprises:
Described central control equipment is from the corresponding relation of the test case of pre-save and executive plan, inquire about the incidence relation of this test case that need redistribute and other test cases, the test case that need redistribute according to this and the incidence relation of other test cases and with the execution sequential of associated other test cases of this test case of redistributing, the new corresponding executive plan of this test case that need redistribute is set;
Described central control equipment is inquired about the loading condition of each testing apparatus, select the test case testing apparatus that newly executive plan of correspondence is tested that can need redistribute by this from each testing apparatus according to loading condition, it is set to the new corresponding testing apparatus of this test case that need redistribute;
This test case that need redistribute that described central control equipment renewal is preserved and the corresponding relation of executive plan.
8. according to claim 6 or the described method of 7 any one, it is characterized in that, described central control equipment, after sending the dynamic dispatching instruction, also turns back to the step of the test mode of each testing apparatus feedback of monitoring;
The new corresponding executive plan of the test case that described testing apparatus need be redistributed according to this also turns back to the step of central control equipment feedback test state after being tested.
9. according to claim 6 or the described method of 7 any one, it is characterized in that, described testing apparatus, when being tested, if need associated data, also generates the associated data request, to central control equipment, sends this associated data request;
Described central control equipment also receives the associated data request that testing apparatus sends, and sends the associated data needed from this associated data request of other testing apparatuss acquisitions to this testing apparatus;
Described testing apparatus, go back the associated data that the receiving center opertaing device returns according to this associated data request, continues to carry out test.
10. according to claim 6 or the described method of 7 any one, it is characterized in that, described testing apparatus is also when completing test, to central control equipment feedback test result;
Described central control equipment receives the test result of each testing apparatus feedback, and generates the test synthesis report according to the test result of each testing apparatus feedback.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310459786.9A CN103455425B (en) | 2013-09-25 | 2013-09-25 | A kind of distributed test system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310459786.9A CN103455425B (en) | 2013-09-25 | 2013-09-25 | A kind of distributed test system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103455425A true CN103455425A (en) | 2013-12-18 |
CN103455425B CN103455425B (en) | 2016-08-17 |
Family
ID=49737825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310459786.9A Active CN103455425B (en) | 2013-09-25 | 2013-09-25 | A kind of distributed test system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103455425B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104852822A (en) * | 2014-02-13 | 2015-08-19 | 北京京东尚科信息技术有限公司 | Method and system for testing clients |
CN105117345A (en) * | 2015-09-23 | 2015-12-02 | 网易(杭州)网络有限公司 | Interface testing method and device for application program |
CN105242134A (en) * | 2015-09-22 | 2016-01-13 | 许继集团有限公司 | Distributed test method suitable for system-grade test of intelligent high-voltage equipment |
CN105281978A (en) * | 2015-10-23 | 2016-01-27 | 小米科技有限责任公司 | Performance test method, device and system |
CN105912457A (en) * | 2015-12-08 | 2016-08-31 | 乐视网信息技术(北京)股份有限公司 | Test server, test client, test system, and test method |
CN106445817A (en) * | 2016-09-09 | 2017-02-22 | 网易(杭州)网络有限公司 | Test data processing method, apparatus and system |
CN107992362A (en) * | 2016-10-27 | 2018-05-04 | 北京京东尚科信息技术有限公司 | The method, apparatus and system of automated performance testing |
CN108845954A (en) * | 2018-08-31 | 2018-11-20 | 中国联合网络通信集团有限公司 | Method for testing pressure, system and storage medium |
CN112214400A (en) * | 2020-09-17 | 2021-01-12 | 浙江数链科技有限公司 | Automatic testing method and device, electronic equipment and readable storage medium |
CN113590393A (en) * | 2021-07-08 | 2021-11-02 | 深圳Tcl新技术有限公司 | Intelligent equipment testing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030098879A1 (en) * | 2001-11-29 | 2003-05-29 | I2 Technologies Us, Inc. | Distributed automated software graphical user interface (GUI) testing |
CN101052020A (en) * | 2007-05-21 | 2007-10-10 | 中兴通讯股份有限公司 | Monitor method and system for automatically measuring executing process |
CN103298016A (en) * | 2012-02-27 | 2013-09-11 | 展讯通信(上海)有限公司 | Test system for mobile terminals |
-
2013
- 2013-09-25 CN CN201310459786.9A patent/CN103455425B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030098879A1 (en) * | 2001-11-29 | 2003-05-29 | I2 Technologies Us, Inc. | Distributed automated software graphical user interface (GUI) testing |
CN101052020A (en) * | 2007-05-21 | 2007-10-10 | 中兴通讯股份有限公司 | Monitor method and system for automatically measuring executing process |
CN103298016A (en) * | 2012-02-27 | 2013-09-11 | 展讯通信(上海)有限公司 | Test system for mobile terminals |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104852822A (en) * | 2014-02-13 | 2015-08-19 | 北京京东尚科信息技术有限公司 | Method and system for testing clients |
CN104852822B (en) * | 2014-02-13 | 2018-10-19 | 北京京东尚科信息技术有限公司 | A kind of method and system of test client |
CN105242134B (en) * | 2015-09-22 | 2018-06-19 | 许继集团有限公司 | A kind of distributed test method suitable for intelligent high-voltage equipment system level testing |
CN105242134A (en) * | 2015-09-22 | 2016-01-13 | 许继集团有限公司 | Distributed test method suitable for system-grade test of intelligent high-voltage equipment |
US10514407B2 (en) | 2015-09-22 | 2019-12-24 | Xj Group Corporation | Distributed test method applicable to system-level test of intelligent high voltage equipment |
CN105117345A (en) * | 2015-09-23 | 2015-12-02 | 网易(杭州)网络有限公司 | Interface testing method and device for application program |
CN105117345B (en) * | 2015-09-23 | 2017-12-19 | 网易(杭州)网络有限公司 | The interface test method and device of a kind of application program |
CN105281978B (en) * | 2015-10-23 | 2019-02-19 | 小米科技有限责任公司 | A kind of methods, devices and systems of performance test |
CN105281978A (en) * | 2015-10-23 | 2016-01-27 | 小米科技有限责任公司 | Performance test method, device and system |
CN105912457A (en) * | 2015-12-08 | 2016-08-31 | 乐视网信息技术(北京)股份有限公司 | Test server, test client, test system, and test method |
CN106445817A (en) * | 2016-09-09 | 2017-02-22 | 网易(杭州)网络有限公司 | Test data processing method, apparatus and system |
CN106445817B (en) * | 2016-09-09 | 2018-11-27 | 网易(杭州)网络有限公司 | Processing method, the device and system of test data |
CN107992362A (en) * | 2016-10-27 | 2018-05-04 | 北京京东尚科信息技术有限公司 | The method, apparatus and system of automated performance testing |
CN108845954A (en) * | 2018-08-31 | 2018-11-20 | 中国联合网络通信集团有限公司 | Method for testing pressure, system and storage medium |
CN112214400A (en) * | 2020-09-17 | 2021-01-12 | 浙江数链科技有限公司 | Automatic testing method and device, electronic equipment and readable storage medium |
CN113590393A (en) * | 2021-07-08 | 2021-11-02 | 深圳Tcl新技术有限公司 | Intelligent equipment testing method and device, electronic equipment and storage medium |
CN113590393B (en) * | 2021-07-08 | 2024-03-12 | 深圳Tcl新技术有限公司 | Intelligent device testing method and device, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103455425B (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455425A (en) | System and method for distributed type tests | |
US11182196B2 (en) | Unified resource management for containers and virtual machines | |
US9122530B2 (en) | Management apparatus and management method | |
CN109669762B (en) | Cloud computing resource management method, device, equipment and computer readable storage medium | |
US10430172B2 (en) | Re-configuration in cloud computing environments | |
CN103209223A (en) | Distributed application conversation information sharing method and system and application server | |
CN109313564A (en) | For supporting the server computer management system of the highly usable virtual desktop of multiple and different tenants | |
CN102147746A (en) | Dynamic thread pool management | |
CN107113341A (en) | The system of the high-throughput processing of affairs in the Distributed Relation Database Management System divided for data | |
CN103379159A (en) | Distributed web site data synchronization method | |
CN111897638A (en) | Distributed task scheduling method and system | |
CN102841846A (en) | Software testing method, device and system based on Hadoop | |
US20160110227A1 (en) | System, method of controlling to execute a job, and apparatus | |
CN105262835A (en) | Data storage method and device of multiple machine rooms | |
US20170083433A1 (en) | Touch free disaster recovery | |
CN111190810A (en) | Method, device, server and storage medium for executing test task | |
CN105357067A (en) | Test method and system for cloud platform | |
JP4495688B2 (en) | Verification system | |
CN108205482B (en) | File mount restoration methods | |
CN108037984B (en) | Resource management method, system and readable storage medium for data analysis | |
CN107368419A (en) | Automatic test approach and system, service terminal, memory under distributed environment | |
CN104935616A (en) | Data processing method, device and ESB system | |
CN106161082A (en) | The method to set up of server UUID, system and baseboard management controller | |
Nilsson | Experience from a pilot based system for ATLAS | |
CN102959499B (en) | Computer system, storage volume management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |