| Home >> All >> org >> apache >> jmeter >> [ functions Javadoc ] |
| | org.apache.jmeter.functions.gui.* (1) | | org.apache.jmeter.functions.util.* (2) |
org.apache.jmeter.functions: Javadoc index of package org.apache.jmeter.functions.
Package Samples:
org.apache.jmeter.functions.gui
org.apache.jmeter.functions.util
Classes:
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 ...
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 ...
StringFromFile: StringFromFile Function to read a String from a text file. Parameters: - file name - variable name (optional - defaults to StringFromFile_) Returns: - the next line from the file - or **ERR** if an error occurs - value is also saved in the variable for later re-use. Ensure that different variable names are used for each call to the function Notes: - JMeter instantiates a copy of each function for every reference in a Sampler or elsewhere; each instance will open its own copy of the the file - the file name is resolved at file (re-)open time - the output variable name is resolved every time the ...
FileWrapper: This class wraps the FileRowColContainer for use across multiple threads. It does this by maintaining a list of open files, keyed by file name (or alias, if used). A list of open files is also maintained for each thread, together with the current line number.
Property: Function to get a JMeter property, and optionally store it Parameters: - property name - variable name (optional) - default value (optional) Returns: - the property value, but if not found - the default value, but if not define - the property name itself
XPathWrapper: This class wraps the XPathFileContainer for use across multiple threads. It does this by maintaining a list of open files, keyed by file name (or alias, if used). A list of open files is also maintained for each thread, together with the current line number.
LogFunction2: Function to log a message Parameters: - string - log level (optional; defaults to INFO; or DEBUG if unrecognised) - throwable message (optional) Returns: - Empty String (so can be used where return value would be a nuisance)
SetProperty: Function to set a JMeter property Parameters: - property name - value Usage: Set the property value in the appropriate GUI by using the string: ${__setProperty(propname,propvalue)} Returns: nothing
LogFunction: Function to log a message Parameters: - string - log level (optional; defaults to INFO; or DEBUG if unrecognised) - throwable message (optional) Returns: - the input string
SplitFunction: Function to log a message Parameters: - string - log level (optional; defaults to INFO; or DEBUG if unrecognised) - throwable message (optional) Returns: - the input string
Random: Provides a Random function which returns a random integer between a min (first argument) and a max (seceond argument).
FileRowColContainer: File data container for CSV (and similar delimited) files Data is accessible via row and column number
IntSum: Provides an intSum function that adds two or more integer values.
XPathFileContainer: File data container for XML files Data is accessible via XPath
BeanShell: A function which understands BeanShell
AbstractFunction
Function
InvalidVariableException
IterationCounter
JavaScript
MachineName
PackageTest
| Home | Contact Us | Privacy Policy | Terms of Service |