com.eviware.soapui.impl.wsdl.teststeps
Class WsdlPropertiesTestStep

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.TestStepConfig>
          extended by com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep
              extended by com.eviware.soapui.impl.wsdl.teststeps.WsdlPropertiesTestStep
All Implemented Interfaces:
MutableTestPropertyHolder, ModelItem, TestModelItem, TestPropertyHolder, ResultContainer, TestStep, PropertyChangeNotifier

public class WsdlPropertiesTestStep
extends WsdlTestStep
implements MutableTestPropertyHolder

TestStep that holds an arbitrary number of custom properties

Author:
ole.matzura

Field Summary
 
Fields inherited from interface com.eviware.soapui.model.testsuite.TestStep
DISABLED_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Constructor Summary
WsdlPropertiesTestStep(WsdlTestCase testCase, com.eviware.soapui.config.TestStepConfig config, boolean forLoadTest)
           
 
Method Summary
 TestProperty addProperty(java.lang.String name)
           
 void addTestPropertyListener(TestPropertyListener listener)
           
 void beforeSave()
           
 void clearPropertyValues()
           
 java.lang.String getLabel()
           
 java.util.Map<java.lang.String,TestProperty> getProperties()
           
 TestProperty getProperty(java.lang.String name)
           
 TestProperty getPropertyAt(int index)
           
 int getPropertyCount()
           
 java.lang.String[] getPropertyNames()
           
 java.lang.String getPropertyValue(java.lang.String name)
           
 java.lang.String getSource()
           
 int getStepPropertyCount()
           
 java.lang.String getTarget()
           
 TestProperty getTestStepPropertyAt(int index)
           
 boolean hasProperty(java.lang.String name)
           
 boolean isCreateMissingOnLoad()
           
 boolean isDiscardValuesOnSave()
           
 boolean isSaveFirst()
           
 int loadProperties(boolean createMissing)
           
 void 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(TestRunner testRunner, TestRunContext testRunContext)
           
 int saveProperties()
           
 void setCreateMissingOnLoad(boolean b)
           
 void setDiscardValuesOnSave(boolean b)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
           
 void setSaveFirst(boolean b)
           
 void setSource(java.lang.String source)
           
 void setTarget(java.lang.String target)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep
cancel, clone, createPanelBuilder, dependsOn, finish, getChildren, getModelItem, getRequiredInterfaces, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, postInit, prepare, setDisabled, setName
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
afterLoad, afterLoad, getConfig, getDescription, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemByName, release, setConfig, setDescription, setIcon, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, 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.TestPropertyHolder
getModelItem
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getDescription, getIcon, getId, getName, getParent, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

WsdlPropertiesTestStep

public WsdlPropertiesTestStep(WsdlTestCase testCase,
                              com.eviware.soapui.config.TestStepConfig config,
                              boolean forLoadTest)
Method Detail

run

public TestStepResult run(TestRunner testRunner,
                          TestRunContext testRunContext)
Specified by:
run in interface TestStep

getTestStepPropertyAt

public TestProperty getTestStepPropertyAt(int index)

getStepPropertyCount

public int getStepPropertyCount()

getSource

public java.lang.String getSource()

setSource

public void setSource(java.lang.String source)

getTarget

public java.lang.String getTarget()

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface TestStep
Overrides:
getLabel in class WsdlTestStep

setTarget

public void setTarget(java.lang.String target)

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

loadProperties

public int loadProperties(boolean createMissing)
                   throws java.io.IOException
Throws:
java.io.IOException

saveProperties

public int saveProperties()
                   throws java.io.IOException
Throws:
java.io.IOException

isCreateMissingOnLoad

public boolean isCreateMissingOnLoad()

setCreateMissingOnLoad

public void setCreateMissingOnLoad(boolean b)

isSaveFirst

public boolean isSaveFirst()

setSaveFirst

public void setSaveFirst(boolean b)

isDiscardValuesOnSave

public boolean isDiscardValuesOnSave()

setDiscardValuesOnSave

public void setDiscardValuesOnSave(boolean b)

setPropertyValue

public void setPropertyValue(java.lang.String name,
                             java.lang.String value)
Specified by:
setPropertyValue in interface TestPropertyHolder

beforeSave

public void beforeSave()
Overrides:
beforeSave in class AbstractWsdlModelItem<com.eviware.soapui.config.TestStepConfig>

clearPropertyValues

public void clearPropertyValues()

renameProperty

public boolean renameProperty(java.lang.String name,
                              java.lang.String newName)
Specified by:
renameProperty in interface MutableTestPropertyHolder

addProperty

public TestProperty addProperty(java.lang.String name)
Specified by:
addProperty in interface MutableTestPropertyHolder

addTestPropertyListener

public void addTestPropertyListener(TestPropertyListener listener)
Specified by:
addTestPropertyListener in interface TestPropertyHolder

getProperties

public java.util.Map<java.lang.String,TestProperty> getProperties()
Specified by:
getProperties in interface TestPropertyHolder

getProperty

public TestProperty getProperty(java.lang.String name)
Specified by:
getProperty in interface TestPropertyHolder

getPropertyAt

public TestProperty getPropertyAt(int index)

getPropertyCount

public int getPropertyCount()

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in interface TestPropertyHolder

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String name)
Specified by:
getPropertyValue in interface TestPropertyHolder

removeProperty

public void removeProperty(java.lang.String propertyName)
Specified by:
removeProperty in interface MutableTestPropertyHolder

removeTestPropertyListener

public void removeTestPropertyListener(TestPropertyListener listener)
Specified by:
removeTestPropertyListener in interface TestPropertyHolder

hasProperty

public boolean hasProperty(java.lang.String name)
Specified by:
hasProperty in interface TestPropertyHolder


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