public class JdbcRequestTestStep extends WsdlTestStepWithProperties implements Assertable, MutableTestPropertyHolder, PropertyChangeListener, SamplerTestStep
Assertable.AssertionStatus
Modifier and Type | Field and Description |
---|---|
protected static String |
CONNSTR_FIELD |
protected static String |
DATA_CONNECTION_FIELD |
protected static String |
DRIVER_FIELD |
static String |
JDBCREQUEST |
protected static String |
PASS_FIELD |
static String |
PASS_TEMPLATE |
protected static String |
QUERY_ELEMENT |
static String |
QUERY_FIELD |
static String |
RESPONSE_PROPERTY |
static String |
STATUS_PROPERTY |
protected static String |
STOREDPROCEDURE_ELEMENT |
protected static String |
STOREDPROCEDURE_FIELD |
RAW_RESPONSE, RESPONSE, RESPONSE_AS_XML
DISABLED_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
JdbcRequestTestStep(WsdlTestCase testCase,
TestStepConfig config,
boolean forLoadTest) |
addProperty, addProperty, deleteProperty, firePropertyAdded, firePropertyMoved, firePropertyRemoved, firePropertyRenamed, firePropertyValueChanged, hasProperties, propertyRenamed
afterCopy, createPanelBuilder, dependsOn, finish, getDefaultTargetPropertyName, getLabel, getModelItem, getPropertiesLabel, getRequiredInterfaces, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, setDisabled, setName
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getLabel, getTestCase, isDisabled
getChildren, getDescription, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
getModelItem, getPropertiesLabel
getModelItem
getModelItem
public static final String JDBCREQUEST
public static final String STATUS_PROPERTY
public static final String RESPONSE_PROPERTY
protected static final String DRIVER_FIELD
protected static final String CONNSTR_FIELD
protected static final String PASS_FIELD
public static final String PASS_TEMPLATE
public static final String QUERY_FIELD
protected static final String STOREDPROCEDURE_FIELD
protected static final String DATA_CONNECTION_FIELD
protected static final String QUERY_ELEMENT
protected static final String STOREDPROCEDURE_ELEMENT
public JdbcRequestTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest)
public void addTestPropertyListener(TestPropertyListener listener)
addTestPropertyListener
in interface TestPropertyHolder
addTestPropertyListener
in class WsdlTestStepWithProperties
public void removeTestPropertyListener(TestPropertyListener listener)
removeTestPropertyListener
in interface TestPropertyHolder
removeTestPropertyListener
in class WsdlTestStepWithProperties
public JdbcRequestTestStepConfig getJdbcRequestTestStepConfig()
public void resetConfigOnMove(TestStepConfig config)
WsdlTestStep
resetConfigOnMove
in class WsdlTestStep
config
- the new config to use, will be a copy of the existing one. The
current will be invalidpublic WsdlTestStep clone(WsdlTestCase targetTestCase, String name)
WsdlTestStep
clone
in class WsdlTestStep
targetTestCase
- step we were cloned frompublic void release()
release
in interface Releasable
release
in class AbstractWsdlModelItem<TestStepConfig>
public TestStepResult run(TestCaseRunner runner, TestCaseRunContext runContext)
public boolean cancel()
cancel
in interface TestStep
cancel
in class WsdlTestStep
public String getDefaultSourcePropertyName()
WsdlTestStep
getDefaultSourcePropertyName
in class WsdlTestStep
public TestAssertion addAssertion(String assertionLabel)
addAssertion
in interface Assertable
public void addAssertionsListener(AssertionsListener listener)
addAssertionsListener
in interface Assertable
public TestAssertion cloneAssertion(TestAssertion source, String name)
cloneAssertion
in interface Assertable
public String getAssertableContentAsXml()
getAssertableContentAsXml
in interface Assertable
public String getAssertableContent()
getAssertableContent
in interface Assertable
public boolean isConvertColumnNamesToUpperCase()
public String getResponseContent()
public WsdlMessageAssertion importAssertion(WsdlMessageAssertion source, boolean overwrite, boolean createCopy, String newName)
public TestAssertionRegistry.AssertableType getAssertableType()
getAssertableType
in interface Assertable
public TestAssertion getAssertionAt(int c)
getAssertionAt
in interface Assertable
public TestAssertion getAssertionByName(String name)
getAssertionByName
in interface Assertable
public int getAssertionCount()
getAssertionCount
in interface Assertable
public List<TestAssertion> getAssertionList()
getAssertionList
in interface Assertable
public void propertyChange(PropertyChangeEvent arg0)
propertyChange
in interface PropertyChangeListener
public Map<String,TestAssertion> getAssertions()
getAssertions
in interface Assertable
public String getDefaultAssertableContent()
getDefaultAssertableContent
in interface Assertable
public Assertable.AssertionStatus getAssertionStatus()
getAssertionStatus
in interface Assertable
public ImageIcon getIcon()
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<TestStepConfig>
public Interface getInterface()
getInterface
in interface Assertable
public TestAssertion moveAssertion(int ix, int offset)
moveAssertion
in interface Assertable
public void removeAssertion(TestAssertion assertion)
removeAssertion
in interface Assertable
public void removeAssertionsListener(AssertionsListener listener)
removeAssertionsListener
in interface Assertable
public void assertResponse(SubmitContext context)
public TestProperty addProperty(String name)
addProperty
in interface MutableTestPropertyHolder
public TestProperty removeProperty(String propertyName)
removeProperty
in interface MutableTestPropertyHolder
public void removeAllProperties()
public boolean renameProperty(String name, String newName)
renameProperty
in interface MutableTestPropertyHolder
public Map<String,TestProperty> getProperties()
getProperties
in interface TestPropertyHolder
getProperties
in class WsdlTestStepWithProperties
public TestProperty getProperty(String name)
getProperty
in interface TestPropertyHolder
getProperty
in class WsdlTestStepWithProperties
public TestProperty getPropertyAt(int index)
getPropertyAt
in interface TestPropertyHolder
getPropertyAt
in class WsdlTestStepWithProperties
public int getPropertyCount()
getPropertyCount
in interface TestPropertyHolder
getPropertyCount
in class WsdlTestStepWithProperties
public List<TestProperty> getPropertyList()
getPropertyList
in interface TestPropertyHolder
getPropertyList
in class WsdlTestStepWithProperties
public String[] getPropertyNames()
getPropertyNames
in interface TestPropertyHolder
getPropertyNames
in class WsdlTestStepWithProperties
public String getPropertyValue(String name)
getPropertyValue
in interface TestPropertyHolder
getPropertyValue
in class WsdlTestStepWithProperties
public boolean hasProperty(String name)
hasProperty
in interface TestPropertyHolder
hasProperty
in class WsdlTestStepWithProperties
public void setPropertyValue(String name, String value)
setPropertyValue
in interface TestPropertyHolder
setPropertyValue
in class WsdlTestStepWithProperties
public void moveProperty(String propertyName, int targetIndex)
moveProperty
in interface MutableTestPropertyHolder
moveProperty
in class WsdlTestStepWithProperties
public String getDriver()
public void setDriver(String d)
public String getConnectionString()
public void setConnectionString(String c)
public String getQuery()
public void setQuery(String q)
public String getPassword()
public void setPassword(String p)
public static boolean isNeededPassword(String connStr)
public boolean isStoredProcedure()
public void setStoredProcedure(boolean sp)
public void setConvertColumnNamesToUpperCase(boolean sp)
public JdbcRequest getJdbcRequest()
public String getQueryTimeout()
public String getMaxRows()
public String getFetchSize()
public void setQueryTimeout(String queryTimeout)
public void setMaxRows(String maxRows)
public void setFetchSize(String fetchSize)
public void setResponse(JdbcResponse response, SubmitContext context)
public boolean isDiscardResponse()
public void setDiscardResponse(boolean discardResponse)
public TestRequest getTestRequest()
getTestRequest
in interface SamplerTestStep
public TestStep getTestStep()
getTestStep
in interface Assertable
getTestStep
in interface SamplerTestStep
public void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext) throws Exception
prepare
in interface TestStep
prepare
in class WsdlTestStep
Exception
Copyright © 2019. All Rights Reserved.