use of org.apache.jmeter.config.Arguments in project ACS by ACS-Community.
the class CCSampler method getDefaultParameters.
/**
* Provide a list of parameters which this test supports. Any
* parameter names and associated values returned by this method
* will appear in the GUI by default so the user doesn't have
* to remember the exact names. The user can add other parameters
* which are not listed here. If this method returns null then
* no parameters will be listed. If the value for some parameter
* is null then that parameter will be listed in the GUI with
* an empty value.
*
* @return a specification of the parameters used by this
* test which should be listed in the GUI, or null
* if no parameters should be listed.
*/
public Arguments getDefaultParameters() {
Arguments params = new Arguments();
params.addArgument("Manager", DEFAULT_MANAGER);
params.addArgument("ClientName", CLIENT_NAME);
params.addArgument("Initialize", String.valueOf(INITIALIZE));
return params;
}
use of org.apache.jmeter.config.Arguments in project ACS by ACS-Community.
the class T23Sampler method getDefaultParameters.
/**
* Provide a list of parameters which this test supports. Any
* parameter names and associated values returned by this method
* will appear in the GUI by default so the user doesn't have
* to remember the exact names. The user can add other parameters
* which are not listed here. If this method returns null then
* no parameters will be listed. If the value for some parameter
* is null then that parameter will be listed in the GUI with
* an empty value.
*
* @return a specification of the parameters used by this
* test which should be listed in the GUI, or null
* if no parameters should be listed.
*/
public Arguments getDefaultParameters() {
Arguments params = new Arguments();
params.addArgument("ThreadNum", "${__threadNum}");
params.addArgument(TEST_PREFIX, TEST);
params.addArgument("SizeOfSet", String.valueOf(SIZE_OF_SET));
params.addArgument("Delay", String.valueOf(DELAY));
return params;
}
use of org.apache.jmeter.config.Arguments in project jmeter by apache.
the class UrlConfigGui method noData.
/**
* Checks if no data is available in the selected tab
*
* @param oldSelectedIndex the tab to check for data
* @return true if neither Parameters tab nor Raw Body tab contain data
*/
boolean noData(int oldSelectedIndex) {
if (oldSelectedIndex == tabRawBodyIndex) {
return StringUtils.isEmpty(postBodyContent.getText().trim());
} else {
boolean noData = true;
Arguments element = (Arguments) argsPanel.createTestElement();
if (showFileUploadPane) {
noData &= !filesPanel.hasData();
}
return noData && StringUtils.isEmpty(computePostBody(element));
}
}
use of org.apache.jmeter.config.Arguments in project translationstudio8 by heartsome.
the class LicenseActivateCheckDeactivate method getDefaultParameters.
public Arguments getDefaultParameters() {
Arguments args = new Arguments();
args.addArgument("LicenseID", "89U1jiKrhD5IG1yNU0O2CinG");
args.addArgument("HardwareCode", "TestHW");
args.addArgument("InstallCode", "TestInstall");
args.addArgument("WaitSeconds", "5");
args.addArgument("IntervalSeconds", "30");
return args;
}
use of org.apache.jmeter.config.Arguments in project jmeter-plugins by undera.
the class ParameterizedController method processVariables.
private void processVariables() {
final Arguments args1 = (Arguments) this.getUserDefinedVariablesAsProperty().getObjectValue();
Arguments args = (Arguments) args1.clone();
final JMeterVariables vars = JMeterContextService.getContext().getVariables();
Iterator<Entry<String, String>> it = args.getArgumentsAsMap().entrySet().iterator();
Entry<String, String> var;
while (it.hasNext()) {
var = it.next();
log.debug("Setting " + var.getKey() + "=" + var.getValue());
vars.put(var.getKey(), var.getValue());
}
}
Aggregations