Class TestFileLog


  • public class TestFileLog
    extends java.lang.Object
    This class is used to keep track of a TestScript and its results in order to write the final reports. Currently reports are written using the HTMLReport class
    Since:
    1.0.0
    • Constructor Detail

      • TestFileLog

        public TestFileLog​(TestScript testScript)
        Instantiates a new TestFileLog using a TestScript
        Parameters:
        testScript - A TestScript
        Since:
        1.0.0
    • Method Detail

      • getScriptNumber

        public int getScriptNumber()
        Returns the testScriptNumber of the TestScript this log is tracking
        Returns:
        The testScriptNumber
        Since:
        1.0.0
      • setScriptNumber

        public void setScriptNumber​(int scriptNumber)
        Sets scriptNumber
        Parameters:
        scriptNumber - A testScriptNumber
        Since:
        1.0.0
      • getScriptName

        public java.lang.String getScriptName()
        Gets the name of the TestScript this log is tracking
        Returns:
        The testScript name
        Since:
        1.0.0
      • setScriptName

        public void setScriptName​(java.lang.String scriptName)
        Sets scriptName
        Parameters:
        scriptName - A testScriptName
        Since:
        1.0.0
      • getTestSetName

        public java.lang.String getTestSetName()
        Gets the testSetName
        Returns:
        A testSetName
        Since:
        1.0.0
      • setTestSetName

        public void setTestSetName​(java.lang.String testSetName)
        Sets testSetName
        Parameters:
        testSetName - a TestSetName
        Since:
        1.0.0
      • getDescription

        public java.lang.String getDescription()
        Gets the description of the TestScript this log is tracking
        Returns:
        A description
        Since:
        1.0.0
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets description
        Parameters:
        description - a description
        Since:
        1.0.0
      • getExecutionStatus

        public Status getExecutionStatus()
        Gets the execution Status for the TestScript this log is tracking
        Returns:
        an execution status
        Since:
        1.0.0
      • setExecutionStatus

        public void setExecutionStatus​(Status executionStatus)
        Sets executionStatus
        Parameters:
        executionStatus - The execution status of the TestScript this log is tracking
        Since:
        1.0.0
      • getDetailedStepPath

        public java.lang.String getDetailedStepPath()
        The filepath to the detailed html reports
        Returns:
        detailed step path
        Since:
        1.0.0
      • setDetailedStepPath

        public void setDetailedStepPath​(java.lang.String detailedStepPath)
        Sets detailedStepPath
        Parameters:
        detailedStepPath - The filepath to the detailed html reports
        Since:
        1.0.0
      • getEvidencePath

        public java.lang.String getEvidencePath()
        The folder that the test evidence for the TestScript that this TestFileLog tracks resides
        Returns:
        The evidence path
        Since:
        1.0.0
      • setEvidencePath

        public void setEvidencePath​(java.lang.String evidencePath)
        Sets evidencePath
        Parameters:
        evidencePath - A path to test evidence
        Since:
        1.0.0
      • getRunName

        public java.lang.String getRunName()
        Gets the runName
        Returns:
        runName
        Since:
        1.0.0
      • setRunName

        public void setRunName​(java.lang.String runName)
        Sets runName
        Parameters:
        runName - Sets the run name
        Since:
        1.0.0
      • setFunctionalStepLogs

        public void setFunctionalStepLogs​(java.util.List<FunctionalStepLog> functionalStepLogs)
        Sets functionalStepLogs
        Parameters:
        functionalStepLogs - A list of FunctionalStepLog
        Since:
        1.0.0
      • getFolderTs

        public java.lang.String getFolderTs()
        Gets the timestamp of when the results folder for the reports was created
        Returns:
        timestamp as a string
        Since:
        1.0.0
      • setFolderTs

        public void setFolderTs​(java.lang.String folderTs)
        Sets folderTs
        Parameters:
        folderTs - A string timestamp
        Since:
        1.0.0
      • setFastXml

        public void setFastXml​(FastXml fastXml)
        Sets fastXml
        Parameters:
        fastXml - A FastXml
        Since:
        1.0.0
      • setTestScript

        public void setTestScript​(TestScript testScript)
        Sets testScript
        Parameters:
        testScript - A TestScript
        Since:
        1.0.0