org.apache.jmeter.functions

Class SetProperty

Implemented Interfaces:
Function

public class SetProperty
extends AbstractFunction

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[,returnvalue?])} Returns: nothing or original value if the 3rd parameter is true

Constructor Summary

SetProperty()

Method Summary

String
execute(SampleResult previousResult, Sampler currentSampler)
List
getArgumentDesc()
String
getReferenceKey()
void
setParameters(Collection parameters)

Methods inherited from class org.apache.jmeter.functions.AbstractFunction

checkMinParameterCount, checkParameterCount, checkParameterCount, execute, execute, getReferenceKey, getVariables, setParameters

Constructor Details

SetProperty

public SetProperty()

Method Details

execute

public String execute(SampleResult previousResult,
                      Sampler currentSampler)
            throws InvalidVariableException
Specified by:
execute in interface Function
Overrides:
execute in interface AbstractFunction

getArgumentDesc

public List getArgumentDesc()
Specified by:
getArgumentDesc in interface Function

getReferenceKey

public String getReferenceKey()
Specified by:
getReferenceKey in interface Function
Overrides:
getReferenceKey in interface AbstractFunction

setParameters

public void setParameters(Collection parameters)
            throws InvalidVariableException
Specified by:
setParameters in interface Function
Overrides:
setParameters in interface AbstractFunction

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.