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 |
ITEM_TREE, launch| 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.TestStep testStep)
Start Cucumber step
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartHookRequest(io.cucumber.plugin.event.HookType hookType)
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
|
addToTree, afterHooks, afterScenario, afterStep, beforeHooks, beforeScenario, buildFinishTestItemRequest, buildMultilineArgument, buildReportPortal, buildStartFeatureRequest, buildStartScenarioRequest, embedding, extractAttributes, finishFeature, finishTestItem, finishTestItem, formatDataTable, getAttributes, getCodeRef, getCodeRef, getCurrentScenarioContext, getDescription, getDescription, getEmbedEventHandler, getHookTypeAndName, getParameters, getReportPortal, getStepName, getTestCaseFinishedHandler, getTestCaseId, getTestCaseId, getTestCaseStartedHandler, getTestRunFinishedHandler, getTestRunStartedHandler, getTestSourceReadHandler, getTestStepFinishedHandler, getTestStepStartedHandler, getWriteEventHandler, handleEndOfFeature, handleStartOfTestCase, handleTestStepFinished, handleTestStepStarted, hookFinished, mapItemStatus, mapLevel, removeFromTree, reportResult, sendLog, sendLog, setEventPublisher, setReportPortal, startFeature, startHook, startLaunch, startScenario, startStepprotected com.epam.reportportal.utils.MemoizingSupplier<io.reactivex.Maybe<java.lang.String>> rootSuiteId
protected void beforeLaunch()
AbstractReporterbeforeLaunch in class AbstractReporterprotected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartStepRequest(io.cucumber.plugin.event.TestStep testStep,
java.lang.String stepPrefix,
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(io.cucumber.plugin.event.TestStep testStep)
AbstractReporterbeforeStep in class AbstractReportertestStep - a cucumber step objectprotected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartHookRequest(io.cucumber.plugin.event.HookType hookType)
AbstractReporterbuildStartHookRequest in class AbstractReporterhookType - a cucumber hook type 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()