org.apache.jmeter.functions
Class StringFromFile
- Function, TestListener
public class 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 function is invoked
StringFromFile
public StringFromFile()
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.