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_XMLDISABLED_PROPERTYDESCRIPTION_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, propertyRenamedafterCopy, createPanelBuilder, dependsOn, finish, getDefaultTargetPropertyName, getLabel, getModelItem, getPropertiesLabel, getRequiredInterfaces, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, setDisabled, setNameaddExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setSettingsaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, getLabel, getTestCase, isDisabledgetChildren, getDescription, getId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenergetModelItem, getPropertiesLabelgetModelItemgetModelItempublic 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 TestPropertyHolderaddTestPropertyListener in class WsdlTestStepWithPropertiespublic void removeTestPropertyListener(TestPropertyListener listener)
removeTestPropertyListener in interface TestPropertyHolderremoveTestPropertyListener in class WsdlTestStepWithPropertiespublic JdbcRequestTestStepConfig getJdbcRequestTestStepConfig()
public void resetConfigOnMove(TestStepConfig config)
WsdlTestStepresetConfigOnMove in class WsdlTestStepconfig - the new config to use, will be a copy of the existing one. The
               current will be invalidpublic WsdlTestStep clone(WsdlTestCase targetTestCase, String name)
WsdlTestStepclone in class WsdlTestSteptargetTestCase - step we were cloned frompublic void release()
release in interface Releasablerelease in class AbstractWsdlModelItem<TestStepConfig>public TestStepResult run(TestCaseRunner runner, TestCaseRunContext runContext)
public boolean cancel()
cancel in interface TestStepcancel in class WsdlTestSteppublic String getDefaultSourcePropertyName()
WsdlTestStepgetDefaultSourcePropertyName in class WsdlTestSteppublic TestAssertion addAssertion(String assertionLabel)
addAssertion in interface Assertablepublic void addAssertionsListener(AssertionsListener listener)
addAssertionsListener in interface Assertablepublic TestAssertion cloneAssertion(TestAssertion source, String name)
cloneAssertion in interface Assertablepublic String getAssertableContentAsXml()
getAssertableContentAsXml in interface Assertablepublic String getAssertableContent()
getAssertableContent in interface Assertablepublic boolean isConvertColumnNamesToUpperCase()
public String getResponseContent()
public WsdlMessageAssertion importAssertion(WsdlMessageAssertion source, boolean overwrite, boolean createCopy, String newName)
public TestAssertionRegistry.AssertableType getAssertableType()
getAssertableType in interface Assertablepublic TestAssertion getAssertionAt(int c)
getAssertionAt in interface Assertablepublic TestAssertion getAssertionByName(String name)
getAssertionByName in interface Assertablepublic int getAssertionCount()
getAssertionCount in interface Assertablepublic List<TestAssertion> getAssertionList()
getAssertionList in interface Assertablepublic void propertyChange(PropertyChangeEvent arg0)
propertyChange in interface PropertyChangeListenerpublic Map<String,TestAssertion> getAssertions()
getAssertions in interface Assertablepublic String getDefaultAssertableContent()
getDefaultAssertableContent in interface Assertablepublic Assertable.AssertionStatus getAssertionStatus()
getAssertionStatus in interface Assertablepublic ImageIcon getIcon()
getIcon in interface ModelItemgetIcon in class AbstractWsdlModelItem<TestStepConfig>public Interface getInterface()
getInterface in interface Assertablepublic TestAssertion moveAssertion(int ix, int offset)
moveAssertion in interface Assertablepublic void removeAssertion(TestAssertion assertion)
removeAssertion in interface Assertablepublic void removeAssertionsListener(AssertionsListener listener)
removeAssertionsListener in interface Assertablepublic void assertResponse(SubmitContext context)
public TestProperty addProperty(String name)
addProperty in interface MutableTestPropertyHolderpublic TestProperty removeProperty(String propertyName)
removeProperty in interface MutableTestPropertyHolderpublic void removeAllProperties()
public boolean renameProperty(String name, String newName)
renameProperty in interface MutableTestPropertyHolderpublic Map<String,TestProperty> getProperties()
getProperties in interface TestPropertyHoldergetProperties in class WsdlTestStepWithPropertiespublic TestProperty getProperty(String name)
getProperty in interface TestPropertyHoldergetProperty in class WsdlTestStepWithPropertiespublic TestProperty getPropertyAt(int index)
getPropertyAt in interface TestPropertyHoldergetPropertyAt in class WsdlTestStepWithPropertiespublic int getPropertyCount()
getPropertyCount in interface TestPropertyHoldergetPropertyCount in class WsdlTestStepWithPropertiespublic List<TestProperty> getPropertyList()
getPropertyList in interface TestPropertyHoldergetPropertyList in class WsdlTestStepWithPropertiespublic String[] getPropertyNames()
getPropertyNames in interface TestPropertyHoldergetPropertyNames in class WsdlTestStepWithPropertiespublic String getPropertyValue(String name)
getPropertyValue in interface TestPropertyHoldergetPropertyValue in class WsdlTestStepWithPropertiespublic boolean hasProperty(String name)
hasProperty in interface TestPropertyHolderhasProperty in class WsdlTestStepWithPropertiespublic void setPropertyValue(String name, String value)
setPropertyValue in interface TestPropertyHoldersetPropertyValue in class WsdlTestStepWithPropertiespublic void moveProperty(String propertyName, int targetIndex)
moveProperty in interface MutableTestPropertyHoldermoveProperty in class WsdlTestStepWithPropertiespublic 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 SamplerTestSteppublic TestStep getTestStep()
getTestStep in interface AssertablegetTestStep in interface SamplerTestSteppublic void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext) throws Exception
prepare in interface TestStepprepare in class WsdlTestStepExceptionCopyright © 2019. All Rights Reserved.