public class ScenarioReporter extends AbstractReporter
Mapping between Cucumber and ReportPortal is as follows:
Dummy "Root Test Suite" is created because in current implementation of RP test items cannot be immediate children of a launch
Background steps and hooks are reported as part of corresponding scenarios. Outline example rows are reported as individual scenarios with [ROW NUMBER] after the name.
| Modifier and Type | Field and Description |
|---|---|
protected com.epam.reportportal.utils.MemoizingSupplier<io.reactivex.Maybe<java.lang.String>> |
rootSuiteId |
BACKGROUND_PREFIX, DOCSTRING_DECORATOR, HOOK_, METHOD_OPENING_BRACKET, WORKING_DIRECTORY| Constructor and Description |
|---|
ScenarioReporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterLaunch()
Finish RP launch
|
protected void |
beforeLaunch()
Manipulations before the launch starts
|
protected void |
beforeStep(io.cucumber.plugin.event.TestCase testCase,
io.cucumber.plugin.event.TestStep testStep)
Start Cucumber step
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartHookRequest(io.cucumber.plugin.event.TestCase testCase,
io.cucumber.plugin.event.HookTestStep testStep)
Extension point to customize test creation event/request
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartStepRequest(io.cucumber.plugin.event.TestStep testStep,
java.lang.String stepPrefix,
java.lang.String keyword)
Extension point to customize test creation event/request
|
protected void |
finishRootItem()
Finish root suite
|
protected java.lang.String |
getFeatureTestItemType()
Return RP launch test item name mapped to Cucumber feature
|
protected java.util.Optional<io.reactivex.Maybe<java.lang.String>> |
getRootItemId() |
protected java.lang.String |
getScenarioTestItemType()
Return RP launch test item name mapped to Cucumber scenario
|
protected void |
startRootItem()
Start root suite
|
afterHooks, afterScenario, afterStep, beforeHooks, beforeScenario, buildFinishTestItemRequest, buildMultilineArgument, buildReportPortal, buildStartFeatureRequest, buildStartLaunchRq, buildStartRuleRequest, buildStartScenarioRequest, embedding, extractAttributes, finishTestItem, finishTestItem, finishTestItem, formatDataTable, getAttributes, getCodeRef, getCodeRef, getCurrent, getDescription, getDescription, getEmbedEventHandler, getHookTypeAndName, getItemTree, getLaunch, getParameters, getReportPortal, getStepName, getTestCaseFinishedHandler, getTestCaseId, getTestCaseId, getTestCaseStartedHandler, getTestRunFinishedHandler, getTestRunStartedHandler, getTestSourceParsedHandler, getTestStepFinishedHandler, getTestStepStartedHandler, getWriteEventHandler, handleEndOfFeature, handleSourceEvents, handleStartOfTestCase, handleTestStepFinished, handleTestStepStarted, mapItemStatus, mapLevel, reportResult, sendLog, sendLog, setEventPublisher, startFeature, startHook, startRule, startScenario, startStepprotected com.epam.reportportal.utils.MemoizingSupplier<io.reactivex.Maybe<java.lang.String>> rootSuiteId
protected void beforeLaunch()
AbstractReporterbeforeLaunch in class AbstractReporter@Nonnull
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartStepRequest(@Nonnull
io.cucumber.plugin.event.TestStep testStep,
@Nullable
java.lang.String stepPrefix,
@Nullable
java.lang.String keyword)
AbstractReporterbuildStartStepRequest in class AbstractReportertestStep - a cucumber step objectstepPrefix - a prefix of the step (e.g. 'Background')keyword - a step keyword (e.g. 'Given')protected void beforeStep(@Nonnull
io.cucumber.plugin.event.TestCase testCase,
@Nonnull
io.cucumber.plugin.event.TestStep testStep)
AbstractReporterbeforeStep in class AbstractReportertestCase - Cucumber's TestCase objecttestStep - a cucumber step object@Nonnull
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartHookRequest(@Nonnull
io.cucumber.plugin.event.TestCase testCase,
@Nonnull
io.cucumber.plugin.event.HookTestStep testStep)
AbstractReporterbuildStartHookRequest in class AbstractReportertestCase - Cucumber's TestCase objecttestStep - a cucumber step object@Nonnull protected java.lang.String getFeatureTestItemType()
AbstractReportergetFeatureTestItemType in class AbstractReporter@Nonnull protected java.lang.String getScenarioTestItemType()
AbstractReportergetScenarioTestItemType in class AbstractReporter@Nonnull protected java.util.Optional<io.reactivex.Maybe<java.lang.String>> getRootItemId()
getRootItemId in class AbstractReporterprotected void afterLaunch()
AbstractReporterafterLaunch in class AbstractReporterprotected void finishRootItem()
protected void startRootItem()