public class StringFromFile
extends org.apache.jmeter.functions.AbstractFunction
implements org.apache.jmeter.testelement.TestStateListener
StringFromFile Function to read a String from a text file.
Parameters:StringFromFile_
)**ERR**
if an error occursEnsure that different variable names are used for each call to the function
Notes:Constructor and Description |
---|
StringFromFile() |
Modifier and Type | Method and Description |
---|---|
String |
execute(org.apache.jmeter.samplers.SampleResult previousResult,
org.apache.jmeter.samplers.Sampler currentSampler) |
List<String> |
getArgumentDesc() |
String |
getReferenceKey() |
void |
setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) |
void |
testEnded() |
void |
testEnded(String host) |
void |
testStarted() |
void |
testStarted(String host) |
public String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException
execute
in interface org.apache.jmeter.functions.Function
execute
in class org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.InvalidVariableException
public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException
setParameters
in interface org.apache.jmeter.functions.Function
setParameters
in class org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.InvalidVariableException
public String getReferenceKey()
getReferenceKey
in interface org.apache.jmeter.functions.Function
getReferenceKey
in class org.apache.jmeter.functions.AbstractFunction
public List<String> getArgumentDesc()
getArgumentDesc
in interface org.apache.jmeter.functions.Function
public void testStarted()
testStarted
in interface org.apache.jmeter.testelement.TestStateListener
public void testStarted(String host)
testStarted
in interface org.apache.jmeter.testelement.TestStateListener
public void testEnded()
testEnded
in interface org.apache.jmeter.testelement.TestStateListener
public void testEnded(String host)
testEnded
in interface org.apache.jmeter.testelement.TestStateListener
Copyright © 1998-2022 Apache Software Foundation. All Rights Reserved.