com.eviware.soapui.impl.wsdl.teststeps
Class RestTestRequest
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
com.eviware.soapui.impl.support.AbstractHttpRequest<com.eviware.soapui.config.RestMethodConfig>
com.eviware.soapui.impl.rest.RestRequest
com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest
- All Implemented Interfaces:
- AttachmentContainer, MutableAttachmentContainer, MutableTestPropertyHolder, TestRequest, Request, ModelItem, PropertyExpansionContainer, TestPropertyHolder, Assertable, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
public class RestTestRequest
- extends RestRequest
- implements Assertable, TestRequest
Methods inherited from class com.eviware.soapui.impl.rest.RestRequest |
addNewRepresentation, addProperty, addProperty, addTestPropertyListener, getAccept, getAttachmentPart, getDefinedAttachmentParts, getMediaType, getMethod, getParams, getPath, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyExpansions, getPropertyNames, getPropertyValue, getRepresentations, getRepresentations, getRepresentations, getRequestParts, getResponseContentAsXml, getResponseMediaTypes, getResponseParts, hasEndpoint, hasProperty, hasRequestBody, initIconAnimator, isPostQueryString, moveProperty, propertyChange, removeProperty, removeRepresentation, removeTestPropertyListener, renameProperty, setAccept, setMediaType, setMethod, setPostQueryString, setPropertyValue, submit |
Methods inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest |
addAttachmentsChangeListener, addSubmitListener, attachFile, beforeSave, copyAttachmentsTo, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIconAnimator, getMaxSize, getPassword, getRequestContent, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, removeAttachment, removeAttachmentsChangeListener, removeSubmitListener, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setSslKeystore, setStripWhitespaces, setUsername |
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
afterLoad, dependsOn, getConfig, getDescription, getId, getName, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings |
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESPONSE_PROPERTY
public static final java.lang.String RESPONSE_PROPERTY
STATUS_PROPERTY
public static final java.lang.String STATUS_PROPERTY
RestTestRequest
public RestTestRequest(RestResource resource,
com.eviware.soapui.config.RestMethodConfig callConfig,
HttpTestRequestStep testStep,
boolean forLoadTest)
getParent
public ModelItem getParent()
- Specified by:
getParent
in interface ModelItem
- Overrides:
getParent
in class AbstractWsdlModelItem<com.eviware.soapui.config.RestMethodConfig>
getTestCase
public WsdlTestCase getTestCase()
initIcons
protected void initIcons()
getAssertionCount
public int getAssertionCount()
- Specified by:
getAssertionCount
in interface Assertable
getAssertionAt
public WsdlMessageAssertion getAssertionAt(int c)
- Specified by:
getAssertionAt
in interface Assertable
setResponse
public void setResponse(HttpResponse response,
SubmitContext context)
- Overrides:
setResponse
in class RestRequest
assertResponse
public void assertResponse(SubmitContext context)
addAssertion
public WsdlMessageAssertion addAssertion(java.lang.String assertionLabel)
- Specified by:
addAssertion
in interface Assertable
removeAssertion
public void removeAssertion(TestAssertion assertion)
- Specified by:
removeAssertion
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 AbstractHttpRequest<com.eviware.soapui.config.RestMethodConfig>
addAssertionsListener
public void addAssertionsListener(AssertionsListener listener)
- Specified by:
addAssertionsListener
in interface Assertable
removeAssertionsListener
public void removeAssertionsListener(AssertionsListener listener)
- Specified by:
removeAssertionsListener
in interface Assertable
updateConfig
public void updateConfig(com.eviware.soapui.config.RestMethodConfig request)
- Called when a testrequest is moved in a testcase
- Overrides:
updateConfig
in class RestRequest
release
public void release()
- Overrides:
release
in class RestRequest
getAssertableContent
public java.lang.String getAssertableContent()
- Specified by:
getAssertableContent
in interface Assertable
getTestStep
public HttpTestRequestStep getTestStep()
- Specified by:
getTestStep
in interface TestRequest
getInterface
public RestService getInterface()
- Specified by:
getInterface
in interface Assertable
getOperation
public RestResource getOperation()
- Specified by:
getOperation
in interface Request
- Overrides:
getOperation
in class RestRequest
getAssertableType
public TestAssertionRegistry.AssertableType getAssertableType()
- Specified by:
getAssertableType
in interface Assertable
cloneAssertion
public TestAssertion cloneAssertion(TestAssertion source,
java.lang.String name)
- Specified by:
cloneAssertion
in interface Assertable
importAssertion
public WsdlMessageAssertion importAssertion(WsdlMessageAssertion source,
boolean overwrite,
boolean createCopy)
getAssertionList
public java.util.List<TestAssertion> getAssertionList()
- Specified by:
getAssertionList
in interface Assertable
getAssertionByName
public WsdlMessageAssertion getAssertionByName(java.lang.String name)
- Specified by:
getAssertionByName
in interface Assertable
getModelItem
public ModelItem getModelItem()
- Description copied from interface:
AttachmentContainer
- Returns ModelItem associated with this container
- Specified by:
getModelItem
in interface AttachmentContainer
- Specified by:
getModelItem
in interface TestPropertyHolder
- Specified by:
getModelItem
in interface Assertable
- Overrides:
getModelItem
in class RestRequest
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
getResponseContentAsString
public java.lang.String getResponseContentAsString()
setPath
public void setPath(java.lang.String fullPath)
- Overrides:
setPath
in class RestRequest
setResource
public void setResource(RestResource restResource)
getResource
public RestResource getResource()
- Overrides:
getResource
in class RestRequest
resolve
public void resolve(ResolveContext context)
- Overrides:
resolve
in class AbstractHttpRequest<com.eviware.soapui.config.RestMethodConfig>
getServiceName
public java.lang.String getServiceName()
Copyright © 2005-2008 eviware.com. All Rights Reserved.