public class TestStep extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestStep.TestStepBuilder |
| Constructor and Description |
|---|
TestStep() |
TestStep(org.joda.time.DateTime startTime,
String description) |
TestStep(String description) |
public TestStep()
public TestStep(String description)
public TestStep(org.joda.time.DateTime startTime,
String description)
public static TestStep.TestStepBuilder forStepCalled(String description)
public boolean hasScreenshots()
public TestStep startingAt(org.joda.time.DateTime time)
public void recordDuration()
public void setDescription(String description)
public String getDescription()
public List<ScreenshotAndHtmlSource> getScreenshots()
public ScreenshotAndHtmlSource getFirstScreenshot()
public boolean needsScreenshots()
public void setResult(TestResult result)
result - The test outcome associated with this step.public TestResult getResult()
public Boolean isSuccessful()
public Boolean isFailure()
public Boolean isError()
public Boolean isIgnored()
public Boolean isSkipped()
public Boolean isPending()
public void setDuration(long duration)
public long getDuration()
public double getDurationInSeconds()
public void failedWith(Throwable exception)
exception - why the test failed.public String getErrorMessage()
public void testAborted(Throwable exception)
exception - public String getShortErrorMessage()
public Throwable getException()
public boolean isAGroup()
public void addChildStep(TestStep step)
public boolean hasChildren()
public Collection<? extends TestStep> getLeafTestSteps()
public void addScreenshot(ScreenshotAndHtmlSource screenshotAndHtmlSource)
public int getScreenshotCount()
public void removeScreenshot(int index)
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.