public class ReportPortalExtension
extends java.lang.Object
implements org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.InvocationInterceptor, org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.TestWatcher
| Modifier and Type | Field and Description |
|---|---|
static com.epam.reportportal.service.ReportPortal |
REPORT_PORTAL |
static com.epam.reportportal.service.tree.TestItemTree |
TEST_ITEM_TREE |
| Constructor and Description |
|---|
ReportPortalExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
protected com.epam.ta.reportportal.ws.model.FinishTestItemRQ |
buildFinishTestItemRq(org.junit.jupiter.api.extension.ExtensionContext context,
com.epam.reportportal.listeners.ItemStatus status)
Extension point to customize a test item result on it's finish
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartConfigurationRq(java.lang.reflect.Method method,
org.junit.jupiter.api.extension.ExtensionContext parentContext,
org.junit.jupiter.api.extension.ExtensionContext context,
ItemType itemType)
Extension point to customize beforeXXX creation event/request
|
protected com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ |
buildStartLaunchRq(com.epam.reportportal.listeners.ListenerParameters parameters)
Extension point to customize launch creation event/request
|
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ |
buildStartStepRq(org.junit.jupiter.api.extension.ExtensionContext context,
java.util.List<java.lang.Object> arguments,
ItemType itemType,
java.lang.String description,
java.util.Date startTime)
Extension point to customize test step creation event/request
|
protected java.lang.String |
createConfigurationDescription(java.lang.Class<?> testClass,
java.lang.reflect.Method method)
Extension point to customize beforeXXX step description
|
protected java.lang.String |
createConfigurationName(java.lang.Class<?> testClass,
java.lang.reflect.Method method)
Extension point to customize beforeXXX step name
|
protected void |
createSkippedSteps(org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable cause)
Extension point to customize skipped test insides
|
protected java.lang.String |
createStepDescription(org.junit.jupiter.api.extension.ExtensionContext context)
Extension point to customize test step description
|
protected java.lang.String |
createStepName(org.junit.jupiter.api.extension.ExtensionContext context)
Extension point to customize test step name
|
void |
finish()
Finishes all launches for the JVM
|
protected void |
finishBeforeAll(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
io.reactivex.Maybe<java.lang.String> id)
Finishes a method marked with
BeforeAll annotation, calls reportSkippedClassTests(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method>, org.junit.jupiter.api.extension.ExtensionContext, java.util.Date) method in
case of failures |
protected void |
finishBeforeEach(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
io.reactivex.Maybe<java.lang.String> id)
Finishes a method marked with
BeforeEach annotation, calls reportSkippedStep(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method>, org.junit.jupiter.api.extension.ExtensionContext, java.lang.Throwable, java.util.Date) method in case of
failures |
protected void |
finishTemplate(org.junit.jupiter.api.extension.ExtensionContext context,
com.epam.reportportal.listeners.ItemStatus status)
Finish a test template execution (basically a test class) with a specific status, builds a finish request based on the status
|
protected void |
finishTemplates(org.junit.jupiter.api.extension.ExtensionContext parentContext)
Finish all test templates execution (basically a test class) within a specific context
|
protected void |
finishTestItem(org.junit.jupiter.api.extension.ExtensionContext context)
Finishes a test item in RP, calculates the item status and builds a finish request based on the status
|
protected void |
finishTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
com.epam.ta.reportportal.ws.model.FinishTestItemRQ rq)
Finishes a test item in RP with a custom request
|
protected void |
finishTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
com.epam.reportportal.listeners.ItemStatus status)
Finishes a test item in RP with a specific status, builds a finish request based on the status
|
protected java.util.Set<com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ> |
getAttributes(java.lang.reflect.AnnotatedElement annotatedElement)
Extract and returns static attributes of a test method or class (set with
Attributes annotation) |
protected java.lang.String |
getCodeRef(org.junit.jupiter.api.extension.ExtensionContext context)
Returns a code reference of a test (static or dynamic).
|
protected com.epam.reportportal.listeners.ItemStatus |
getExecutionStatus(org.junit.jupiter.api.extension.ExtensionContext context)
Returns a status of a test based on whether or not it contains an execution exception
|
protected java.util.Optional<io.reactivex.Maybe<java.lang.String>> |
getItemId(org.junit.jupiter.api.extension.ExtensionContext context) |
protected com.epam.reportportal.service.Launch |
getLaunch(org.junit.jupiter.api.extension.ExtensionContext context)
Returns a current launch instance, starts new if no such instance
|
protected java.lang.String |
getLaunchId(org.junit.jupiter.api.extension.ExtensionContext context)
Returns a current launch unique ID
|
protected java.util.List<com.epam.ta.reportportal.ws.model.ParameterResource> |
getParameters(java.lang.reflect.Method method,
java.util.List<java.lang.Object> arguments)
Extracts and returns a test parameters, respects
ParameterKey annotation |
protected com.epam.reportportal.service.ReportPortal |
getReporter() |
protected com.epam.reportportal.service.item.TestCaseIdEntry |
getTestCaseId(java.lang.reflect.Method method,
java.lang.String codeRef,
java.util.List<java.lang.Object> arguments)
Calculates a test case ID based on code reference and parameters
|
protected com.epam.reportportal.service.item.TestCaseIdEntry |
getTestCaseId(java.lang.reflect.Method method,
java.lang.String codeRef,
java.util.List<java.lang.Object> arguments,
java.lang.Object instance)
Calculates a test case ID based on code reference and parameters
|
protected java.util.Optional<java.lang.reflect.Method> |
getTestMethod(org.junit.jupiter.api.extension.ExtensionContext context)
Recursively returns the first real test method found in test hierarchy
|
void |
interceptAfterAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext parentContext) |
void |
interceptAfterEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context) |
void |
interceptBeforeAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext parentContext) |
void |
interceptBeforeEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context) |
void |
interceptDynamicTest(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
<T> T |
interceptTestFactoryMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptTestTemplateMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
protected void |
reportSkippedClassTests(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
java.util.Date eventTime)
Extension point to customize test steps skipped in case of a
@BeforeAll method failed. |
protected void |
reportSkippedStep(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable throwable,
java.util.Date eventTime)
Extension point to customize test steps skipped in case of a
@BeforeEach method failed. |
protected void |
sendStackTraceToRP(java.lang.Throwable cause)
Formats and reports a
Throwable to Report Portal |
protected io.reactivex.Maybe<java.lang.String> |
startBeforeAfter(java.lang.reflect.Method method,
org.junit.jupiter.api.extension.ExtensionContext parentContext,
org.junit.jupiter.api.extension.ExtensionContext context,
ItemType itemType)
Starts the following methods:
@BeforeEach, @AfterEach, @BeforeAll or @AfterAll |
protected void |
startTemplate(org.junit.jupiter.api.extension.ExtensionContext parentContext)
Starts a test template (basically a test class)
|
protected void |
startTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
ItemType type)
Starts a test item of arbitrary type
|
protected void |
startTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
java.util.List<java.lang.Object> arguments,
ItemType type)
Starts a test item of arbitrary type
|
protected void |
startTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
java.util.List<java.lang.Object> arguments,
ItemType itemType,
java.lang.String description,
java.util.Date startTime)
Starts a test item of arbitrary type
|
void |
testAborted(org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable throwable) |
void |
testDisabled(org.junit.jupiter.api.extension.ExtensionContext context,
java.util.Optional<java.lang.String> reason) |
void |
testFailed(org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable throwable) |
void |
testSuccessful(org.junit.jupiter.api.extension.ExtensionContext context) |
public static final com.epam.reportportal.service.tree.TestItemTree TEST_ITEM_TREE
public static final com.epam.reportportal.service.ReportPortal REPORT_PORTAL
@Nonnull
protected java.util.Optional<io.reactivex.Maybe<java.lang.String>> getItemId(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context)
public void finish()
protected com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ buildStartLaunchRq(com.epam.reportportal.listeners.ListenerParameters parameters)
parameters - Launch Configuration parametersprotected com.epam.reportportal.service.ReportPortal getReporter()
protected java.lang.String getLaunchId(org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's launch contextprotected com.epam.reportportal.service.Launch getLaunch(org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's launch contextpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackpublic void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackpublic void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
afterEach in interface org.junit.jupiter.api.extension.AfterEachCallbackpublic void interceptBeforeAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext parentContext)
throws java.lang.Throwable
interceptBeforeAllMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void interceptBeforeEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context)
throws java.lang.Throwable
interceptBeforeEachMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void interceptAfterAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext parentContext)
throws java.lang.Throwable
interceptAfterAllMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void interceptAfterEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context)
throws java.lang.Throwable
interceptAfterEachMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws java.lang.Throwable
interceptTestMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic <T> T interceptTestFactoryMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws java.lang.Throwable
interceptTestFactoryMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void interceptDynamicTest(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws java.lang.Throwable
interceptDynamicTest in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void interceptTestTemplateMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws java.lang.Throwable
interceptTestTemplateMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorjava.lang.Throwablepublic void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
afterTestExecution in interface org.junit.jupiter.api.extension.AfterTestExecutionCallbackpublic void testDisabled(org.junit.jupiter.api.extension.ExtensionContext context,
java.util.Optional<java.lang.String> reason)
testDisabled in interface org.junit.jupiter.api.extension.TestWatcherpublic void testSuccessful(org.junit.jupiter.api.extension.ExtensionContext context)
testSuccessful in interface org.junit.jupiter.api.extension.TestWatcherpublic void testAborted(org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable throwable)
testAborted in interface org.junit.jupiter.api.extension.TestWatcherpublic void testFailed(org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable throwable)
testFailed in interface org.junit.jupiter.api.extension.TestWatcherprotected void finishBeforeAll(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
io.reactivex.Maybe<java.lang.String> id)
throws java.lang.Throwable
BeforeAll annotation, calls reportSkippedClassTests(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method>, org.junit.jupiter.api.extension.ExtensionContext, java.util.Date) method in
case of failuresinvocation - the invocation that is being interceptedinvocationContext - the context of the invocation that is being interceptedcontext - JUnit's test contextid - an ID of the method to finishjava.lang.Throwable - in case of failuresprotected void finishBeforeEach(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<java.lang.Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
io.reactivex.Maybe<java.lang.String> id)
throws java.lang.Throwable
BeforeEach annotation, calls reportSkippedStep(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method>, org.junit.jupiter.api.extension.ExtensionContext, java.lang.Throwable, java.util.Date) method in case of
failuresinvocation - the invocation that is being interceptedinvocationContext - the context of the invocation that is being interceptedcontext - JUnit's test contextid - an ID of the method to finishjava.lang.Throwable - in case of failuresprotected void startTemplate(org.junit.jupiter.api.extension.ExtensionContext parentContext)
parentContext - JUnit's test context of a parent entityprotected void startTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
ItemType type)
context - JUnit's test contexttype - a type of the itemprotected void startTestItem(org.junit.jupiter.api.extension.ExtensionContext context,
java.util.List<java.lang.Object> arguments,
ItemType type)
context - JUnit's test contextarguments - a list of test parameterstype - a type of the itemprotected void startTestItem(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context,
@Nonnull
java.util.List<java.lang.Object> arguments,
@Nonnull
ItemType itemType,
@Nonnull
java.lang.String description,
@Nonnull
java.util.Date startTime)
context - JUnit's test contextarguments - a list of test parametersitemType - a type of the itemdescription - the test descriptionstartTime - the test start timeprotected io.reactivex.Maybe<java.lang.String> startBeforeAfter(java.lang.reflect.Method method,
org.junit.jupiter.api.extension.ExtensionContext parentContext,
org.junit.jupiter.api.extension.ExtensionContext context,
ItemType itemType)
@BeforeEach, @AfterEach, @BeforeAll or @AfterAllmethod - a method referenceparentContext - JUnit's test context of a parent itemcontext - JUnit's test context of a method to startitemType - a method's item type (to display on RP)protected void finishTemplate(org.junit.jupiter.api.extension.ExtensionContext context,
com.epam.reportportal.listeners.ItemStatus status)
context - JUnit's test contextstatus - an ItemStatusprotected void finishTemplates(org.junit.jupiter.api.extension.ExtensionContext parentContext)
parentContext - JUnit's test contextprotected com.epam.reportportal.listeners.ItemStatus getExecutionStatus(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's test contextItemStatusprotected void finishTestItem(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's test contextprotected void finishTestItem(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context,
@Nonnull
com.epam.reportportal.listeners.ItemStatus status)
context - JUnit's test contextstatus - a test execution statusprotected void finishTestItem(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context,
@Nonnull
com.epam.ta.reportportal.ws.model.FinishTestItemRQ rq)
context - JUnit's test contextrq - a test item finish requestprotected com.epam.reportportal.service.item.TestCaseIdEntry getTestCaseId(@Nonnull
java.lang.reflect.Method method,
@Nonnull
java.lang.String codeRef,
@Nonnull
java.util.List<java.lang.Object> arguments)
method - a test method referencecodeRef - a code reference which will be used for the calculationarguments - a list of test argumentsprotected com.epam.reportportal.service.item.TestCaseIdEntry getTestCaseId(@Nonnull
java.lang.reflect.Method method,
@Nonnull
java.lang.String codeRef,
@Nonnull
java.util.List<java.lang.Object> arguments,
@Nullable
java.lang.Object instance)
method - a test method referencecodeRef - a code reference which will be used for the calculationarguments - a list of test argumentsinstance - current test instance@Nonnull
protected java.lang.String getCodeRef(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's test contextprotected java.util.Optional<java.lang.reflect.Method> getTestMethod(org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's test contextOptional of a Method@Nonnull
protected java.util.Set<com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ> getAttributes(@Nonnull
java.lang.reflect.AnnotatedElement annotatedElement)
Attributes annotation)annotatedElement - a test method or class reference@Nonnull
protected java.util.List<com.epam.ta.reportportal.ws.model.ParameterResource> getParameters(@Nonnull
java.lang.reflect.Method method,
java.util.List<java.lang.Object> arguments)
ParameterKey annotationmethod - a test method referencearguments - a list of parameter values@Nonnull
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartStepRq(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context,
@Nonnull
java.util.List<java.lang.Object> arguments,
@Nonnull
ItemType itemType,
@Nonnull
java.lang.String description,
@Nonnull
java.util.Date startTime)
context - JUnit's test contextarguments - a test arguments listitemType - a test method item typedescription - a test method descriptionstartTime - a start time of the test@Nonnull
protected com.epam.ta.reportportal.ws.model.StartTestItemRQ buildStartConfigurationRq(@Nonnull
java.lang.reflect.Method method,
@Nonnull
org.junit.jupiter.api.extension.ExtensionContext parentContext,
@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context,
@Nonnull
ItemType itemType)
method - JUnit's test method referenceparentContext - JUnit's context of a parent itemcontext - JUnit's test contextitemType - a type of the item to buildprotected void createSkippedSteps(org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable cause)
context - JUnit's test contextcause - an error thrown by skip culprit@Nonnull
protected com.epam.ta.reportportal.ws.model.FinishTestItemRQ buildFinishTestItemRq(@Nonnull
org.junit.jupiter.api.extension.ExtensionContext context,
@Nonnull
com.epam.reportportal.listeners.ItemStatus status)
context - JUnit's test contextstatus - a test item execution resultprotected java.lang.String createStepName(org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's test context@Nonnull
protected java.lang.String createConfigurationName(@Nonnull
java.lang.Class<?> testClass,
@Nonnull
java.lang.reflect.Method method)
testClass - JUnit's test class, by which the name will be calculatedmethod - JUnit's test method referenceprotected java.lang.String createStepDescription(org.junit.jupiter.api.extension.ExtensionContext context)
context - JUnit's test contextprotected java.lang.String createConfigurationDescription(java.lang.Class<?> testClass,
java.lang.reflect.Method method)
testClass - JUnit's test class, by which the name will be calculatedmethod - JUnit's test method referenceprotected void reportSkippedStep(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
java.lang.Throwable throwable,
java.util.Date eventTime)
@BeforeEach method failed.invocationContext - JUnit's @BeforeAll invocation contextcontext - JUnit's test contextthrowable - An exception which caused the skipeventTime - @BeforeEach start timeprotected void reportSkippedClassTests(org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext context,
java.util.Date eventTime)
@BeforeAll method failed.invocationContext - JUnit's @BeforeAll invocation contextcontext - JUnit's test contexteventTime - @BeforeAll start timeprotected void sendStackTraceToRP(java.lang.Throwable cause)
Throwable to Report Portalcause - a Throwable