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 |
COLON_INFIX, currentFeatureContext, currentScenarioContext, ITEM_TREE, launch, SKIPPED_ISSUE_KEY| Constructor and Description |
|---|
ScenarioReporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterLaunch()
Finish RP launch
|
protected void |
beforeStep(gherkin.formatter.model.Step step,
gherkin.formatter.model.Match match)
Start Cucumber step
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartHookRequest(boolean isBefore)
Extension point to customize test creation event/request
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartStepRequest(gherkin.formatter.model.Step step,
java.lang.String stepPrefix,
gherkin.formatter.model.Match match)
Extension point to customize step creation event/request
|
protected void |
finishRootItem()
Finish root suite
|
protected java.lang.String |
getFeatureTestItemType()
Return RP test item name mapped to Cucumber feature
|
protected java.util.Optional<io.reactivex.Maybe<java.lang.String>> |
getRootItemId()
Returns the ID of the root item of the launch
|
protected java.lang.String |
getScenarioTestItemType()
Return RP test item name mapped to Cucumber scenario
|
after, afterFeature, afterHooks, afterScenario, afterStep, background, before, beforeFeature, beforeHooks, beforeScenario, buildFinishTestItemRequest, buildMultilineArgument, buildReportPortal, buildScenarioName, buildStartFeatureRequest, buildStartScenarioRequest, close, done, embedding, endOfScenarioLifeCycle, eof, examples, extractAttributes, feature, finishTestItem, finishTestItem, getAttributes, getCodeRef, getCodeRef, getDescription, getDescription, getParameters, getReportPortal, getTestCaseId, hookFinished, mapLevel, mapStatus, match, reportResult, result, scenario, scenarioOutline, sendLog, sendLog, setReportPortal, startFeature, startHook, startOfScenarioLifeCycle, startScenario, startStep, step, syntaxError, uri, writeprotected com.epam.reportportal.utils.MemoizingSupplier<io.reactivex.Maybe<java.lang.String>> rootSuiteId
@Nonnull
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartStepRequest(@Nonnull
gherkin.formatter.model.Step step,
@Nullable
java.lang.String stepPrefix,
@Nonnull
gherkin.formatter.model.Match match)
AbstractReporterbuildStartStepRequest in class AbstractReporterstep - a Cucumber's Step objectstepPrefix - a prefix of the step (e.g. 'Background')match - a Cucumber's Match objectprotected void beforeStep(gherkin.formatter.model.Step step,
gherkin.formatter.model.Match match)
AbstractReporterbeforeStep in class AbstractReporterstep - Step objectmatch - Match objectprotected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartHookRequest(boolean isBefore)
AbstractReporterbuildStartHookRequest in class AbstractReporterisBefore - 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()
AbstractReportergetRootItemId in class AbstractReporterprotected void finishRootItem()
protected void afterLaunch()
AbstractReporterafterLaunch in class AbstractReporter