com.eviware.soapui.impl.wsdl.testcase
Class WsdlTestCase
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
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, 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)
|
void |
addTestRunListener(TestRunListener listener)
|
WsdlTestStep |
addTestStep(java.lang.String type,
java.lang.String name)
|
WsdlTestStep |
addTestStep(com.eviware.soapui.config.TestStepConfig stepConfig)
|
WsdlLoadTest |
cloneLoadTest(WsdlLoadTest loadTest,
java.lang.String name)
|
WsdlTestStep |
cloneStep(WsdlTestStep testStep,
java.lang.String name)
|
void |
exportTestCase(java.io.File file)
|
TestStep |
findNextStepOfType(TestStep referenceStep,
java.lang.Class<? extends TestStep> stepClass)
|
TestStep |
findPreviousStepOfType(TestStep referenceStep,
java.lang.Class<? extends TestStep> stepClass)
|
java.util.List<? extends ModelItem> |
getChildren()
|
ActionList |
getCreateActions()
|
boolean |
getDiscardOkResults()
|
boolean |
getFailOnError()
|
boolean |
getFailTestCaseOnErrors()
|
int |
getIndexOfLoadTest(LoadTest loadTest)
|
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()
|
boolean |
getSearchProperties()
|
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)
|
WsdlTestSuite |
getTestSuite()
|
long |
getTimeout()
|
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[] |
insertTestSteps(com.eviware.soapui.config.TestStepConfig[] stepConfig,
int ix)
|
boolean |
isDisabled()
|
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 |
removeTestRunListener(TestRunListener listener)
|
void |
removeTestStep(WsdlTestStep testStep)
|
void |
resetConfigOnMove(com.eviware.soapui.config.TestCaseConfig testCaseArray)
|
WsdlTestCaseRunner |
run(StringToObjectMap properties,
boolean async)
|
java.lang.Object |
runSetupScript(TestRunContext runContext,
TestRunner runner)
|
java.lang.Object |
runTearDownScript(TestRunContext runContext,
TestRunner runner)
|
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 |
setSearchProperties(boolean searchProperties)
|
void |
setSetupScript(java.lang.String script)
|
void |
setTearDownScript(java.lang.String script)
|
void |
setTimeout(long timeout)
|
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem |
addProperty, addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyNames, getPropertyValue, hasProperty, moveProperty, removeProperty, removeTestPropertyListener, renameProperty, setPropertiesConfig, setPropertyValue |
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
afterLoad, beforeSave, dependsOn, getConfig, getDescription, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setSettings |
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, 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)
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)
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)
insertTestSteps
public WsdlTestStep[] insertTestSteps(com.eviware.soapui.config.TestStepConfig[] stepConfig,
int ix)
removeTestStep
public void removeTestStep(WsdlTestStep testStep)
run
public WsdlTestCaseRunner run(StringToObjectMap properties,
boolean async)
- Specified by:
run
in interface TestCase
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()
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 TestStep findPreviousStepOfType(TestStep referenceStep,
java.lang.Class<? extends TestStep> stepClass)
- Specified by:
findPreviousStepOfType
in interface TestCase
findNextStepOfType
public TestStep findNextStepOfType(TestStep referenceStep,
java.lang.Class<? extends TestStep> 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 testCaseArray)
getLoadTestList
public java.util.List<LoadTest> getLoadTestList()
- Specified by:
getLoadTestList
in interface TestCase
runSetupScript
public java.lang.Object runSetupScript(TestRunContext runContext,
TestRunner runner)
throws java.lang.Exception
- Throws:
java.lang.Exception
runTearDownScript
public java.lang.Object runTearDownScript(TestRunContext runContext,
TestRunner 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)
Copyright © 2005-2008 eviware.com. All Rights Reserved.