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 TypeMethodDescriptionvoiddoIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) intgetId()In the test_summary.xml file are the relative paths to the report listed for each test case.voidsetExecutionConfiguration(String executionConfiguration) Set the name of the executed execution configurationvoidsetExecutionDate(String executionDate) Set the date of the TPT test executionvoidsetFailedSince(int failedSince) Set the number of builds this test failedvoidsetFileName(String fileName) Set the name of the TPT filevoidSet the test case idvoidsetPlatform(String platform) Set the name of the executed platformvoidsetReportFile(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.voidSet the result represented as a StringvoidsetTestCaseName(String testCaseName) Set the name of the test caseMethods inherited from class com.piketec.jenkins.plugins.tpt.publisher.InvisibleActionHostingHtml
doDynamic, getJenkinsConfigId, pathToHtml, setJenkinsConfigIdMethods 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:
IOExceptionjavax.servlet.ServletException
-