Class TPTTestCase
- java.lang.Object
-
- com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase
-
public class TPTTestCase extends java.lang.Object
This class is for the failed test. Objects from this class will be created when parsing the "test_summary.xml". We get a list of failed tests (inconclusive, error or failed).- Author:
- FInfantino, PikeTec GmbH
-
-
Constructor Summary
Constructors Constructor Description TPTTestCase()
Creates a new TPTTestCase data container
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExecutionConfiguration()
java.lang.String
getExecutionDate()
int
getFailedSince()
java.lang.String
getFileName()
java.lang.String
getId()
java.lang.String
getJenkinsConfigId()
java.lang.String
getPlatform()
java.lang.String
getReportFile()
In the test_summary.xml file are the relative paths to the report listed for each test case.java.lang.String
getResult()
java.lang.String
getTestCaseName()
void
setExecutionConfiguration(java.lang.String executionConfiguration)
Set the name of the executed execution configurationvoid
setExecutionDate(java.lang.String executionDate)
Set the date of the TPT test executionvoid
setFailedSince(int failedSince)
Set the number of builds this test failedvoid
setFileName(java.lang.String fileName)
Set the name of the TPT filevoid
setId(java.lang.String id)
Set the test case idvoid
setJenkinsConfigId(java.lang.String jenkinsConfigId)
Set the unique id of the jenkins configuartion that test case ran on.void
setPlatform(java.lang.String platform)
Set the name of the executed platformvoid
setReportFile(java.lang.String reportFile)
Set the path to the report file In the test_summary.xml file are the relative paths to the report listed for each test case.void
setResult(java.lang.String result)
Set the result represented as a Stringvoid
setTestCaseName(java.lang.String testCaseName)
Set the name of the test case
-
-
-
Method Detail
-
getResult
public java.lang.String getResult()
- Returns:
- The result represented by as a String
-
setResult
public void setResult(java.lang.String result)
Set the result represented as a String- Parameters:
result
- the result represented as a String
-
getId
public java.lang.String getId()
- Returns:
- The test case id
-
setId
public void setId(java.lang.String id)
Set the test case id- Parameters:
id
- The test case id
-
getReportFile
public java.lang.String getReportFile()
In the test_summary.xml file are the relative paths to the report listed for each test case.- Returns:
- The path to the report file
-
setReportFile
public void setReportFile(java.lang.String reportFile)
Set the path to the report file In the test_summary.xml file are the relative paths to the report listed for each test case.- Parameters:
reportFile
- The path to the report file
-
getExecutionDate
public java.lang.String getExecutionDate()
- Returns:
- The date of the TPT test execution
-
setExecutionDate
public void setExecutionDate(java.lang.String executionDate)
Set the date of the TPT test execution- Parameters:
executionDate
- The date of the TPT test execution
-
getFileName
public java.lang.String getFileName()
- Returns:
- The name of the TPT file
-
setFileName
public void setFileName(java.lang.String fileName)
Set the name of the TPT file- Parameters:
fileName
- The name of the TPT file
-
getFailedSince
public int getFailedSince()
- Returns:
- The number of builds this test failed
-
setFailedSince
public void setFailedSince(int failedSince)
Set the number of builds this test failed- Parameters:
failedSince
- The number of builds this test failed
-
getExecutionConfiguration
public java.lang.String getExecutionConfiguration()
- Returns:
- The name of the executed execution configuration
-
setExecutionConfiguration
public void setExecutionConfiguration(java.lang.String executionConfiguration)
Set the name of the executed execution configuration- Parameters:
executionConfiguration
- The name of the executed execution configuration
-
getTestCaseName
public java.lang.String getTestCaseName()
- Returns:
- The name of the test case
-
setTestCaseName
public void setTestCaseName(java.lang.String testCaseName)
Set the name of the test case- Parameters:
testCaseName
- The name of the test case
-
getPlatform
public java.lang.String getPlatform()
- Returns:
- The name of the executed platform
-
setPlatform
public void setPlatform(java.lang.String platform)
Set the name of the executed platform- Parameters:
platform
- The name of the executed platform
-
getJenkinsConfigId
public java.lang.String getJenkinsConfigId()
- Returns:
- The name of the executed platform
-
setJenkinsConfigId
public void setJenkinsConfigId(java.lang.String jenkinsConfigId)
Set the unique id of the jenkins configuartion that test case ran on.- Parameters:
jenkinsConfigId
- The unique id
-
-