com.eviware.soapui.impl.wsdl.teststeps
Class JdbcRequestTestStep
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.JdbcRequestTestStep
- All Implemented Interfaces:
- MutableTestPropertyHolder, ModelItem, TestModelItem, TestPropertyHolder, Assertable, ResultContainer, TestStep, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
public class JdbcRequestTestStep
- extends WsdlTestStepWithProperties
- implements Assertable, MutableTestPropertyHolder, java.beans.PropertyChangeListener
WsdlTestStep that executes a WsdlTestRequest
- Author:
- dragica.soldo
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 |
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 |
getConnectionString()
|
java.lang.String |
getDefaultAssertableContent()
|
java.lang.String |
getDefaultSourcePropertyName()
Default property to use when creating property-transfers where this step
is source |
java.lang.String |
getDriver()
|
java.lang.String |
getFetchSize()
|
javax.swing.ImageIcon |
getIcon()
|
Interface |
getInterface()
|
JdbcRequest |
getJdbcRequest()
|
com.eviware.soapui.config.JdbcRequestTestStepConfig |
getJdbcRequestTestStepConfig()
|
java.lang.String |
getMaxRows()
|
java.lang.String |
getPassword()
|
java.util.Map<java.lang.String,TestProperty> |
getProperties()
|
TestProperty |
getProperty(java.lang.String name)
|
TestProperty |
getPropertyAt(int index)
|
int |
getPropertyCount()
|
java.util.List<TestProperty> |
getPropertyList()
|
java.lang.String[] |
getPropertyNames()
|
java.lang.String |
getPropertyValue(java.lang.String name)
|
java.lang.String |
getQuery()
|
java.lang.String |
getQueryTimeout()
|
java.lang.String |
getResponseContent()
|
boolean |
hasProperty(java.lang.String name)
|
WsdlMessageAssertion |
importAssertion(WsdlMessageAssertion source,
boolean overwrite,
boolean createCopy)
|
static boolean |
isNeededPassword(java.lang.String connStr)
|
boolean |
isStoredProcedure()
|
TestAssertion |
moveAssertion(int ix,
int offset)
|
void |
moveProperty(java.lang.String propertyName,
int targetIndex)
|
void |
propertyChange(java.beans.PropertyChangeEvent arg0)
|
void |
release()
|
void |
removeAllProperties()
|
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 |
setConnectionString(java.lang.String c)
|
void |
setDriver(java.lang.String d)
|
void |
setFetchSize(java.lang.String fetchSize)
|
void |
setMaxRows(java.lang.String maxRows)
|
void |
setPassword(java.lang.String p)
|
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
|
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
|
void |
setQuery(java.lang.String q)
|
void |
setQueryTimeout(java.lang.String queryTimeout)
|
void |
setResponse(JdbcResponse response,
SubmitContext context)
|
void |
setStoredProcedure(boolean sp)
|
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 |
jdbcRequestTestStepConfig
protected com.eviware.soapui.config.JdbcRequestTestStepConfig jdbcRequestTestStepConfig
JDBCREQUEST
public static final java.lang.String JDBCREQUEST
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
DRIVER_FIELD
protected static final java.lang.String DRIVER_FIELD
- See Also:
- Constant Field Values
CONNSTR_FIELD
protected static final java.lang.String CONNSTR_FIELD
- See Also:
- Constant Field Values
PASS_FIELD
protected static final java.lang.String PASS_FIELD
- See Also:
- Constant Field Values
PASS_TEMPLATE
public static final java.lang.String PASS_TEMPLATE
- See Also:
- Constant Field Values
QUERY_FIELD
public static final java.lang.String QUERY_FIELD
- See Also:
- Constant Field Values
STOREDPROCEDURE_FIELD
protected static final java.lang.String STOREDPROCEDURE_FIELD
- See Also:
- Constant Field Values
DATA_CONNECTION_FIELD
protected static final java.lang.String DATA_CONNECTION_FIELD
- See Also:
- Constant Field Values
QUERY_ELEMENT
protected static final java.lang.String QUERY_ELEMENT
- See Also:
- Constant Field Values
STOREDPROCEDURE_ELEMENT
protected static final java.lang.String STOREDPROCEDURE_ELEMENT
- See Also:
- Constant Field Values
connection
protected java.sql.Connection connection
JdbcRequestTestStep
public JdbcRequestTestStep(WsdlTestCase testCase,
com.eviware.soapui.config.TestStepConfig config,
boolean forLoadTest)
getJdbcRequestTestStepConfig
public com.eviware.soapui.config.JdbcRequestTestStepConfig getJdbcRequestTestStepConfig()
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
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
getResponseContent
public java.lang.String getResponseContent()
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
removeAllProperties
public void removeAllProperties()
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
getDriver
public java.lang.String getDriver()
setDriver
public void setDriver(java.lang.String d)
getConnectionString
public java.lang.String getConnectionString()
setConnectionString
public void setConnectionString(java.lang.String c)
getQuery
public java.lang.String getQuery()
setQuery
public void setQuery(java.lang.String q)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String p)
isNeededPassword
public static boolean isNeededPassword(java.lang.String connStr)
isStoredProcedure
public boolean isStoredProcedure()
setStoredProcedure
public void setStoredProcedure(boolean sp)
getJdbcRequest
public JdbcRequest getJdbcRequest()
getQueryTimeout
public java.lang.String getQueryTimeout()
getMaxRows
public java.lang.String getMaxRows()
getFetchSize
public java.lang.String getFetchSize()
setQueryTimeout
public void setQueryTimeout(java.lang.String queryTimeout)
setMaxRows
public void setMaxRows(java.lang.String maxRows)
setFetchSize
public void setFetchSize(java.lang.String fetchSize)
setResponse
public void setResponse(JdbcResponse response,
SubmitContext context)
Copyright © 2005-2010 eviware.com. All Rights Reserved.