com.eviware.soapui.impl.wsdl.testcase
Class WsdlTestCase
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<T>
com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.TestCaseConfig>
com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase
- All Implemented Interfaces:
- MutableTestPropertyHolder, ModelItem, TestModelItem, TestPropertyHolder, ResultContainer, TestCase, TestRunnable, PropertyChangeNotifier
public class WsdlTestCase
- extends AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.TestCaseConfig>
- implements TestCase
TestCase implementation for WSDL projects
- Author:
- Ole.Matzura
|
Constructor Summary |
WsdlTestCase(WsdlTestSuite testSuite,
com.eviware.soapui.config.TestCaseConfig config,
boolean forLoadTest)
|
|
Method Summary |
WsdlLoadTest |
addNewLoadTest(java.lang.String name)
|
SecurityTest |
addNewSecurityTest(java.lang.String name)
|
void |
addTestRunListener(TestRunListener listener)
|
WsdlTestStep |
addTestStep(java.lang.String type,
java.lang.String name)
|
WsdlTestStep |
addTestStep(java.lang.String type,
java.lang.String name,
java.lang.String endpoint,
java.lang.String method)
|
WsdlTestStep |
addTestStep(com.eviware.soapui.config.TestStepConfig stepConfig)
|
void |
afterCopy(WsdlTestSuite oldTestSuite,
WsdlTestCase oldTestCase)
|
WsdlLoadTest |
buildLoadTest(com.eviware.soapui.config.LoadTestConfig tsc)
|
protected SecurityTest |
buildSecurityTest(com.eviware.soapui.config.SecurityTestConfig addNewSecurityTest)
|
WsdlLoadTest |
cloneLoadTest(WsdlLoadTest loadTest,
java.lang.String name)
|
SecurityTest |
cloneSecurityTest(SecurityTest securityTest,
java.lang.String name)
|
WsdlTestStep |
cloneStep(WsdlTestStep testStep,
java.lang.String name)
|
void |
exportTestCase(java.io.File file)
|
|
findNextStepOfType(TestStep referenceStep,
java.lang.Class<T> stepClass)
|
|
findPreviousStepOfType(TestStep referenceStep,
java.lang.Class<T> stepClass)
|
boolean |
getAmfAuthorisation()
|
java.lang.String |
getAmfEndpoint()
|
java.lang.String |
getAmfLogin()
|
java.lang.String |
getAmfPassword()
|
java.util.List<? extends ModelItem> |
getChildren()
|
ActionList |
getCreateActions()
|
boolean |
getDiscardOkResults()
|
boolean |
getFailOnError()
|
boolean |
getFailTestCaseOnErrors()
|
int |
getIndexOfLoadTest(LoadTest loadTest)
|
int |
getIndexOfSecurityTest(SecurityTest securityTest)
|
int |
getIndexOfTestStep(TestStep step)
|
boolean |
getKeepSession()
|
java.lang.String |
getLabel()
|
WsdlLoadTest |
getLoadTestAt(int index)
|
LoadTest |
getLoadTestByName(java.lang.String loadTestName)
|
int |
getLoadTestCount()
|
java.util.List<LoadTest> |
getLoadTestList()
|
java.util.Map<java.lang.String,LoadTest> |
getLoadTests()
|
int |
getMaxResults()
|
StringToObjectMap |
getRunFromHereContext()
|
boolean |
getSearchProperties()
|
SecurityTest |
getSecurityTestAt(int index)
|
SecurityTest |
getSecurityTestByName(java.lang.String securityTestName)
|
int |
getSecurityTestCount()
|
java.util.List<SecurityTest> |
getSecurityTestList()
|
java.util.Map<java.lang.String,SecurityTest> |
getSecurityTests()
|
java.lang.String |
getSetupScript()
|
java.lang.String |
getTearDownScript()
|
TestRunListener[] |
getTestRunListeners()
|
WsdlTestStep |
getTestStepAt(int index)
|
WsdlTestStep |
getTestStepByName(java.lang.String stepName)
|
int |
getTestStepCount()
|
int |
getTestStepIndexByName(java.lang.String stepName)
|
java.util.List<TestStep> |
getTestStepList()
|
java.util.Map<java.lang.String,TestStep> |
getTestSteps()
|
|
getTestStepsOfType(java.lang.Class<T> stepType)
|
java.util.Map<java.lang.String,TestStep> |
getTestStepsOrdered()
|
WsdlTestSuite |
getTestSuite()
|
long |
getTimeout()
|
java.lang.String |
getWsrmAckTo()
|
boolean |
getWsrmEnabled()
|
long |
getWsrmExpires()
|
java.lang.String |
getWsrmVersion()
|
java.lang.String |
getWsrmVersionNamespace()
|
void |
importSecurityTests(WsdlTestSuite oldTestSuite,
WsdlTestCase oldTestCase)
|
WsdlTestStep |
importTestStep(WsdlTestStep testStep,
java.lang.String name,
int index,
boolean createCopy)
|
WsdlTestStep[] |
importTestSteps(WsdlTestStep[] testSteps,
int index,
boolean createCopies)
|
WsdlTestStep |
insertTestStep(java.lang.String type,
java.lang.String name,
int index)
|
WsdlTestStep |
insertTestStep(com.eviware.soapui.config.TestStepConfig stepConfig,
int ix)
|
WsdlTestStep |
insertTestStep(com.eviware.soapui.config.TestStepConfig stepConfig,
int ix,
boolean clearIds)
|
WsdlTestStep[] |
insertTestSteps(com.eviware.soapui.config.TestStepConfig[] stepConfig,
int ix,
boolean clearIds)
|
boolean |
isDisabled()
|
boolean |
isForLoadTest()
|
void |
moveTestStep(int ix,
int offset)
Moves a step by the specified offset, a bit awkward since xmlbeans doesn't
support reordering of arrays, we need to create copies of the contained
XmlObjects |
void |
release()
|
void |
removeLoadTest(WsdlLoadTest loadTest)
|
void |
removeSecurityTest(SecurityTest securityTest)
|
void |
removeTestRunListener(TestRunListener listener)
|
void |
removeTestStep(WsdlTestStep testStep)
|
void |
resetConfigOnMove(com.eviware.soapui.config.TestCaseConfig testCaseConfig)
|
WsdlTestCaseRunner |
run(StringToObjectMap properties,
boolean async)
|
java.lang.Object |
runSetupScript(TestCaseRunContext runContext,
TestCaseRunner runner)
|
java.lang.Object |
runTearDownScript(TestCaseRunContext runContext,
TestCaseRunner runner)
|
void |
setAmfAuthorisation(boolean enabled)
|
void |
setAmfEndpoint(java.lang.String endpoint)
|
void |
setAmfLogin(java.lang.String login)
|
void |
setAmfPassword(java.lang.String password)
|
void |
setDisabled(boolean disabled)
|
void |
setDiscardOkResults(boolean discardOkResults)
|
void |
setFailOnError(boolean failOnError)
|
void |
setFailTestCaseOnErrors(boolean failTestCaseOnErrors)
|
void |
setKeepSession(boolean keepSession)
|
void |
setMaxResults(int maxResults)
|
void |
setName(java.lang.String name)
|
void |
setRunFromHereContext(StringToObjectMap runFromHereContext)
|
void |
setSearchProperties(boolean searchProperties)
|
void |
setSetupScript(java.lang.String script)
|
void |
setTearDownScript(java.lang.String script)
|
void |
setTimeout(long timeout)
|
void |
setWsrmAckTo(java.lang.String ackTo)
|
void |
setWsrmEnabled(boolean enabled)
|
void |
setWsrmExpires(java.lang.Long expires)
|
void |
setWsrmVersion(java.lang.String version)
|
| Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem |
addPropertiesFromFile, addProperty, addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, moveProperty, removeProperty, removeTestPropertyListener, renameProperty, setPropertiesConfig, setPropertyValue |
| Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, 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, 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.TestPropertyHolder |
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue |
KEEP_SESSION_PROPERTY
public static final java.lang.String KEEP_SESSION_PROPERTY
FAIL_ON_ERROR_PROPERTY
public static final java.lang.String FAIL_ON_ERROR_PROPERTY
FAIL_ON_ERRORS_PROPERTY
public static final java.lang.String FAIL_ON_ERRORS_PROPERTY
DISCARD_OK_RESULTS
public static final java.lang.String DISCARD_OK_RESULTS
SETUP_SCRIPT_PROPERTY
public static final java.lang.String SETUP_SCRIPT_PROPERTY
TEARDOWN_SCRIPT_PROPERTY
public static final java.lang.String TEARDOWN_SCRIPT_PROPERTY
TIMEOUT_PROPERTY
public static final java.lang.String TIMEOUT_PROPERTY
SEARCH_PROPERTIES_PROPERTY
public static final java.lang.String SEARCH_PROPERTIES_PROPERTY
WsdlTestCase
public WsdlTestCase(WsdlTestSuite testSuite,
com.eviware.soapui.config.TestCaseConfig config,
boolean forLoadTest)
isForLoadTest
public boolean isForLoadTest()
buildLoadTest
public WsdlLoadTest buildLoadTest(com.eviware.soapui.config.LoadTestConfig tsc)
getKeepSession
public boolean getKeepSession()
setKeepSession
public void setKeepSession(boolean keepSession)
setSetupScript
public void setSetupScript(java.lang.String script)
getSetupScript
public java.lang.String getSetupScript()
setTearDownScript
public void setTearDownScript(java.lang.String script)
getTearDownScript
public java.lang.String getTearDownScript()
getFailOnError
public boolean getFailOnError()
getFailTestCaseOnErrors
public boolean getFailTestCaseOnErrors()
setFailOnError
public void setFailOnError(boolean failOnError)
setFailTestCaseOnErrors
public void setFailTestCaseOnErrors(boolean failTestCaseOnErrors)
getSearchProperties
public boolean getSearchProperties()
setSearchProperties
public void setSearchProperties(boolean searchProperties)
getDiscardOkResults
public boolean getDiscardOkResults()
setDiscardOkResults
public void setDiscardOkResults(boolean discardOkResults)
getMaxResults
public int getMaxResults()
setMaxResults
public void setMaxResults(int maxResults)
addNewLoadTest
public WsdlLoadTest addNewLoadTest(java.lang.String name)
removeLoadTest
public void removeLoadTest(WsdlLoadTest loadTest)
getTestSuite
public WsdlTestSuite getTestSuite()
- Specified by:
getTestSuite in interface TestCase
cloneStep
public WsdlTestStep cloneStep(WsdlTestStep testStep,
java.lang.String name)
getTestStepAt
public WsdlTestStep getTestStepAt(int index)
- Specified by:
getTestStepAt in interface TestCase
getTestStepCount
public int getTestStepCount()
- Specified by:
getTestStepCount in interface TestCase
getLoadTestAt
public WsdlLoadTest getLoadTestAt(int index)
- Specified by:
getLoadTestAt in interface TestCase
getLoadTestByName
public LoadTest getLoadTestByName(java.lang.String loadTestName)
- Specified by:
getLoadTestByName in interface TestCase
getLoadTestCount
public int getLoadTestCount()
- Specified by:
getLoadTestCount in interface TestCase
addTestStep
public WsdlTestStep addTestStep(com.eviware.soapui.config.TestStepConfig stepConfig)
addTestStep
public WsdlTestStep addTestStep(java.lang.String type,
java.lang.String name)
addTestStep
public WsdlTestStep addTestStep(java.lang.String type,
java.lang.String name,
java.lang.String endpoint,
java.lang.String method)
insertTestStep
public WsdlTestStep insertTestStep(java.lang.String type,
java.lang.String name,
int index)
importTestStep
public WsdlTestStep importTestStep(WsdlTestStep testStep,
java.lang.String name,
int index,
boolean createCopy)
importTestSteps
public WsdlTestStep[] importTestSteps(WsdlTestStep[] testSteps,
int index,
boolean createCopies)
insertTestStep
public WsdlTestStep insertTestStep(com.eviware.soapui.config.TestStepConfig stepConfig,
int ix)
insertTestStep
public WsdlTestStep insertTestStep(com.eviware.soapui.config.TestStepConfig stepConfig,
int ix,
boolean clearIds)
insertTestSteps
public WsdlTestStep[] insertTestSteps(com.eviware.soapui.config.TestStepConfig[] stepConfig,
int ix,
boolean clearIds)
removeTestStep
public void removeTestStep(WsdlTestStep testStep)
run
public WsdlTestCaseRunner run(StringToObjectMap properties,
boolean async)
- Specified by:
run in interface TestCase- Specified by:
run in interface TestRunnable
addTestRunListener
public void addTestRunListener(TestRunListener listener)
- Specified by:
addTestRunListener in interface TestCase
removeTestRunListener
public void removeTestRunListener(TestRunListener listener)
- Specified by:
removeTestRunListener in interface TestCase
getTestRunListeners
public TestRunListener[] getTestRunListeners()
getTestSteps
public java.util.Map<java.lang.String,TestStep> getTestSteps()
getTestStepsOrdered
public java.util.Map<java.lang.String,TestStep> getTestStepsOrdered()
getLoadTests
public java.util.Map<java.lang.String,LoadTest> getLoadTests()
getIndexOfTestStep
public int getIndexOfTestStep(TestStep step)
- Specified by:
getIndexOfTestStep in interface TestCase
moveTestStep
public void moveTestStep(int ix,
int offset)
- Moves a step by the specified offset, a bit awkward since xmlbeans doesn't
support reordering of arrays, we need to create copies of the contained
XmlObjects
- Specified by:
moveTestStep in interface TestCase
- Parameters:
ix - offset -
getIndexOfLoadTest
public int getIndexOfLoadTest(LoadTest loadTest)
- Specified by:
getIndexOfLoadTest in interface TestCase
getTestStepIndexByName
public int getTestStepIndexByName(java.lang.String stepName)
- Specified by:
getTestStepIndexByName in interface TestCase
findPreviousStepOfType
public <T extends TestStep> T findPreviousStepOfType(TestStep referenceStep,
java.lang.Class<T> stepClass)
- Specified by:
findPreviousStepOfType in interface TestCase
findNextStepOfType
public <T extends TestStep> T findNextStepOfType(TestStep referenceStep,
java.lang.Class<T> stepClass)
- Specified by:
findNextStepOfType in interface TestCase
getTestStepList
public java.util.List<TestStep> getTestStepList()
- Specified by:
getTestStepList in interface TestCase
getTestStepsOfType
public <T extends TestStep> java.util.List<T> getTestStepsOfType(java.lang.Class<T> stepType)
- Specified by:
getTestStepsOfType in interface TestCase
getTestStepByName
public WsdlTestStep getTestStepByName(java.lang.String stepName)
- Specified by:
getTestStepByName in interface TestCase
cloneLoadTest
public WsdlLoadTest cloneLoadTest(WsdlLoadTest loadTest,
java.lang.String name)
release
public void release()
- Overrides:
release in class AbstractWsdlModelItem<com.eviware.soapui.config.TestCaseConfig>
getCreateActions
public ActionList getCreateActions()
resetConfigOnMove
public void resetConfigOnMove(com.eviware.soapui.config.TestCaseConfig testCaseConfig)
getLoadTestList
public java.util.List<LoadTest> getLoadTestList()
- Specified by:
getLoadTestList in interface TestCase
runSetupScript
public java.lang.Object runSetupScript(TestCaseRunContext runContext,
TestCaseRunner runner)
throws java.lang.Exception
- Throws:
java.lang.Exception
runTearDownScript
public java.lang.Object runTearDownScript(TestCaseRunContext runContext,
TestCaseRunner runner)
throws java.lang.Exception
- Throws:
java.lang.Exception
getChildren
public java.util.List<? extends ModelItem> getChildren()
- Specified by:
getChildren in interface ModelItem- Overrides:
getChildren in class AbstractModelItem
setName
public void setName(java.lang.String name)
- Overrides:
setName in class AbstractWsdlModelItem<com.eviware.soapui.config.TestCaseConfig>
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel in interface TestCase
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled in interface TestCase
setDisabled
public void setDisabled(boolean disabled)
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
exportTestCase
public void exportTestCase(java.io.File file)
afterCopy
public void afterCopy(WsdlTestSuite oldTestSuite,
WsdlTestCase oldTestCase)
importSecurityTests
public void importSecurityTests(WsdlTestSuite oldTestSuite,
WsdlTestCase oldTestCase)
setWsrmEnabled
public void setWsrmEnabled(boolean enabled)
setWsrmAckTo
public void setWsrmAckTo(java.lang.String ackTo)
setWsrmExpires
public void setWsrmExpires(java.lang.Long expires)
setWsrmVersion
public void setWsrmVersion(java.lang.String version)
getWsrmEnabled
public boolean getWsrmEnabled()
getWsrmAckTo
public java.lang.String getWsrmAckTo()
getWsrmExpires
public long getWsrmExpires()
getWsrmVersion
public java.lang.String getWsrmVersion()
getWsrmVersionNamespace
public java.lang.String getWsrmVersionNamespace()
setAmfAuthorisation
public void setAmfAuthorisation(boolean enabled)
getAmfAuthorisation
public boolean getAmfAuthorisation()
setAmfLogin
public void setAmfLogin(java.lang.String login)
getAmfLogin
public java.lang.String getAmfLogin()
setAmfPassword
public void setAmfPassword(java.lang.String password)
getAmfPassword
public java.lang.String getAmfPassword()
setAmfEndpoint
public void setAmfEndpoint(java.lang.String endpoint)
getAmfEndpoint
public java.lang.String getAmfEndpoint()
getSecurityTestCount
public int getSecurityTestCount()
- Specified by:
getSecurityTestCount in interface TestCase
getIndexOfSecurityTest
public int getIndexOfSecurityTest(SecurityTest securityTest)
- Specified by:
getIndexOfSecurityTest in interface TestCase
getSecurityTestAt
public SecurityTest getSecurityTestAt(int index)
- Specified by:
getSecurityTestAt in interface TestCase
getSecurityTestByName
public SecurityTest getSecurityTestByName(java.lang.String securityTestName)
- Specified by:
getSecurityTestByName in interface TestCase
getSecurityTestList
public java.util.List<SecurityTest> getSecurityTestList()
- Specified by:
getSecurityTestList in interface TestCase
getSecurityTests
public java.util.Map<java.lang.String,SecurityTest> getSecurityTests()
addNewSecurityTest
public SecurityTest addNewSecurityTest(java.lang.String name)
buildSecurityTest
protected SecurityTest buildSecurityTest(com.eviware.soapui.config.SecurityTestConfig addNewSecurityTest)
cloneSecurityTest
public SecurityTest cloneSecurityTest(SecurityTest securityTest,
java.lang.String name)
removeSecurityTest
public void removeSecurityTest(SecurityTest securityTest)
getRunFromHereContext
public StringToObjectMap getRunFromHereContext()
setRunFromHereContext
public void setRunFromHereContext(StringToObjectMap runFromHereContext)
Copyright © 2005-2011 eviware.com. All Rights Reserved.