Package dev.galasa.framework
Class TestRunManagers
java.lang.Object
dev.galasa.framework.TestRunManagers
- All Implemented Interfaces:
ITestRunManagers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTestMethodResult(ITestMethodResult newTestMethodResult) This call is used to add to the list of executed method's results which is available to the managers.booleananyReasonTestMethodShouldBeIgnored(@NotNull GalasaMethod galasaMethod) endOfTestClass(@NotNull Result result, Throwable currentException) endOfTestMethod(@NotNull GalasaMethod galasaMethod, @NotNull Result currentResult, Throwable currentException) voidvoidfillAnnotatedFields(Object testClassObject) voidvoidvoidvoidvoidvoidsetResultSoFar(IResult newResult) The result has changed, it could change again.voidshutdown()voidvoidstartOfTestMethod(@NotNull GalasaMethod galasaMethod) voidtestClassResult(@NotNull Result finalResult, Throwable finalException) Tells the managers about the final end-result of the test.
-
Constructor Details
-
TestRunManagers
- Throws:
FrameworkException
-
-
Method Details
-
anyReasonTestClassShouldBeIgnored
- Specified by:
anyReasonTestClassShouldBeIgnoredin interfaceITestRunManagers- Throws:
FrameworkException
-
provisionGenerate
- Specified by:
provisionGeneratein interfaceITestRunManagers- Throws:
FrameworkException
-
provisionBuild
- Specified by:
provisionBuildin interfaceITestRunManagers- Throws:
FrameworkException
-
provisionStart
- Specified by:
provisionStartin interfaceITestRunManagers- Throws:
FrameworkException
-
provisionStop
public void provisionStop()- Specified by:
provisionStopin interfaceITestRunManagers
-
provisionDiscard
public void provisionDiscard()- Specified by:
provisionDiscardin interfaceITestRunManagers
-
startOfTestClass
- Specified by:
startOfTestClassin interfaceITestRunManagers- Throws:
FrameworkException
-
anyReasonTestMethodShouldBeIgnored
public Result anyReasonTestMethodShouldBeIgnored(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException - Specified by:
anyReasonTestMethodShouldBeIgnoredin interfaceITestRunManagers- Throws:
FrameworkException
-
fillAnnotatedFields
- Specified by:
fillAnnotatedFieldsin interfaceITestRunManagers- Throws:
FrameworkException
-
startOfTestMethod
public void startOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException - Specified by:
startOfTestMethodin interfaceITestRunManagers- Throws:
FrameworkException
-
endOfTestMethod
public Result endOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod, @NotNull @NotNull Result currentResult, Throwable currentException) throws FrameworkException - Specified by:
endOfTestMethodin interfaceITestRunManagers- Throws:
FrameworkException
-
endOfTestClass
public Result endOfTestClass(@NotNull @NotNull Result result, Throwable currentException) throws FrameworkException - Specified by:
endOfTestClassin interfaceITestRunManagers- Throws:
FrameworkException
-
testClassResult
Description copied from interface:ITestRunManagersTells the managers about the final end-result of the test. All other methods on the test have been called that are going to be called. This method is called only once, after the @AfterClass methods.- Specified by:
testClassResultin interfaceITestRunManagers
-
endOfTestRun
public void endOfTestRun()- Specified by:
endOfTestRunin interfaceITestRunManagers
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceITestRunManagers
-
getActiveManagers
- Specified by:
getActiveManagersin interfaceITestRunManagers
-
setResultSoFar
Description copied from interface:ITestRunManagersThe result has changed, it could change again. It could be set the the same thing multiple times. This call is used to propogate the very latest overall test result state down to the managers, so they know the test state. This can be used by the @TestResultProvider annotation for example, to maintain a 'current test result' which tests themselves, and @AfterClass methods can use.- Specified by:
setResultSoFarin interfaceITestRunManagers
-
addTestMethodResult
Description copied from interface:ITestRunManagersThis call is used to add to the list of executed method's results which is available to the managers. This can be used by the @TestResultProvider annotation to retrieve each executed method's name, passed or failed state, and thrown exception if applicable, which tests themselves and @AfterClass methods can use.- Specified by:
addTestMethodResultin interfaceITestRunManagers
-