@PluginTestStep

Applies to ReadyAPI 3.57, last modified on December 20, 2024

PluginTestStep creates a custom test step to be used with functional tests. It is usually combined with @PluginPanelBuilder to allow for configuration of the step.

Property Description
typeName An internal id to uniquely identify this test step type.
name A verbal name of the type of the test step.
description The description of what it does.
iconPath An icon to be shown in the toolbar.
Optional, but recommended.

The annotated class must implement the TestStep interface (and, usually, extends WsdlTestStepWithProperties).

Sample Test Step

package com.smartbear.ready.plugin.template.factories;

import com.eviware.soapui.config.TestStepConfig;
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase;
import com.eviware.soapui.impl.wsdl.TestSteps.WsdlTestStepResult;
import com.eviware.soapui.impl.wsdl.TestSteps.WsdlTestStepWithProperties;
import com.eviware.soapui.model.testsuite.TestCaseRunContext;
import com.eviware.soapui.model.testsuite.TestCaseRunner;
import com.eviware.soapui.model.testsuite.TestStepResult;
import com.eviware.soapui.plugins.auto.PluginTestStep;

/**
*
*/

@PluginTestStep(typeName = "SampleTestStep", name = "Sample TestStep", description = "A sample TestStep")
public class SampleTestStep extends WsdlTestStepWithProperties {

public SampleTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) {
super(testCase, config, false, forLoadTest);
}

@Override
public TestStepResult run(TestCaseRunner testRunner, TestCaseRunContext testRunContext) {
WsdlTestStepResult result = new WsdlTestStepResult(this);
result.addMessage("Message");
return result;
}
}
Highlight search results