Class TPTTestCase
- java.lang.Object
-
- hudson.model.InvisibleAction
-
- com.piketec.jenkins.plugins.tpt.publisher.InvisibleActionHostingHtml
-
- com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase
-
- All Implemented Interfaces:
Action
,ModelObject
public class TPTTestCase extends InvisibleActionHostingHtml
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 void
doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
String
getExecutionConfiguration()
String
getExecutionDate()
int
getFailedSince()
String
getFileName()
String
getId()
String
getPlatform()
String
getReportFile()
In the test_summary.xml file are the relative paths to the report listed for each test case.String
getResult()
String
getTestCaseName()
void
setExecutionConfiguration(String executionConfiguration)
Set the name of the executed execution configurationvoid
setExecutionDate(String executionDate)
Set the date of the TPT test executionvoid
setFailedSince(int failedSince)
Set the number of builds this test failedvoid
setFileName(String fileName)
Set the name of the TPT filevoid
setId(String id)
Set the test case idvoid
setPlatform(String platform)
Set the name of the executed platformvoid
setReportFile(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(String result)
Set the result represented as a Stringvoid
setTestCaseName(String testCaseName)
Set the name of the test case-
Methods inherited from class com.piketec.jenkins.plugins.tpt.publisher.InvisibleActionHostingHtml
doDynamic, getJenkinsConfigId, pathToHtml, setJenkinsConfigId
-
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
getResult
public String getResult()
- Returns:
- The result represented by as a String
-
setResult
public void setResult(String result)
Set the result represented as a String- Parameters:
result
- the result represented as a String
-
getId
public String getId()
- Returns:
- The test case id
-
setId
public void setId(String id)
Set the test case id- Parameters:
id
- The test case id
-
getReportFile
public 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(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 String getExecutionDate()
- Returns:
- The date of the TPT test execution
-
setExecutionDate
public void setExecutionDate(String executionDate)
Set the date of the TPT test execution- Parameters:
executionDate
- The date of the TPT test execution
-
getFileName
public String getFileName()
- Returns:
- The name of the TPT file
-
setFileName
public void setFileName(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 String getExecutionConfiguration()
- Returns:
- The name of the executed execution configuration
-
setExecutionConfiguration
public void setExecutionConfiguration(String executionConfiguration)
Set the name of the executed execution configuration- Parameters:
executionConfiguration
- The name of the executed execution configuration
-
getTestCaseName
public String getTestCaseName()
- Returns:
- The name of the test case
-
setTestCaseName
public void setTestCaseName(String testCaseName)
Set the name of the test case- Parameters:
testCaseName
- The name of the test case
-
getPlatform
public String getPlatform()
- Returns:
- The name of the executed platform
-
setPlatform
public void setPlatform(String platform)
Set the name of the executed platform- Parameters:
platform
- The name of the executed platform
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
-