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
    • 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 code
      methodId - test method
      testId - 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