Package com.perforce.halm.jenkins
Class HALMTestReporterObject
- java.lang.Object
-
- com.perforce.halm.jenkins.HALMTestReporterObject
-
public class HALMTestReporterObject extends Object
Class object containing necessary fields for build submission Used to submit information to the common function in one object.
-
-
Constructor Summary
Constructors Constructor Description HALMTestReporterObject()
HALMTestReporterObject(String connID, String projID, long suiteID, String filePattern, String fileFormat, long setID, String desc, String b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAutomationSuiteID()
String
getBranch()
String
getDescription()
String
getHalmConnectionID()
Gets the selected Helix ALM connection ID, or throws an exception if no selection is made.String
getProjectID()
Gets the selected Helix ALM project ID, or throws an exception if no selection is made.String
getTestFileFormat()
String
getTestFilePattern()
String
getTestRunSet()
Gets the name of a test run set so the build can be associated with it.long
getTestRunSetID()
Gets the ID of a test run set so the build can be associated with it.void
setAutomationSuiteID(long suiteID)
void
setBranch(String b)
void
setDescription(String d)
void
setHalmConnectionID(String connID)
void
setProjectID(String projID)
void
setTestFileFormat(String fileFormat)
void
setTestFilePattern(String filePattern)
void
setTestRunSet(String set)
Sets the name of the test run set to associate to the build.void
setTestRunSetID(long setID)
Sets the ID of a test run set.
-
-
-
Method Detail
-
getHalmConnectionID
public String getHalmConnectionID() throws NullPointerException
Gets the selected Helix ALM connection ID, or throws an exception if no selection is made.- Returns:
- - the connectionID assigned to this object.
- Throws:
NullPointerException
- - if halmConnectionID is null.
-
setHalmConnectionID
public void setHalmConnectionID(String connID)
-
getProjectID
public String getProjectID() throws Exception
Gets the selected Helix ALM project ID, or throws an exception if no selection is made.- Returns:
- - the projectID assigned to this object.
- Throws:
NullPointerException
- - if projectID is null.Exception
-
setProjectID
public void setProjectID(String projID)
-
getAutomationSuiteID
public long getAutomationSuiteID() throws Exception
- Returns:
- the selected automation suite.
- Throws:
Exception
- - if automationSuiteID is invalid
-
setAutomationSuiteID
public void setAutomationSuiteID(long suiteID)
-
setTestFilePattern
public void setTestFilePattern(String filePattern)
-
getTestFileFormat
public String getTestFileFormat()
-
setTestFileFormat
public void setTestFileFormat(String fileFormat)
-
getTestRunSetID
public long getTestRunSetID()
Gets the ID of a test run set so the build can be associated with it.- Returns:
- the id of the test run set. -1 if unset.
-
setTestRunSetID
public void setTestRunSetID(long setID)
Sets the ID of a test run set.- Parameters:
setID
- - The ID of the test run set to send up to the server
-
getTestRunSet
public String getTestRunSet()
Gets the name of a test run set so the build can be associated with it.- Returns:
- the name of the test run set. Null if unset.
-
setTestRunSet
public void setTestRunSet(String set)
Sets the name of the test run set to associate to the build.- Parameters:
set
- - the test run set's name
-
getBranch
public String getBranch()
-
setBranch
public void setBranch(String b)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String d)
-
-