com.smartbear.readyapi.client.teststeps.plugin.PluginTestStepBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
Java client library for creating and executing test recipes against Ready!API TestServer
package com.smartbear.readyapi.client.teststeps.plugin;
import com.smartbear.readyapi.client.model.PluginTestStep;
import com.smartbear.readyapi.client.teststeps.TestStepBuilder;
public class PluginTestStepBuilder implements TestStepBuilder {
private final PluginTestStep pluginTestStep = new PluginTestStep();
public PluginTestStepBuilder(String pluginTestStepType) {
pluginTestStep.setType(pluginTestStepType);
}
public PluginTestStepBuilder named(String testStepName) {
pluginTestStep.setName(testStepName);
return this;
}
public PluginTestStepBuilder withConfigProperty(String propertyName, Object value) {
pluginTestStep.getConfiguration().put(propertyName, value);
return this;
}
public TestStepBuilder andWithConfigProperty(String propertyName, Object value) {
return withConfigProperty(propertyName, value);
}
@Override
public PluginTestStep build() {
return pluginTestStep;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy