Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.functions » [javadoc | source]
org.apache.jmeter.functions
public class: StringFromFile [javadoc | source]
java.lang.Object
   org.apache.jmeter.functions.AbstractFunction
      org.apache.jmeter.functions.StringFromFile

All Implemented Interfaces:
    TestListener, Function

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 function is invoked
Field Summary
static final  String ERR_IND     
Constructor:
 public StringFromFile() 
Method from org.apache.jmeter.functions.StringFromFile Summary:
execute,   getArgumentDesc,   getReferenceKey,   setParameters,   testEnded,   testEnded,   testIterationStart,   testStarted,   testStarted
Methods from org.apache.jmeter.functions.AbstractFunction:
checkMinParameterCount,   checkParameterCount,   checkParameterCount,   execute,   execute,   getReferenceKey,   getVariables,   setParameters
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.functions.StringFromFile Detail:
 public synchronized String execute(SampleResult previousResult,
    Sampler currentSampler) throws InvalidVariableException 
 public List getArgumentDesc() 
 public String getReferenceKey() 
 public synchronized  void setParameters(Collection parameters) throws InvalidVariableException 
 public  void testEnded() 
 public  void testEnded(String host) 
 public  void testIterationStart(LoopIterationEvent event) 
 public  void testStarted() 
 public  void testStarted(String host)