com.eviware.soapui.impl.wsdl.teststeps
Class RestTestRequest
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<T>
com.eviware.soapui.impl.support.AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>
com.eviware.soapui.impl.rest.RestRequest
com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest
- All Implemented Interfaces:
- RestRequestInterface, AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>, HttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>, AttachmentContainer, MutableAttachmentContainer, MutableTestPropertyHolder, JMSHeaderContainer, JMSPropertyContainer, HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>, RestTestRequestInterface, TestRequest, Request, ModelItem, PropertyExpansionContainer, TestPropertyHolder, Assertable, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
public class RestTestRequest
- extends RestRequest
- implements RestTestRequestInterface
| Methods inherited from class com.eviware.soapui.impl.rest.RestRequest |
addJMSHeaderExpansions, addProperty, addTestPropertyListener, getAccept, getAttachmentPart, getDefinedAttachmentParts, getJMSHeaderConfig, getJMSPropertiesConfig, getMediaType, getMethod, getMultiValueDelimiter, getParams, getPath, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyExpansions, getPropertyList, getPropertyNames, getPropertyValue, getRepresentations, getRepresentations, getRepresentations, getRequestParts, getResponseContentAsXml, getResponseMediaTypes, getResponseParts, getRestMethod, hasEndpoint, hasProperty, hasRequestBody, initIconAnimator, isPostQueryString, moveProperty, propertyChange, removeProperty, removeTestPropertyListener, renameProperty, resetPropertyValues, setAccept, setMediaType, setMethod, setMultiValueDelimiter, setPostQueryString, setPropertyValue, submit, updateParams |
| Methods inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest |
addAttachmentsChangeListener, addExternalDependencies, addSubmitListener, attachBinaryData, attachFile, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIconAnimator, getMaxSize, getPassword, getRequestContent, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getTimeout, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, removeAttachment, removeAttachmentsChangeListener, removeSubmitListener, setAfterRequestInjection, setAttachmentAt, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setRequestHeaders, setSslKeystore, setStripWhitespaces, setTimeout, setUsername |
| Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
afterLoad, dependsOn, getConfig, getDescription, getExternalDependencies, 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, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.eviware.soapui.impl.support.AbstractHttpRequestInterface |
addExternalDependencies, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getBindAddress, getDomain, getDumpFile, getIconAnimator, getMaxSize, getMethod, getPassword, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, setBindAddress, setDomain, setDumpFile, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setSslKeystore, setStripWhitespaces, setUsername |
| Methods inherited from interface com.eviware.soapui.model.TestPropertyHolder |
addTestPropertyListener, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue |
| Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
RestTestRequest
public RestTestRequest(RestMethod method,
com.eviware.soapui.config.RestRequestConfig callConfig,
RestTestRequestStep testStep,
boolean forLoadTest)
getParent
public ModelItem getParent()
- Specified by:
getParent in interface ModelItem- Overrides:
getParent in class RestRequest
getTestCase
public WsdlTestCase getTestCase()
- Specified by:
getTestCase in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>
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)
- Specified by:
setResponse in interface RestRequestInterface- Specified by:
setResponse in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Overrides:
setResponse in class AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>
assertResponse
public void assertResponse(SubmitContext context)
- Specified by:
assertResponse in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>
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
moveAssertion
public TestAssertion moveAssertion(int ix,
int offset)
- Specified by:
moveAssertion 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 AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Specified by:
getIcon in interface ModelItem- Overrides:
getIcon in class AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>
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.RestRequestConfig request)
- Called when a testrequest is moved in a testcase
- Specified by:
updateConfig in interface HttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Specified by:
updateConfig in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Overrides:
updateConfig in class RestRequest
release
public void release()
- Specified by:
release in interface RestRequestInterface- Specified by:
release in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Overrides:
release in class RestRequest
getAssertableContent
public java.lang.String getAssertableContent()
- Specified by:
getAssertableContent in interface Assertable
getTestStep
public RestTestRequestStep getTestStep()
- Specified by:
getTestStep in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Specified by:
getTestStep in interface RestTestRequestInterface- Specified by:
getTestStep in interface TestRequest- Specified by:
getTestStep in interface Assertable
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,
java.lang.String newName)
- Specified by:
importAssertion in interface RestTestRequestInterface- Specified by:
importAssertion in interface TestRequest
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()
- Specified by:
getResponseContentAsString in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>
setPath
public void setPath(java.lang.String fullPath)
- Specified by:
setPath in interface RestRequestInterface- Overrides:
setPath in class RestRequest
setRestMethod
public void setRestMethod(RestMethod restMethod)
- Specified by:
setRestMethod in interface RestTestRequestInterface- Overrides:
setRestMethod in class RestRequest
getResource
public RestResource getResource()
- Specified by:
getResource in interface RestRequestInterface- Overrides:
getResource in class RestRequest
getRestMethodName
public java.lang.String getRestMethodName()
- Specified by:
getRestMethodName in interface RestTestRequestInterface
resolve
public void resolve(ResolveContext<?> context)
- Specified by:
resolve in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>- Specified by:
resolve in interface RestTestRequestInterface- Overrides:
resolve in class AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>
getServiceName
public java.lang.String getServiceName()
- Specified by:
getServiceName in interface RestTestRequestInterface
isDiscardResponse
public boolean isDiscardResponse()
- Specified by:
isDiscardResponse in interface TestRequest
setDiscardResponse
public void setDiscardResponse(boolean discardResponse)
Copyright © 2005-2011 eviware.com. All Rights Reserved.