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 classTestOutcome.OptionalElementsstatic classTestOutcome.StepCountBuilderclassTestOutcome.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)protectedTestOutcome(java.lang.String name, java.lang.Class<?> testCase, Story userStory)protectedTestOutcome(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.protectedTestOutcome(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 voidaddDataFrom(DataTable newDataTable)voidaddFailingStepAsSibling(java.util.List<TestStep> testStepList, java.lang.Throwable testFailureCause)voidaddIssues(java.util.List<java.lang.String> issues)voidaddNewExamplesFrom(DataTable table)voidaddRow(java.util.Map<java.lang.String,?> data)voidaddRow(DataTableRow dataTableRow)voidaddTag(TestTag tag)voidaddTags(java.util.List<TestTag> tags)voidaddUserStoryFeatureTo(java.util.Set<TestTag> augmentedTags)TestOutcomeaddVersion(java.lang.String version)TestOutcomeaddVersions(java.util.List<java.lang.String> versions)voidappendTestFailure(TestFailureCause failureCause)voidassignAbility(java.lang.String name, java.lang.String ability)voidassignDescriptionToActor(java.lang.String name, java.lang.String description)voidassignFact(java.lang.String name, java.lang.String fact)voidcalculateDynamicFieldValues()Fix the values of synthetic fields for serialization purposesvoidcastActor(java.lang.String name)voidclearForcedResult()voidclearStartTime()TestOutcomecopy()intcountNestedStepsWithResult(TestResult expectedResult, TestType testType)intcountResults(TestResult expectedResult)intcountResults(TestResult expectedResult, TestType expectedType)java.lang.IntegercountTestSteps()TestStepcurrentGroup()java.util.Optional<TestStep>currentStep()booleandataIsPredefined()voiddetermineTestFailureCause(java.lang.Throwable cause)voidendGroup()Finish the current group.booleanequals(java.lang.Object o)java.util.Optional<TestStep>firstStepWithErrorMessage()TestOutcomeforProject(java.lang.String project)static TestOutcomeforTest(java.lang.String methodName, java.lang.Class<?> testCase)Create a new test outcome instance for a given test class or user story.static TestOutcomeforTestInStory(java.lang.String testName, java.lang.Class<?> testCase, Story story)static TestOutcomeforTestInStory(java.lang.String testName, Story story)TestOutcomefromStep(int index)java.util.List<CastMember>getActors()java.util.List<java.lang.String>getAdditionalIssues()java.util.List<java.lang.String>getAdditionalVersions()java.util.Set<TestTag>getAllTags()TestResultgetAnnotatedResult()java.lang.StringgetBackgroundDescription()java.lang.StringgetBackgroundTitle()java.lang.StringgetCompleteName()Returns the name of the test prefixed by the name of the story.java.lang.LonggetCompromisedCount()java.lang.StringgetConciseErrorMessage()java.lang.StringgetContext()java.lang.StringgetDataDrivenSampleScenario()DataTablegetDataTable()intgetDataTableRowCount()java.lang.StringgetDescription()java.util.Optional<java.lang.String>getDescriptionText()Tests may have a description.java.lang.StringgetDriver()java.lang.LonggetDuration()doublegetDurationInSeconds()java.time.ZonedDateTimegetEndTime()EnvironmentVariablesgetEnvironmentVariables()java.lang.LonggetErrorCount()java.lang.StringgetErrorMessage()java.util.List<ReportData>getEvidence()java.util.List<java.lang.String>getExampleFields()ExternalLinkgetExternalLink()java.util.Optional<TestStep>getFailingStep()java.lang.LonggetFailureCount()FailureDetailsgetFailureDetails()ApplicationFeaturegetFeature()Get the feature that includes the user story tested by this test.java.util.Optional<TestTag>getFeatureTag()java.util.Set<? extends Flag>getFlags()TestFailureCausegetFlakyTestFailureCause()java.util.List<TestStep>getFlattenedTestSteps()java.lang.StringgetFormattedIssues()java.lang.StringgetHtmlReport()java.lang.StringgetId()java.lang.LonggetIgnoredCount()intgetImplementedTestCount()java.util.List<java.lang.String>getIssueKeys()java.util.List<java.lang.String>getIssues()java.lang.StringgetLastTested()java.util.Optional<TestStep>getLatestTopLevelTestStep()java.util.List<TestStep>getLeafTestSteps()java.util.List<java.lang.String>getManualTestEvidence()java.lang.StringgetName()java.lang.IntegergetNestedStepCount()FailureCausegetNestedTestFailureCause()java.util.List<java.lang.String>getNestedTestPath()java.lang.StringgetNonNullContext()java.lang.IntegergetOrder()java.lang.StringgetParentId()java.lang.StringgetPath()java.lang.StringgetPathId()java.lang.LonggetPendingCount()java.lang.StringgetProject()TitleBuildergetQualified()java.lang.StringgetQualifiedId()java.lang.StringgetQualifiedMethodName()java.util.Optional<java.lang.String>getQualifier()java.util.List<ManualTestEvidence>getRenderedManualTestEvidence()java.lang.StringgetReportName()java.lang.StringgetReportName(ReportType type)TestResultgetResult()The outcome of the acceptance test, based on the outcome of the test steps.RulegetRule()java.lang.IntegergetRunningStepCount()java.util.List<ScreenshotAndHtmlSource>getScreenshotAndHtmlSources()java.lang.StringgetScreenshotReportName()java.util.List<Screenshot>getScreenshots()java.lang.StringgetSessionId()java.lang.StringgetSimpleReportName(ReportType type)java.lang.LonggetSkippedCount()java.lang.LonggetSkippedOrIgnoredCount()java.lang.StringgetStartedAt()java.time.ZonedDateTimegetStartTime()java.lang.IntegergetStepCount()java.util.List<Screenshot>getStepScreenshots()Find the first and last screenshots for each aggregate step, and every screenshots for leaf steps.java.lang.StringgetStoryTitle()java.lang.LonggetSuccessCount()java.util.Set<TestTag>getTags()java.util.Optional<java.lang.String>getTagValue(java.lang.String tagType)java.lang.Class<?>getTestCase()java.lang.StringgetTestCaseName()intgetTestCount()FailureCausegetTestFailureCause()java.lang.StringgetTestFailureClassname()java.lang.StringgetTestFailureErrorType()java.lang.StringgetTestFailureMessage()java.lang.StringgetTestFailureSummary()java.lang.StringgetTestSource()intgetTestStepCount()java.util.List<TestStep>getTestSteps()An acceptance test is made up of a series of steps.java.lang.StringgetTimestamp()java.lang.StringgetTimestamp(java.time.format.DateTimeFormatter formater)java.lang.StringgetTitle()Return the human-readable name for this test.java.lang.StringgetTitle(boolean qualified)java.lang.StringgetTitleWithLinks()TitleBuildergetUnqualified()StorygetUserStory()java.util.List<java.lang.String>getVersions()java.lang.StringgetVideoLink()Returns the link to the associated video (e.g.TestOutcome.OptionalElementshas()booleanhasAMoreGeneralFormOfTag(TestTag specificTag)booleanhasAMoreSpecificFormOfTag(TestTag generalTag)booleanhasEvidence()inthashCode()booleanhasIssue(java.lang.String issue)booleanhasNonStepFailure()booleanhasNoSteps()booleanhasRestQueries()booleanhasScreenshots()booleanhasTag(TestTag tag)booleanhasTagWithName(java.lang.String tagName)booleanhasTagWithType(java.lang.String tagType)booleanhasTagWithTypes(java.util.List<java.lang.String> tagTypes)static net.thucydides.core.model.TestOutcome.TestOutcomeWithEnvironmentBuilderinEnvironment(EnvironmentVariables environmentVariables)TestOutcomeinTestRunTimestamped(java.time.ZonedDateTime testRunTimestamp)java.lang.BooleanisCompromised()booleanisDataDriven()java.lang.BooleanisError()java.lang.BooleanisFailure()booleanisManual()booleanisManualTestingUpToDate()java.lang.BooleanisPending()voidisRelatedToIssue(java.lang.String issue)java.lang.BooleanisSkipped()booleanisStartTimeNotDefined()java.lang.BooleanisSuccess()booleanisTitleWithIssues()booleanisUnsuccessful()TestSteplastStep()voidlastStepFailedWith(java.lang.Throwable testFailureCause)voidlastStepFailedWith(StepFailure failure)voidmergeMostRecentSteps(int maxStepsToMerge)voidmoveToNextRow()voidoverrideAnnotatedResult(TestResult annotatedResult)voidoverrideResult(TestResult result)TestOutcomerecordChildSteps(java.util.List<TestStep> steps)voidrecordDuration()TestOutcomerecordStep(TestStep step)Add a test step to this acceptance test.TestOutcomerecordSteps(java.util.List<TestStep> steps)TestOutcome.StepReplacerreplace(java.util.List<TestStep> stepsToMerge)voidresetFailingStepsCausedBy(java.lang.Class<? extends java.lang.Throwable> expected)voidsetAllStepsTo(TestResult result)voidsetAnnotatedResult(TestResult annotatedResult)voidsetBackgroundDescription(java.lang.String description)voidsetBackgroundTitle(java.lang.String title)voidsetContext(java.lang.String context)Setting the contextvoidsetDescription(java.lang.String description)voidsetDriver(java.lang.String driver)voidsetDuration(long duration)voidsetEnvironmentVariables(EnvironmentVariables environmentVariables)voidsetFlakyTestFailureCause(TestFailureCause flakyTestFailureCause)voidsetLastTested(java.lang.String lastTested)voidsetLink(ExternalLink externalLink)voidsetManualTestEvidence(java.util.List<java.lang.String> manualTestEvidence)voidsetManualTestingUpToDate(java.lang.Boolean upToDate)voidsetOrder(int order)voidsetResult(TestResult annotatedResult)voidsetRule(Rule rule)voidsetSessionId(java.lang.String sessionId)voidsetStartTime(java.time.ZonedDateTime startTime)voidsetTags(java.util.Set<TestTag> tags)voidsetTestFailureMessage(java.lang.String testFailureMessage)voidsetTestRunTimestamp(java.time.ZonedDateTime testRunTimestamp)voidsetTestSource(java.lang.String testSource)voidsetTitle(java.lang.String title)TestOutcomesetToManual()voidsetUserStory(Story story)voidstartGroup()Turns the current step into a group.voidstartGroup(java.lang.String groupName)Deprecated.voidtestFailedWith(java.lang.Throwable cause)java.util.Optional<java.lang.String>testFailureMessage()java.util.Optional<TestStep>testStepWithDescription(java.lang.String expectedDescription)java.lang.StringtoJson()java.lang.StringtoString()booleantypeCompatibleWith(TestType testType)voidupdateCurrentRowResult(TestResult result)voidupdateOverallResults()voidupdateTopLevelStepResultsTo(TestResult result)voiduseExamplesFrom(DataTable table)voiduseScenarioOutline(java.lang.String scenarioOutline)TestOutcomeusingIssueTracking(IssueTracking issueTracking)TestOutcomewithDataRowsfilteredbyTag(TestTag tag)TestOutcomewithDataRowsfilteredbyTagsFrom(java.util.Collection<TestTag> filterTags)protected TestOutcomewithFlagProvider(FlagProvider flagProvider)Set the current flag provider; only used for testing purposes.TestOutcomewithId(java.lang.String id)TestOutcomewithIssues(java.util.List<java.lang.String> issues)TestOutcomewithMethodName(java.lang.String methodName)TestOutcomewithQualifier(java.lang.String qualifier)TestOutcomewithResult(TestResult annotatedResult)TestOutcomewithSteps(java.util.List<TestStep> childSteps)TestOutcomewithTags(java.util.Set<TestTag> tags)TestOutcomewithTestSource(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:
toStringin 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() -
withSteps
-
isUnsuccessful
public boolean isUnsuccessful() -
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
-
overrideResult
-
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) -
testFailedWith
public void testFailedWith(java.lang.Throwable cause) -
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein 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() -
fromStep
-
getNestedTestPath
public java.util.List<java.lang.String> getNestedTestPath()
-