|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.SecurityTestConfig>
com.eviware.soapui.security.SecurityTest
public class SecurityTest
This class is used to connect a TestCase with a set of security scans
| Field Summary | |
|---|---|
static java.lang.String |
FAIL_ON_ERROR_PROPERTY
|
static java.lang.String |
FAIL_ON_SCANS_ERRORS_PROPERTY
|
static java.lang.String |
SKIP_DATASOURCE_LOOP_PROPERTY
|
static java.lang.String |
STARTUP_SCRIPT_PROPERTY
|
static java.lang.String |
TEARDOWN_SCRIPT_PROPERTY
|
| Fields inherited from interface com.eviware.soapui.model.ModelItem |
|---|
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY |
| Constructor Summary | |
|---|---|
SecurityTest(WsdlTestCase testCase,
com.eviware.soapui.config.SecurityTestConfig config)
|
|
| Method Summary | ||
|---|---|---|
SecurityScan |
addNewSecurityScan(TestStep testStep,
java.lang.String securityScanName)
Adds new securityScan for the specific TestStep by Security Scan Type |
|
SecurityScan |
addSecurityScan(TestStep testStep,
SecurityScanFactory factory,
com.eviware.soapui.config.SecurityScanConfig newScanConfig)
Adds a securityScan for the specific TestStep |
|
void |
addSecurityTestListener(SecurityTestListener listener)
|
|
void |
addSecurityTestRunListener(SecurityTestRunListener listener)
|
|
void |
addTestStepRunListener(TestStep testStep,
SecurityTestRunListener listener)
|
|
boolean |
canAddSecurityScan(TestStep testStep,
java.lang.String securityScanName)
Checks if we can add new SecurityScan for the specific TestStep (only one type of SecurityScan for TestStep is allowed) |
|
void |
clearSecurityTestStepResultMap()
|
|
java.lang.String |
findTestStepScanUniqueName(java.lang.String testStepId,
java.lang.String type)
|
|
java.lang.String[] |
getAvailableSecurityScanNames(TestStep testStep,
java.lang.String[] securityScanNames)
Creates array of all available security scan names (those that have not been added to test step). |
|
java.util.List<? extends ModelItem> |
getChildren()
|
|
boolean |
getFailOnError()
|
|
boolean |
getFailSecurityTestOnScanErrors()
|
|
int |
getSecurityScanCount()
|
|
java.util.HashMap<java.lang.String,java.util.List<SecurityScan>> |
getSecurityScansMap()
Returns a map of testids to security scans |
|
SecurityTestRunListener[] |
getSecurityTestRunListeners()
|
|
java.util.Map<TestStep,SecurityTestStepResult> |
getSecurityTestStepResultMap()
|
|
boolean |
getSkipDataSourceLoops()
|
|
java.lang.String |
getStartupScript()
|
|
int |
getStepSecurityApplicableScansCount(TestStepResult tsr)
|
|
java.lang.String |
getTearDownScript()
|
|
WsdlTestCase |
getTestCase()
|
|
SecurityTestRunListener[] |
getTestStepRunListeners(TestStep testStep)
|
|
SecurityScan |
getTestStepSecurityScanAt(java.lang.String testStepId,
int index)
|
|
SecurityScan |
getTestStepSecurityScanByName(java.lang.String testStepId,
java.lang.String securityScanName)
|
|
|
getTestStepSecurityScanByType(java.lang.String testStepId,
java.lang.Class<T> securityScanType)
|
|
java.util.List<SecurityScan> |
getTestStepSecurityScans(java.lang.String testStepId)
|
|
int |
getTestStepSecurityScansCount(java.lang.String testStepId)
|
|
boolean |
importSecurityScan(TestStep targetTestStep,
SecurityScan securityScanToClone,
boolean overwrite)
|
|
boolean |
isRunning()
|
|
SecurityScan |
moveTestStepSecurityScan(TestStep testStep,
SecurityScan securityScan,
int index,
int offset)
Moves specified SecurityScan of a TestStep in a list |
|
void |
putSecurityTestStepResult(TestStep testStep,
SecurityTestStepResult securityTestStepResult)
Puts result of a SecurityTest on a TestStep level to a map, if map previously contained value for specified TestStep it is being replaced with the new result value |
|
void |
release()
|
|
void |
removeSecurityScan(TestStep testStep,
SecurityScan securityScan)
Remove securityScan for the specific TestStep |
|
void |
removeSecurityScanWhenRemoveTestStep(TestStep testStep,
SecurityScan securityScan)
|
|
void |
removeSecurityTestListener(SecurityTestListener listener)
|
|
void |
removeSecurityTestRunListener(SecurityTestRunListener listener)
|
|
void |
removeTestStepRunListener(TestStep testStep,
SecurityTestRunListener listener)
|
|
void |
resetAllScansSkipFurtherRunning()
|
|
void |
resetConfigOnMove(com.eviware.soapui.config.SecurityTestConfig securityTestConfig)
|
|
SecurityTestRunner |
run(StringToObjectMap context,
boolean async)
|
|
java.lang.Object |
runStartupScript(SecurityTestRunContext runContext,
SecurityTestRunner runner)
Executes the startup Script |
|
java.lang.Object |
runTearDownScript(SecurityTestRunContext runContext,
SecurityTestRunner runner)
Executes the teardown Script |
|
void |
setFailOnError(boolean failOnError)
|
|
void |
setFailSecurityTestOnScanErrors(boolean failSecurityTestOnErrors)
|
|
void |
setSkipDataSourceLoops(boolean skipDataSourceLoops)
|
|
void |
setStartupScript(java.lang.String script)
Sets the script to be used on startup |
|
void |
setTearDownScript(java.lang.String script)
Sets the script to be used on teardown |
|
protected boolean |
skipTest(TestStep testStep)
|
|
| 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, setName, 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 |
| Methods inherited from interface com.eviware.soapui.model.ModelItem |
|---|
getDescription, getIcon, getId, getName, getParent, getSettings |
| Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final java.lang.String STARTUP_SCRIPT_PROPERTY
public static final java.lang.String TEARDOWN_SCRIPT_PROPERTY
public static final java.lang.String FAIL_ON_SCANS_ERRORS_PROPERTY
public static final java.lang.String FAIL_ON_ERROR_PROPERTY
public static final java.lang.String SKIP_DATASOURCE_LOOP_PROPERTY
| Constructor Detail |
|---|
public SecurityTest(WsdlTestCase testCase,
com.eviware.soapui.config.SecurityTestConfig config)
| Method Detail |
|---|
public void release()
release in class AbstractWsdlModelItem<com.eviware.soapui.config.SecurityTestConfig>
public SecurityScan addNewSecurityScan(TestStep testStep,
java.lang.String securityScanName)
testStep - securityScanName -
public SecurityScan addSecurityScan(TestStep testStep,
SecurityScanFactory factory,
com.eviware.soapui.config.SecurityScanConfig newScanConfig)
testStep - factory - newScanConfig -
public void removeSecurityScan(TestStep testStep,
SecurityScan securityScan)
testStep - securityScan -
public void removeSecurityScanWhenRemoveTestStep(TestStep testStep,
SecurityScan securityScan)
public java.util.HashMap<java.lang.String,java.util.List<SecurityScan>> getSecurityScansMap()
public int getSecurityScanCount()
public int getStepSecurityApplicableScansCount(TestStepResult tsr)
public java.util.Map<TestStep,SecurityTestStepResult> getSecurityTestStepResultMap()
public void clearSecurityTestStepResultMap()
public void putSecurityTestStepResult(TestStep testStep,
SecurityTestStepResult securityTestStepResult)
testStep - securityTestStepResult - public WsdlTestCase getTestCase()
public SecurityTestRunner run(StringToObjectMap context,
boolean async)
run in interface TestRunnablepublic void setStartupScript(java.lang.String script)
script - public java.lang.String getStartupScript()
public java.lang.Object runStartupScript(SecurityTestRunContext runContext,
SecurityTestRunner runner)
throws java.lang.Exception
runContext - runner -
java.lang.Exceptionpublic void setTearDownScript(java.lang.String script)
script - public java.lang.String getTearDownScript()
public java.lang.Object runTearDownScript(SecurityTestRunContext runContext,
SecurityTestRunner runner)
throws java.lang.Exception
runContext - runner -
java.lang.Exceptionpublic java.util.List<SecurityScan> getTestStepSecurityScans(java.lang.String testStepId)
public SecurityScan getTestStepSecurityScanByName(java.lang.String testStepId,
java.lang.String securityScanName)
public <T extends SecurityScan> java.util.List<T> getTestStepSecurityScanByType(java.lang.String testStepId,
java.lang.Class<T> securityScanType)
public SecurityScan getTestStepSecurityScanAt(java.lang.String testStepId,
int index)
public int getTestStepSecurityScansCount(java.lang.String testStepId)
public SecurityScan moveTestStepSecurityScan(TestStep testStep,
SecurityScan securityScan,
int index,
int offset)
testStep - securityScan - index - offset - specifies position to move to , negative value means moving up
while positive value means moving down
public java.lang.String findTestStepScanUniqueName(java.lang.String testStepId,
java.lang.String type)
public void addSecurityTestRunListener(SecurityTestRunListener listener)
public void removeSecurityTestRunListener(SecurityTestRunListener listener)
public SecurityTestRunListener[] getSecurityTestRunListeners()
public boolean getFailSecurityTestOnScanErrors()
public void setFailSecurityTestOnScanErrors(boolean failSecurityTestOnErrors)
public boolean getFailOnError()
public void setFailOnError(boolean failOnError)
public boolean getSkipDataSourceLoops()
public void setSkipDataSourceLoops(boolean skipDataSourceLoops)
public void addTestStepRunListener(TestStep testStep,
SecurityTestRunListener listener)
public void removeTestStepRunListener(TestStep testStep,
SecurityTestRunListener listener)
public SecurityTestRunListener[] getTestStepRunListeners(TestStep testStep)
public java.util.List<? extends ModelItem> getChildren()
getChildren in interface ModelItemgetChildren in class AbstractModelItempublic void resetConfigOnMove(com.eviware.soapui.config.SecurityTestConfig securityTestConfig)
public boolean canAddSecurityScan(TestStep testStep,
java.lang.String securityScanName)
testStep -
public java.lang.String[] getAvailableSecurityScanNames(TestStep testStep,
java.lang.String[] securityScanNames)
testStep -
public boolean importSecurityScan(TestStep targetTestStep,
SecurityScan securityScanToClone,
boolean overwrite)
public void addSecurityTestListener(SecurityTestListener listener)
public void removeSecurityTestListener(SecurityTestListener listener)
public boolean isRunning()
protected boolean skipTest(TestStep testStep)
public void resetAllScansSkipFurtherRunning()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||