public class ReportPortal
extends java.lang.Object
Retrofit as REST WS Client| Modifier and Type | Class and Description |
|---|---|
static class |
ReportPortal.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ReportPortal.Builder |
builder()
Creates new builder for
ReportPortal |
static ReportPortal |
create(ReportPortalClient client,
ListenerParameters params)
Creates new ReportPortal based on already built dependencies
|
static ReportPortal |
create(ReportPortalClient client,
ListenerParameters params,
java.util.concurrent.ExecutorService executor)
Creates new ReportPortal based on already built dependencies
|
static boolean |
emitLaunchLog(java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
Emits log message on Launch level if there is any active context attached to the current thread
|
static boolean |
emitLaunchLog(ReportPortalMessage message,
java.lang.String level,
java.util.Date time) |
static boolean |
emitLaunchLog(java.lang.String message,
java.lang.String level,
java.util.Date time)
Emits log message on Launch level if there is any active context attached to the current thread
|
static boolean |
emitLaunchLog(java.lang.String message,
java.lang.String level,
java.util.Date time,
java.io.File file)
Emits log message on Launch level if there is any active context attached to the current thread
|
static boolean |
emitLog(java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
Emits log message if there is any active context attached to the current thread
|
static boolean |
emitLog(io.reactivex.Maybe<java.lang.String> itemUuid,
java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
Emits log message if there is any active context attached to the current thread
|
static boolean |
emitLog(ReportPortalMessage message,
java.lang.String level,
java.util.Date time) |
static boolean |
emitLog(java.lang.String message,
java.lang.String level,
java.util.Date time)
Emits log message if there is any active context attached to the current thread
|
static boolean |
emitLog(java.lang.String message,
java.lang.String level,
java.util.Date time,
java.io.File file)
Emits log message if there is any active context attached to the current thread
|
ReportPortalClient |
getClient() |
ListenerParameters |
getParameters() |
Launch |
newLaunch(com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ rq)
Starts launch in ReportPortal
|
Launch |
withLaunch(io.reactivex.Maybe<java.lang.String> launchUuid)
Factory method for
ReportPortal that uses already started launch |
public Launch newLaunch(com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ rq)
rq - Request Datapublic Launch withLaunch(io.reactivex.Maybe<java.lang.String> launchUuid)
ReportPortal that uses already started launchlaunchUuid - Launch to be usedpublic ListenerParameters getParameters()
public ReportPortalClient getClient()
public static ReportPortal.Builder builder()
ReportPortalReportPortalpublic static ReportPortal create(ReportPortalClient client, ListenerParameters params)
client - Report Portal Clientparams - ListenerParametersReportPortalpublic static ReportPortal create(@Nonnull ReportPortalClient client, @Nonnull ListenerParameters params, @Nonnull java.util.concurrent.ExecutorService executor)
client - Report Portal Clientparams - ListenerParametersexecutor - An executor service which will be used for internal request / response queueReportPortalpublic static boolean emitLog(java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
logSupplier - Log supplier. Converts current Item ID to the SaveLogRQ objectpublic static boolean emitLaunchLog(java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
logSupplier - Log supplier. Converts current Item ID to the SaveLogRQ objectpublic static boolean emitLog(io.reactivex.Maybe<java.lang.String> itemUuid,
java.util.function.Function<java.lang.String,com.epam.ta.reportportal.ws.model.log.SaveLogRQ> logSupplier)
itemUuid - Test Item ID promiselogSupplier - Log supplier. Converts current Item ID to the SaveLogRQ objectpublic static boolean emitLog(java.lang.String message,
java.lang.String level,
java.util.Date time)
message - Log messagelevel - Log leveltime - Log timepublic static boolean emitLaunchLog(java.lang.String message,
java.lang.String level,
java.util.Date time)
message - Log messagelevel - Log leveltime - Log timepublic static boolean emitLog(java.lang.String message,
java.lang.String level,
java.util.Date time,
java.io.File file)
message - Log messagelevel - Log leveltime - Log timefile - a file to attach to the log messagepublic static boolean emitLaunchLog(java.lang.String message,
java.lang.String level,
java.util.Date time,
java.io.File file)
message - Log messagelevel - Log leveltime - Log timefile - a file to attach to the log messagepublic static boolean emitLog(ReportPortalMessage message, java.lang.String level, java.util.Date time)
public static boolean emitLaunchLog(ReportPortalMessage message, java.lang.String level, java.util.Date time)