public class DefaultStepReporter extends java.lang.Object implements StepReporter
StepReporter.StepEntryNOOP_STEP_REPORTER| Constructor and Description |
|---|
DefaultStepReporter(Launch currentLaunch) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishNestedStep() |
io.reactivex.Maybe<com.epam.ta.reportportal.ws.model.OperationCompletionRS> |
finishNestedStep(com.epam.ta.reportportal.ws.model.FinishTestItemRQ finishStepRequest) |
io.reactivex.Maybe<com.epam.ta.reportportal.ws.model.OperationCompletionRS> |
finishNestedStep(ItemStatus status) |
void |
finishNestedStep(java.lang.Throwable throwable) |
io.reactivex.Maybe<java.lang.String> |
finishPreviousStep()
Finish current step started by any of
#sendStep methods. |
io.reactivex.Maybe<java.lang.String> |
finishPreviousStep(ItemStatus status)
Finish current step started by any of
#sendStep methods. |
io.reactivex.Maybe<java.lang.String> |
getParent() |
boolean |
isFailed(io.reactivex.Maybe<java.lang.String> parentId) |
void |
removeParent(io.reactivex.Maybe<java.lang.String> parentUuid) |
void |
sendStep(ItemStatus status,
java.lang.String name) |
void |
sendStep(ItemStatus status,
java.lang.String name,
java.io.File... files) |
protected void |
sendStep(ItemStatus status,
java.lang.String name,
java.lang.Runnable actions) |
void |
sendStep(ItemStatus status,
java.lang.String name,
java.lang.String... logs) |
void |
sendStep(ItemStatus status,
java.lang.String name,
java.lang.Throwable throwable) |
void |
sendStep(ItemStatus status,
java.lang.String name,
java.lang.Throwable throwable,
java.io.File... files) |
void |
sendStep(java.lang.String name) |
void |
sendStep(java.lang.String name,
java.io.File... files) |
void |
sendStep(java.lang.String name,
java.lang.String... logs) |
void |
setParent(io.reactivex.Maybe<java.lang.String> parentUuid) |
void |
setStepStatus(ItemStatus status)
Set execution status for current step.
|
io.reactivex.Maybe<java.lang.String> |
startNestedStep(com.epam.ta.reportportal.ws.model.StartTestItemRQ startStepRequest) |
io.reactivex.Maybe<java.lang.String> |
step(ItemStatus status,
java.lang.String name)
Report a step with specified status and name.
|
<T> T |
step(ItemStatus stepSuccessStatus,
java.lang.String name,
java.util.function.Supplier<T> actions)
Wrap passed actions as a separate step and report it.
|
io.reactivex.Maybe<java.lang.String> |
step(java.lang.String name)
Report a step with specified name.
|
<T> T |
step(java.lang.String name,
java.util.function.Supplier<T> actions)
Wrap passed actions as a separate step and report it.
|
public DefaultStepReporter(Launch currentLaunch)
@Nullable public io.reactivex.Maybe<java.lang.String> getParent()
getParent in interface StepReporterpublic void setStepStatus(@Nonnull
ItemStatus status)
StepReporterItemStatus.PASSED with the method and then throw an exception the status
of the step will stay passed.setStepStatus in interface StepReporterstatus - wanted step statuspublic void setParent(@Nullable
io.reactivex.Maybe<java.lang.String> parentUuid)
setParent in interface StepReporterpublic void removeParent(@Nullable
io.reactivex.Maybe<java.lang.String> parentUuid)
removeParent in interface StepReporterpublic boolean isFailed(@Nullable
io.reactivex.Maybe<java.lang.String> parentId)
isFailed in interface StepReporterprotected void sendStep(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name,
@Nullable
java.lang.Runnable actions)
public void sendStep(@Nonnull
java.lang.String name)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
java.lang.String name,
java.lang.String... logs)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name,
java.lang.String... logs)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name,
java.lang.Throwable throwable)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
java.lang.String name,
java.io.File... files)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name,
java.io.File... files)
sendStep in interface StepReporterpublic void sendStep(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name,
java.lang.Throwable throwable,
java.io.File... files)
sendStep in interface StepReporter@Nonnull
public io.reactivex.Maybe<java.lang.String> finishPreviousStep(@Nullable
ItemStatus status)
#sendStep methods. Overrides original status if provided.finishPreviousStep in interface StepReporterstatus - finish status@Nonnull public io.reactivex.Maybe<java.lang.String> finishPreviousStep()
#sendStep methods.finishPreviousStep in interface StepReporter@Nonnull
public io.reactivex.Maybe<java.lang.String> startNestedStep(@Nonnull
com.epam.ta.reportportal.ws.model.StartTestItemRQ startStepRequest)
startNestedStep in interface StepReporterpublic io.reactivex.Maybe<com.epam.ta.reportportal.ws.model.OperationCompletionRS> finishNestedStep(@Nonnull
com.epam.ta.reportportal.ws.model.FinishTestItemRQ finishStepRequest)
finishNestedStep in interface StepReporterpublic io.reactivex.Maybe<com.epam.ta.reportportal.ws.model.OperationCompletionRS> finishNestedStep(@Nonnull
ItemStatus status)
finishNestedStep in interface StepReporterpublic void finishNestedStep()
finishNestedStep in interface StepReporterpublic void finishNestedStep(@Nullable
java.lang.Throwable throwable)
finishNestedStep in interface StepReporterpublic io.reactivex.Maybe<java.lang.String> step(@Nonnull
ItemStatus status,
@Nonnull
java.lang.String name)
StepReporterstep in interface StepReporterstatus - step statusname - step namepublic io.reactivex.Maybe<java.lang.String> step(@Nonnull
java.lang.String name)
StepReporterstep in interface StepReportername - step name@Nullable
public <T> T step(@Nonnull
ItemStatus stepSuccessStatus,
@Nonnull
java.lang.String name,
@Nonnull
java.util.function.Supplier<T> actions)
StepReporterstep in interface StepReporterT - return typestepSuccessStatus - step status in case of graceful finishname - step nameactions - action function to execute@Nullable
public <T> T step(@Nonnull
java.lang.String name,
@Nonnull
java.util.function.Supplier<T> actions)
StepReporterstep in interface StepReporterT - return typename - step nameactions - action function to execute