Class TestSuiteLogCollection

java.lang.Object
de.qytera.qtaf.core.log.model.collection.TestSuiteLogCollection

public class TestSuiteLogCollection extends Object
Collection that holds all log messages from all test classes.
  • Method Details

    • getInstance

      public static TestSuiteLogCollection getInstance()
      Get instance of class.
      Returns:
      instance of class
    • getUuid

      public UUID getUuid()
      Get uuid.
      Returns:
      uuid
    • getLogDirectory

      public String getLogDirectory()
      Get logDirectory.
      Returns:
      logDirectory
    • resetLogDirectory

      public void resetLogDirectory()
      Reset the log directory.
    • buildLogDirectoryPath

      public TestSuiteLogCollection buildLogDirectoryPath()
      Build the log directory path.
      Returns:
      log directory path
    • getTestFeatureLogCollections

      public List<TestFeatureLogCollection> getTestFeatureLogCollections()
      Get test case log collections.
      Returns:
      log collections
    • clearCollection

      public void clearCollection()
      Clear test case log collections.
    • addTestClassLogCollection

      public TestSuiteLogCollection addTestClassLogCollection(TestFeatureLogCollection collection)
      Add new test case collection.
      Parameters:
      collection - Collection
      Returns:
      this
    • createFeatureIfNotExists

      public TestFeatureLogCollection createFeatureIfNotExists(String featureId, String featureName)
      Create a new log collection if it was not created before.
      Parameters:
      featureId - Hash code of the test scenario
      featureName - Scenario name / Class ID of the test
      Returns:
      new collection
    • setInstance

      public void setInstance(TestSuiteLogCollection instance)
      Set instance.
      Parameters:
      instance - Instance
    • getSuiteInfo

      public TestSuiteLogCollection.SuiteInfo getSuiteInfo()
      Get suiteInfo.
      Returns:
      suiteInfo
    • setSuiteInfo

      Set suiteInfo.
      Parameters:
      suiteInfo - SuiteInfo
      Returns:
      this
    • getSystemInfo

      public TestSuiteLogCollection.SystemInfo getSystemInfo()
      Get systemInfo.
      Returns:
      systemInfo
    • getProcessInfo

      public TestSuiteLogCollection.ProcessInfo getProcessInfo()
      Get processInfo.
      Returns:
      processInfo
    • getThreadInfo

      public TestSuiteLogCollection.ThreadInfo getThreadInfo()
      Get threadInfo.
      Returns:
      threadInfo
    • getOsName

      public String getOsName()
      Get osName.
      Returns:
      osName
    • setOsName

      public TestSuiteLogCollection setOsName(String osName)
      Set osName.
      Parameters:
      osName - OsName
      Returns:
      this
    • getDriverName

      public String getDriverName()
      Get driverName.
      Returns:
      driverName
    • setDriverName

      public TestSuiteLogCollection setDriverName(String driverName)
      Set driverName.
      Parameters:
      driverName - DriverName
      Returns:
      this
    • getStart

      public Date getStart()
      Get start.
      Returns:
      start
    • setStart

      public TestSuiteLogCollection setStart(Date start)
      Set start.
      Parameters:
      start - Start
      Returns:
      this
    • getEnd

      public Date getEnd()
      Get end.
      Returns:
      end
    • setEnd

      public TestSuiteLogCollection setEnd(Date end)
      Set end.
      Parameters:
      end - End
      Returns:
      this
    • getDuration

      public long getDuration()
      Get duration.
      Returns:
      duration
    • setDuration

      public TestSuiteLogCollection setDuration(long duration)
      Set duration.
      Parameters:
      duration - Duration
      Returns:
      this
    • countFeatureLogs

      public int countFeatureLogs()
      Count feature logs.
      Returns:
      number of feature logs
    • getTags

      public Map<String,String> getTags()
      Get tags.
      Returns:
      tags
    • getTag

      public String getTag(String key)
      Get tag.
      Parameters:
      key - Tag key
      Returns:
      Tag value
    • addTag

      public void addTag(String key, String value)
      Add tag.
      Parameters:
      key - Tag key
      value - Tag value
    • removeTag

      public void removeTag(String key)
      Remove tag.
      Parameters:
      key - tag key
    • clear

      public void clear()
      Clear data.