Package net.thucydides.core.model
Class TestOutcome
java.lang.Object
net.thucydides.core.model.TestOutcome
public class TestOutcome
extends java.lang.Object
Represents the results of a test (or "scenario") execution. This
includes the narrative steps taken during the test, screenshots at each step,
the results of each step, and the overall result. A test getscenario
can be associated with a user story using the UserStory annotation.
A TestOutcome is stored after a test is executed. When the aggregate reports
are generated, the test outcome files are loaded into memory and processed.
- Author:
- johnsmart
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestOutcome.OptionalElements
static class
TestOutcome.StepCountBuilder
class
TestOutcome.StepReplacer
-
Constructor Summary
Constructors Modifier Constructor Description TestOutcome(java.lang.String name)
The title is immutable once set.TestOutcome(java.lang.String name, java.lang.Class<?> testCase)
protected
TestOutcome(java.lang.String name, java.lang.Class<?> testCase, Story userStory)
protected
TestOutcome(java.lang.String name, java.lang.Class<?> testCase, Story userStory, EnvironmentVariables environmentVariables)
A test outcome should relate to a particular test class or user story class.TestOutcome(java.lang.String name, java.lang.Class<?> testCase, EnvironmentVariables environmentVariables)
Create a test outcome based on a test method in a test class.protected
TestOutcome(java.time.ZonedDateTime startTime, long duration, java.lang.String title, java.lang.String description, java.lang.String name, java.lang.String id, java.lang.Class<?> testCase, java.util.List<TestStep> testSteps, java.util.List<java.lang.String> issues, java.util.List<java.lang.String> additionalIssues, java.util.List<CastMember> actors, java.util.Set<TestTag> tags, Story userStory, FailureCause testFailureCause, java.lang.String testFailureClassname, java.lang.String testFailureMessage, java.lang.String testFailureSummary, TestResult annotatedResult, DataTable dataTable, java.util.Optional<java.lang.String> qualifier, java.lang.String driver, boolean manualTest, boolean isManualTestingUpToDate, java.lang.String lastTested, java.util.List<java.lang.String> testEvidence, java.lang.String projectKey, EnvironmentVariables environmentVariables, ExternalLink externalLink, java.lang.String context)
-
Method Summary
Modifier and Type Method Description void
addDataFrom(DataTable newDataTable)
void
addFailingStepAsSibling(java.util.List<TestStep> testStepList, java.lang.Throwable testFailureCause)
void
addIssues(java.util.List<java.lang.String> issues)
void
addNewExamplesFrom(DataTable table)
void
addRow(java.util.Map<java.lang.String,?> data)
void
addRow(DataTableRow dataTableRow)
void
addTag(TestTag tag)
void
addTags(java.util.List<TestTag> tags)
void
addUserStoryFeatureTo(java.util.Set<TestTag> augmentedTags)
TestOutcome
addVersion(java.lang.String version)
TestOutcome
addVersions(java.util.List<java.lang.String> versions)
void
appendTestFailure(TestFailureCause failureCause)
void
assignAbility(java.lang.String name, java.lang.String ability)
void
assignDescriptionToActor(java.lang.String name, java.lang.String description)
void
assignFact(java.lang.String name, java.lang.String fact)
void
calculateDynamicFieldValues()
Fix the values of synthetic fields for serialization purposesvoid
castActor(java.lang.String name)
void
clearForcedResult()
void
clearStartTime()
TestOutcome
copy()
int
countNestedStepsWithResult(TestResult expectedResult, TestType testType)
int
countResults(TestResult expectedResult)
int
countResults(TestResult expectedResult, TestType expectedType)
java.lang.Integer
countTestSteps()
TestStep
currentGroup()
java.util.Optional<TestStep>
currentStep()
boolean
dataIsPredefined()
void
determineTestFailureCause(java.lang.Throwable cause)
void
endGroup()
Finish the current group.boolean
equals(java.lang.Object o)
java.util.Optional<TestStep>
firstStepWithErrorMessage()
TestOutcome
forProject(java.lang.String project)
static TestOutcome
forTest(java.lang.String methodName, java.lang.Class<?> testCase)
Create a new test outcome instance for a given test class or user story.static TestOutcome
forTestInStory(java.lang.String testName, java.lang.Class<?> testCase, Story story)
static TestOutcome
forTestInStory(java.lang.String testName, Story story)
java.util.List<CastMember>
getActors()
java.util.List<java.lang.String>
getAdditionalIssues()
java.util.List<java.lang.String>
getAdditionalVersions()
java.util.Set<TestTag>
getAllTags()
TestResult
getAnnotatedResult()
java.lang.String
getBackgroundDescription()
java.lang.String
getBackgroundTitle()
java.lang.String
getCompleteName()
Returns the name of the test prefixed by the name of the story.java.lang.Long
getCompromisedCount()
java.lang.String
getConciseErrorMessage()
java.lang.String
getContext()
java.lang.String
getDataDrivenSampleScenario()
DataTable
getDataTable()
int
getDataTableRowCount()
java.lang.String
getDescription()
java.util.Optional<java.lang.String>
getDescriptionText()
Tests may have a description.java.lang.String
getDriver()
java.lang.Long
getDuration()
double
getDurationInSeconds()
java.time.ZonedDateTime
getEndTime()
EnvironmentVariables
getEnvironmentVariables()
java.lang.Long
getErrorCount()
java.lang.String
getErrorMessage()
java.util.List<ReportData>
getEvidence()
java.util.List<java.lang.String>
getExampleFields()
ExternalLink
getExternalLink()
java.util.Optional<TestStep>
getFailingStep()
java.lang.Long
getFailureCount()
FailureDetails
getFailureDetails()
ApplicationFeature
getFeature()
Get the feature that includes the user story tested by this test.java.util.Optional<TestTag>
getFeatureTag()
java.util.Set<? extends Flag>
getFlags()
TestFailureCause
getFlakyTestFailureCause()
java.util.List<TestStep>
getFlattenedTestSteps()
java.lang.String
getFormattedIssues()
java.lang.String
getHtmlReport()
java.lang.String
getId()
java.lang.Long
getIgnoredCount()
int
getImplementedTestCount()
java.util.List<java.lang.String>
getIssueKeys()
java.util.List<java.lang.String>
getIssues()
java.lang.String
getLastTested()
java.util.Optional<TestStep>
getLatestTopLevelTestStep()
java.util.List<TestStep>
getLeafTestSteps()
java.util.List<java.lang.String>
getManualTestEvidence()
java.lang.String
getName()
java.lang.Integer
getNestedStepCount()
FailureCause
getNestedTestFailureCause()
java.lang.String
getNonNullContext()
java.lang.Integer
getOrder()
java.lang.String
getParentId()
java.lang.String
getPath()
java.lang.String
getPathId()
java.lang.Long
getPendingCount()
java.lang.String
getProject()
TitleBuilder
getQualified()
java.lang.String
getQualifiedId()
java.lang.String
getQualifiedMethodName()
java.util.Optional<java.lang.String>
getQualifier()
java.util.List<ManualTestEvidence>
getRenderedManualTestEvidence()
java.lang.String
getReportName()
java.lang.String
getReportName(ReportType type)
TestResult
getResult()
The outcome of the acceptance test, based on the outcome of the test steps.Rule
getRule()
java.lang.Integer
getRunningStepCount()
java.util.List<ScreenshotAndHtmlSource>
getScreenshotAndHtmlSources()
java.lang.String
getScreenshotReportName()
java.util.List<Screenshot>
getScreenshots()
java.lang.String
getSessionId()
java.lang.String
getSimpleReportName(ReportType type)
java.lang.Long
getSkippedCount()
java.lang.Long
getSkippedOrIgnoredCount()
java.lang.String
getStartedAt()
java.time.ZonedDateTime
getStartTime()
java.lang.Integer
getStepCount()
java.util.List<Screenshot>
getStepScreenshots()
Find the first and last screenshots for each aggregate step, and every screenshots for leaf steps.java.lang.String
getStoryTitle()
java.lang.Long
getSuccessCount()
java.util.Set<TestTag>
getTags()
java.util.Optional<java.lang.String>
getTagValue(java.lang.String tagType)
java.lang.Class<?>
getTestCase()
java.lang.String
getTestCaseName()
int
getTestCount()
FailureCause
getTestFailureCause()
java.lang.String
getTestFailureClassname()
java.lang.String
getTestFailureErrorType()
java.lang.String
getTestFailureMessage()
java.lang.String
getTestFailureSummary()
java.lang.String
getTestSource()
int
getTestStepCount()
java.util.List<TestStep>
getTestSteps()
An acceptance test is made up of a series of steps.java.lang.String
getTimestamp()
java.lang.String
getTimestamp(java.time.format.DateTimeFormatter formater)
java.lang.String
getTitle()
Return the human-readable name for this test.java.lang.String
getTitle(boolean qualified)
java.lang.String
getTitleWithLinks()
TitleBuilder
getUnqualified()
Story
getUserStory()
java.util.List<java.lang.String>
getVersions()
java.lang.String
getVideoLink()
Returns the link to the associated video (e.g.TestOutcome.OptionalElements
has()
boolean
hasAMoreGeneralFormOfTag(TestTag specificTag)
boolean
hasAMoreSpecificFormOfTag(TestTag generalTag)
boolean
hasEvidence()
int
hashCode()
boolean
hasIssue(java.lang.String issue)
boolean
hasNonStepFailure()
boolean
hasNoSteps()
boolean
hasRestQueries()
boolean
hasScreenshots()
boolean
hasTag(TestTag tag)
boolean
hasTagWithName(java.lang.String tagName)
boolean
hasTagWithType(java.lang.String tagType)
boolean
hasTagWithTypes(java.util.List<java.lang.String> tagTypes)
static net.thucydides.core.model.TestOutcome.TestOutcomeWithEnvironmentBuilder
inEnvironment(EnvironmentVariables environmentVariables)
TestOutcome
inTestRunTimestamped(java.time.ZonedDateTime testRunTimestamp)
java.lang.Boolean
isCompromised()
boolean
isDataDriven()
java.lang.Boolean
isError()
java.lang.Boolean
isFailure()
boolean
isManual()
boolean
isManualTestingUpToDate()
java.lang.Boolean
isPending()
void
isRelatedToIssue(java.lang.String issue)
java.lang.Boolean
isSkipped()
boolean
isStartTimeNotDefined()
java.lang.Boolean
isSuccess()
boolean
isTitleWithIssues()
TestStep
lastStep()
void
lastStepFailedWith(java.lang.Throwable testFailureCause)
void
lastStepFailedWith(StepFailure failure)
void
mergeMostRecentSteps(int maxStepsToMerge)
void
moveToNextRow()
void
overrideAnnotatedResult(TestResult annotatedResult)
TestOutcome
recordChildSteps(java.util.List<TestStep> steps)
void
recordDuration()
TestOutcome
recordStep(TestStep step)
Add a test step to this acceptance test.TestOutcome
recordSteps(java.util.List<TestStep> steps)
TestOutcome.StepReplacer
replace(java.util.List<TestStep> stepsToMerge)
void
resetFailingStepsCausedBy(java.lang.Class<? extends java.lang.Throwable> expected)
void
setAllStepsTo(TestResult result)
void
setAnnotatedResult(TestResult annotatedResult)
void
setBackgroundDescription(java.lang.String description)
void
setBackgroundTitle(java.lang.String title)
void
setContext(java.lang.String context)
Setting the contextvoid
setDescription(java.lang.String description)
void
setDriver(java.lang.String driver)
void
setDuration(long duration)
void
setEnvironmentVariables(EnvironmentVariables environmentVariables)
void
setFlakyTestFailureCause(TestFailureCause flakyTestFailureCause)
void
setLastTested(java.lang.String lastTested)
void
setLink(ExternalLink externalLink)
void
setManualTestEvidence(java.util.List<java.lang.String> manualTestEvidence)
void
setManualTestingUpToDate(java.lang.Boolean upToDate)
void
setOrder(int order)
void
setResult(TestResult annotatedResult)
void
setRule(Rule rule)
void
setSessionId(java.lang.String sessionId)
void
setStartTime(java.time.ZonedDateTime startTime)
void
setTags(java.util.Set<TestTag> tags)
void
setTestFailureMessage(java.lang.String testFailureMessage)
void
setTestRunTimestamp(java.time.ZonedDateTime testRunTimestamp)
void
setTestSource(java.lang.String testSource)
void
setTitle(java.lang.String title)
TestOutcome
setToManual()
void
setUserStory(Story story)
void
startGroup()
Turns the current step into a group.void
startGroup(java.lang.String groupName)
Deprecated.java.util.Optional<java.lang.String>
testFailureMessage()
java.util.Optional<TestStep>
testStepWithDescription(java.lang.String expectedDescription)
java.lang.String
toJson()
java.lang.String
toString()
boolean
typeCompatibleWith(TestType testType)
void
updateCurrentRowResult(TestResult result)
void
updateOverallResults()
void
updateTopLevelStepResultsTo(TestResult result)
void
useExamplesFrom(DataTable table)
void
useScenarioOutline(java.lang.String scenarioOutline)
TestOutcome
usingIssueTracking(IssueTracking issueTracking)
TestOutcome
withDataRowsfilteredbyTag(TestTag tag)
TestOutcome
withDataRowsfilteredbyTagsFrom(java.util.Collection<TestTag> filterTags)
protected TestOutcome
withFlagProvider(FlagProvider flagProvider)
Set the current flag provider; only used for testing purposes.TestOutcome
withId(java.lang.String id)
TestOutcome
withIssues(java.util.List<java.lang.String> issues)
TestOutcome
withMethodName(java.lang.String methodName)
TestOutcome
withQualifier(java.lang.String qualifier)
TestOutcome
withResult(TestResult annotatedResult)
TestOutcome
withTags(java.util.Set<TestTag> tags)
TestOutcome
withTestSource(java.lang.String testSource)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TestOutcome
public TestOutcome(java.lang.String name)The title is immutable once set. For convenience, you can create a test run directly with a title using this constructor.- Parameters:
name
- The name of the Java method that implements this test.
-
TestOutcome
public TestOutcome(java.lang.String name, java.lang.Class<?> testCase) -
TestOutcome
public TestOutcome(java.lang.String name, java.lang.Class<?> testCase, EnvironmentVariables environmentVariables)Create a test outcome based on a test method in a test class. The requirement type will be derived if possible using the class package.- Parameters:
name
-testCase
-
-
TestOutcome
-
TestOutcome
protected TestOutcome(java.lang.String name, java.lang.Class<?> testCase, Story userStory, EnvironmentVariables environmentVariables)A test outcome should relate to a particular test class or user story class.- Parameters:
name
- The name of the Java method implementing this test, if the test is a JUnit or TestNG test (for example)testCase
- The test class that contains this test method, if the test is a JUnit or TestNG testuserStory
- If the test is not implemented by a Java class (e.g. an easyb story), we may just use the Story class to represent the story in which the test is implemented.
-
TestOutcome
protected TestOutcome(java.time.ZonedDateTime startTime, long duration, java.lang.String title, java.lang.String description, java.lang.String name, java.lang.String id, java.lang.Class<?> testCase, java.util.List<TestStep> testSteps, java.util.List<java.lang.String> issues, java.util.List<java.lang.String> additionalIssues, java.util.List<CastMember> actors, java.util.Set<TestTag> tags, Story userStory, FailureCause testFailureCause, java.lang.String testFailureClassname, java.lang.String testFailureMessage, java.lang.String testFailureSummary, TestResult annotatedResult, DataTable dataTable, java.util.Optional<java.lang.String> qualifier, java.lang.String driver, boolean manualTest, boolean isManualTestingUpToDate, java.lang.String lastTested, java.util.List<java.lang.String> testEvidence, java.lang.String projectKey, EnvironmentVariables environmentVariables, ExternalLink externalLink, java.lang.String context)
-
-
Method Details
-
inEnvironment
public static net.thucydides.core.model.TestOutcome.TestOutcomeWithEnvironmentBuilder inEnvironment(EnvironmentVariables environmentVariables) -
calculateDynamicFieldValues
public void calculateDynamicFieldValues()Fix the values of synthetic fields for serialization purposes -
usingIssueTracking
-
setToManual
-
withTestSource
-
withFlagProvider
Set the current flag provider; only used for testing purposes. -
setEnvironmentVariables
-
getEnvironmentVariables
-
copy
-
forTest
Create a new test outcome instance for a given test class or user story.- Parameters:
methodName
- The name of the Java method implementing this test,testCase
- The JUnit or TestNG test class that contains this test method- Returns:
- A new TestOutcome object for this test.
-
withQualifier
-
withIssues
-
withTags
-
withMethodName
-
getName
public java.lang.String getName()- Returns:
- The name of the Java method implementing this test, if the test is implemented in Java.
-
forTestInStory
-
forTestInStory
public static TestOutcome forTestInStory(java.lang.String testName, java.lang.Class<?> testCase, Story story) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getTitle
public java.lang.String getTitle()Return the human-readable name for this test. This is derived from the test name for tests using a Java implementation, or can also be defined using the Title annotation.- Returns:
- the human-readable name for this test.
-
getTitle
public java.lang.String getTitle(boolean qualified) -
getUnqualified
-
getQualified
-
setAllStepsTo
-
addDataFrom
-
clearForcedResult
public void clearForcedResult() -
setDriver
public void setDriver(java.lang.String driver) -
getDriver
public java.lang.String getDriver() -
resetFailingStepsCausedBy
public void resetFailingStepsCausedBy(java.lang.Class<? extends java.lang.Throwable> expected) -
replace
-
mergeMostRecentSteps
public void mergeMostRecentSteps(int maxStepsToMerge) -
updateOverallResults
public void updateOverallResults() -
getFailingStep
-
getId
public java.lang.String getId() -
getParentId
public java.lang.String getParentId() -
withId
-
updateTopLevelStepResultsTo
-
getTestFailureSummary
public java.lang.String getTestFailureSummary() -
getFlakyTestFailureCause
-
setFlakyTestFailureCause
-
hasTagWithName
public boolean hasTagWithName(java.lang.String tagName) -
hasTagWithType
public boolean hasTagWithType(java.lang.String tagType) -
hasTagWithTypes
public boolean hasTagWithTypes(java.util.List<java.lang.String> tagTypes) -
getDataTableRowCount
public int getDataTableRowCount() -
getTestStepCount
public int getTestStepCount() -
castActor
public void castActor(java.lang.String name) -
assignFact
public void assignFact(java.lang.String name, java.lang.String fact) -
assignAbility
public void assignAbility(java.lang.String name, java.lang.String ability) -
assignDescriptionToActor
public void assignDescriptionToActor(java.lang.String name, java.lang.String description) -
setManualTestEvidence
public void setManualTestEvidence(java.util.List<java.lang.String> manualTestEvidence) -
getManualTestEvidence
public java.util.List<java.lang.String> getManualTestEvidence() -
getRenderedManualTestEvidence
-
setLink
-
hasNoSteps
public boolean hasNoSteps() -
isTitleWithIssues
public boolean isTitleWithIssues() -
setDescription
public void setDescription(java.lang.String description) -
setBackgroundDescription
public void setBackgroundDescription(java.lang.String description) -
setBackgroundTitle
public void setBackgroundTitle(java.lang.String title) -
getDescription
public java.lang.String getDescription() -
getBackgroundDescription
public java.lang.String getBackgroundDescription() -
getBackgroundTitle
public java.lang.String getBackgroundTitle() -
getDescriptionText
public java.util.Optional<java.lang.String> getDescriptionText()Tests may have a description. This can be defined with the scenarios (e.g. in the .feature files for Cucumber) or defined elsewhere, such as in JIRA for manual tests. -
toJson
public java.lang.String toJson() -
getTitleWithLinks
public java.lang.String getTitleWithLinks() -
getStoryTitle
public java.lang.String getStoryTitle() -
getPath
public java.lang.String getPath() -
getPathId
public java.lang.String getPathId() -
getReportName
-
getSimpleReportName
-
getHtmlReport
public java.lang.String getHtmlReport() -
getReportName
public java.lang.String getReportName() -
getScreenshotReportName
public java.lang.String getScreenshotReportName() -
getTestSteps
An acceptance test is made up of a series of steps. Each step is in fact a small test, which follows on from the previous one. The outcome of the acceptance test as a whole depends on the outcome of all of the steps.- Returns:
- A list of top-level test steps for this test.
-
getLatestTopLevelTestStep
-
hasScreenshots
public boolean hasScreenshots() -
hasRestQueries
public boolean hasRestQueries() -
getScreenshotAndHtmlSources
-
getScreenshots
-
getStepScreenshots
Find the first and last screenshots for each aggregate step, and every screenshots for leaf steps. -
hasNonStepFailure
public boolean hasNonStepFailure() -
getFlattenedTestSteps
-
getLeafTestSteps
-
getResult
The outcome of the acceptance test, based on the outcome of the test steps. If any steps fail, the test as a whole is considered a failure. If any steps are pending, the test as a whole is considered pending. If all of the steps are ignored, the test will be considered 'ignored'. If all of the tests succeed except the ignored tests, the test is a success. The test result can also be overridden using the 'setResult()' method.- Returns:
- The outcome of this test.
-
recordSteps
-
recordChildSteps
-
recordStep
Add a test step to this acceptance test.- Parameters:
step
- a completed step to be added to this test outcome.- Returns:
- this TestOucome insstance - this is a convenience to allow method chaining.
-
getFeature
Get the feature that includes the user story tested by this test. If no user story is defined, no feature can be returned, so the method returns null. If a user story has been defined without a class (for example, one that has been reloaded), the feature will be built using the feature name and id in the user story.- Returns:
- The Feature defined for this TestOutcome, if any
-
setTitle
public void setTitle(java.lang.String title) -
startGroup
@Deprecated public void startGroup(java.lang.String groupName)Deprecated.Creates a new step with this name and immediately turns it into a step group. -
getQualifier
public java.util.Optional<java.lang.String> getQualifier() -
startGroup
public void startGroup()Turns the current step into a group. Subsequent steps will be added as children of the current step. -
endGroup
public void endGroup()Finish the current group. Subsequent steps will be added after the current step. -
currentStep
- Returns:
- The current step is the last step in the step list, or the last step in the children of the current step group.
-
lastStep
-
currentGroup
-
setUserStory
-
determineTestFailureCause
public void determineTestFailureCause(java.lang.Throwable cause) -
appendTestFailure
-
testStepWithDescription
-
getTestFailureCause
-
getTestFailureErrorType
public java.lang.String getTestFailureErrorType() -
getNestedTestFailureCause
-
firstStepWithErrorMessage
-
testFailureMessage
public java.util.Optional<java.lang.String> testFailureMessage() -
getErrorMessage
public java.lang.String getErrorMessage() -
getConciseErrorMessage
public java.lang.String getConciseErrorMessage() -
setTestFailureMessage
public void setTestFailureMessage(java.lang.String testFailureMessage) -
getTestFailureMessage
public java.lang.String getTestFailureMessage() -
getTestFailureClassname
public java.lang.String getTestFailureClassname() -
setAnnotatedResult
-
overrideAnnotatedResult
-
setResult
-
withResult
-
getAnnotatedResult
-
getAdditionalVersions
public java.util.List<java.lang.String> getAdditionalVersions() -
getAdditionalIssues
public java.util.List<java.lang.String> getAdditionalIssues() -
getIssues
public java.util.List<java.lang.String> getIssues() -
getVersions
public java.util.List<java.lang.String> getVersions() -
getTestCase
public java.lang.Class<?> getTestCase() -
getTestCaseName
public java.lang.String getTestCaseName() -
addVersion
-
addVersions
-
forProject
-
getRule
-
setRule
-
getProject
public java.lang.String getProject() -
inTestRunTimestamped
-
setTestRunTimestamp
public void setTestRunTimestamp(java.time.ZonedDateTime testRunTimestamp) -
addIssues
public void addIssues(java.util.List<java.lang.String> issues) -
getFormattedIssues
public java.lang.String getFormattedIssues() -
isRelatedToIssue
public void isRelatedToIssue(java.lang.String issue) -
addFailingStepAsSibling
public void addFailingStepAsSibling(java.util.List<TestStep> testStepList, java.lang.Throwable testFailureCause) -
lastStepFailedWith
-
lastStepFailedWith
public void lastStepFailedWith(java.lang.Throwable testFailureCause) -
getTags
-
getAllTags
-
addUserStoryFeatureTo
-
setTags
-
addTags
-
addTag
-
getIssueKeys
public java.util.List<java.lang.String> getIssueKeys() -
getQualifiedMethodName
public java.lang.String getQualifiedMethodName() -
getQualifiedId
public java.lang.String getQualifiedId() -
getNonNullContext
public java.lang.String getNonNullContext() -
getContext
public java.lang.String getContext() -
setContext
public void setContext(java.lang.String context)Setting the context- Parameters:
context
-
-
getCompleteName
public java.lang.String getCompleteName()Returns the name of the test prefixed by the name of the story. -
useExamplesFrom
-
addNewExamplesFrom
-
moveToNextRow
public void moveToNextRow() -
updateCurrentRowResult
-
dataIsPredefined
public boolean dataIsPredefined() -
addRow
public void addRow(java.util.Map<java.lang.String,?> data) -
addRow
-
getTestCount
public int getTestCount() -
getImplementedTestCount
public int getImplementedTestCount() -
countResults
-
countResults
-
typeCompatibleWith
-
countNestedStepsWithResult
-
getTagValue
public java.util.Optional<java.lang.String> getTagValue(java.lang.String tagType) -
hasIssue
public boolean hasIssue(java.lang.String issue) -
hasTag
-
hasAMoreGeneralFormOfTag
-
hasAMoreSpecificFormOfTag
-
setStartTime
public void setStartTime(java.time.ZonedDateTime startTime) -
clearStartTime
public void clearStartTime() -
isManual
public boolean isManual() -
getLastTested
public java.lang.String getLastTested() -
setLastTested
public void setLastTested(java.lang.String lastTested) -
isManualTestingUpToDate
public boolean isManualTestingUpToDate() -
setManualTestingUpToDate
public void setManualTestingUpToDate(java.lang.Boolean upToDate) -
getFlags
-
isStartTimeNotDefined
public boolean isStartTimeNotDefined() -
has
-
getStepCount
public java.lang.Integer getStepCount() -
getRunningStepCount
public java.lang.Integer getRunningStepCount() -
getNestedStepCount
public java.lang.Integer getNestedStepCount() -
getSuccessCount
public java.lang.Long getSuccessCount() -
getFailureCount
public java.lang.Long getFailureCount() -
getErrorCount
public java.lang.Long getErrorCount() -
getCompromisedCount
public java.lang.Long getCompromisedCount() -
getIgnoredCount
public java.lang.Long getIgnoredCount() -
getSkippedOrIgnoredCount
public java.lang.Long getSkippedOrIgnoredCount() -
getSkippedCount
public java.lang.Long getSkippedCount() -
getPendingCount
public java.lang.Long getPendingCount() -
isSuccess
public java.lang.Boolean isSuccess() -
isFailure
public java.lang.Boolean isFailure() -
isCompromised
public java.lang.Boolean isCompromised() -
isError
public java.lang.Boolean isError() -
isPending
public java.lang.Boolean isPending() -
isSkipped
public java.lang.Boolean isSkipped() -
getUserStory
-
recordDuration
public void recordDuration() -
setDuration
public void setDuration(long duration) -
getDuration
public java.lang.Long getDuration() -
getEndTime
public java.time.ZonedDateTime getEndTime() -
getDurationInSeconds
public double getDurationInSeconds()- Returns:
- The total duration of all of the tests in this set in milliseconds.
-
getVideoLink
public java.lang.String getVideoLink()Returns the link to the associated video (e.g. from Saucelabs) for this test.- Returns:
- a URL.
-
getSessionId
public java.lang.String getSessionId() -
setSessionId
public void setSessionId(java.lang.String sessionId) -
countTestSteps
public java.lang.Integer countTestSteps() -
getStartTime
public java.time.ZonedDateTime getStartTime() -
getStartedAt
public java.lang.String getStartedAt() -
getTimestamp
public java.lang.String getTimestamp() -
getTimestamp
public java.lang.String getTimestamp(java.time.format.DateTimeFormatter formater) -
isDataDriven
public boolean isDataDriven() -
getExampleFields
public java.util.List<java.lang.String> getExampleFields() -
useScenarioOutline
public void useScenarioOutline(java.lang.String scenarioOutline) -
getDataDrivenSampleScenario
public java.lang.String getDataDrivenSampleScenario() -
getDataTable
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
getFeatureTag
-
getFailureDetails
-
getTestSource
public java.lang.String getTestSource() -
setTestSource
public void setTestSource(java.lang.String testSource) -
getActors
-
hasEvidence
public boolean hasEvidence() -
getEvidence
-
withDataRowsfilteredbyTag
-
withDataRowsfilteredbyTagsFrom
-
getExternalLink
-
setOrder
public void setOrder(int order) -
getOrder
public java.lang.Integer getOrder()
-