Summary of the invention
It is an object of the present invention to provide a kind of new solutions of method for testing pressure.
According to the first aspect of the invention, a kind of method for testing pressure is provided, the method is implemented by testing service device,
The described method includes:
Pressure test tool is packaged as application container engine, as pressure test node;
The network address of the pressure test node and configuration information are sent to management server, for management clothes
Business device generates the test file of the corresponding pressure test node;
In response to the test file that the management server issues, controls the pressure test node and execute the survey
File is tried, test data is obtained;
It controls the pressure test node test data is sent to the management server and store.
Optionally, the method also includes:
It controls the pressure test node and carries out the test data in the corresponding time cycle according to the preset time cycle
Packing processing obtains the test data packet of corresponding time cycle;
It controls the pressure test node test data packet is sent to the management server and store.
It optionally, include following any one or multinomial in the test data packet: flat in the corresponding time cycle
Equal response time, handling capacity, number of concurrent, Thread Count, maximum response time, Best-case Response Time, request number of times, execute duration,
Testing time.
Optionally, the configuration information includes following any one or multinomial: the pressure test node executes institute
State state, the corresponding task identification of the test file, the test file execution duration, the testing service of test file
The CPU state of device, the internal storage state of the testing service device, the input/output state of the testing service device, test clothes
The network card status of business device.
According to the second aspect of the invention, a kind of method for testing pressure is provided, the method is implemented by management server,
The described method includes:
Receive the network address and configuration information that multiple pressure test nodes are sent;
Externally input test assignment is split according to the configuration information of the multiple pressure test node, is obtained pair
Answer the test file of each pressure test node;
According to the network address of the multiple pressure test node, each test file is sent to corresponding pressure and is surveyed
Examination node is tested;
It obtains and stores the multiple pressure test node and execute the test data tested and obtained.
Optionally, externally input test assignment is torn open according to the configuration information of the multiple pressure test node
Point, obtaining the step of corresponding to the test file of each pressure test node includes:
The parameter for obtaining externally input characterization test task, as task parameters;
The task parameters are split according to the configuration information, obtain the son for corresponding to each pressure test node
Task parameters;
The test file of corresponding pressure test node is generated according to each described subtask parameter.
Optionally, the task parameters include following any one or multinomial: Thread Count, number of concurrent, pressure test
Time, pressure test script, pressure test determine information.
Optionally, it the acquisition and stores the multiple pressure test node and executes and described test obtained test data
The step of include:
The test data packet that the multiple pressure test node is sent is obtained, the test data packet is pressure test node
Packing is carried out according to the preset time cycle to the test data that execution test obtains to handle to obtain;
Result treatment is merged to the test data packet, obtains test result;
Store the test result.
Optionally, the method also includes:
According to the configuration information that test assignment and multiple pressure test nodes are sent, judge whether according to described with confidence
Breath splits externally input test assignment.
Optionally, the configuration information sent according to multiple pressure test nodes and test assignment, judge whether root
The step of splitting according to the configuration information to externally input test assignment include:
According to the configuration information of the multiple pressure test node, the multiple pressure test node carrying number of request is determined
Amount and;
Obtain the number of requests for including in the test assignment;
Number of requests is carried in the multiple pressure test node and more than or equal to including in the test assignment
In the case where number of requests, externally input test assignment is split according to the configuration information.
Optionally, the method also includes:
Unique identification is carried out to the test assignment, obtains the task identification for corresponding to the test assignment;
The task identification is sent to the pressure test node for executing the test assignment.
According to the third aspect of the invention we, a kind of testing service device, including first memory and first processor are provided,
The first memory is executed for controlling the first processor according to this hair for storing the first instruction, first instruction
Method for testing pressure described in bright first aspect.
According to the fourth aspect of the invention, a kind of management server, including second memory and second processor are provided,
The second memory is executed for controlling the second processor according to this hair for storing the second instruction, second instruction
Method for testing pressure described in bright second aspect.
According to the fifth aspect of the invention, a kind of pressure testing system is provided, including institute according to a third aspect of the present invention
Management server described in the testing service device stated and fourth aspect present invention at different levels.
A beneficial effect of the invention is, pressure test tool is packaged as application container by testing service device and is drawn
It holds up, as pressure test node, enables management server to control multiple pressure test nodes while carrying out pressure test, it is real
The effect of existing distributed pressure test, can quickly expand the pressure test ability of pressure testing system, it is extensive to reduce configuration
The time of testing service device progress pressure test task.Further, it is also possible to improve the pressure test ability of a testing service device.
Further, it is also possible to improve the efficiency of pressure test.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
<hardware configuration>
As shown in Figure 1, pressure testing system 1000 includes testing service device 1100, management server 1200 and network
1300。
Testing service device 1100 is such as can be blade server.In one example, testing service device 1100 can be with
It is one or more computer.In another example, testing service device 1100 can be as shown in Figure 1, include processor
1110, memory 1120, interface arrangement 1130, communication device 1140, display device 1150, input unit 1160.Although service
Device also may include loudspeaker, microphone etc., and still, these components are unrelated to the invention, therefore omit herein.Wherein, it handles
Device 1110 is such as can be central processor CPU, Micro-processor MCV.Memory 1120 is for example including ROM (read-only storage
Device), RAM (random access memory), the nonvolatile memory of hard disk etc..Interface arrangement 1130 connects for example including USB
Mouth, serial line interface etc..Communication device 1140 is for example able to carry out wired or wireless communication.Display device 1150 is, for example, liquid crystal
Display screen.Input unit 1160 is such as may include touch screen, keyboard.
Management server 1200 can also be with one or more computer.As shown in Figure 1, management server 1200 may include
Processor 1210, interface arrangement 1230, communication device 1240, display device 1250, input unit 1260, is raised memory 1220
Sound device 1270, microphone 1280, etc..Wherein, processor 1210 can be central processor CPU, Micro-processor MCV etc..It deposits
Reservoir 1220 for example including ROM (read-only memory), RAM (random access memory), such as hard disk nonvolatile memory
Deng.Interface arrangement 1230 is for example including USB interface, earphone interface etc..Communication device 1240 is for example able to carry out wired or wireless
Communication.Display device 1250 is, for example, liquid crystal display, touch display screen etc..Input unit 1260 for example may include touching
Screen, keyboard etc..User can pass through 1280 inputting/outputting voice information of loudspeaker 1270 and microphone.
Communication network 1300 can be wireless network and can also be can be local area network with network and be also possible to wide area network.In Fig. 1
Shown in configuration surroundings 1000, management server 1200-1,1200-2 and testing service device 1100-1,1100-2,1100-
3,1100-4 can be communicated by communication network 1300.
Configuration surroundings 1100 shown in FIG. 1 are only explanatory, and never be intended to limitation the present invention, its application or
Purposes.
Using in an embodiment of the present invention, the memory 1120 of testing service device 1100 for storing instruction, institute
It states instruction and is operated for controlling the processor 1110 to execute any one pressure of first embodiment of the invention offer
Test method.
For storing instruction, described instruction is for controlling the processor for the memory 1220 of management server 1200
1210 are operated to execute any one method for testing pressure of second embodiment of the invention offer.Those skilled in the art answer
Work as understanding, although all showing multiple devices to testing service device 1100 and management server 1200 in Fig. 1, this
Invention can only relate to partial devices therein, for example, testing service device 1100 pertains only to processor 1110 and storage device
1120 or management server 1200 pertain only to processor 1210 and storage device 1220 etc..Technical staff can be according to this hair
Bright disclosed conceptual design instruction.How control processor is operated for instruction, this is it is known in the art that therefore herein no longer in detail
Description.
The general plotting of the embodiment of the present invention is to provide a kind of technical solution of new pressure test, passes through testing service
Pressure test tool is packaged as application container engine by device, as pressure test node, management server is controlled more
A pressure test node carries out pressure test simultaneously, realizes the effect of distributed pressure test, can quickly expand pressure test
The pressure test ability of system reduces the time that configuration large scale test server carries out pressure test task.Further, it is also possible to
Improve the pressure test ability of a testing service device.Further, it is also possible to improve the efficiency of pressure test.
<first embodiment>
<method>
In the present embodiment, a kind of method for testing pressure is provided, is implemented by testing service device.
The testing service device can be arbitrarily with the electronic equipment of processor and memory, for example, it may be desk-top calculating
Machine, blade server, cloud server etc..In one example, testing service device can be testing service device shown in FIG. 1
1100。
The test control method, as shown in Figure 2, comprising: step S2100-S2400.
Pressure test tool is packaged as application container engine, as pressure test node by step S2100.
In one example, pressure test tool can be LoadRunner, Apache JMeter, NeoLoad,
Any one in Loadster.It is long by simulating the hardware environment of practical application and the system loading of user's use process
Time or super large load ground operating pressure testing tool, can test performance, reliability, stability of system under test (SUT) etc..Pressure
Test it needs to be determined that the bottleneck of system or cannot received performance point, to obtain the maximum seeervice level that system can provide
Not.
Application container engine can be Docker container.Docker is the application container engine of an open source, allows developer
Their application can be packaged and rely on packet into a transplantable container, be then published to the Linux machine of any prevalence
On device, it also may be implemented to virtualize.Container is not have any interface between each other using sandbox mechanism completely.Almost without
Performance cost can easily be run in machine and data center.
On a testing service device, multiple application container engines can have been created.I.e. a testing service device can wrap
Containing multiple pressure test nodes.
After pressure test tool is packaged as application container engine, testing service device can be distributed to the application container engine
Network address.In this way, each pressure test node is equal in the case where a testing service device includes multiple pressure test nodes
With unique corresponding network address.
The network address of pressure test node and configuration information are sent to management server by step S2200, for management
The test file of server generation corresponding pressure test node.
In one example, pressure test node can obtain the configuration information of itself according to preset frequency.
The configuration information of pressure test node may include following any one or multinomial: the pressure test node executes
The state of test file, the corresponding task identification of the test file, the test file execute where duration, the pressure test node
Where the internal storage state of testing service device, the pressure test node where the CPU state of testing service device, the pressure test node
The network card status of testing service device where the input/output state of testing service device, the pressure test node.
Management server can be the configuration information according to pressure test node, distribute the survey of the corresponding pressure test node
Try file.
In one example, management server can be the CPU state according to testing service device where pressure test node,
And the internal storage state of testing service device where the pressure test node, determine the quantity of the executable request of the pressure test node.
For example, be 10000 in the corresponding number of requests of test assignment, the executable request of the pressure test node determined
In the case that quantity is 1000, the test file that corresponding requests quantity is 1000 can be split out from test assignment, and should
Test file is sent to pressure test node and carries out pressure test.
Further, in the case where the starting of pressure test node can be used for carrying out pressure test, the pressure test section
Point sends network address and configuration information to management server.
Step S2300 controls pressure test node and executes test text in response to the test file that management server issues
Part obtains test data.
Control pressure test node executes the test file specifically: controls the pressure test work in the pressure test node
Tool executes the test file.
Management server, which can be to issue to pressure test node, starts test instruction.Pressure test node can be in response to
Start test instruction in this, obtains pressure test file from management server.Control pressure test tool executes the test file,
Obtain test data.
In one example, JISTART, JISTOP, JIPULL_CONFIG or JI_PUSH_STATE etc. can be passed through
Command syntax realizes the instruction transmission between pressure test node and management server.It such as may include control pressure test
Node receives the test that management server issues and instructs, stops testing instruction, obtaining pressure test file etc. instructing, and control is pressed
Power test node uploads the instruction of the configuration information of itself to management server.The instruction being only defined in the order member language can
It is performed, can be issued to avoid other wrong offending instructions.Specifically, the instruction that management server is issued to pressure test node
It can be binary data, therefore, pressure test node needs to be converted to binary data predefined instruction, uses
These instruction control pressure test tools.
Test data is sent to the management server and stored by step S2400, control pressure test node.
In one example, can be control pressure test node will be in the corresponding time cycle according to the preset time cycle
Test data carry out packing processing, obtain the test data packet of corresponding time cycle;Control pressure test node will test number
Management server is sent to according to packet to be stored.
Time cycle can be to be set previously according to application scenarios.For example, the time cycle can be 10s.So, every warp
10s is crossed, pressure test node can be all controlled by the test data in this 10s and carry out packing processing.
Further, carrying out packing processing to test data further includes beating the test data corresponding testing time
Packet.The testing time for example can be the corresponding starting testing time point of these test datas, terminate testing time point or be
Beginning and ending time section.
It in one example, may include following any one or multinomial in test data packet: in the corresponding time cycle
Average response time, handling capacity, number of concurrent, Thread Count, maximum response time, Best-case Response Time, request number of times, test text
Part executes duration, testing time.
In this way, pressure test tool in testing service device is packaged as application container engine, as pressure test node, make
Multiple pressure test nodes can be controlled while carry out pressure test by obtaining management server, realize the effect of distributed pressure test
The pressure test ability of a testing service device can be improved in fruit.Further, it is also possible to improve the efficiency of pressure test.
<testing service device>
In this example, a kind of testing service device 300 is also provided, as shown in figure 3, including that first processor 310 and first is deposited
Reservoir 320, first memory 320 is for storing the first instruction;First instruction executes this implementation for controlling first processor 310
Method for testing pressure described in any one of example.
In the present embodiment, testing service device 300 can also include other devices or module, for example, as shown in Figure 1
Testing service device 1100.
In the present embodiment, testing service device 300 is not limited to entity form of implementation, and testing service device 300 can be
Computer, blade server, cloud server, server farm etc..Testing service device 300 can also pass through partial function outer
Portion's equipment is realized, for example, testing service device 300 can be with peripheral communication server, for managing testing service device and multiple management
Communication connection between server;Testing service device 300 can be with peripheral hardware information server, for assisting testing service device 300 to manage
Manage the facility information, etc. of multiple management servers.
It will be appreciated by those skilled in the art that testing service device 300 can be realized by various modes.For example, can be with
Testing service device 300 is realized by instruction configuration processor.For example, instruction can be stored in the ROM, and when starting is set
When standby, instruction is read in programming device from ROM and realizes testing service device 300.For example, can be by testing service device
300 are cured in dedicated devices (such as ASIC).Testing service device 300 can be divided into mutually independent unit, or can be with
They are merged into realization.Testing service device 300 can realize by one of above-mentioned various implementations, or
It can be realized by the combination of two or more modes in above-mentioned various implementations.
Attached drawing is had been combined above and describes the present embodiment, according to the present embodiment, provides a kind of method for testing pressure and survey
Server is tried, pressure test tool is packaged as by application container engine by testing service device, as pressure test node, so that
Management server can control multiple pressure test nodes while carry out pressure test, realize the effect of distributed pressure test,
The pressure test ability of pressure testing system can be quickly expanded, configuration large scale test server is reduced and carries out pressure test times
The time of business.Further, it is also possible to improve the pressure test ability of a testing service device.Further, it is also possible to improve pressure test
Efficiency.
<second embodiment>
<method>
In the present embodiment, a kind of method for testing pressure is provided, is implemented by management server.
The management server can be arbitrarily with the electronic equipment of processor and memory, for example, it may be desk-top calculating
Machine, blade server, cloud server etc..In one example, testing service device can be management server shown in FIG. 1
1200。
The test control method, as shown in Figure 4, comprising: step S4100-S4400.
Step S4100 receives network address and configuration information that multiple pressure test nodes are sent.
In the present embodiment, multiple pressure test nodes, which can be, is arranged on same testing service device, is also possible to set
It sets on different testing service devices.
The generating mode of each pressure test node can be identical, is all that pressure test tool is packaged as application container
Engine, as pressure test node.
The method of salary distribution of the network address of each pressure test node can be identical, and testing service device where being all is being created
It is distributed when building application container engine.
Pressure test node on same testing service device, the CPU shape of the testing service device in configuration information are set
State, the internal storage state of testing service device, the input/output state of testing service device, testing service device network card status can phase
Together.
If management server receives the network address and configuration information of pressure test node transmission, show the pressure
Test node starting, can be used for carrying out pressure test.
Step S4200 splits externally input test assignment according to the configuration information of multiple pressure test nodes,
Obtain corresponding to the test file of each pressure test node.
In one example, externally input test assignment can be pressure test tool in pressure test node and can hold
Capable configuration file.For example, in the case where pressure test tool is JMeter, configuration file that JMeter is able to carry out can be with
It is JMX file.
So, test assignment is split, the test file for obtaining corresponding to each pressure test node can be specific
Are as follows: test assignment is split as by test assignment to correspond to the test file of each pressure test node according to preset ratio.
In one example, externally input test assignment can be the parameter of characterization test task.So, step
S4200 may further include step S4210-S4230 as shown in Figure 5.
Step S4210 obtains the parameter of externally input characterization test task, as task parameters.
In one example, task parameters may include following any one or multinomial: Thread Count, number of concurrent, pressure
Testing time, pressure test script, pressure test determine information.Wherein, pressure test determines that information may include pressure test
The decision condition and judgement result of final conclusion.
Step S4220 splits task parameters according to configuration information, obtains corresponding to each pressure test node
Subtask parameter.
For example, management server receives the network address and configuration information that 5 pressure test nodes are sent, if test
Task is that simulation carries out 10000 requests, then test assignment can be split as to the subtask of 5 2000 requests.By task
Parameter is split as corresponding to the subtask parameter of each pressure test node, specifically may is that and requests corresponding survey for 10000 times
The task parameters of trial business, are split as the task parameters of the subtask of 5 correspondences 2000 times requests.
Step S4300 generates the test file of corresponding pressure test node according to each subtask parameter.
In the case that pressure test tool is JMeter in pressure test node, management server is appointed according to each height
The test file that business parameter generates corresponding pressure test node can be JMX file.
JMX file structure is Hash tree (hashtree), and the attribute of each leaf node is corresponding for its node in Hash tree
Parameter.Hashtree label is searched for using the convenient mode of depth, the parameter tags for needing to be arranged is encountered, then replaces the label
Parameter value, generate new JMX file.
Each test file is sent to corresponding by step S4300 according to the network address of multiple pressure test nodes
Pressure test node is tested.
For example, the network address of first pressure test node is A, then, according to the net of first pressure test node
Network address A, so that it may which the test file of corresponding first pressure test node is sent to corresponding first pressure test section
Point.
In one example, which can also include:
According to the configuration information that test assignment and multiple pressure test nodes are sent, judge whether to execute step S4300.
Further, which can also include the steps that S6100-S6300 as shown in Figure 6:
Step S6100 determines multiple pressure test node carrying requests according to the configuration information of multiple pressure test nodes
Quantity and.
For example, the CPU state for the testing service device for including in the configuration information of pressure test node is the feelings of monokaryon CPU
Under condition, determine that the carrying number of requests of the pressure test node is 1000.Include in the configuration information of pressure test node
In the case that the CPU state of testing service device is four core CPU, determine that the carrying number of requests of the pressure test node is 4000.
In the case that the CPU state for the testing service device for including in the configuration information of pressure test node is eight core CPU, the pressure is determined
The carrying number of requests of power test node is 8000.
Calculate the sum of the carrying number of requests of the multiple pressure test node.For example, multiple pressure test nodes are 5
Pressure test node, the carrying number of requests of each pressure test node are respectively 1000,1000,2000,4000,8000, that
, the carrying number of requests of this 5 pressure test nodes and then can be 1000+1000+2000+4000+8000=16000.
For another example being also possible to preset the carrying number of requests of each pressure test node to be 1000.So, exist
In the case that multiple pressure test nodes are 5 pressure test nodes, the carrying number of requests of this 5 pressure test nodes and then
It can be 1000*5=5000.
Step S6200 obtains the number of requests for including in test assignment.
Step S6300 judges multiple pressure test node carrying number of requests and whether is more than or equal to test assignment
In include number of requests, if so, thening follow the steps S4300.If not, can terminate, pressure test can not be carried out.
For example, in the case that the number of requests for including in test assignment is 10000, if multiple pressure test nodes are held
It carries number of requests and is 16000, since multiple pressure test nodes carry number of requests and ask greater than include in test assignment
Quantity is sought, then shows that pressure test number of nodes is sufficient, enough execution test assignment.Therefore, step S4300 can be executed, is opened
Dynamic pressure test.
If multiple pressure test nodes carry number of requests and are 5000, requested since multiple pressure test nodes carry
Quantity and less than the number of requests for including in test assignment then shows that pressure test number of nodes is insufficient, can not execute test and appoint
Business.
Step S4400 obtains and stores the test data that multiple pressure test nodes execution tests obtain.
It is stored specifically, management server can be the test data that will acquire, is checked so that tester is subsequent.
In one example, pressure test node will correspond to the test data in the time cycle according to the preset time cycle
Packing processing is carried out, the test data packet of corresponding time cycle is obtained;And test data packet is sent to management server.That
, step S4400 can further include step S4410-S4430 as shown in Figure 7.
Step S4410 obtains the test data packet that multiple pressure test nodes are sent.
Step S4420 merges result treatment to test data packet, obtains test result.
Merging result treatment for example to test data packet may include: the survey for calculating multiple pressure test nodes and sending
The sum for trying the Thread Count in data packet, when calculating the test file execution in the test data packet that multiple pressure test nodes are sent
Long sum calculates the sum of the request number of times in the test data packet that multiple pressure test nodes are sent, calculates multiple pressure tests
The average value etc. for the average response time in test data packet that node is sent.
Further, in this embodiment test data packet can be what multiple pressure test nodes were sent.And each pressure
Power test node can also send multiple test data packets.Wherein, each test data packet can have the corresponding testing time.It should
Testing time for example can be the corresponding starting testing time point of these test datas, terminates testing time point or is start-stop
Period.
Step S4430 stores test result.
In this way, merging processing, available effective test by the test data to each pressure test node
As a result, being checked convenient for tester.
In one example, management server can also control multiple pressure test nodes simultaneously and execute multiple tests times
Business.So, which can also include:
Unique identification is carried out to each test assignment, obtains the task identification for corresponding to each test assignment;By task
Mark is sent to the pressure test node for executing the test assignment.
For example, carrying out unique identification to first test assignment, the task identification for corresponding to first test assignment is obtained
For M, then, when first test assignment is split as multiple test files (including F1-Fn), by first test assignment
Splitting obtained all test files also has corresponding task identification M.So, test file F1 is being sent to corresponding pressure
When power test node X, the task identification M of test file F1 can also be also sent to corresponding pressure test nodes X.
Pressure test nodes X carries out the test number that packing is handled for the test data that test file F1 is obtained is executed
It also may include task identification M according to wrapping in D1.
So, management server is when merging result treatment to the test data packet received, can by comprising
The identical test data packet of task identification merges result treatment.
<management server>
In the present embodiment, a kind of management server 800 is also provided, as shown in figure 8, including second processor 810 and the
Two memories 820, second memory 820 is for storing the second instruction;Second instruction executes sheet for controlling second processor 810
Method for testing pressure described in any one of embodiment.
In the present embodiment, management server 800 is not limited to entity form of implementation, and management server 800 can be
Computer, blade server, cloud server, management server in server farm etc..Management server 800 can also incite somebody to action
Partial function is realized by external equipment, for example, management server 800 can be with peripheral communication server, for managing management clothes
The communication connection being engaged between device and multiple testing service devices;Management server 800 can be with peripheral hardware information server, for assisting pipe
Reason server 800 manages the facility information, etc. of multiple testing service devices.
It will be appreciated by those skilled in the art that management server 800 can be realized by various modes.For example, can be with
Management server 800 is realized by instruction configuration processor.For example, instruction can be stored in the ROM, and when starting is set
When standby, instruction is read in programming device from ROM and realizes management server 800.For example, can be by management server
800 are cured in dedicated devices (such as ASIC).Management server 800 can be divided into mutually independent unit, or can be with
They are merged into realization.Management server 800 can realize by one of above-mentioned various implementations, or
It can be realized by the combination of two or more modes in above-mentioned various implementations.
Attached drawing is had been combined above and describes the present embodiment, according to the present embodiment, provides a kind of test control method and pipe
Server is managed, multiple pressure test nodes are controlled by management server while carrying out pressure test, realizes that distributed pressure is surveyed
The effect of examination can quickly expand the pressure test ability of pressure testing system, reduce configuration large scale test server and carry out
The time of pressure test task.Further, it is also possible to improve the pressure test ability of a testing service device.Further, it is also possible to mention
The efficiency of high pressure test.
<3rd embodiment>
In the present embodiment, a kind of pressure testing system 900 is provided, as shown in Figure 9, comprising:
The testing service device 300 provided in first embodiment;
And the management server 800 provided in second embodiment.
In the present embodiment, pressure testing system 900 can also include other equipment, for example, it is also possible to include communication clothes
Business device, for managing the communication connection between testing service device 300 and management server 800;Alternatively, can also include that information takes
Business device, for assisting testing service device 300 to manage management server 800, etc..
In one example, pressure testing system 900 can also be test macro 1000 as shown in Figure 1.
The pressure that the pressure testing system 900 in through this embodiment is implemented is further illustrated below with reference to Fig. 9 citing
Test method.
In the example shown in Fig. 9, in pressure testing system 900, although illustrating only two management servers 800 and three
A testing service device 300, but being not intended to limit test macro 400 only includes two management servers and three testing services
Device.
The method for testing pressure, as shown in Figure 10, comprising: step S1001-S1008.
Pressure test tool is packaged as application container engine by testing service device, as pressure test section by step S1001
Point.
The network address of pressure test node and configuration information are sent to management clothes by testing service device by step S1002
Business device, so that management server generates the test file of corresponding pressure test node.
Step S1003 receives the network address and configuration information that multiple pressure test nodes are sent by management server.
Step S1004, by management server according to the configuration information of multiple pressure test nodes to externally input test
Task is split, and the test file for corresponding to each pressure test node is obtained.
Step S1005, by management server according to the network address of multiple pressure test nodes, by each test file
Corresponding pressure test node is sent to be tested.
Step S1006, the test file issued by testing service device in response to management server control pressure test node
The test file is executed, test data is obtained.
Step S1007, by testing service device control pressure test node by test data be sent to the management server into
Row storage.
Step S1008 is obtained by management server and is stored the test number that multiple pressure test nodes execution tests obtain
According to.
The step of method for testing pressure that testing service device 300 executes, has been described in detail in the first embodiment, manages
The step of method for testing pressure that server 800 executes, has been described in detail in a second embodiment, and details are not described herein.
In this example, pressure test tool can be packaged as by application container engine by testing service device, as pressure
Test node enables management server to control multiple pressure test nodes while carrying out pressure test, realizes distributed pressure
The effect of power test, can quickly expand the pressure test ability of pressure testing system, reduce configuration large scale test server
Carry out the time of pressure test task.Further, it is also possible to improve the pressure test ability of a testing service device.In addition, may be used also
To improve the efficiency of pressure test.
The present invention can be system, method and/or computer program product.Computer program product may include computer
Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the invention.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment
Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium
More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable
Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above
Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to
It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire
Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network
Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing operation of the present invention can be assembly instruction, instruction set architecture (ISA) instructs,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages
The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as
Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer
Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one
Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part
Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the invention
Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/
Or block diagram describes various aspects of the invention.It should be appreciated that flowchart and or block diagram each box and flow chart and/
Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas
The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas
When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced
The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to
It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction
Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram
The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other
In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce
Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment
Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use
The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.It is right
For those skilled in the art it is well known that, by hardware mode realize, by software mode realize and pass through software and
It is all of equal value that the mode of combination of hardware, which is realized,.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In principle, the practical application or to the technological improvement in market for best explaining each embodiment, or make the art its
Its those of ordinary skill can understand each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.