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)
protected void setNumber(int number)
public static TestStep.TestStepBuilder forStepCalled(String description)
public boolean hasScreenshots()
public int renumberFrom(int count)
public TestStep startingAt(org.joda.time.DateTime time)
protected TestStep copyOfThisTestStep()
public void recordDuration()
public int getNumber()
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 boolean hasChildren()
public Collection<? extends TestStep> getLeafTestSteps()
public TestStep addScreenshot(ScreenshotAndHtmlSource screenshotAndHtmlSource)
public int getScreenshotCount()
public void removeScreenshot(int index)
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.