All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartbear.readyapi.client.teststeps.plugin.PluginTestStepBuilder Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

There is a newer version: 1.2.1
Show newest version
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