public class Test extends TestEntity
Constructor and Description |
---|
Test(TestComposite parent,
String title) |
Test(TestComposite parent,
String title,
boolean isTransient) |
Test(TestComposite parent,
String title,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(TestResult message) |
void |
addMetaData(String identifier,
String content) |
String |
getDescription() |
List<TestResult> |
getMessages() |
Collection<TestResult> |
getMessages(TestStatus status)
Returns all messages with a given
TestStatus . |
Map<String,String> |
getMetaData() |
TestResult |
getSeverestMessage() |
TestStatus |
getStatus() |
List<IScriptDebugFrame> |
getTestLocation() |
String |
getTitle() |
boolean |
isTransient() |
void |
reset() |
void |
setDescription(String description)
Sets the test description.
|
void |
setTestLocation(List<IScriptDebugFrame> stackTrace) |
addTestListener, getExecutionTime, getParent, getStartTime, removeTestListener, setStatus
public Test(TestComposite parent, String title, String description)
public Test(TestComposite parent, String title)
public Test(TestComposite parent, String title, boolean isTransient)
public String getTitle()
public TestStatus getStatus()
getStatus
in class TestEntity
public void reset()
reset
in class TestEntity
public void setTestLocation(List<IScriptDebugFrame> stackTrace)
public List<IScriptDebugFrame> getTestLocation()
public String getDescription()
public void setDescription(String description)
description
- description to usepublic void addMessage(TestResult message)
public List<TestResult> getMessages()
public TestResult getSeverestMessage()
public Collection<TestResult> getMessages(TestStatus status)
TestStatus
. Only messages with the exact TestStatus will be returned.status
- TestStatus to query forpublic boolean isTransient()