Method of testing and device based on Jmteter, storage medium, electronic equipment
Technical field
This disclosure relates to software testing technology field, in particular to a kind of method of testing based on Jmteter, base
In Jmteter test device, computer-readable recording medium and electronic equipment.
Background technology
In the software test of numerous types, the pressure test of software is also a kind of critically important test.Wherein, pressure is surveyed
Examination can include testing the response speed of software, especially to the access of a large amount of concurrent users within a short period of time when,
The high concurrent and anti-pressure ability of software are tested.Therefore, when software pressure test can produce the request of high concurrent amount with simulation
Implement to be tested premised on pressure test.
At present, when carrying out software pressure test, the mode of pressure test can be carried out by using Jmeter docking ports
Realized.Wherein, Jmeter supports the pressure test script that java writes, and provides complete API, can not only press
Power tests HTTP interface, can also carry out pressure survey to the interface of custom protocol;Tester only needs to need before pressure test
Prepare the data files of interface needs, pressure test script, forcing press etc. and can be carried out pressure test.Further,
After pressure test script, data file are ready to by tester, it is also necessary to by pressure test script and data file
Transmit to forcing press, after configuration is completed, can just carry out pressure test.Therefore, above-mentioned pressure test scheme is also present following
Some shortcomings:
On the one hand, tester is used during forcing press, it is necessary to configuring a forcing press for each tester for each
Tester is used, therefore when tester is more, the distribution of forcing press can be caused relatively complicated and more inconvenient;Separately
On the one hand, when interface estimate index it is larger when, it is necessary to transmit scripts to more forcing presses;And each forcing press relies on Jar and number
Need to start Jmeter, stopped and checked daily record etc. according to file, during pressure test, step is relatively complicated and when wasting
Between;Another further aspect, when more machines are fitted without Jmeter, it is necessary to manually upload Jmeter for more machines, and match somebody with somebody
Jmeter.properies is put, operating efficiency is relatively low;Further, the Jmeter in forcing press, Jar bags is relied on and are gone out sometimes
Existing version conflict, causes script to be tested to be gone wrong in pressure test;Further, after Jmeter uses, sometimes
Forget to close Jmeter services, therefore next tester can be caused in use, also needing to turn off Jmeter processes again;Work as pressure
It is less efficient when power machine quantity is excessive;Finally, when same transmitting data file is to forcing press, the data text of more forcing presses
Part needs to be put under same paths;But because the operation error of tester does not upload to same directory, therefore can cause
The situation of data file can not be used during execution.
A kind of accordingly, it is desirable to provide new method of testing based on Jmteter.
It should be noted that information is only used for strengthening the reason to the background of the disclosure disclosed in above-mentioned background section
Solution, therefore can include not forming the information to prior art known to persons of ordinary skill in the art.
The content of the invention
The purpose of the disclosure be to provide a kind of method of testing based on Jmteter, the test device based on Jmteter,
Computer-readable recording medium and electronic equipment, so at least overcome to a certain extent due to correlation technique limitation and lack
One or more problem caused by falling into.
According to an aspect of this disclosure, there is provided a kind of method of testing based on Jmteter, including:
Configure more main control computers and more controlled machines and by configuring in each main control computer and controlled machine
Agent is that each main control computer and controlled machine configure the Jmeter;
Receive the script to be tested that client uploads;Wherein, the script to be tested includes the mark of script to be tested, treated
The node identification of the controlled machine of test and the file directory for storing test result;
The script to be tested is uploaded to the main control computer associated with the node identification of the controlled machine to be tested and tune
The script to be tested is tested with the Jmteter;
The test result of the script to be tested is returned into the file directory of the storage test result and treated according to described
The mark of test script is stored so that the client checks the test result.
In a kind of exemplary embodiment of the disclosure, after the script to be tested that client uploads is received, the test
Method also includes:
The script to be tested is converted into entity class;
Wherein, the entity class includes data to be tested and data type to be tested.
In a kind of exemplary embodiment of the disclosure, the method for testing also includes:
Test corresponding to being carried out according to the data type to be tested to the data to be tested.
It is described after being stored according to the mark of the script to be tested in a kind of exemplary embodiment of the disclosure
Method of testing also includes:
The file directory of the preset time scanning storage test result is spaced, and judges the storage test result
The test result do not checked with the presence or absence of the client in file directory;
, will when the test result that the client is not checked be present in the file directory for judging the storage test result
The test result do not checked feeds back to the client so that the client is checked.
It is described before more main control computers and more controlled machines are configured in a kind of exemplary embodiment of the disclosure
Method of testing also includes:
Create Socket and the port numbers of the client transmission are monitored using the Socket;
When listening to the port numbers, judge whether the port numbers are identical with default port numbers;
When judging that the port numbers are identical with default port numbers, foundation and the communication between the client.
According to an aspect of this disclosure, there is provided a kind of method of testing based on Jmteter, including:
Create Socket and Agent and configured the Agent to multiple main control computers and more by the Socket
In individual controlled machine;
The Jmteter is configured into each main control computer and each controlled machine by the Agent;
By script to be tested be packaged into an entity class and by the Socket by the entity class send to server with
The controlled machine is set to call the Jmteter to test the script to be tested.
In a kind of exemplary embodiment of the disclosure, after Socket is created, the method for testing also includes:
Create one end slogan and send the port numbers to server so that server creates institute according to the port numbers
State Socket.
In a kind of exemplary embodiment of the disclosure, the entity class is being sent to server by the Socket
Afterwards, the method for testing also includes:
Create multiple threads and the test result for the script to be tested that the server is sent is received using each thread.
In a kind of exemplary embodiment of the disclosure, the method for testing also includes:
The test result is converted into journal file and the journal file is showed into tester.
According to an aspect of this disclosure, there is provided a kind of test device based on Jmteter, including:
Configuration module, for configure more main control computers and more controlled machines and by configuring in each main control computer and
Agent in controlled machine configures the Jmeter for each main control computer and controlled machine;
Script receiving module to be tested, for receiving the script to be tested of client upload;Wherein, the script to be tested
Identifying including script to be tested, the node identification of controlled machine to be tested and the file directory for storing test result;
Script test module to be tested, for the script to be tested to be uploaded to the section with the controlled machine to be tested
The main control computer of point identification association simultaneously calls the Jmteter to test the script to be tested;
Script to be tested returns to module, for the test result of the script to be tested to be returned into the storage test result
File directory and stored according to the mark of the script to be tested so that the client checks the test result.
According to an aspect of this disclosure, there is provided a kind of test device based on Jmteter, including:
Creation module, for creating Socket and Agent and being configured the Agent to multiple by the Socket
In main control computer and multiple controlled machines;
Jmteter configuration modules, for the Jmteter to be configured to each main control computer by the Agent and
In each controlled machine;
Script package module to be tested, for script to be tested to be packaged into an entity class and by the Socket by institute
Entity class is stated to send to server so that the controlled machine calls the Jmteter to test the script to be tested.
According to an aspect of this disclosure, there is provided a kind of computer-readable recording medium, computer program is stored thereon with,
The computer program realizes the method for testing based on Jmteter described in above-mentioned any one when being executed by processor.
According to an aspect of this disclosure, there is provided a kind of electronic equipment, including:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to perform the base described in above-mentioned any one via the executable instruction is performed
In Jmteter method of testing.
A kind of method of testing based on Jmteter of the disclosure, by configuring the Agent in each main control computer and controlled machine
Jmeter is configured for each main control computer and controlled machine;Then the script to be tested that client uploads is received and by script to be tested
Reach and call after the main control computer associated with the node identification of controlled machine to be tested Jmteter to treat test script to be tested;
The test result of script to be tested is finally returned into the file directory of storage test result and according to the mark of script to be tested again
Stored so that client checks test result;On the one hand, by configuring multiple main control computers, avoid due to pressure requirements mistake
The problem of can not being tested caused by a main control computer CPU consumption is excessive caused by big, improve testing efficiency;On the other hand, lead to
It is that each main control computer and controlled machine configure Jmeter to cross using Agent, and solving needs tester to be uploaded manually
The problem of Jmeter, Jmeter configuration speed is improved, and then improve testing efficiency;Another further aspect, Agent can be passed through
(such as being terminated to Jmteter) is controlled to the Jmteter in each main control computer and controlled machine, avoided due to test
Personnel terminate Jmteter the problem of need tester manual termination Jmteter next time due to failing, and improve
The speed that Jmteter is terminated;Further, it is that each main control computer and controlled machine configure Jmeter by using Agent, avoids
Due to needed caused by manual configuration Jmeter rely on Jar bag catalogues the problem of, improve allocative efficiency.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.It should be evident that drawings in the following description are only the disclosure
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 schematically shows a kind of pressure test exemplary plot.
Fig. 2 schematically shows a kind of flow chart of the method for testing based on Jmteter.
Fig. 3 schematically shows a kind of device exemplary plot of the test based on Jmteter.
Fig. 4 schematically shows a kind of flow example figure of the test based on Jmteter.
Fig. 5 schematically shows the flow chart of another method of testing based on Jmteter.
Fig. 6 schematically shows the block diagram of another test device based on Jmteter.
Fig. 7 schematically shows a kind of electronic equipment for being used to realize the above-mentioned method of testing based on Jmteter.
Fig. 8 schematically shows a kind of computer-readable storage medium for being used to realize the above-mentioned method of testing based on Jmteter
Matter.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be incorporated in one or more embodiments in any suitable manner.In the following description, there is provided permitted
More details fully understand so as to provide to embodiment of the present disclosure.It will be appreciated, however, by one skilled in the art that can
Omitted with putting into practice the technical scheme of the disclosure one or more in the specific detail, or others side can be used
Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution a presumptuous guest usurps the role of the host to avoid and
So that each side of the disclosure thickens.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical accompanying drawing mark in figure
Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are work(
Can entity, not necessarily must be corresponding with physically or logically independent entity.These work(can be realized using software form
Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
With reference to shown in figure 1, for traditional Jmeter distributed pressure test function, receive connecing for pressure test
Mouth needs to be restricted by system bottleneck;, will for million grades or the other pressure of millions if only introducing a main control computer
Machine CPU, which is controlled, for asking, in one consumes requirement that is excessive therefore can not meeting pressure test.
A kind of method of testing based on Jmteter is provide firstly in this example embodiment.With reference to shown in figure 2, the base
It may comprise steps of in Jmteter method of testing:
Step S210. configures more main control computers and more controlled machines and by configuring in each main control computer and controlled machine
Agent configure the Jmeter for each main control computer and controlled machine.
Step S220. receives the script to be tested that client uploads;Wherein, the script to be tested includes script to be tested
Identify, the node identification of controlled machine to be tested and store test result file directory.
The script to be tested is uploaded to the master associated with the node identification of the controlled machine to be tested by step S230.
Control machine simultaneously calls the Jmteter to test the script to be tested.
Step S240. returns to the test result of the script to be tested the file directory and root of the storage test result
Stored according to the mark of the script to be tested so that the client checks the test result.
In the above-mentioned method of testing based on Jmteter, on the one hand, by configuring multiple main control computers, avoid due to pressure
The problem of can not being tested caused by a main control computer CPU consumption caused by power requires excessive is excessive, improve testing efficiency;It is another
Aspect, it is that each main control computer and controlled machine configure Jmeter by using Agent, solving needs tester to carry out manually
The problem of passing Jmeter, improves Jmeter configuration speed, and then improve testing efficiency;Another further aspect, it can pass through
Agent is controlled (such as being terminated to Jmteter) to the Jmteter in each main control computer and controlled machine, avoid by
In tester due to failing to terminate Jmteter and the problem of need tester manual termination Jmteter next time, lifting
The speed that Jmteter is terminated;Further, it is that each main control computer and controlled machine configure Jmeter by using Agent, avoids
Due to need to rely on Jar bag catalogues caused by manual configuration Jmeter the problem of, allocative efficiency is improved.
Below, each step in the above-mentioned method of testing based on Jmteter in this example embodiment will be carried out detailed
Explanation and explanation.
In step S210, more main control computers and more controlled machines are configured and by configuring in each main control computer and being controlled
Agent in machine configures the Jmeter for each main control computer and controlled machine.
First, Agent and Jmeter are explained and illustrated.Agent, which is one, has adaptivity and intelligence
Property software entity, can represent user or other programs complete a job in a manner of taking the initiative in offering a hand.Agent can possess
The determinant attribute of following several respects:Independence:Agent, which has, belongs to the computing resource of its own and part in itself Behavior- Based control
Mechanism, can without it is extraneous it is direct operated in the case of, according to its internal state and (outside) environmental information perceived, decision
With the control behavior of itself;Interactivity:Interacting for diversified forms can be carried out with other Agent, effectively can be assisted with other Agent
With work;Reactivity:Residing environment can be perceived, and in good time reaction is made to dependent event;Initiative:Promise can be followed to take
Initiatives, show object-oriented behavior;Reasoning and planning ability:Agent has learning knowledge and experience and carries out phase
The reasoning of pass and the ability of intelligence computation.Further, Jmeter is the pressure test instrument based on Java;It can be used for soft
Part carries out pressure test, can be also used for testing static and dynamic resource, such as static file, Java servlet, CGI pin
Sheet, Java object, database and ftp server etc..JMeter can be used for huge to server, network or simulating
Load, tested under different pressures classification their intensity and analysis overall performance.
Further, step S210 is further explained and illustrated based on above-mentioned Agent and Jmeter.Ginseng
Examine shown in Fig. 3, multiple main control computers (forcing press) and controlled machine (forcing press) can be configured first;Then by configuring in each master
Agent in control machine and controlled machine configures the Jmeter for each main control computer and controlled machine.Specifically:
Socket and Agent is created in client first, then establishes client and server using Socket
Connection, after the completion of Socket connections foundation, Agent is configured into each main control computer and controlled machine by Socket connections.
It should be added that, each main control computer can control multiple controlled machines herein;By configuring multiple controlled machines, it is possible to achieve more
The cluster operation of individual pressure group so that the forcing press of each main control computer association is reduced, but pressure group increases, and so can both expire
Sufficient pressure requirements, again single main control computer can be avoided system bottleneck occur, the drawbacks of being unable to reach pressure requirements.
In step S220, the script to be tested that client uploads is received;Wherein, the script to be tested includes to be tested
The identifying of script, the node identification of controlled machine to be tested and the file directory for storing test result.Specifically:
After the completion of above-mentioned Socket connections foundation, client is sent script to be tested to clothes by the Socket connections
Business device;Wherein, the file name format of script to be tested can include:
Sh jemter.sh-n-t [jmx scripts]-R-1result.jtl;
Wherein ,-t can represent the mark of script to be tested;R can represent controlled machine (Slave) node to be used, quilt
Control machine can be it is multiple can also be one, controlled machine for it is multiple when, separated with ", " between each node and distinguished with showing;-
1 can represent to store the file directory (result.jtl) of test result
In step S230, the script to be tested is uploaded to and associated with the node identification of the controlled machine to be tested
Main control computer and call the Jmteter to test the script to be tested.Specifically:
Above-mentioned script to be tested is uploaded on the main control computer associated with controlled machine (Slave) node to be used, then
Call it is each in Jmteter treat test script and tested.Herein it should be added that, due to be controlled machine (Slave)
Can be multiple, therefore the main control computer corresponding to the node of each controlled machine can be same main control computer or multiple masters
Control machine, this example are not done specifically limited to this.
In step S240, the test result of the script to be tested is returned to the file directory of the storage test result
And stored according to the mark of the script to be tested so that the client checks the test result.Specifically:
After the completion of above-mentioned script test to be tested, test result is returned to the file directory of storage test result
(result.jtl) and according to the mark (jemter.sh-n-t) of script to be tested stored to facilitate client can basis
The mark checks the test result of each script to be tested.
Further, each test by motivation for convenience, can be with after the script to be tested that client uploads is received
Conversion re-test first is carried out to each script to be tested, can specifically be included:The script to be tested is converted into entity class;Its
In, the entity class includes data to be tested and data type to be tested.Specifically:
After the script to be tested of client upload is received, it is transmitted by then passing through Socket connections, therefore
The script to be tested that server receives is inlet flow (socket.getInputStream), for the ease of parsing, can first by
The inlet flow is converted into the entity class for including data to be tested and data type to be tested, then further according to the number to be tested
Tested corresponding to being carried out according to type to the data to be tested.For example:
With reference to shown in figure 4, such as data type to be tested manages for initialization, then can be according to initialization management to be measured
Examination data are tested as follows:Such as Jmeter initialization tests, Agent initialization tests, monitoring Agent states can be included
Test and operation Agent tests etc.;Other tests can also be included, such as can change including additions and deletions and look into test etc., this
Example is not done specifically limited to this.It should be added that, each test data type that can be in Fig. 4 is not herein
Together, corresponding different tests are carried out, are no longer repeated herein.
Further, can in order to which client can be allowd timely to check the test result of each script to be tested
To scan the file directory of storage test result after the preset time period of interval;It can specifically include:It is spaced a preset time
The file directory of the storage test result is scanned, and is judged in the file directory of the storage test result with the presence or absence of described
The test result that client is not checked;The client be present in the file directory for judging the storage test result not check
Test result when, the test result do not checked is fed back into the client so that the client is checked.Specifically:
It (such as can be 30s or 45s or 1min etc., this example is not spy to this to be spaced a preset time
Different limitation) run-down storage test result file directory (result.jtl) and judge this document catalogue (result.jtl)
The test result do not checked with the presence or absence of client in file directory;And judging this document catalogue (result.jtl) file mesh
When the test result do not checked in record be present, test result can be fed back in the thread of client establishment so that client can
Timely to check the test result of each script to be tested.Herein it should be added that, can be by the survey that will check
Test result is deleted the test result to judge whether not check;Can also in other way, such as can be right
The test result checked is marked etc., and this example is not done specifically limited to this.
Further, for the ease of establishing Socket connections between client and server, listening port number can be passed through
Mode established, can specifically include:Create Socket and monitor what the client was sent using the Socket
Port numbers;When listening to the port numbers, judge whether the port numbers are identical with default port numbers;Judging the port
When number identical with default port numbers, the communication established between the client.Specifically:
A Socket is created in server end and monitors the port numbers of client transmission;When the end for listening to client transmission
During slogan, judge that whether default with server end the port numbers (original storage) port numbers are identical, and judging the port
When number identical with default port numbers, the Socket connections of server and client, which are established, to be completed.In addition, the disclosure other
In illustrative embodiments, the connection of client and server can also be established by other means, such as can be passed through
Http protocol etc., this example are not done specifically limited to this.
The disclosure additionally provides another method of testing based on Jmteter., should be based on Jmteter's with reference to shown in figure 5
Method of testing can include step S510- steps S530.Wherein:
In step S510, create Socket and Agent and configured the Agent to multiple by the Socket
In main control computer and multiple controlled machines.Specifically:
Socket and Agent is created in client, then establishes the Socket connections of client and server, and lead to
The Socket connections are crossed to configure Agent into multiple main control computers and multiple controlled machines so that Agent can match somebody with somebody Jmteter
Put into each main control computer and controlled machine, solve the problems, such as to need tester's manual configuration, improve Jmteter configuration
Efficiency.
In step S520, the Jmteter is configured to each main control computer and each quilt by the Agent
In control machine.
In step S530, script to be tested is packaged into an entity class and sent out the entity class by the Socket
Server is delivered to so that the controlled machine calls the Jmteter to test the script to be tested.Specifically:
Script to be tested is packaged into an entity class (Client View Object) first and then incited somebody to action by Socket
The entity class is sent to server in a manner of inlet flow (socket.getInputStream) so that controlled machine calls
Jmteter, and the data type to be tested in script to be tested is treated test script and tested.
Further, after creating Socket and completing, server can pass through identical end between monitoring and client
The Socket connections that slogan is established between client.It can specifically include:Create one end slogan and send out the port numbers
Server is delivered to so that server creates the Socket according to the port numbers.Specifically:
One end slogan (IP) is created in client and sends the port numbers to server, so that server is by the port numbers
Stored, and listening to the connection with after the port numbers identical port numbers, establishing between client next time.
Further, in order to timely receive the test result of script to be tested, can also be configured in client more
The thread of individual processing test result;It can specifically include:Create multiple threads and receive the service using each thread
The test result for the script to be tested that device is sent.Specifically:
Multiple threads are created in client, after the test result of each script to be tested of server end transmission is received,
The test result is received using any thread;Then the test result received is stored in character again and cached
(StringBuffer), then the test result in StringBuffer is handled using the thread;Then can be sharp again
Gone to receive other test result to be measured with other thread.
Further, after thread receives test result, it is also necessary to by test result be further processed with
Tester is checked, can specifically be included:The test result is converted into journal file and by the day
Will document presentation is to tester.Specifically:
The test result in StringBuffer is changed into journal file using above-mentioned thread again to show the journal file
To tester, so that the test result that tester can be converted into journal file according to this treats test script and enters traveling one
The processing of step.It should be added that, by the way that test result is converted into journal file, test result can be had herein
There is stronger readability, improve the efficiency of tester.
The disclosure additionally provides a kind of test device based on Jmteter., should the survey based on Jmteter with reference to shown in figure 6
Trial assembly, which is put, can include configuration module 610, script receiving module 620 to be tested, script test module 630 to be tested and to be measured
This return of training module 640.Wherein:
Configuration module 610 can be used for configuring more main control computers and more controlled machines and by configuring in each master control
Agent in machine and controlled machine configures the Jmeter for each main control computer and controlled machine.
Script receiving module 620 to be tested can be used for receiving the script to be tested that client uploads;Wherein, it is described to be measured
Training sheet includes the identifying of script to be tested, the node identification of controlled machine to be tested and the file mesh for storing test result
Record.
Script test module 630 to be tested can be used for the script to be tested being uploaded to be controlled with described to be tested
The main control computer of the node identification association of machine simultaneously calls the Jmteter to test the script to be tested.
Script to be tested returns to module 640 and can be used for the test result of the script to be tested returning to the storage survey
The file directory of test result is simultaneously stored so that the client checks the test according to the mark of the script to be tested
As a result.
The disclosure additionally provides another test device based on Jmteter.The test device based on Jmteter can be with
Including:
Creation module can be used for create Socket and Agent and by the Socket by the Agent configure to
In multiple main control computers and multiple controlled machines.
Jmteter configuration modules can be used for by the Agent by the Jmteter configure to each main control computer with
And in each controlled machine.
Script package module to be tested can be used for script to be tested being packaged into an entity class and by the Socket
The entity class is sent to server so that the controlled machine calls the Jmteter to survey the script to be tested
Examination.
The detail of each module is based on corresponding in the above-mentioned test device device based on Jmteter
Carry out wanting to describe in detail in Jmteter method of testing, therefore here is omitted.
It should be noted that although some modules or list of the equipment for action executing are referred in above-detailed
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Either the feature of unit and function can embody module in a module or unit.A conversely, above-described mould
Either the feature of unit and function can be further divided into being embodied by multiple modules or unit block.
In addition, although describing each step of method in the disclosure with particular order in the accompanying drawings, still, this does not really want
These steps must be performed according to the particular order by asking or implying, or the step having to carry out shown in whole could be realized
Desired result.It is additional or alternative, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can be realized by software, can also be realized by way of software combines necessary hardware.Therefore, according to the disclosure
The technical scheme of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are to cause a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is performed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can realize the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here
Referred to as " circuit ", " module " or " system ".
The electronic equipment 600 according to the embodiment of the invention is described referring to Fig. 7.The electronics that Fig. 7 is shown
Equipment 600 is only an example, should not bring any restrictions to the function and use range of the embodiment of the present invention.
As shown in fig. 7, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap
Include but be not limited to:Above-mentioned at least one processing unit 610, above-mentioned at least one memory cell 620, connection different system component
The bus 630 of (including memory cell 620 and processing unit 610).
Wherein, the memory cell is had program stored therein code, and described program code can be held by the processing unit 610
OK so that the processing unit 610 performs various according to the present invention described in above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 610 can perform step S210 as shown in Figure 2:Configuration is more
Platform main control computer and more controlled machines and be each master control by configuring the Agent in each main control computer and controlled machine
Machine and controlled machine configure the Jmeter;S220:Receive the script to be tested that client uploads;Wherein, the training to be measured
This includes the identifying of script to be tested, the node identification of controlled machine to be tested and the file directory for storing test result;Step
Rapid S230:The script to be tested is uploaded to the main control computer associated with the node identification of the controlled machine to be tested and calling
The Jmteter is tested the script to be tested;Step 240:The test result of the script to be tested is returned into institute
State the file directory of storage test result and stored according to the mark of the script to be tested so that the client is checked
The test result.
Memory cell 620 can include the computer-readable recording medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Memory cell 620 can also include program/utility with one group of (at least one) program module 6205
6204, such program module 6205 includes but is not limited to:Operating system, one or more application program, other program moulds
Block and routine data, the realization of network environment may be included in each or certain combination in these examples.
Bus 630 can be to represent the one or more in a few class bus structures, including memory cell bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, the equipment communication interacted with the electronic equipment 600 can be also enabled a user to one or more, and/or with causing
Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with
By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As illustrated, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600.
It should be understood that although not shown in the drawings, can combine electronic equipment 600 does not use other hardware and/or software module, including but not
It is limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can be realized by software, can also be realized by way of software combines necessary hardware.Therefore, according to the disclosure
The technical scheme of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are to cause a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is performed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer-readable recording medium is additionally provided, is stored thereon with energy
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product, it includes program code, when described program product is run on the terminal device, institute
State program code be used for make the terminal device perform described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
With reference to shown in figure 8, the program product for being used to realize the above method according to the embodiment of the present invention is described
800, it can use portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as run on PC.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be with
Be it is any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or
It is in connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any combination above.The more specifically example of readable storage medium storing program for executing is (non exhaustive
List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more wires, read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media can be including the data-signal in a base band or as carrier wave part propagation, its
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie beyond readable storage medium storing program for executing
Matter, the computer-readable recording medium can send, propagate either transmit for used by instruction execution system, device or device or and its
The program of combined use.
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, including but not limited to wirelessly, be had
Line, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., include routine
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user
Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to
In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network
(WAN) user calculating equipment, is connected to, or, it may be connected to external computing device (such as utilize ISP
To pass through Internet connection).
In addition, above-mentioned accompanying drawing is only the schematic theory of the processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limitation purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings was not intended that or limited these processing is suitable
Sequence.In addition, being also easy to understand, these processing for example can be performed either synchronously or asynchronously in multiple modules.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
His embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by claim
Point out.