public abstract class Launch
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ReportPortalClient |
client |
static Launch |
NOOP_LAUNCH
Launch implementation for disabled Reporting, every method does nothing.
|
static com.epam.ta.reportportal.ws.model.issue.Issue |
NOT_ISSUE
An Issue to remove 'To Investigate' mark from a skipped/failed Test Item
|
| Modifier and Type | Method and Description |
|---|---|
abstract io.reactivex.Maybe<java.lang.String> |
createVirtualItem()
Starts a virtual test item in ReportPortal.
|
static Launch |
currentLaunch()
Returns a current launch in a link to the current thread.
|
abstract void |
finish(com.epam.ta.reportportal.ws.model.FinishExecutionRQ rq)
Finishes launch in ReportPortal.
|
abstract io.reactivex.Maybe<com.epam.ta.reportportal.ws.model.OperationCompletionRS> |
finishTestItem(io.reactivex.Maybe<java.lang.String> itemId,
com.epam.ta.reportportal.ws.model.FinishTestItemRQ rq)
Finishes Test Item in ReportPortal asynchronously (non-blocking).
|
ReportPortalClient |
getClient()
Returns ReportPortal client for the launch.
|
abstract io.reactivex.Maybe<java.lang.String> |
getLaunch()
Returns current launch UUID promise as
Maybe, empty if the launch is not started. |
ListenerParameters |
getParameters()
Returns reporting parameters of the current launch.
|
StepReporter |
getStepReporter()
Returns Nested Step reporter for the current launch.
|
abstract void |
log(java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
Logs message to the ReportPortal Launch, request factory.
|
abstract void |
log(io.reactivex.Maybe<java.lang.String> logItemUuid,
java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
Logs message to the ReportPortal Launch, request factory with specified Test Item UUID.
|
abstract void |
log(com.epam.ta.reportportal.ws.model.log.SaveLogRQ rq)
// * Logs message to the ReportPortal Launch, provided request.
|
abstract io.reactivex.Maybe<java.lang.String> |
start()
Starts new launch in ReportPortal asynchronously (non-blocking).
|
abstract io.reactivex.Maybe<java.lang.String> |
startTestItem(io.reactivex.Maybe<java.lang.String> parentId,
io.reactivex.Maybe<java.lang.String> retryOf,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
Starts new test item in ReportPortal asynchronously (non-blocking), ensure provided retry item ID starts first.
|
abstract io.reactivex.Maybe<java.lang.String> |
startTestItem(io.reactivex.Maybe<java.lang.String> parentId,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
Starts new test item in ReportPortal asynchronously (non-blocking).
|
abstract io.reactivex.Maybe<java.lang.String> |
startTestItem(com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
Starts new root test item in ReportPortal asynchronously (non-blocking).
|
abstract io.reactivex.Maybe<java.lang.String> |
startVirtualTestItem(io.reactivex.Maybe<java.lang.String> parentId,
io.reactivex.Maybe<java.lang.String> virtualItem,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
Starts new test item in ReportPortal asynchronously (non-blocking) and populates the provided virtual item with the real item ID.
|
abstract io.reactivex.Maybe<java.lang.String> |
startVirtualTestItem(io.reactivex.Maybe<java.lang.String> virtualItem,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
Starts new test item in ReportPortal asynchronously (non-blocking) and populates the provided virtual item with the real item ID.
|
protected final ReportPortalClient client
public static final Launch NOOP_LAUNCH
public static final com.epam.ta.reportportal.ws.model.issue.Issue NOT_ISSUE
@Nonnull public abstract io.reactivex.Maybe<java.lang.String> start()
public abstract void finish(com.epam.ta.reportportal.ws.model.FinishExecutionRQ rq)
rq - Launch finish request.@Nonnull public abstract io.reactivex.Maybe<java.lang.String> createVirtualItem()
@Nonnull public abstract io.reactivex.Maybe<java.lang.String> startTestItem(com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
rq - Item start request.@Nonnull
public abstract io.reactivex.Maybe<java.lang.String> startTestItem(io.reactivex.Maybe<java.lang.String> parentId,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
parentId - Promise of parent item ID.rq - Item start request.@Nonnull
public abstract io.reactivex.Maybe<java.lang.String> startTestItem(io.reactivex.Maybe<java.lang.String> parentId,
io.reactivex.Maybe<java.lang.String> retryOf,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
retry: true and retryOf: {retryOf argument value}.parentId - Promise of parent item ID.retryOf - Previous item ID promise, which is retried.rq - Item start request.@Nonnull
public abstract io.reactivex.Maybe<java.lang.String> startVirtualTestItem(io.reactivex.Maybe<java.lang.String> virtualItem,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
virtualItem - Virtual item ID promise to populate with real ID.rq - Item start rq.@Nonnull
public abstract io.reactivex.Maybe<java.lang.String> startVirtualTestItem(io.reactivex.Maybe<java.lang.String> parentId,
io.reactivex.Maybe<java.lang.String> virtualItem,
com.epam.ta.reportportal.ws.model.StartTestItemRQ rq)
parentId - Promise of parent item ID.virtualItem - Virtual item ID promise to populate with real ID.rq - Item start request.public abstract void log(@Nonnull
com.epam.ta.reportportal.ws.model.log.SaveLogRQ rq)
rq - Log request.public abstract void log(@Nonnull
java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
logSupplier - Log Message Factory. Argument of the function will be actual launch UUID.public abstract void log(@Nonnull
io.reactivex.Maybe<java.lang.String> logItemUuid,
@Nonnull
java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
logItemUuid - Test Item ID promiselogSupplier - Log Message Factory. Argument of the function will be actual launch UUID.@Nonnull
public abstract io.reactivex.Maybe<com.epam.ta.reportportal.ws.model.OperationCompletionRS> finishTestItem(io.reactivex.Maybe<java.lang.String> itemId,
com.epam.ta.reportportal.ws.model.FinishTestItemRQ rq)
itemId - Item ID promise.rq - Item finish request.@Nonnull public ListenerParameters getParameters()
@Nullable public static Launch currentLaunch()
@Nonnull public StepReporter getStepReporter()
StepReporter instance.@Nonnull public ReportPortalClient getClient()
ReportPortalClient instance.@Nonnull public abstract io.reactivex.Maybe<java.lang.String> getLaunch()
Maybe, empty if the launch is not started.