Interface ITestRunManagers

All Known Implementing Classes:
TestRunManagers

public interface ITestRunManagers
  • Method Details

    • anyReasonTestClassShouldBeIgnored

      boolean anyReasonTestClassShouldBeIgnored() throws FrameworkException
      Throws:
      FrameworkException
    • getActiveManagers

      List<IManager> getActiveManagers()
    • provisionGenerate

      void provisionGenerate() throws FrameworkException
      Throws:
      FrameworkException
    • provisionBuild

      void provisionBuild() throws FrameworkException
      Throws:
      FrameworkException
    • testClassResult

      void testClassResult(@NotNull @NotNull Result finalResult, Throwable finalException)
      Tells 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.
    • endOfTestClass

      Result endOfTestClass(@NotNull @NotNull Result result, Throwable currentException) throws FrameworkException
      Throws:
      FrameworkException
    • endOfTestRun

      void endOfTestRun()
    • provisionStart

      void provisionStart() throws FrameworkException
      Throws:
      FrameworkException
    • shutdown

      void shutdown()
    • startOfTestClass

      void startOfTestClass() throws FrameworkException
      Throws:
      FrameworkException
    • provisionDiscard

      void provisionDiscard()
    • provisionStop

      void provisionStop()
    • anyReasonTestMethodShouldBeIgnored

      Result anyReasonTestMethodShouldBeIgnored(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException
      Throws:
      FrameworkException
    • fillAnnotatedFields

      void fillAnnotatedFields(Object testClassObject) throws FrameworkException
      Throws:
      FrameworkException
    • startOfTestMethod

      void startOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException
      Throws:
      FrameworkException
    • endOfTestMethod

      Result endOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod, @NotNull @NotNull Result currentResult, Throwable currentException) throws FrameworkException
      Throws:
      FrameworkException
    • setResultSoFar

      default void setResultSoFar(IResult newResult)
      The 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.
      Since:
      0.41.0
    • addTestMethodResult

      default void addTestMethodResult(ITestMethodResult newTestMethodResult)
      This 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.
      Since:
      0.43.0