Interface IQtafTestContext

All Known Implementing Classes:
QtafCucumberHooks, QtafTestNGContext, QtafTestNGCucumberContext

public interface IQtafTestContext
Interface that all test context classes have to implement.
  • Method Details

    • getLogCollection

      TestScenarioLogCollection getLogCollection()
      Get current log collection.
      Returns:
      log collection
    • setLogCollection

      IQtafTestContext setLogCollection(TestScenarioLogCollection collection)
      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