Class QtafEvents

java.lang.Object
de.qytera.qtaf.core.events.QtafEvents

public class QtafEvents extends Object
This class manages events emitted by the Qtaf framework.
  • Field Details

    • eventListenersInitialized

      public static final rx.subjects.BehaviorSubject<Void> eventListenersInitialized
      Subject that emits an event when the event listeners are initialized.
    • configurationLoaded

      public static final rx.subjects.BehaviorSubject<ConfigMap> configurationLoaded
      Subject that emits an event when the configuration is loaded.
    • frameworkInitialized

      public static final rx.subjects.BehaviorSubject<Void> frameworkInitialized
      Subject that emits an event when the framework is initialized.
    • testClassesLoaded

      public static final rx.subjects.BehaviorSubject<Set<Class<?>>> testClassesLoaded
      This event is dispatched in the TestNG factory class when the test classes are loaded.
    • testClassInstancesLoaded

      public static final rx.subjects.BehaviorSubject<List<Object>> testClassInstancesLoaded
      This event is dispatched in the TestNG factory class when the test classes are instantiated.
    • afterDriverInitialization

      public static final rx.subjects.BehaviorSubject<AbstractDriver> afterDriverInitialization
      Subject that emits an event when the driver is initialized. It transports the driver information object.
    • startTesting

      public static final rx.subjects.PublishSubject<IQtafTestingContext> startTesting
      Subject that emits events when all tests are finished.
    • finishedTesting

      public static final rx.subjects.PublishSubject<IQtafTestingContext> finishedTesting
      Subject that emits events when all tests are finished.
    • beforeTestSuite

      public static final rx.subjects.PublishSubject<BeforeSuiteExecutionInfo> beforeTestSuite
      Subject that emits events before a method with the annotation @BeforeSuite is executed.
    • beforeTestSuiteSuccess

      public static final rx.subjects.PublishSubject<BeforeSuiteExecutionInfo> beforeTestSuiteSuccess
      Subject that emits events whenever a method with the annotation @BeforeSuite is executed successfully.
    • beforeTestSuiteFailure

      public static final rx.subjects.PublishSubject<BeforeSuiteExecutionInfo> beforeTestSuiteFailure
      Subject that emits events whenever a method with the annotation @BeforeSuite is executed and throws an error.
    • beforeTestFeature

      public static final rx.subjects.PublishSubject<BeforeTestExecutionInfo> beforeTestFeature
      Subject that emits events before a method with the annotation @BeforeTest is executed.
    • beforeTestFeatureSuccess

      public static final rx.subjects.PublishSubject<BeforeTestExecutionInfo> beforeTestFeatureSuccess
      Subject that emits events whenever a method with the annotation @BeforeTest is executed successfully.
    • beforeTestFeatureFailure

      public static final rx.subjects.PublishSubject<BeforeTestExecutionInfo> beforeTestFeatureFailure
      Subject that emits events whenever a method with the annotation @BeforeTest is executed and throws an error.
    • afterTestFeature

      public static final rx.subjects.PublishSubject<AfterTestExecutionInfo> afterTestFeature
      Subject that emits events before a method with the annotation @AfterTest is executed.
    • afterTestFeatureSuccess

      public static final rx.subjects.PublishSubject<AfterTestExecutionInfo> afterTestFeatureSuccess
      Subject that emits events before a method with the annotation @AfterTest is executed successfully.
    • afterTestFeatureFailure

      public static final rx.subjects.PublishSubject<AfterTestExecutionInfo> afterTestFeatureFailure
      Subject that emits events after a method with the annotation @AfterTest is executed and throws an error.
    • afterTestSuite

      public static final rx.subjects.PublishSubject<AfterSuiteExecutionInfo> afterTestSuite
      Subject that emits events before a method with the annotation @AfterSuite is executed.
    • afterTestSuiteSuccess

      public static final rx.subjects.PublishSubject<AfterSuiteExecutionInfo> afterTestSuiteSuccess
      Subject that emits events whenever a method with the annotation @AfterSuite is executed successfully.
    • afterTestSuiteFailure

      public static final rx.subjects.PublishSubject<AfterSuiteExecutionInfo> afterTestSuiteFailure
      Subject that emits events whenever a method with the annotation @AfterSuite is executed and throws an error.
    • beforeTestScenario

      public static final rx.subjects.PublishSubject<BeforeMethodExecutionInfo> beforeTestScenario
      Subject that emits events before a method with the annotation @BeforeMethod is executed.
    • beforeTestScenarioSuccess

      public static final rx.subjects.PublishSubject<BeforeMethodExecutionInfo> beforeTestScenarioSuccess
      Subject that emits events whenever a method with the annotation @BeforeMethod is executed successfully.
    • beforeTestScenarioFailure

      public static final rx.subjects.PublishSubject<BeforeMethodExecutionInfo> beforeTestScenarioFailure
      Subject that emits events whenever a method with the annotation @BeforeMethod is executed and throws an error.
    • afterTestScenario

      public static final rx.subjects.PublishSubject<AfterMethodExecutionInfo> afterTestScenario
      Subject that emits events before a method with the annotation @AfterMethod is executed.
    • afterTestScenarioSuccess

      public static final rx.subjects.PublishSubject<AfterMethodExecutionInfo> afterTestScenarioSuccess
      Subject that emits events whenever a method with the annotation @AfterMethod is executed successfully.
    • afterTestScenarioFailure

      public static final rx.subjects.PublishSubject<AfterMethodExecutionInfo> afterTestScenarioFailure
      Subject that emits events whenever a method with the annotation @AfterMethod is executed and throws an error.
    • testStarted

      public static final rx.subjects.PublishSubject<IQtafTestEventPayload> testStarted
      Subject that emits events when all tests are finished.
    • testSuccess

      public static final rx.subjects.PublishSubject<IQtafTestEventPayload> testSuccess
      Subject that emits an event when a test finishes successfully.
    • testFailure

      public static final rx.subjects.PublishSubject<IQtafTestEventPayload> testFailure
      Subject that emits an event when a test finishes with error.
    • testSkipped

      public static final rx.subjects.PublishSubject<IQtafTestEventPayload> testSkipped
      Subject that emits an event when a test is skipped.
    • testFailedButWithinSuccessPercentage

      public static final rx.subjects.PublishSubject<IQtafTestEventPayload> testFailedButWithinSuccessPercentage
      Subject that emits an event when a test is skipped.
    • beforeStepExecution

      public static final rx.subjects.PublishSubject<StepExecutionInfo> beforeStepExecution
      Subject that emits an event before a step method is executed and transfers information about the executed step.
    • stepExecutionSuccess

      public static final rx.subjects.PublishSubject<StepExecutionInfo> stepExecutionSuccess
      Subject that emits an event when a step method is executed successfully and transfers information about the executed step.
    • stepExecutionFailure

      public static final rx.subjects.PublishSubject<StepExecutionInfo> stepExecutionFailure
      Subject that emits an event when a step method fails and transfers information about the executed step.
    • stepLog

      public static final rx.subjects.PublishSubject<IQtafTestStepEventPayload> stepLog
      Subject that emits an event when a new LogMessage object is created.
    • screenshotTaken

      public static final rx.subjects.PublishSubject<File> screenshotTaken
      Subject that emits an event when a screenshot is taken.
    • beforeLogsPersisted

      public static final rx.subjects.PublishSubject<TestSuiteLogCollection> beforeLogsPersisted
      Subject that emits an event before the logs are persisted to the disk. It transports the log collection.
    • logsPersisted

      public static final rx.subjects.PublishSubject<String> logsPersisted
      Subject that emits an event when the logs were persisted successfully to the disk. It transports the file path where the log file is stored.