com.eviware.soapui.impl.wsdl.teststeps.assertions.basic
Class GroovyScriptAssertion

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
          extended by com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.GroovyScriptAssertion
All Implemented Interfaces:
ModelItem, PropertyExpansionContainer, RequestAssertion, ResponseAssertion, TestAssertion, PropertyChangeNotifier

public class GroovyScriptAssertion
extends WsdlMessageAssertion
implements RequestAssertion, ResponseAssertion

Assertion performed by a custom Grooy Script

Author:
ole.matzura

Nested Class Summary
static class GroovyScriptAssertion.Factory
           
protected  class GroovyScriptAssertion.GroovyScriptAssertionPanel
           
 
Field Summary
static java.lang.String ID
           
static java.lang.String LABEL
           
 
Fields inherited from interface com.eviware.soapui.model.testsuite.TestAssertion
CONFIGURATION_PROPERTY, DISABLED_PROPERTY, ERRORS_PROPERTY, STATUS_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Constructor Summary
GroovyScriptAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig, Assertable modelItem)
           
 
Method Summary
protected  void buildDialog()
           
 boolean configure()
           
protected  org.apache.xmlbeans.XmlObject createConfiguration()
           
protected  GroovyScriptAssertion.GroovyScriptAssertionPanel getScriptAssertionPanel()
           
 java.lang.String getScriptText()
           
protected  java.lang.String internalAssertRequest(MessageExchange messageExchange, SubmitContext context)
           
protected  java.lang.String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
           
 void release()
           
 void setScriptText(java.lang.String scriptText)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
assertRequest, assertResponse, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getLabel, getName, getParent, getPropertyExpansions, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, isDisabled, isFailed, isValid, prepare, resolve, setConfiguration, setDisabled, setName, updateConfig
 
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.model.testsuite.RequestAssertion
assertRequest
 
Methods inherited from interface com.eviware.soapui.model.testsuite.ResponseAssertion
assertResponse
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getChildren
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values

LABEL

public static final java.lang.String LABEL
See Also:
Constant Field Values
Constructor Detail

GroovyScriptAssertion

public GroovyScriptAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig,
                             Assertable modelItem)
Method Detail

internalAssertRequest

protected java.lang.String internalAssertRequest(MessageExchange messageExchange,
                                                 SubmitContext context)
                                          throws AssertionException
Specified by:
internalAssertRequest in class WsdlMessageAssertion
Throws:
AssertionException

internalAssertResponse

protected java.lang.String internalAssertResponse(MessageExchange messageExchange,
                                                  SubmitContext context)
                                           throws AssertionException
Specified by:
internalAssertResponse in class WsdlMessageAssertion
Throws:
AssertionException

configure

public boolean configure()
Specified by:
configure in interface TestAssertion
Overrides:
configure in class WsdlMessageAssertion

buildDialog

protected void buildDialog()

getScriptAssertionPanel

protected GroovyScriptAssertion.GroovyScriptAssertionPanel getScriptAssertionPanel()

createConfiguration

protected org.apache.xmlbeans.XmlObject createConfiguration()

getScriptText

public java.lang.String getScriptText()

setScriptText

public void setScriptText(java.lang.String scriptText)

release

public void release()
Overrides:
release in class WsdlMessageAssertion


Copyright © 2005-2010 eviware.com. All Rights Reserved.