public class HttpTestRequestStep extends WsdlTestStepWithProperties implements HttpTestRequestStepInterface, Securable
Modifier and Type | Class and Description |
---|---|
static class |
HttpTestRequestStep.RequestHeaderHolder |
class |
HttpTestRequestStep.RequestParamHolder |
Assertable.AssertionStatus
RAW_RESPONSE, RESPONSE, RESPONSE_AS_XML
DISABLED_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
HttpTestRequestStep(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, createPanelBuilder, finish, getLabel, getModelItem, getPropertiesLabel, getRequiredInterfaces, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, setDisabled
afterLoad, dependsOn, getConfig, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, 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
getTestCase
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 HttpTestRequestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest)
protected HttpTestRequest buildTestRequest(boolean forLoadTest)
protected String createDefaultRawResponseContent()
protected String createDefaultResponseXmlContent()
protected String createDefaultRequestContent()
public HttpRequestConfig getRequestStepConfig()
public WsdlTestStep clone(WsdlTestCase targetTestCase, String name)
WsdlTestStep
clone
in interface HttpTestRequestStepInterface
clone
in class WsdlTestStep
targetTestCase
- step we were cloned frompublic 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 ImageIcon getIcon()
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<TestStepConfig>
public HttpTestRequest getTestRequest()
getTestRequest
in interface HttpTestRequestStepInterface
getTestRequest
in interface SamplerTestStep
public void setName(String name)
setName
in interface HttpTestRequestStepInterface
setName
in class WsdlTestStep
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public TestStepResult run(TestCaseRunner runner, TestCaseRunContext runContext)
public WsdlMessageAssertion getAssertionAt(int index)
getAssertionAt
in interface Assertable
public int getAssertionCount()
getAssertionCount
in interface Assertable
public boolean cancel()
cancel
in interface TestStep
cancel
in class WsdlTestStep
public boolean dependsOn(AbstractWsdlModelItem<?> modelItem)
dependsOn
in interface HttpTestRequestStepInterface
dependsOn
in class WsdlTestStep
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 void setDescription(String description)
setDescription
in interface HttpTestRequestStepInterface
setDescription
in class AbstractWsdlModelItem<TestStepConfig>
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 Interface getInterface()
getInterface
in interface Assertable
public TestStep getTestStep()
getTestStep
in interface Assertable
getTestStep
in interface SamplerTestStep
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 void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext) throws Exception
prepare
in interface TestStep
prepare
in class WsdlTestStep
Exception
public String getDefaultSourcePropertyName()
WsdlTestStep
getDefaultSourcePropertyName
in interface HttpTestRequestStepInterface
getDefaultSourcePropertyName
in class WsdlTestStep
public String getDefaultTargetPropertyName()
WsdlTestStep
getDefaultTargetPropertyName
in interface HttpTestRequestStepInterface
getDefaultTargetPropertyName
in class WsdlTestStep
public String getDefaultAssertableContent()
getDefaultAssertableContent
in interface Assertable
public void resolve(ResolveContext<?> context)
resolve
in interface HttpTestRequestStepInterface
resolve
in class AbstractWsdlModelItem<TestStepConfig>
protected void addExternalDependencies(List<ExternalDependency> dependencies)
addExternalDependencies
in class AbstractWsdlModelItem<TestStepConfig>
Copyright © 2019. All Rights Reserved.