Package de.qytera.qtaf.core.events
Class QtafEvents
java.lang.Object
de.qytera.qtaf.core.events.QtafEvents
This class manages events emitted by the Qtaf framework.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final rx.subjects.BehaviorSubject<AbstractDriver>Subject that emits an event when the driver is initialized.static final rx.subjects.PublishSubject<AfterTestExecutionInfo>Subject that emits events before a method with the annotation @AfterTest is executed.static final rx.subjects.PublishSubject<AfterTestExecutionInfo>Subject that emits events after a method with the annotation @AfterTest is executed and throws an error.static final rx.subjects.PublishSubject<AfterTestExecutionInfo>Subject that emits events before a method with the annotation @AfterTest is executed successfully.static final rx.subjects.PublishSubject<AfterMethodExecutionInfo>Subject that emits events before a method with the annotation @AfterMethod is executed.static final rx.subjects.PublishSubject<AfterMethodExecutionInfo>Subject that emits events whenever a method with the annotation @AfterMethod is executed and throws an error.static final rx.subjects.PublishSubject<AfterMethodExecutionInfo>Subject that emits events whenever a method with the annotation @AfterMethod is executed successfully.static final rx.subjects.PublishSubject<AfterSuiteExecutionInfo>Subject that emits events before a method with the annotation @AfterSuite is executed.static final rx.subjects.PublishSubject<AfterSuiteExecutionInfo>Subject that emits events whenever a method with the annotation @AfterSuite is executed and throws an error.static final rx.subjects.PublishSubject<AfterSuiteExecutionInfo>Subject that emits events whenever a method with the annotation @AfterSuite is executed successfully.static final rx.subjects.PublishSubject<TestSuiteLogCollection>Subject that emits an event before the logs are persisted to the disk.static final rx.subjects.PublishSubject<StepExecutionInfo>Subject that emits an event before a step method is executed and transfers information about the executed step.static final rx.subjects.PublishSubject<BeforeTestExecutionInfo>Subject that emits events before a method with the annotation @BeforeTest is executed.static final rx.subjects.PublishSubject<BeforeTestExecutionInfo>Subject that emits events whenever a method with the annotation @BeforeTest is executed and throws an error.static final rx.subjects.PublishSubject<BeforeTestExecutionInfo>Subject that emits events whenever a method with the annotation @BeforeTest is executed successfully.static final rx.subjects.PublishSubject<BeforeMethodExecutionInfo>Subject that emits events before a method with the annotation @BeforeMethod is executed.static final rx.subjects.PublishSubject<BeforeMethodExecutionInfo>Subject that emits events whenever a method with the annotation @BeforeMethod is executed and throws an error.static final rx.subjects.PublishSubject<BeforeMethodExecutionInfo>Subject that emits events whenever a method with the annotation @BeforeMethod is executed successfully.static final rx.subjects.PublishSubject<BeforeSuiteExecutionInfo>Subject that emits events before a method with the annotation @BeforeSuite is executed.static final rx.subjects.PublishSubject<BeforeSuiteExecutionInfo>Subject that emits events whenever a method with the annotation @BeforeSuite is executed and throws an error.static final rx.subjects.PublishSubject<BeforeSuiteExecutionInfo>Subject that emits events whenever a method with the annotation @BeforeSuite is executed successfully.static final rx.subjects.BehaviorSubject<ConfigMap>Subject that emits an event when the configuration is loaded.static final rx.subjects.BehaviorSubject<Void>Subject that emits an event when the event listeners are initialized.static final rx.subjects.PublishSubject<IQtafTestingContext>Subject that emits events when all tests are finished.static final rx.subjects.BehaviorSubject<Void>Subject that emits an event when the framework is initialized.static final rx.subjects.PublishSubject<String>Subject that emits an event when the logs were persisted successfully to the disk.static final rx.subjects.PublishSubject<File>Subject that emits an event when a screenshot is taken.static final rx.subjects.PublishSubject<IQtafTestingContext>Subject that emits events when all tests are finished.static final rx.subjects.PublishSubject<StepExecutionInfo>Subject that emits an event when a step method fails and transfers information about the executed step.static final rx.subjects.PublishSubject<StepExecutionInfo>Subject that emits an event when a step method is executed successfully and transfers information about the executed step.static final rx.subjects.PublishSubject<IQtafTestStepEventPayload>Subject that emits an event when a new LogMessage object is created.This event is dispatched in the TestNG factory class when the test classes are loaded.This event is dispatched in the TestNG factory class when the test classes are instantiated.static final rx.subjects.PublishSubject<IQtafTestEventPayload>Subject that emits an event when a test is skipped.static final rx.subjects.PublishSubject<IQtafTestEventPayload>Subject that emits an event when a test finishes with error.static final rx.subjects.PublishSubject<IQtafTestEventPayload>Subject that emits an event when a test is skipped.static final rx.subjects.PublishSubject<IQtafTestEventPayload>Subject that emits events when all tests are finished.static final rx.subjects.PublishSubject<IQtafTestEventPayload>Subject that emits an event when a test finishes successfully. -
Method Summary
-
Field Details
-
eventListenersInitialized
Subject that emits an event when the event listeners are initialized. -
configurationLoaded
Subject that emits an event when the configuration is loaded. -
frameworkInitialized
Subject that emits an event when the framework is initialized. -
testClassesLoaded
This event is dispatched in the TestNG factory class when the test classes are loaded. -
testClassInstancesLoaded
This event is dispatched in the TestNG factory class when the test classes are instantiated. -
afterDriverInitialization
Subject that emits an event when the driver is initialized. It transports the driver information object. -
startTesting
Subject that emits events when all tests are finished. -
finishedTesting
Subject that emits events when all tests are finished. -
beforeTestSuite
Subject that emits events before a method with the annotation @BeforeSuite is executed. -
beforeTestSuiteSuccess
Subject that emits events whenever a method with the annotation @BeforeSuite is executed successfully. -
beforeTestSuiteFailure
Subject that emits events whenever a method with the annotation @BeforeSuite is executed and throws an error. -
beforeTestFeature
Subject that emits events before a method with the annotation @BeforeTest is executed. -
beforeTestFeatureSuccess
Subject that emits events whenever a method with the annotation @BeforeTest is executed successfully. -
beforeTestFeatureFailure
Subject that emits events whenever a method with the annotation @BeforeTest is executed and throws an error. -
afterTestFeature
Subject that emits events before a method with the annotation @AfterTest is executed. -
afterTestFeatureSuccess
Subject that emits events before a method with the annotation @AfterTest is executed successfully. -
afterTestFeatureFailure
Subject that emits events after a method with the annotation @AfterTest is executed and throws an error. -
afterTestSuite
Subject that emits events before a method with the annotation @AfterSuite is executed. -
afterTestSuiteSuccess
Subject that emits events whenever a method with the annotation @AfterSuite is executed successfully. -
afterTestSuiteFailure
Subject that emits events whenever a method with the annotation @AfterSuite is executed and throws an error. -
beforeTestScenario
Subject that emits events before a method with the annotation @BeforeMethod is executed. -
beforeTestScenarioSuccess
Subject that emits events whenever a method with the annotation @BeforeMethod is executed successfully. -
beforeTestScenarioFailure
Subject that emits events whenever a method with the annotation @BeforeMethod is executed and throws an error. -
afterTestScenario
Subject that emits events before a method with the annotation @AfterMethod is executed. -
afterTestScenarioSuccess
Subject that emits events whenever a method with the annotation @AfterMethod is executed successfully. -
afterTestScenarioFailure
Subject that emits events whenever a method with the annotation @AfterMethod is executed and throws an error. -
testStarted
Subject that emits events when all tests are finished. -
testSuccess
Subject that emits an event when a test finishes successfully. -
testFailure
Subject that emits an event when a test finishes with error. -
testSkipped
Subject that emits an event when a test is skipped. -
testFailedButWithinSuccessPercentage
public static final rx.subjects.PublishSubject<IQtafTestEventPayload> testFailedButWithinSuccessPercentageSubject that emits an event when a test is skipped. -
beforeStepExecution
Subject that emits an event before a step method is executed and transfers information about the executed step. -
stepExecutionSuccess
Subject that emits an event when a step method is executed successfully and transfers information about the executed step. -
stepExecutionFailure
Subject that emits an event when a step method fails and transfers information about the executed step. -
stepLog
Subject that emits an event when a new LogMessage object is created. -
screenshotTaken
Subject that emits an event when a screenshot is taken. -
beforeLogsPersisted
Subject that emits an event before the logs are persisted to the disk. It transports the log collection. -
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.
-