| Home >> All >> org >> apache >> [ jmeter Javadoc ] |
Page 1 2 3
org.apache.jmeter: Javadoc index of package org.apache.jmeter.
Package Samples:
org.apache.jmeter.assertions.gui: Assertions
org.apache.jmeter.assertions
org.apache.jmeter.control.gui
org.apache.jmeter.control
org.apache.jmeter.extractor.gui
org.apache.jmeter.extractor
org.apache.jmeter.config.gui
org.apache.jmeter.config
org.apache.jmeter.engine.event
org.apache.jmeter.engine.util
org.apache.jmeter.engine
org.apache.jmeter.exceptions
org.apache.jmeter.functions.gui
org.apache.jmeter.functions.util
org.apache.jmeter.functions
org.apache.jmeter.gui.action
org.apache.jmeter.gui.tree
org.apache.jmeter.gui.util
org.apache.jmeter.gui
org.apache.jmeter.examples.sampler.gui
Classes:
AbstractVisualizer: This is the base class for JMeter GUI components which can display test results in some way. It provides the following conveniences to developers: Implements the JMeterGUIComponent interface that allows your Gui visualizer to "plug-in" to the JMeter GUI environment. Provides implementations for the following methods: configure(TestElement) 55 . Any additional parameters of your Visualizer need to be handled by you. createTestElement() 55 . For most purposes, the default ResultCollector created by this method is sufficient. getMenuCategories() 55 . To control where in the GUI your visualizer can ...
Spline3: This class implements the representation of an interpolated Spline curve. The curve described by such an object interpolates an arbitrary number of fixed points called nodes . The distance between two nodes should currently be constant. This is about to change in a later version but it can last a while as it's not really needed. Nevertheless, if you need the feature, just write me a note and I'll write it asap. The interpolated Spline curve can't be described by an polynomial analytic equation, the degree of which would be as high as the number of nodes, which would cause extreme oscillations of ...
JavaSamplerClient: This interface defines the interactions between the JavaSampler and external Java programs which can be executed by JMeter. Any Java class which wants to be executed as a JMeter test must implement this interface (either directly or indirectly through AbstractJavaSamplerClient). JMeter will create one instance of a JavaSamplerClient implementation for each user/thread in the test. Additional instances may be created for internal use by JMeter (for example, to find out what parameters are supported by the client). When the test is started, setupTest() will be called on each thread's JavaSamplerClient ...
GenericTestBeanCustomizer: The GenericTestBeanCustomizer is designed to provide developers with a mechanism to quickly implement GUIs for new components. It allows editing each of the public exposed properties of the edited type 'a la JavaBeans': as far as the types of those properties have an associated editor, there's no GUI development required. This class understands the following PropertyDescriptor attributes: group: String Group under which the property should be shown in the GUI. The string is also used as a group title (but see comment on resourceBundle below). The default group is "". order: Integer Order in which ...
LogFilter: Description: LogFilter is a basic implementation of Filter interface. This implementation will keep a record of the filtered strings to avoid repeating the process unnecessarily. The current implementation supports replacing the file extension. The reason for supporting this is from first hand experience porting an existing website to Tomcat + JSP. Later on we may want to provide the ability to replace the whole filename. If the need materializes, we can add it later. Example of how to use it is provided in the main method. An example is provided below. testf = new LogFilter(); String[] incl = ...
TCLogParser: Description: Currently the parser only handles GET/POST requests. It's easy enough to add support for other request methods by changing checkMethod. The is a complete rewrite of a tool I wrote for myself earlier. The older algorithm was basic and did not provide the same level of flexibility I want, so I wrote a new one using a totally new algorithm. This implementation reads one line at a time using BufferedReader. When it gets to the end of the file and the sampler needs to get more requests, the parser will re-initialize the BufferedReader. The implementation uses StringTokenizer to create tokens. ...
AccessLogSampler: Description: AccessLogSampler is responsible for a couple of things: creating instances of Generator creating instances of Parser triggering popup windows calling Generator.generateRequest() checking to make sure the classes are valid making sure a class can be instantiated The intent of this sampler is it uses the generator and parser to create a HTTPSampler when it is needed. It does not contain logic about how to parse the logs. It also doesn't care how Generator is implemented, as long as it implements the interface. This means a person could simply implement a dummy parser to generate random ...
AbstractJavaSamplerClient: An abstract implementation of the JavaSamplerClient interface. This implementation provides default implementations of most of the methods in the interface, as well as some convenience methods, in order to simplify development of JavaSamplerClient implementations. See org.apache.jmeter.protocol.java.test.SleepTest for an example of how to extend this class. While it may be necessary to make changes to the JavaSamplerClient interface from time to time (therefore requiring changes to any implementations of this interface), we intend to make this abstract class provide reasonable implementations of ...
JavaTest: The JavaTest class is a simple sampler which is intended for use when developing test plans. The sampler generates results internally, so does not need access to any external resources such as web, ftp or LDAP servers. In addition, because the exact values of most of the SampleResult can be directly set, it is possible to easily test most Assertions that use the sample results. During each sample, this client will sleep for some amount of time. The amount of time to sleep is determined from the two parameters Sleep_Time and Sleep_Mask using the formula: totalSleepTime = Sleep_Time + (System.currentTimeMillis() ...
AccessLogSamplerGui: Title: JMeter Access Log utilities Copyright: Apache.org Company: nobody License: Look at the apache license at the top. Description: So what is this log Sampler GUI? It is a sampler that can take Tomcat access logs and use them directly. I wrote a tomcat access log parser to convert each line to a normal HttpSampler. This way, you can stress test your servers using real production traffic. This is useful for a couple of reasons. Some bugs are really hard to track down, which only appear under production traffic. Therefore it is desirable to use the actual queries to simulate the same exact condition ...
BeanInfoSupport: Support class for test bean beanInfo objects. It will help using the introspector to get most of the information, to then modify it at will. To use, subclass it, create a subclass with a parameter-less constructor that: Calls super(beanClass) Modifies the property descriptors, bean descriptor, etc. at will. Even before any such modifications, a resource bundle named xxxResources (where xxx is the fully qualified bean class name) will be obtained if available and used to localize the following: Bean's display name -- from property displayName . Properties' display names -- from properties propertyName ...
RegexpHTMLParser: HtmlParser implementation using regular expressions. This class will find RLs specified in the following ways (where url represents the RL being found: <img src= url ... > <script src= url ... > <applet code= url ... > <input type=image src= url ... > <body background= url ... > <table background= url ... > <td background= url ... > <tr background= url ... > <applet ... codebase= url ... > <embed src= url ... > <embed codebase= url ... > <object codebase= url ... > <link rel=stylesheet href= url ... gt; <bgsound src= ...
StandardGenerator: Description: StandardGenerator will be the default generator used to pre-process logs. It uses JMeter classes to generate the .jmx file. The first version of the utility only generated the HTTP requests as XML, but it required users to copy and paste it into a blank jmx file. Doing that way isn't flexible and would require changes to keep the format in sync. This version is a completely new class with a totally different implementation, since generating the XML is no longer handled by the generator. The generator is only responsible for handling the parsed results and passing it to the appropriate ...
WrapperEditor: This is an implementation of a full-fledged property editor, providing both object-text transformation and an editor GUI (a custom editor component), from two simpler property editors providing only one of these functionalities each, namely: typeEditor Provides suitable object-to-string and string-to-object transformation for the property's type. That is: it's a simple editor that only need to support the set/getAsText and set/getValue methods. guiEditor Provides a suitable GUI for the property, but works on [possibly null] String values. That is: it supportsCustomEditor, but get/setAsText and ...
Generator: Description: Generator is a base interface that defines the minimum methods needed to implement a concrete generator. The reason for creating this interface is eventually JMeter could use the logs directly rather than pre- process the logs into a JMeter .jmx file. In situations where a test plan simulates load from production logs, it is more efficient for JMeter to use the logs directly. From first hand experience, loading a test plan with 10K or more Requests requires a lot of memory. It's important to keep in mind this type of testing is closer to functional and regression testing than the typical ...
ParamModifier: This modifier will replace any single http sampler's url parameter value with a value from a given range - thereby "masking" the value set in the http sampler. The parameter names must match exactly, and the parameter value must be preset to "*" to diferentiate between duplicate parameter names. For example, if you set up the modifier with a lower bound of 1, an upper bound of 10, and an increment of 2, and run the loop 12 times, the parameter will have the following values (one per loop): 1, 3, 5, 7, 9, 1, 3, 5, 7, 9, 1, 3 The ParamMask object contains most of the logic for stepping through this ...
TestBeanGUI: JMeter GUI element editing for TestBean elements. The actual GUI is always a bean customizer: if the bean descriptor provides one, it will be used; otherwise, a GenericTestBeanCustomizer will be created for this purpose. Those customizers deviate from the standards only in that, instead of a bean, they will receive a Map in the setObject call. This will be a property name to value Map. The customizer is also in charge of initializing empty Maps with sensible initial values. If the provided Customizer class implements the SharedCustomizer interface, the same instance of the customizer will be reused ...
CSVRead: The function represented by this class allows data to be read from CSV files. Syntax is similar to StringFromFile function. The function allows the test to line-thru the data in the CSV file - one line per each test. E.g. inserting the following in the test scripts : ${_CSVRead(c:/BOF/abcd.csv,0)} // read (first) line of 'c:/BOF/abcd.csv' , return the 1st column ( represented by the '0'), ${_CSVRead(c:/BOF/abcd.csv,1)} // read (first) line of 'c:/BOF/abcd.csv' , return the 2nd column ( represented by the '1'), ${_CSVRead(c:/BOF/abcd.csv,next())} // Go to next line of 'c:/BOF/abcd.csv' NOTE: A single ...
SSLManagerCommand: SSL Manager Command. The SSL Manager provides a mechanism to change your client authentication if required by the server. If you have JSSE 1.0.2 installed, you can select your client identity from a list of installed keys. You can also change your keystore. JSSE 1.0.2 allows you to export a PKCS#12 key from Netscape 4.04 or higher and use it in a read only format. You must supply a password that is greater than six characters due to limitations in the keytool program--and possibly the rest of the system. By selecting a *.p12 file as your keystore (your PKCS#12) format file, you can have a whopping ...
ModuleController: The goal of ModuleController is to add modularity to JMeter. The general idea is that web applications consist of small units of functionality (i.e. Logon, Create Account, Logoff...) which consist of requests that implement the functionality. These small units of functionality can be stored in SimpleControllers as modules that can be linked together quickly to form tests. ModuleController facilitates this by acting as a pointer to any controller that sits under the WorkBench. The controller and it's subelements will be substituted in place of the ModuleController at runtime. Config elements can ...
DOMPool: The purpose of this class is to cache the DOM Documents in memory and by-pass parsing. For old systems or laptops, it's not practical to parse the XML documents every time. Therefore using a memory cache can reduce the CPU usage. For now this is a simple version to test the feasibility of caching. If it works, this class will be replaced with an Apache commons or something equivalent. If I was familiar with Apache Commons Pool, I would probably use it, but since I don't know the API, it is quicker for Proof of Concept to just write a dumb one. If the number documents in the pool exceed several ...
Property2: Function to get a JMeter property, or a default. Does not offer the option to store the value, as it is just as easy to refetch it. This is a specialisation of the __property() function to make it simpler to use for ThreadGroup GUI etc. The name is also shorter. Parameters: - property name - default value (optional; defaults to "1") Usage: Define the property in jmeter.properties, or on the command-line: java ... -Jpropname=value Retrieve the value in the appropriate GUI by using the string: ${__P(propname)} $(__P(propname,default)} Returns: - the property value, but if not found - the default ...
XPath: The function represented by this class allows data to be read from XML files. Syntax is similar to the CVSRead function. The function allows the test to line-thru the nodes in the XML file - one node per each test. E.g. inserting the following in the test scripts : ${_XPath(c:/BOF/abcd.xml,/xpath/)} // match the (first) node of 'c:/BOF/abcd.xml' , return the 1st column ( represented by the '0'), ${_XPath(c:/BOF/abcd.xml,/xpath/)} // read (first) match of '/xpath/' expressions ${_XPath(c:/BOF/abcd.xml,/xpath/)} // Go to next match of '/xpath/' expressions NOTE: A single instance of each different ...
Filter: Description: Filter interface is designed to make it easier to use Access Logs for JMeter test plans. Normally, a person would have to clean a log file manually and create the JMeter requests. The access log parse utility uses the filter to include/exclude files by either file name or regular expression pattern. It will also be used by HttpSamplers that use access logs. Using access logs is intended as a way to simulate production traffic. For functional testing, it is better to use the standard functional testing tools in JMeter. Using access logs can also reduce the amount of memory needed to ...
ReflectionThreadGroup: ThreadGroup used for reflection purposes. ThreadGroup has a org.apache.jmeter.control.LoopController which loops as many times as specified on the ThreadGroup gui. During reflection, we don't need the LoopController because we need to run the Sampler (for example, JNDISampler ) only once. Thus we create this ReflectionThreadGroup which has a {link #nextEntry()} which doesn't make use of the LoopController .
| Home | Contact Us | Privacy Policy | Terms of Service |