public class TestStep extends Object implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
TestStep.TestStepBuilder |
| Modifier and Type | Field and Description |
|---|---|
static Predicate<TestStep> |
COMPROMISED_TESTSTEPS |
static Predicate<TestStep> |
ERROR_TESTSTEPS |
static Predicate<TestStep> |
FAILING_TESTSTEPS |
static Predicate<TestStep> |
IGNORED_TESTSTEPS |
static TestStep |
NO_STEP |
static Predicate<TestStep> |
SKIPPED_TESTSTEPS |
static Predicate<TestStep> |
SUCCESSFUL_TESTSTEPS |
| Constructor and Description |
|---|
TestStep() |
TestStep(String description) |
TestStep(ZonedDateTime startTime,
String description) |
public static final TestStep NO_STEP
public TestStep()
public TestStep(String description)
public TestStep(ZonedDateTime startTime, String description)
protected void setNumber(int number)
public static TestStep.TestStepBuilder forStepCalled(String description)
public boolean hasScreenshots()
public int renumberFrom(int count)
public void recordRestQuery(RestQuery restQuery)
public void updateOverallResult()
public void setPrecondition(boolean precondition)
public TestStep withResult(TestResult annotatedResult)
public void setLineNumber(int lineNumber)
public boolean correspondsToLine(int lineNumber)
public ExternalLink getExternalLink()
public void setExternalLink(ExternalLink externalLink)
public TestStep startingAt(ZonedDateTime time)
protected TestStep copyOfThisTestStep()
public void recordDuration()
public int getNumber()
public void setDescription(String description)
public String getDescription()
public TestStep unrendered()
public List<ScreenshotAndHtmlSource> getScreenshots()
public List<ScreenshotAndHtmlSource> getAllScreenshots()
public List<Screenshot> getRenderedScreenshots()
public List<Screenshot> getTopLevelScreenshots()
public Screenshot renderedScreenshotOf(ScreenshotAndHtmlSource from, int level)
public boolean hasRestQuery()
public boolean hasData()
public RestQuery getRestQuery()
public int getLevel()
public List<ReportData> getReportEvidence()
public List<ReportData> getReportData()
public ScreenshotAndHtmlSource getFirstScreenshot()
public Screenshot getEarliestScreenshot()
public Screenshot getLatestScreenshot()
public ScreenshotAndHtmlSource getLastScreenshot()
public boolean needsScreenshots()
public void setResult(TestResult result)
result - The test outcome associated with this step.public TestResult getResult()
public TestResult getOverallResult()
public TestStep asManual()
public Boolean isSuccessful()
public Boolean isFailure()
public Boolean isError()
public Boolean isCompromised()
public Boolean isIgnored()
public Boolean isSkipped()
public Boolean isPending()
public boolean isAPrecondition()
public void setDuration(long duration)
public long getDuration()
public double getDurationInSeconds()
public String getFormattedDuration()
public void failedWith(Throwable cause)
cause - why the test failed.public String getError()
public String getErrorMessage()
public String getConciseErrorMessage()
public void testAborted(Throwable exception)
public String getShortErrorMessage()
public FailureCause getException()
public void clearException()
public FailureCause getNestedException()
public boolean isAGroup()
public boolean hasNestedErrors()
public boolean hasChildren()
public boolean hasMultipleScreenshots()
public Collection<? extends TestStep> getLeafTestSteps()
public TestStep addScreenshot(ScreenshotAndHtmlSource screenshotAndHtmlSource)
public ZonedDateTime getStartTime()
public int getActualScreenshotCount()
public int getScreenshotCount()
public void removeScreenshot(int index)
public TestStep withReportData(ReportData reportData)
public TestStep recordReportData(ReportData reportData)
Copyright © 2023. All rights reserved.