The framework is comprised of three kinds of procedure (or system): worker procedures, representative processes, additionally the console. The responsibilities of each associated with procedure kinds become:
- Worker procedures
- Interprets test scripts and carries out the exams. Each individual procedure can operate numerous examinations in synchronous utilizing several individual posts.
- Long running process that begins and prevents worker procedures as required.
- Maintains a local cache of examination programs marketed through the system.
- Coordinates others processes.
- Collates and exhibits research.
- Supplies script editing and distribution.
For long lasting evaluating, you begin a realtor procedure on every of numerous burden injector machinery. The worker processes they establish may be influenced and monitored utilizing the console. Discover small explanation to operate one or more agent on each burden injector, you could if you want.
Exams and examination scripts
an examination is a product of efforts against which data are tape-recorded. Examinations tend to be exclusively identified by a test amounts and have a description. Users specify which assessments to run making use of a test program. Should you desire the scripts can submit a lot of different activities (e.g. different web site requests) from the exact same test, The Grinder will aggregate the results.
The software is actually executed often times in a normal examination example. Each individual process features many individual posts, and each worker bond calls the software some era. One performance of a test script is known as a run.
You can easily write scripts for usage with all the Grinder yourself. There are certain types of simple tips to try this inside the program Gallery. See the programs area for much more information on how to come up with programs.
If you are promoting a script to check a site or web program, you can use the TCPProxy to capture an internet browser treatment as a software.
Circle communication
Each individual processes creates a system link with the system to document data. Each representative procedure sets up a connection to your unit to get commands, it passes by to the worker procedures. The system listens for kinds of connections on a particular target and port. Automatically, the system listens on slot 6372 on all neighborhood circle interfaces with the maker operating the console.
If a realtor process doesn’t connect with the unit, or the grinder.useConsole land are false , the representative is going to continue on their own without unit and immediately begins their worker processes. The employee steps will run to end and not are accountable to the unit. This is of use when you need to rapidly try a test software without bothering to start out the unit.
Result
Each individual procedure produces signing info to a document called host-n.log , where host will be the device variety name and letter could be the worker processes quantity.
Data about individual examination invocations is written into a file also known as host-n-data.log that can be brought in into a spreadsheet tool such Microsoft shine TM for additional analysis. The information file is the best location in which details about individual reports are recorded; the system showcases merely aggregate suggestions.
The console has a powerful show of close details compiled from most of the worker steps. Plug-ins and advanced examination texts can offer extra statistics; for instance, the HTTP plug-in contributes a statistic the material amount of the feedback looks.
- Achievement. How many profitable assessments for the test is actually incremented The amount of time taken fully to carry out the test try included with the whole.
- Error. The delivery of an examination raised an exception. The amount of Errors the test are incremented. The amount of time used is thrown away.
How do I beginning The Grinder?
Generate a document. This file specifies common control suggestions (the way the worker processes should contact the unit, how many employee procedures to utilize, ..), also the identity regarding the examination script that’ll be familiar with operate the examinations.
The representative will look when it comes to file in local service. The test script is generally put alongside the land file. If you love, you’ll be able to identify an explicit attributes lodge given that basic argument. For example:
The unit does not look at the document. It’s its own choices dialog (pick the File/Options eating plan solution) you should use to arranged the communication details and slots to match those who work in the data files. The unit techniques controls can be used to activate The Grinder test scenario. Each agent techniques after that brings youngster individual processes to complete the task.
Since individual steps carry out, they dynamically inform the console on the tests from inside the test software. Any time you starting the console after the representative process, you will want to push the Reset procedures button. This may cause the existing individual steps to exit and representative procedure to start out new individual procedures that’ll upgrade the system with all the newer examination records.
Integrated below are some sample texts, both for Unix/Linux and screens, for beginning grinder agencies, the console, as well as the TCPProxy for recording HTTP texts.