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
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, Synopsys Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doIndex
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) int
getId()
In the test_summary.xml file are the relative paths to the report listed for each test case.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
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
Set the result represented as a Stringvoid
setTestCaseName
(String testCaseName) Set the name of the test caseMethods inherited from class com.piketec.jenkins.plugins.tpt.publisher.InvisibleActionHostingHtml
doDynamic, getJenkinsConfigId, pathToHtml, setJenkinsConfigId
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
TPTTestCase
public TPTTestCase()Creates a new TPTTestCase data container
-
-
Method Details
-
getResult
- Returns:
- The result represented by as a String
-
setResult
Set the result represented as a String- Parameters:
result
- the result represented as a String
-
getId
- Returns:
- The test case id
-
setId
Set the test case id- Parameters:
id
- The test case id
-
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
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
- Returns:
- The date of the TPT test execution
-
setExecutionDate
Set the date of the TPT test execution- Parameters:
executionDate
- The date of the TPT test execution
-
getFileName
- Returns:
- The name of the TPT file
-
setFileName
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
- Returns:
- The name of the executed execution configuration
-
setExecutionConfiguration
Set the name of the executed execution configuration- Parameters:
executionConfiguration
- The name of the executed execution configuration
-
getTestCaseName
- Returns:
- The name of the test case
-
setTestCaseName
Set the name of the test case- Parameters:
testCaseName
- The name of the test case
-
getPlatform
- Returns:
- The name of the executed platform
-
setPlatform
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
-