Package com.qcefast.reports
Class TestFileLog
- java.lang.Object
-
- com.qcefast.reports.TestFileLog
-
public class TestFileLog extends java.lang.Object
This class is used to keep track of aTestScript
and its results in order to write the final reports. Currently reports are written using theHTMLReport
class- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description TestFileLog(TestScript testScript)
Instantiates a new TestFileLog using aTestScript
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
Gets the description of theTestScript
this log is trackingjava.lang.String
getDetailedStepPath()
The filepath to the detailed html reportsjava.lang.String
getEvidencePath()
The folder that the test evidence for theTestScript
that thisTestFileLog
tracks residesStatus
getExecutionStatus()
Gets the executionStatus
for theTestScript
this log is trackingFastXml
getFastXml()
java.lang.String
getFolderTs()
Gets the timestamp of when the results folder for the reports was createdjava.util.List<FunctionalStepLog>
getFunctionalStepLogs()
TheFunctionalStepLog
's that are a part of thisTestFileLog
java.lang.String
getRunName()
Gets the runNamejava.lang.String
getScriptName()
Gets the name of theTestScript
this log is trackingint
getScriptNumber()
Returns the testScriptNumber of theTestScript
this log is trackingTestScript
getTestScript()
Gets theTestScript
that thisTestFileLog
is trackingjava.lang.String
getTestSetName()
Gets the testSetNamevoid
setDescription(java.lang.String description)
Setsdescription
void
setDetailedStepPath(java.lang.String detailedStepPath)
SetsdetailedStepPath
void
setEvidencePath(java.lang.String evidencePath)
SetsevidencePath
void
setExecutionStatus(Status executionStatus)
SetsexecutionStatus
void
setFastXml(FastXml fastXml)
SetsfastXml
void
setFolderTs(java.lang.String folderTs)
SetsfolderTs
void
setFunctionalStepLogs(java.util.List<FunctionalStepLog> functionalStepLogs)
SetsfunctionalStepLogs
void
setRunName(java.lang.String runName)
SetsrunName
void
setScriptName(java.lang.String scriptName)
SetsscriptName
void
setScriptNumber(int scriptNumber)
SetsscriptNumber
void
setTestScript(TestScript testScript)
SetstestScript
void
setTestSetName(java.lang.String testSetName)
SetstestSetName
-
-
-
Constructor Detail
-
TestFileLog
public TestFileLog(TestScript testScript)
Instantiates a new TestFileLog using aTestScript
- Parameters:
testScript
- ATestScript
- Since:
- 1.0.0
-
-
Method Detail
-
getScriptNumber
public int getScriptNumber()
Returns the testScriptNumber of theTestScript
this log is tracking- Returns:
- The testScriptNumber
- Since:
- 1.0.0
-
setScriptNumber
public void setScriptNumber(int scriptNumber)
SetsscriptNumber
- Parameters:
scriptNumber
- A testScriptNumber- Since:
- 1.0.0
-
getScriptName
public java.lang.String getScriptName()
Gets the name of theTestScript
this log is tracking- Returns:
- The testScript name
- Since:
- 1.0.0
-
setScriptName
public void setScriptName(java.lang.String scriptName)
SetsscriptName
- 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)
SetstestSetName
- Parameters:
testSetName
- a TestSetName- Since:
- 1.0.0
-
getDescription
public java.lang.String getDescription()
Gets the description of theTestScript
this log is tracking- Returns:
- A description
- Since:
- 1.0.0
-
setDescription
public void setDescription(java.lang.String description)
Setsdescription
- Parameters:
description
- a description- Since:
- 1.0.0
-
getExecutionStatus
public Status getExecutionStatus()
Gets the executionStatus
for theTestScript
this log is tracking- Returns:
- an execution status
- Since:
- 1.0.0
-
setExecutionStatus
public void setExecutionStatus(Status executionStatus)
SetsexecutionStatus
- Parameters:
executionStatus
- The execution status of theTestScript
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)
SetsdetailedStepPath
- 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 theTestScript
that thisTestFileLog
tracks resides- Returns:
- The evidence path
- Since:
- 1.0.0
-
setEvidencePath
public void setEvidencePath(java.lang.String evidencePath)
SetsevidencePath
- 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)
SetsrunName
- Parameters:
runName
- Sets the run name- Since:
- 1.0.0
-
getFunctionalStepLogs
public java.util.List<FunctionalStepLog> getFunctionalStepLogs()
TheFunctionalStepLog
's that are a part of thisTestFileLog
- Returns:
- A list of
FunctionalStepLog
- Since:
- 1.0.0
-
setFunctionalStepLogs
public void setFunctionalStepLogs(java.util.List<FunctionalStepLog> functionalStepLogs)
SetsfunctionalStepLogs
- Parameters:
functionalStepLogs
- A list ofFunctionalStepLog
- 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)
SetsfolderTs
- Parameters:
folderTs
- A string timestamp- Since:
- 1.0.0
-
setFastXml
public void setFastXml(FastXml fastXml)
SetsfastXml
- Parameters:
fastXml
- AFastXml
- Since:
- 1.0.0
-
getTestScript
public TestScript getTestScript()
Gets theTestScript
that thisTestFileLog
is tracking- Returns:
- A
TestScript
- Since:
- 1.0.0
-
setTestScript
public void setTestScript(TestScript testScript)
SetstestScript
- Parameters:
testScript
- ATestScript
- Since:
- 1.0.0
-
-