com.eviware.soapui.security
Class SecurityTestRunnerImpl

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.support.AbstractTestRunner<T,T2>
      extended by com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>
          extended by com.eviware.soapui.security.SecurityTestRunnerImpl
All Implemented Interfaces:
TestCaseRunner, TestRunner, SecurityTestRunner, java.lang.Runnable

public class SecurityTestRunnerImpl
extends AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>
implements SecurityTestRunner


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestRunner
TestRunner.Status
 
Constructor Summary
SecurityTestRunnerImpl(SecurityTest test, StringToObjectMap properties)
           
 
Method Summary
protected  void clear(SecurityTestRunContext runContext)
           
 TestStep cloneForSecurityScan(WsdlTestStep sourceTestStep)
          Clones original TestStep for security modification this does not alter the original test step
static TestStep cloneTestStepForSecurityScan(WsdlTestStep sourceTestStep)
          Clones original TestStep for security modification this does not alter the original test step
 SecurityTestRunContext createContext(StringToObjectMap properties)
           
protected  void failTestRunnableOnErrors(SecurityTestRunContext runContext)
           
protected  void fillInTestRunnableListeners()
           
 long getFunctionalTimeTaken()
           
 SecurityTest getSecurityTest()
           
 WsdlTestCase getTestCase()
          Gets the TestCase being run
 long getTimeTaken()
          Returns the time taken by this runner since its last start
protected  void notifyAfterRun()
           
protected  void notifyBeforeRun()
           
protected  int runCurrentTestStep(SecurityTestRunContext runContext, int currentStepIndex)
          Runs current testStep , returns index of the next step to be run and -2 in case execution should break if canceled
protected  void runSetupScripts(SecurityTestRunContext runContext)
           
protected  void runTearDownScripts(SecurityTestRunContext runContext)
           
 TestStepResult runTestStep(TestStep testStep, boolean discard, boolean process)
           
 SecurityScanResult runTestStepSecurityScan(SecurityTestRunContext runContext, TestStep currentStep, SecurityScan securityScan)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner
enforceMaxResults, getGotoStepIndex, getResultCount, getResults, getStartStep, gotoStep, gotoStepByName, internalFinally, internalRun, onCancel, onFail, runTestStep, runTestStepByName, setResultCount, setStartStep
 
Methods inherited from class com.eviware.soapui.impl.wsdl.support.AbstractTestRunner
cancel, fail, getError, getId, getReason, getRunContext, getStartTime, getStatus, getTestRunnable, getThread, isCanceled, isFailed, isRunning, run, setError, setStartTime, setStatus, setTimeTaken, start, startTimeoutTimer, waitUntilFinished
 
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.testsuite.TestRunner
cancel, fail, getReason, getRunContext, getStartTime, getStatus, getTestRunnable, isRunning, start, waitUntilFinished
 
Methods inherited from interface com.eviware.soapui.model.testsuite.TestCaseRunner
getRunContext
 

Constructor Detail

SecurityTestRunnerImpl

public SecurityTestRunnerImpl(SecurityTest test,
                              StringToObjectMap properties)
Method Detail

createContext

public SecurityTestRunContext createContext(StringToObjectMap properties)
Specified by:
createContext in class AbstractTestRunner<SecurityTest,SecurityTestRunContext>

getSecurityTest

public SecurityTest getSecurityTest()
Specified by:
getSecurityTest in interface SecurityTestRunner

runTestStep

public TestStepResult runTestStep(TestStep testStep,
                                  boolean discard,
                                  boolean process)
Overrides:
runTestStep in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

cloneForSecurityScan

public TestStep cloneForSecurityScan(WsdlTestStep sourceTestStep)
Clones original TestStep for security modification this does not alter the original test step

Parameters:
sourceTestStep -
Returns:
TestStep

cloneTestStepForSecurityScan

public static TestStep cloneTestStepForSecurityScan(WsdlTestStep sourceTestStep)
Clones original TestStep for security modification this does not alter the original test step

Parameters:
sourceTestStep -
Returns:
TestStep

runCurrentTestStep

protected int runCurrentTestStep(SecurityTestRunContext runContext,
                                 int currentStepIndex)
Description copied from class: AbstractTestCaseRunner
Runs current testStep , returns index of the next step to be run and -2 in case execution should break if canceled

Specified by:
runCurrentTestStep in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>
Returns:

runTestStepSecurityScan

public SecurityScanResult runTestStepSecurityScan(SecurityTestRunContext runContext,
                                                  TestStep currentStep,
                                                  SecurityScan securityScan)
Specified by:
runTestStepSecurityScan in interface SecurityTestRunner

notifyBeforeRun

protected void notifyBeforeRun()
Overrides:
notifyBeforeRun in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

notifyAfterRun

protected void notifyAfterRun()
Overrides:
notifyAfterRun in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

getTestCase

public WsdlTestCase getTestCase()
Description copied from interface: TestCaseRunner
Gets the TestCase being run

Specified by:
getTestCase in interface TestCaseRunner
Specified by:
getTestCase in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>
Returns:
the TestCase being run

clear

protected void clear(SecurityTestRunContext runContext)
Overrides:
clear in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

runSetupScripts

protected void runSetupScripts(SecurityTestRunContext runContext)
                        throws java.lang.Exception
Overrides:
runSetupScripts in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>
Throws:
java.lang.Exception

runTearDownScripts

protected void runTearDownScripts(SecurityTestRunContext runContext)
                           throws java.lang.Exception
Overrides:
runTearDownScripts in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>
Throws:
java.lang.Exception

fillInTestRunnableListeners

protected void fillInTestRunnableListeners()
Overrides:
fillInTestRunnableListeners in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

failTestRunnableOnErrors

protected void failTestRunnableOnErrors(SecurityTestRunContext runContext)
Specified by:
failTestRunnableOnErrors in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

getTimeTaken

public long getTimeTaken()
Description copied from interface: TestRunner
Returns the time taken by this runner since its last start

Specified by:
getTimeTaken in interface TestRunner
Overrides:
getTimeTaken in class AbstractTestCaseRunner<SecurityTest,SecurityTestRunContext>

getFunctionalTimeTaken

public long getFunctionalTimeTaken()


Copyright © 2005-2011 eviware.com. All Rights Reserved.