The Grinder is a framework for running examination programs across many machines
The framework is composed of three kinds of procedure (or system): individual processes, broker procedures, therefore the unit. The responsibilities of every on the processes kinds include:
- Individual steps
- Interprets examination scripts and performs the studies. Each individual procedure can operate many assessments in synchronous making use of some employee posts.
- Long term process that initiate and prevents worker steps as required.
- Keeps an area cache of test texts marketed through the unit.
- Coordinates additional processes.
- Collates and showcases statistics.
- Produces software editing and distribution.
For heavy weight screening, you set about an agent procedure on every of numerous load injector machinery. The individual processes they start can be monitored and watched utilising the unit. There was little factor to run one or more broker on every load injector, you could should you desire.
Exams and test scripts
an examination is an unit of services against which research were taped. Reports include distinctively identified by a test amounts and also have a description. Consumers specify which examinations to operate making use of a test script. If you wish your programs can submit a lot of different actions (example. various website demands) contrary to the exact same test, The Grinder will aggregate the outcome.
The script was performed often in an average evaluation example. Each employee processes keeps many individual threads, and every employee bond calls the script several occasions. Just one execution of a test software is known as a run.
You can create programs to be used with the Grinder manually. There are certain types of ideas on how to repeat this in the software Gallery. Look at programs section for more details on how to make scripts.
In case you are promoting a script to check a site or internet program, you should use the TCPProxy to tape a browser session as a program.
Network interaction
Each worker procedure creates a system link with the console to document data. Each agent techniques creates an association towards the console for directions, it passes by on to the individual procedures. The unit listens for both forms of connections on a specific address and port. By default, the console listens on port 6372 on all regional network interfaces associated with the maker operating the unit.
If a representative procedure fails to hook up to the system, or perhaps the grinder.useConsole belongings try bogus , the representative will stay alone without any system and automatically will begin their worker procedures. The individual procedures will run to conclusion and not are accountable to the console. This is often beneficial if you want to rapidly test a test software without bothering to start out the console.
Result
Each employee techniques produces logging info to a file known as host-n.log , in which variety is the device host label and letter will be the individual process quantity.
Information about individual test invocations is written into a file called host-n-data.log that can be imported into a spreadsheet software instance Microsoft shine TM for further review. The info file could be the sole room where information on individual exams is taped; the unit displays merely aggregate info.
The console possess a powerful screen of similar information gathered from all the employee procedures. Plug-ins and excellent examination scripts provides added reports; eg, the HTTP plug-in brings a statistic for the material length of the responses system.
- Achievement. The sheer number of Successful Tests for that test was incremented enough time taken to carry out the examination is actually included with the entire.
- Error. The delivery of an examination brought up an exception. The number of mistakes for your test try incremented. The full time taken try discarded.
Best ways to start The Grinder?
Build a document. This file specifies common controls suggestions (how the individual processes should get in touch with the system, how many employee steps to use, ..), plus the title from the test program that’ll be used to operated the assessments.
The agent will appear the file in regional directory site. The test script is usually accumulated alongside the land document. If you want, you’ll be able to specify an explicit characteristics submit because first argument. Like:
The unit will not take a look at file. It offers its very own possibilities dialog (opt for the File/Options diet plan alternative) which you should use to ready the correspondence addresses and slots to suit those in the data. The unit techniques manages may be used to cause The Grinder examination situation. Each agent process subsequently brings youngsters worker processes doing the task.
Since employee processes execute, they dynamically notify the unit associated with the exams during the examination program. Should you decide starting the system following the agent processes, you really need to press the Reset processes option. This will result in the current worker processes to exit plus the broker procedure to start fresh worker steps that will revise the console using the brand new test info.
Incorporated listed here are some test texts, for Unix/Linux and screens, for beginning grinder representatives, the system, and the TCPProxy for recording HTTP scripts.
دیدگاهتان را بنویسید