hudson.plugins.testng.results
Class MethodResult
java.lang.Object
hudson.plugins.testng.results.BaseResult
hudson.plugins.testng.results.MethodResult
- All Implemented Interfaces:
- hudson.model.ModelObject, java.io.Serializable
public class MethodResult
- extends BaseResult
- See Also:
- Serialized Form
|
Constructor Summary |
MethodResult(java.lang.String name,
java.lang.String status,
java.lang.String description,
java.lang.String duration,
java.lang.String startedAt,
java.lang.String isConfig,
java.lang.String testRunId,
java.lang.String parentTestName,
java.lang.String parentSuiteName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodResult
public MethodResult(java.lang.String name,
java.lang.String status,
java.lang.String description,
java.lang.String duration,
java.lang.String startedAt,
java.lang.String isConfig,
java.lang.String testRunId,
java.lang.String parentTestName,
java.lang.String parentSuiteName)
getTestUuid
public java.lang.String getTestUuid()
setTestUuid
public void setTestUuid(java.lang.String testUuid)
getParentTestName
public java.lang.String getParentTestName()
getParentSuiteName
public java.lang.String getParentSuiteName()
getTestRunId
public java.lang.String getTestRunId()
getStartedAt
@Exported
public java.util.Date getStartedAt()
getFullUrl
public java.lang.String getFullUrl()
getException
public MethodResultException getException()
setException
public void setException(MethodResultException exception)
getUrl
public java.lang.String getUrl()
- Overrides:
getUrl in class BaseResult
getDuration
@Exported
public long getDuration()
getStatus
@Exported(visibility=9)
public java.lang.String getStatus()
getDescription
@Exported
public java.lang.String getDescription()
getGroups
@Exported
public java.util.List<java.lang.String> getGroups()
getParameters
@Exported
public java.util.List<java.lang.String> getParameters()
getExceptionString
@Exported(name="exception")
public java.lang.String getExceptionString()
- Added only to expose possible exception via .../api/xxx
- Returns:
- String representation of the exception
getClassName
@Exported(name="className")
public java.lang.String getClassName()
- Added only to expose class name as part of method result via .../api/xxx
- Returns:
- String representation of the exception
setGroups
public void setGroups(java.util.List<java.lang.String> groups)
setParameters
public void setParameters(java.util.List<java.lang.String> parameters)
getDisplayDescription
public java.lang.String getDisplayDescription()
getDisplayExceptionMessage
public java.lang.String getDisplayExceptionMessage()
getDisplayDuration
public java.lang.String getDisplayDuration()
getDisplayGroups
public java.lang.String getDisplayGroups()
isConfig
public boolean isConfig()
getCssClass
public java.lang.Object getCssClass()
- Create a list that contains previous builds results for this method
(foreach package in previousbuilds tests results packages)
if package.name matches this method's package name then :
(foreach class in package.classlist)
if class.name matches this method's class name then :
(foreach method in class.methodlist)
if method.name matches this method's name then
add this method to the return list.
- Returns:
- list of previous builds results for this method
Copyright © 2004-2011. All Rights Reserved.