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 fieldscreateAndSetNewLogCollection(int hashCode, String methodId, String testId) Create a new method log collection and set it as the current log collectionGet current log collectionInitialize test contextvoidDestroys the current browser and starts a new onesetLogCollection(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
-
createAndSetNewLogCollection
TestScenarioLogCollection createAndSetNewLogCollection(int hashCode, String methodId, String testId) Create a new method log collection and set it as the current log collection- Parameters:
hashCode- Unique test hash codemethodId- test methodtestId- test class- Returns:
- collection
-
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
-