public class RestTestRequestStep extends WsdlTestStepWithProperties implements RestTestRequestStepInterface, Securable
Modifier and Type | Class and Description |
---|---|
class |
RestTestRequestStep.InternalInterfaceListener |
class |
RestTestRequestStep.InternalProjectListener |
Assertable.AssertionStatus
RAW_RESPONSE, RESPONSE, RESPONSE_AS_XML
DISABLED_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
RestTestRequestStep(WsdlTestCase testCase,
TestStepConfig config,
boolean forLoadTest) |
addProperty, addProperty, addTestPropertyListener, deleteProperty, firePropertyAdded, firePropertyMoved, firePropertyRemoved, firePropertyRenamed, firePropertyValueChanged, getProperties, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperties, hasProperty, moveProperty, propertyRenamed, removeTestPropertyListener, setPropertyValue
afterCopy, cancel, clone, createPanelBuilder, finish, getDefaultTargetPropertyName, getLabel, getModelItem, getPropertiesLabel, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, setDisabled, setName
addExternalDependencies, afterLoad, dependsOn, getConfig, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDefaultTargetPropertyName, getTestCase, setDescription, setName
cancel, finish, getLabel, isDisabled
getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
getModelItem
getModelItem
public RestTestRequestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) throws RestRequestStepFactory.ItemDeletedException
public void beforeSave()
beforeSave
in interface HttpTestRequestStepInterface
beforeSave
in class AbstractWsdlModelItem<TestStepConfig>
public String getDescription()
getDescription
in interface ModelItem
getDescription
in class AbstractWsdlModelItem<TestStepConfig>
public RestRequestStepConfig getRequestStepConfig()
getRequestStepConfig
in interface RestTestRequestStepInterface
protected RestTestRequest buildTestRequest(boolean forLoadTest)
public String getService()
getService
in interface RestTestRequestStepInterface
public String getResourcePath()
getResourcePath
in interface RestTestRequestStepInterface
protected String createDefaultRawResponseContent()
protected String createDefaultResponseXmlContent()
protected String createDefaultRequestContent()
public Collection<Interface> getRequiredInterfaces()
getRequiredInterfaces
in class WsdlTestStep
public RestMethod getRestMethod()
getRestMethod
in interface RestTestRequestStepInterface
public RestResource getResource()
getResource
in interface RestTestRequestStepInterface
public Operation getOperation()
getOperation
in interface OperationTestStep
public void release()
release
in interface HttpTestRequestStepInterface
release
in interface Releasable
release
in class AbstractWsdlModelItem<TestStepConfig>
public void resetConfigOnMove(TestStepConfig config)
WsdlTestStep
resetConfigOnMove
in interface HttpTestRequestStepInterface
resetConfigOnMove
in class WsdlTestStep
config
- the new config to use, will be a copy of the existing one. The
current will be invalidpublic void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public boolean dependsOn(AbstractWsdlModelItem<?> modelItem)
dependsOn
in interface HttpTestRequestStepInterface
dependsOn
in class WsdlTestStep
public void setRestMethod(RestMethod method)
public RestTestRequest getTestRequest()
getTestRequest
in interface HttpTestRequestStepInterface
getTestRequest
in interface SamplerTestStep
public Interface getInterface()
getInterface
in interface Assertable
public ImageIcon getIcon()
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<TestStepConfig>
public TestStep getTestStep()
getTestStep
in interface Assertable
getTestStep
in interface SamplerTestStep
public void resolve(ResolveContext<?> context)
resolve
in interface HttpTestRequestStepInterface
resolve
in class AbstractWsdlModelItem<TestStepConfig>
public void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext) throws Exception
prepare
in interface TestStep
prepare
in class WsdlTestStep
Exception
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
public AbstractHttpRequest<?> getHttpRequest()
getHttpRequest
in interface HttpRequestTestStep
public TestAssertion addAssertion(String type)
addAssertion
in interface Assertable
public void addAssertionsListener(AssertionsListener listener)
addAssertionsListener
in interface Assertable
public TestAssertion cloneAssertion(TestAssertion source, String name)
cloneAssertion
in interface Assertable
public String getAssertableContentAsXml()
getAssertableContentAsXml
in interface Assertable
public String getAssertableContent()
getAssertableContent
in interface Assertable
public TestAssertionRegistry.AssertableType getAssertableType()
getAssertableType
in interface Assertable
public TestAssertion getAssertionByName(String name)
getAssertionByName
in interface Assertable
public List<TestAssertion> getAssertionList()
getAssertionList
in interface Assertable
public Assertable.AssertionStatus getAssertionStatus()
getAssertionStatus
in interface Assertable
public void removeAssertion(TestAssertion assertion)
removeAssertion
in interface Assertable
public void removeAssertionsListener(AssertionsListener listener)
removeAssertionsListener
in interface Assertable
public TestAssertion moveAssertion(int ix, int offset)
moveAssertion
in interface Assertable
public Map<String,TestAssertion> getAssertions()
getAssertions
in interface Assertable
public WsdlMessageAssertion getAssertionAt(int index)
getAssertionAt
in interface Assertable
public int getAssertionCount()
getAssertionCount
in interface Assertable
public String getDefaultAssertableContent()
getDefaultAssertableContent
in interface Assertable
public String getDefaultSourcePropertyName()
WsdlTestStep
getDefaultSourcePropertyName
in interface HttpTestRequestStepInterface
getDefaultSourcePropertyName
in class WsdlTestStep
public TestStepResult run(TestCaseRunner runner, TestCaseRunContext runContext)
Copyright © 2019. All Rights Reserved.