public class ReportPortal
extends java.lang.Object
RestEndpoint 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 boolean |
emitLog(com.google.common.base.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) |
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> currentLaunchId)
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> currentLaunchId)
ReportPortal that uses already started launchcurrentLaunchId - Launch to be usedpublic ListenerParameters getParameters()
public ReportPortalClient getClient()
public static ReportPortal.Builder builder()
ReportPortalReportPortalpublic static ReportPortal create(ReportPortalClient client, ListenerParameters params)
ReportPortalpublic static boolean emitLog(com.google.common.base.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(java.lang.String message,
java.lang.String level,
java.util.Date time)
public static boolean emitLog(java.lang.String message,
java.lang.String level,
java.util.Date time,
java.io.File file)
public static boolean emitLog(ReportPortalMessage message, java.lang.String level, java.util.Date time)