Package de.qytera.qtaf.core.context
Interface IQtafTestContext
- All Known Implementing Classes:
QtafCucumberHooks,QtafTestNGContext,QtafTestNGCucumberContext
public interface IQtafTestContext
Interface that all test context classes have to implement.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd logger to all instance fields.Get current log collection.Initialize test context.voidDestroys the current browser and starts a new one.setLogCollection(TestScenarioLogCollection collection) Set the current log collection.
-
Method Details
-
getLogCollection
TestScenarioLogCollection getLogCollection()Get current log collection.- Returns:
- log collection
-
setLogCollection
Set the current log collection.- Parameters:
collection- log collection- Returns:
- this
-
addLoggerToFieldsRecursively
void addLoggerToFieldsRecursively()Add logger to all instance fields. -
restartDriver
void restartDriver()Destroys the current browser and starts a new one. -
initialize
IQtafTestContext initialize()Initialize test context.- Returns:
- this
-