com.eviware.soapui.impl.wsdl.teststeps
Class AMFRequestTestStep
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.model.support.AbstractAnimatableModelItem<com.eviware.soapui.config.ModelItemConfig>
com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.TestStepConfig>
com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep
com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepWithProperties
com.eviware.soapui.impl.wsdl.teststeps.AMFRequestTestStep
- All Implemented Interfaces:
- MutableTestPropertyHolder, ModelItem, TestModelItem, TestPropertyHolder, Assertable, ResultContainer, TestStep, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
public class AMFRequestTestStep
- extends WsdlTestStepWithProperties
- implements Assertable, MutableTestPropertyHolder, java.beans.PropertyChangeListener
- Author:
- nebojsa.tasic
Method Summary |
TestAssertion |
addAssertion(java.lang.String assertionLabel)
|
void |
addAssertionsListener(AssertionsListener listener)
|
TestProperty |
addProperty(java.lang.String name)
|
void |
addTestPropertyListener(TestPropertyListener listener)
|
void |
assertResponse(SubmitContext context)
|
boolean |
cancel()
|
WsdlTestStep |
clone(WsdlTestCase targetTestCase,
java.lang.String name)
Called after cloning for custom behaviour |
TestAssertion |
cloneAssertion(TestAssertion source,
java.lang.String name)
|
java.lang.String |
getAmfCall()
|
StringToStringMap |
getAmfHeaders()
|
AMFRequest |
getAMFRequest()
|
com.eviware.soapui.config.AMFRequestTestStepConfig |
getAMFRequestTestStepConfig()
|
java.lang.String |
getAssertableContent()
|
TestAssertionRegistry.AssertableType |
getAssertableType()
|
TestAssertion |
getAssertionAt(int c)
|
TestAssertion |
getAssertionByName(java.lang.String name)
|
int |
getAssertionCount()
|
java.util.List<TestAssertion> |
getAssertionList()
|
java.util.Map<java.lang.String,TestAssertion> |
getAssertions()
|
Assertable.AssertionStatus |
getAssertionStatus()
|
java.lang.String |
getDefaultAssertableContent()
|
java.lang.String |
getDefaultSourcePropertyName()
Default property to use when creating property-transfers where this step
is source |
java.lang.String |
getEndpoint()
|
StringToStringMap |
getHttpHeaders()
|
javax.swing.ImageIcon |
getIcon()
|
Interface |
getInterface()
|
java.util.Map<java.lang.String,TestProperty> |
getProperties()
|
TestProperty |
getProperty(java.lang.String name)
|
TestProperty |
getPropertyAt(int index)
|
int |
getPropertyCount()
|
XmlBeansPropertiesTestPropertyHolder |
getPropertyHolderSupport()
|
java.util.List<TestProperty> |
getPropertyList()
|
java.lang.String[] |
getPropertyNames()
|
java.lang.String |
getPropertyValue(java.lang.String name)
|
java.lang.String |
getScript()
|
boolean |
hasProperty(java.lang.String name)
|
WsdlMessageAssertion |
importAssertion(WsdlMessageAssertion source,
boolean overwrite,
boolean createCopy)
|
boolean |
initAmfRequest(SubmitContext submitContext)
|
TestAssertion |
moveAssertion(int ix,
int offset)
|
void |
moveProperty(java.lang.String propertyName,
int targetIndex)
|
void |
propertyChange(java.beans.PropertyChangeEvent arg0)
|
void |
release()
|
void |
removeAssertion(TestAssertion assertion)
|
void |
removeAssertionsListener(AssertionsListener listener)
|
TestProperty |
removeProperty(java.lang.String propertyName)
|
void |
removeTestPropertyListener(TestPropertyListener listener)
|
boolean |
renameProperty(java.lang.String name,
java.lang.String newName)
|
void |
resetConfigOnMove(com.eviware.soapui.config.TestStepConfig config)
Called from WsdlTestCase when moving a teststep due to no move
functionality in xmlbeans generated arrays. |
TestStepResult |
run(TestCaseRunner runner,
TestCaseRunContext runContext)
|
void |
setAmfCall(java.lang.String amfCall)
|
void |
setAmfHeaders(StringToStringMap amfHeaders)
|
void |
setEndpoint(java.lang.String endpoint)
|
void |
setHttpHeaders(StringToStringMap httpHeaders)
|
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
|
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
|
void |
setResponse(AMFResponse response,
SubmitContext context)
|
void |
setScript(java.lang.String script)
|
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep |
afterCopy, createPanelBuilder, dependsOn, finish, getDefaultTargetPropertyName, getLabel, getModelItem, getPropertiesLabel, getRequiredInterfaces, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, prepare, setDisabled, setName |
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
afterLoad, beforeSave, dependsOn, getConfig, getDescription, getId, getName, getParent, getSettings, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setSettings |
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
amfRequestTestStepConfig
protected com.eviware.soapui.config.AMFRequestTestStepConfig amfRequestTestStepConfig
amfREQUEST
public static final java.lang.String amfREQUEST
STATUS_PROPERTY
public static final java.lang.String STATUS_PROPERTY
RESPONSE_PROPERTY
public static final java.lang.String RESPONSE_PROPERTY
- See Also:
- Constant Field Values
REQUEST_PROPERTY
public static final java.lang.String REQUEST_PROPERTY
- See Also:
- Constant Field Values
HTTP_HEADERS_PROPERTY
public static final java.lang.String HTTP_HEADERS_PROPERTY
AMF_HEADERS_PROPERTY
public static final java.lang.String AMF_HEADERS_PROPERTY
AMFRequestTestStep
public AMFRequestTestStep(WsdlTestCase testCase,
com.eviware.soapui.config.TestStepConfig config,
boolean forLoadTest)
getAMFRequestTestStepConfig
public com.eviware.soapui.config.AMFRequestTestStepConfig getAMFRequestTestStepConfig()
clone
public WsdlTestStep clone(WsdlTestCase targetTestCase,
java.lang.String name)
- Description copied from class:
WsdlTestStep
- Called after cloning for custom behaviour
- Overrides:
clone
in class WsdlTestStep
- Parameters:
targetTestCase
- step we were cloned from
release
public void release()
- Overrides:
release
in class AbstractWsdlModelItem<com.eviware.soapui.config.TestStepConfig>
run
public TestStepResult run(TestCaseRunner runner,
TestCaseRunContext runContext)
- Specified by:
run
in interface TestStep
cancel
public boolean cancel()
- Specified by:
cancel
in interface TestStep
- Overrides:
cancel
in class WsdlTestStep
getDefaultSourcePropertyName
public java.lang.String getDefaultSourcePropertyName()
- Description copied from class:
WsdlTestStep
- Default property to use when creating property-transfers where this step
is source
- Overrides:
getDefaultSourcePropertyName
in class WsdlTestStep
addAssertion
public TestAssertion addAssertion(java.lang.String assertionLabel)
- Specified by:
addAssertion
in interface Assertable
addAssertionsListener
public void addAssertionsListener(AssertionsListener listener)
- Specified by:
addAssertionsListener
in interface Assertable
cloneAssertion
public TestAssertion cloneAssertion(TestAssertion source,
java.lang.String name)
- Specified by:
cloneAssertion
in interface Assertable
getAssertableContent
public java.lang.String getAssertableContent()
- Specified by:
getAssertableContent
in interface Assertable
importAssertion
public WsdlMessageAssertion importAssertion(WsdlMessageAssertion source,
boolean overwrite,
boolean createCopy)
getAssertableType
public TestAssertionRegistry.AssertableType getAssertableType()
- Specified by:
getAssertableType
in interface Assertable
getAssertionAt
public TestAssertion getAssertionAt(int c)
- Specified by:
getAssertionAt
in interface Assertable
getAssertionByName
public TestAssertion getAssertionByName(java.lang.String name)
- Specified by:
getAssertionByName
in interface Assertable
getAssertionCount
public int getAssertionCount()
- Specified by:
getAssertionCount
in interface Assertable
getAssertionList
public java.util.List<TestAssertion> getAssertionList()
- Specified by:
getAssertionList
in interface Assertable
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent arg0)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
getAssertions
public java.util.Map<java.lang.String,TestAssertion> getAssertions()
- Specified by:
getAssertions
in interface Assertable
getDefaultAssertableContent
public java.lang.String getDefaultAssertableContent()
- Specified by:
getDefaultAssertableContent
in interface Assertable
getAssertionStatus
public Assertable.AssertionStatus getAssertionStatus()
- Specified by:
getAssertionStatus
in interface Assertable
getIcon
public javax.swing.ImageIcon getIcon()
- Specified by:
getIcon
in interface ModelItem
- Overrides:
getIcon
in class AbstractWsdlModelItem<com.eviware.soapui.config.TestStepConfig>
getInterface
public Interface getInterface()
- Specified by:
getInterface
in interface Assertable
moveAssertion
public TestAssertion moveAssertion(int ix,
int offset)
- Specified by:
moveAssertion
in interface Assertable
removeAssertion
public void removeAssertion(TestAssertion assertion)
- Specified by:
removeAssertion
in interface Assertable
removeAssertionsListener
public void removeAssertionsListener(AssertionsListener listener)
- Specified by:
removeAssertionsListener
in interface Assertable
assertResponse
public void assertResponse(SubmitContext context)
addProperty
public TestProperty addProperty(java.lang.String name)
- Specified by:
addProperty
in interface MutableTestPropertyHolder
removeProperty
public TestProperty removeProperty(java.lang.String propertyName)
- Specified by:
removeProperty
in interface MutableTestPropertyHolder
renameProperty
public boolean renameProperty(java.lang.String name,
java.lang.String newName)
- Specified by:
renameProperty
in interface MutableTestPropertyHolder
addTestPropertyListener
public void addTestPropertyListener(TestPropertyListener listener)
- Specified by:
addTestPropertyListener
in interface TestPropertyHolder
- Overrides:
addTestPropertyListener
in class WsdlTestStepWithProperties
getProperties
public java.util.Map<java.lang.String,TestProperty> getProperties()
- Specified by:
getProperties
in interface TestPropertyHolder
- Overrides:
getProperties
in class WsdlTestStepWithProperties
getProperty
public TestProperty getProperty(java.lang.String name)
- Specified by:
getProperty
in interface TestPropertyHolder
- Overrides:
getProperty
in class WsdlTestStepWithProperties
getPropertyAt
public TestProperty getPropertyAt(int index)
- Specified by:
getPropertyAt
in interface TestPropertyHolder
- Overrides:
getPropertyAt
in class WsdlTestStepWithProperties
getPropertyCount
public int getPropertyCount()
- Specified by:
getPropertyCount
in interface TestPropertyHolder
- Overrides:
getPropertyCount
in class WsdlTestStepWithProperties
getPropertyList
public java.util.List<TestProperty> getPropertyList()
- Specified by:
getPropertyList
in interface TestPropertyHolder
- Overrides:
getPropertyList
in class WsdlTestStepWithProperties
getPropertyNames
public java.lang.String[] getPropertyNames()
- Specified by:
getPropertyNames
in interface TestPropertyHolder
- Overrides:
getPropertyNames
in class WsdlTestStepWithProperties
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface TestPropertyHolder
- Overrides:
getPropertyValue
in class WsdlTestStepWithProperties
removeTestPropertyListener
public void removeTestPropertyListener(TestPropertyListener listener)
- Specified by:
removeTestPropertyListener
in interface TestPropertyHolder
- Overrides:
removeTestPropertyListener
in class WsdlTestStepWithProperties
hasProperty
public boolean hasProperty(java.lang.String name)
- Specified by:
hasProperty
in interface TestPropertyHolder
- Overrides:
hasProperty
in class WsdlTestStepWithProperties
setPropertyValue
public void setPropertyValue(java.lang.String name,
java.lang.String value)
- Specified by:
setPropertyValue
in interface TestPropertyHolder
- Overrides:
setPropertyValue
in class WsdlTestStepWithProperties
setPropertyValue
public void setPropertyValue(java.lang.String name,
java.lang.Object value)
moveProperty
public void moveProperty(java.lang.String propertyName,
int targetIndex)
- Specified by:
moveProperty
in interface MutableTestPropertyHolder
- Overrides:
moveProperty
in class WsdlTestStepWithProperties
getAMFRequest
public AMFRequest getAMFRequest()
setResponse
public void setResponse(AMFResponse response,
SubmitContext context)
getScript
public java.lang.String getScript()
setScript
public void setScript(java.lang.String script)
getAmfCall
public java.lang.String getAmfCall()
setAmfCall
public void setAmfCall(java.lang.String amfCall)
getEndpoint
public java.lang.String getEndpoint()
setEndpoint
public void setEndpoint(java.lang.String endpoint)
initAmfRequest
public boolean initAmfRequest(SubmitContext submitContext)
setHttpHeaders
public void setHttpHeaders(StringToStringMap httpHeaders)
getHttpHeaders
public StringToStringMap getHttpHeaders()
setAmfHeaders
public void setAmfHeaders(StringToStringMap amfHeaders)
getAmfHeaders
public StringToStringMap getAmfHeaders()
resetConfigOnMove
public void resetConfigOnMove(com.eviware.soapui.config.TestStepConfig config)
- Description copied from class:
WsdlTestStep
- Called from WsdlTestCase when moving a teststep due to no move
functionality in xmlbeans generated arrays.
- Overrides:
resetConfigOnMove
in class WsdlTestStep
- Parameters:
config
- the new config to use, will be a copy of the existing one. The
current will be invalid
getPropertyHolderSupport
public XmlBeansPropertiesTestPropertyHolder getPropertyHolderSupport()
Copyright © 2005-2010 eviware.com. All Rights Reserved.