Search in sources :

Example 1 with ItemType

use of com.helger.peppol.wsclient2.ItemType in project agent-java-junit5 by reportportal.

the class ReportPortalExtension method buildStartConfigurationRq.

/**
 * Extension point to customize beforeXXX creation event/request
 *
 * @param method        JUnit's test method reference
 * @param parentContext JUnit's context of a parent item
 * @param context       JUnit's test context
 * @param itemType      a type of the item to build
 * @return Request to ReportPortal
 */
@Nonnull
protected StartTestItemRQ buildStartConfigurationRq(@Nonnull Method method, @Nonnull ExtensionContext parentContext, @Nonnull ExtensionContext context, @Nonnull ItemType itemType) {
    StartTestItemRQ rq = new StartTestItemRQ();
    rq.setStartTime(Calendar.getInstance().getTime());
    Optional<Class<?>> testClass = context.getTestClass();
    if (testClass.isPresent()) {
        rq.setName(createConfigurationName(testClass.get(), method));
        rq.setDescription(createConfigurationDescription(testClass.get(), method));
    } else {
        rq.setName(createConfigurationName(method.getDeclaringClass(), method));
        rq.setDescription(createConfigurationDescription(method.getDeclaringClass(), method));
    }
    String uniqueId = parentContext.getUniqueId() + "/[method:" + method.getName() + "()]";
    rq.setUniqueId(uniqueId);
    ofNullable(context.getTags()).ifPresent(it -> rq.setAttributes(it.stream().map(tag -> new ItemAttributesRQ(null, tag)).collect(Collectors.toSet())));
    rq.setType(itemType.name());
    rq.setRetry(false);
    String codeRef = method.getDeclaringClass().getCanonicalName() + "." + method.getName();
    rq.setCodeRef(codeRef);
    TestCaseIdEntry caseId = ofNullable(method.getAnnotation(TestCaseId.class)).map(TestCaseId::value).map(TestCaseIdEntry::new).orElseGet(() -> TestCaseIdUtils.getTestCaseId(codeRef, Collections.emptyList()));
    rq.setTestCaseId(ofNullable(caseId).map(TestCaseIdEntry::getId).orElse(null));
    return rq;
}
Also used : java.util(java.util) ListenerParameters(com.epam.reportportal.listeners.ListenerParameters) Launch(com.epam.reportportal.service.Launch) com.epam.ta.reportportal.ws.model(com.epam.ta.reportportal.ws.model) Maybe(io.reactivex.Maybe) LoggerFactory(org.slf4j.LoggerFactory) ReportPortal(com.epam.reportportal.service.ReportPortal) AttributeParser(com.epam.reportportal.utils.AttributeParser) TestCaseId(com.epam.reportportal.annotations.TestCaseId) TestItemTree(com.epam.reportportal.service.tree.TestItemTree) StringUtils(org.apache.commons.lang3.StringUtils) TestCaseIdEntry(com.epam.reportportal.service.item.TestCaseIdEntry) SystemAttributesFetcher.collectSystemAttributes(com.epam.reportportal.junit5.SystemAttributesFetcher.collectSystemAttributes) Attributes(com.epam.reportportal.annotations.attribute.Attributes) TestCaseIdUtils(com.epam.reportportal.utils.TestCaseIdUtils) Nonnull(javax.annotation.Nonnull) Method(java.lang.reflect.Method) Nullable(javax.annotation.Nullable) ParameterUtils(com.epam.reportportal.utils.ParameterUtils) TestItemTree.createTestItemLeaf(com.epam.reportportal.service.tree.TestItemTree.createTestItemLeaf) Logger(org.slf4j.Logger) Optional.ofNullable(java.util.Optional.ofNullable) TestAbortedException(org.opentest4j.TestAbortedException) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) ExceptionUtils.getStackTrace(org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace) ItemStatus(com.epam.reportportal.listeners.ItemStatus) SaveLogRQ(com.epam.ta.reportportal.ws.model.log.SaveLogRQ) ParameterKey(com.epam.reportportal.annotations.ParameterKey) Collectors(java.util.stream.Collectors) ItemAttributesRQ(com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ) StartLaunchRQ(com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ) org.junit.jupiter.api(org.junit.jupiter.api) ItemType(com.epam.reportportal.junit5.ItemType) org.junit.jupiter.api.extension(org.junit.jupiter.api.extension) ItemTreeUtils.createItemTreeKey(com.epam.reportportal.junit5.utils.ItemTreeUtils.createItemTreeKey) AnnotatedElement(java.lang.reflect.AnnotatedElement) TestCaseId(com.epam.reportportal.annotations.TestCaseId) ItemAttributesRQ(com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ) TestCaseIdEntry(com.epam.reportportal.service.item.TestCaseIdEntry) Nonnull(javax.annotation.Nonnull)

Example 2 with ItemType

use of com.helger.peppol.wsclient2.ItemType in project agent-java-junit5 by reportportal.

the class ReportPortalExtension method startTestItem.

/**
 * Starts a test item of arbitrary type
 *
 * @param context     JUnit's test context
 * @param arguments   a list of test parameters
 * @param itemType    a type of the item
 * @param description the test description
 * @param startTime   the test start time
 */
protected void startTestItem(@Nonnull final ExtensionContext context, @Nonnull final List<Object> arguments, @Nonnull final ItemType itemType, @Nonnull final String description, @Nonnull final Date startTime) {
    idMapping.computeIfAbsent(context, c -> {
        StartTestItemRQ rq = buildStartStepRq(c, arguments, itemType, description, startTime);
        Launch launch = getLaunch(c);
        Maybe<String> itemId = c.getParent().flatMap(parent -> Optional.ofNullable(idMapping.get(parent))).map(parentTest -> {
            Maybe<String> item = launch.startTestItem(parentTest, rq);
            if (getReporter().getParameters().isCallbackReportingEnabled()) {
                TEST_ITEM_TREE.getTestItems().put(createItemTreeKey(rq.getName()), createTestItemLeaf(parentTest, item));
            }
            return item;
        }).orElseGet(() -> {
            Maybe<String> item = launch.startTestItem(rq);
            if (getReporter().getParameters().isCallbackReportingEnabled()) {
                TEST_ITEM_TREE.getTestItems().put(createItemTreeKey(rq.getName()), createTestItemLeaf(item));
            }
            return item;
        });
        if (TEMPLATE == itemType) {
            testTemplates.put(c, itemId);
        }
        return itemId;
    });
}
Also used : java.util(java.util) ListenerParameters(com.epam.reportportal.listeners.ListenerParameters) Launch(com.epam.reportportal.service.Launch) com.epam.ta.reportportal.ws.model(com.epam.ta.reportportal.ws.model) Maybe(io.reactivex.Maybe) LoggerFactory(org.slf4j.LoggerFactory) ReportPortal(com.epam.reportportal.service.ReportPortal) AttributeParser(com.epam.reportportal.utils.AttributeParser) TestCaseId(com.epam.reportportal.annotations.TestCaseId) TestItemTree(com.epam.reportportal.service.tree.TestItemTree) StringUtils(org.apache.commons.lang3.StringUtils) TestCaseIdEntry(com.epam.reportportal.service.item.TestCaseIdEntry) SystemAttributesFetcher.collectSystemAttributes(com.epam.reportportal.junit5.SystemAttributesFetcher.collectSystemAttributes) Attributes(com.epam.reportportal.annotations.attribute.Attributes) TestCaseIdUtils(com.epam.reportportal.utils.TestCaseIdUtils) Nonnull(javax.annotation.Nonnull) Method(java.lang.reflect.Method) Nullable(javax.annotation.Nullable) ParameterUtils(com.epam.reportportal.utils.ParameterUtils) TestItemTree.createTestItemLeaf(com.epam.reportportal.service.tree.TestItemTree.createTestItemLeaf) Logger(org.slf4j.Logger) Optional.ofNullable(java.util.Optional.ofNullable) TestAbortedException(org.opentest4j.TestAbortedException) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) ExceptionUtils.getStackTrace(org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace) ItemStatus(com.epam.reportportal.listeners.ItemStatus) SaveLogRQ(com.epam.ta.reportportal.ws.model.log.SaveLogRQ) ParameterKey(com.epam.reportportal.annotations.ParameterKey) Collectors(java.util.stream.Collectors) ItemAttributesRQ(com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ) StartLaunchRQ(com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ) org.junit.jupiter.api(org.junit.jupiter.api) ItemType(com.epam.reportportal.junit5.ItemType) org.junit.jupiter.api.extension(org.junit.jupiter.api.extension) ItemTreeUtils.createItemTreeKey(com.epam.reportportal.junit5.utils.ItemTreeUtils.createItemTreeKey) AnnotatedElement(java.lang.reflect.AnnotatedElement) Maybe(io.reactivex.Maybe) Launch(com.epam.reportportal.service.Launch)

Example 3 with ItemType

use of com.helger.peppol.wsclient2.ItemType in project peppol-practical by phax.

the class WSDVS method validate.

@Nonnull
public ResponseType validate(@Nonnull final RequestType aValidationRequest) throws ValidateFaultError {
    final HttpServletRequest aHttpRequest = (HttpServletRequest) m_aWSContext.getMessageContext().get(MessageContext.SERVLET_REQUEST);
    final HttpServletResponse aHttpResponse = (HttpServletResponse) m_aWSContext.getMessageContext().get(MessageContext.SERVLET_RESPONSE);
    final String sRateLimitKey = "ip:" + aHttpRequest.getRemoteAddr();
    final boolean bOverRateLimit = m_aRequestRateLimiter != null ? m_aRequestRateLimiter.overLimitWhenIncremented(sRateLimitKey) : false;
    final String sInvocationUniqueID = Integer.toString(INVOCATION_COUNTER.incrementAndGet());
    RW_LOCK.writeLocked(() -> {
        // Just append to file
        try (final CSVWriter w = new CSVWriter(FileHelper.getPrintWriter(WebFileIO.getDataIO().getFile("wsdvs-logs.csv"), EAppend.APPEND, StandardCharsets.ISO_8859_1))) {
            w.setSeparatorChar(';');
            w.writeNext(SESSION_ID, sInvocationUniqueID, PDTFactory.getCurrentLocalDateTime().toString(), aHttpRequest.getRemoteAddr(), Boolean.toString(bOverRateLimit), aValidationRequest.getVESID(), Integer.toString(StringHelper.getLength(aValidationRequest.getXML())), RequestHelper.getHttpUserAgentStringFromRequest(aHttpRequest));
        } catch (final IOException ex) {
            LOGGER.error("Error writing CSV: " + ex.getMessage());
        }
    });
    if (LOGGER.isInfoEnabled())
        LOGGER.info("Start validating business document with SOAP WS; source [" + aHttpRequest.getRemoteAddr() + ":" + aHttpRequest.getRemotePort() + "]; VESID '" + aValidationRequest.getVESID() + "'; Payload: " + StringHelper.getLength(aValidationRequest.getXML()) + " bytes;" + (bOverRateLimit ? " RATE LIMIT EXCEEDED" : ""));
    // Start request scope
    try (final WebScoped aWebScoped = new WebScoped(aHttpRequest, aHttpResponse)) {
        // Track total invocation
        STATS_COUNTER_TOTOAL.increment();
        if (bOverRateLimit) {
            // Too Many Requests
            if (LOGGER.isDebugEnabled())
                LOGGER.debug("REST search rate limit exceeded for " + sRateLimitKey);
            final HttpServletResponse aResponse = (HttpServletResponse) m_aWSContext.getMessageContext().get(MessageContext.SERVLET_RESPONSE);
            try {
                aResponse.sendError(CHttp.HTTP_TOO_MANY_REQUESTS);
            } catch (final IOException ex) {
                throw new UncheckedIOException(ex);
            }
            return null;
        }
        // Interpret parameters
        final String sVESID = aValidationRequest.getVESID();
        final VESID aVESID = VESID.parseIDOrNull(sVESID);
        if (aVESID == null)
            _throw("Syntactically invalid VESID '" + sVESID + "' provided!");
        final IValidationExecutorSet<IValidationSourceXML> aVES = ExtValidationKeyRegistry.getFromIDOrNull(aVESID);
        if (aVES == null)
            _throw("Unsupported VESID " + aVESID.getAsSingleID() + " provided!");
        if (aVES.isDeprecated())
            LOGGER.warn("  VESID '" + aVESID.getAsSingleID() + "' is deprecated");
        Document aXMLDoc = null;
        try {
            aXMLDoc = DOMReader.readXMLDOM(aValidationRequest.getXML());
        } catch (final Exception ex) {
        // fall-through
        }
        if (aXMLDoc == null)
            _throw("Invalid XML provided!");
        final String sDisplayLocale = aValidationRequest.getDisplayLocale();
        final Locale aDisplayLocale = StringHelper.hasText(sDisplayLocale) ? LocaleCache.getInstance().getLocale(sDisplayLocale) : CPPApp.DEFAULT_LOCALE;
        if (aDisplayLocale == null)
            _throw("Invalid display locale '" + sDisplayLocale + "' provided!");
        // All input parameters are valid!
        if (LOGGER.isInfoEnabled())
            LOGGER.info("Validating by SOAP WS using " + aVESID.getAsSingleID());
        final StopWatch aSW = StopWatch.createdStarted();
        // Start validating
        final ValidationResultList aVRL = ValidationExecutionManager.executeValidation(aVES, ValidationSourceXML.create("uploaded-file", aXMLDoc), aDisplayLocale);
        // Result object
        final ResponseType ret = new ResponseType();
        int nWarnings = 0;
        int nErrors = 0;
        boolean bValidationInterrupted = false;
        IErrorLevel aMostSevere = EErrorLevel.LOWEST;
        for (final ValidationResult aVR : aVRL) {
            final ValidationResultType aVRT = new ValidationResultType();
            if (aVR.isIgnored()) {
                bValidationInterrupted = true;
                aVRT.setSuccess(TriStateType.UNDEFINED);
            } else {
                aVRT.setSuccess(aVR.isSuccess() ? TriStateType.TRUE : TriStateType.FALSE);
            }
            aVRT.setArtifactType(aVR.getValidationArtefact().getValidationArtefactType().getID());
            aVRT.setArtifactPath(aVR.getValidationArtefact().getRuleResource().getPath());
            for (final IError aError : aVR.getErrorList()) {
                if (aError.getErrorLevel().isGT(aMostSevere))
                    aMostSevere = aError.getErrorLevel();
                if (aError.getErrorLevel().isGE(EErrorLevel.ERROR))
                    nErrors++;
                else if (aError.getErrorLevel().isGE(EErrorLevel.WARN))
                    nWarnings++;
                final ItemType aItem = new ItemType();
                aItem.setErrorLevel(_convert(aError.getErrorLevel()));
                if (aError.hasErrorID())
                    aItem.setErrorID(aError.getErrorID());
                if (aError.hasErrorFieldName())
                    aItem.setErrorFieldName(aError.getErrorFieldName());
                if (aError.hasErrorLocation())
                    aItem.setErrorLocation(aError.getErrorLocation().getAsString());
                aItem.setErrorText(aError.getErrorText(aDisplayLocale));
                if (aError.hasLinkedException())
                    aItem.setException(StackTraceHelper.getStackAsString(aError.getLinkedException()));
                if (aError instanceof SVRLResourceError) {
                    final String sTest = ((SVRLResourceError) aError).getTest();
                    aItem.setTest(sTest);
                }
                aVRT.addItem(aItem);
            }
            ret.addResult(aVRT);
        }
        // Success if the worst that happened is a warning
        ret.setSuccess(aMostSevere.isLE(EErrorLevel.WARN));
        ret.setInterrupted(bValidationInterrupted);
        ret.setMostSevereErrorLevel(_convert(aMostSevere));
        aSW.stop();
        if (LOGGER.isInfoEnabled())
            LOGGER.info("Finished validation after " + aSW.getMillis() + "ms; " + nWarnings + " warns; " + nErrors + " errors");
        STATS_TIMER.addTime(aSW.getMillis());
        // Track validation result
        if (ret.getMostSevereErrorLevel().equals(ErrorLevelType.ERROR))
            STATS_COUNTER_VALIDATION_ERROR.increment();
        else
            STATS_COUNTER_VALIDATION_SUCCESS.increment();
        // Track API result
        if (ret.isSuccess())
            STATS_COUNTER_API_SUCCESS.increment();
        else
            STATS_COUNTER_API_ERROR.increment();
        final int nFinalWarnings = nWarnings;
        final int nFinalErrors = nErrors;
        RW_LOCK.writeLocked(() -> {
            // Just append to file
            try (final CSVWriter w = new CSVWriter(FileHelper.getPrintWriter(WebFileIO.getDataIO().getFile("wsdvs-results.csv"), EAppend.APPEND, StandardCharsets.ISO_8859_1))) {
                w.setSeparatorChar(';');
                w.writeNext(SESSION_ID, sInvocationUniqueID, PDTFactory.getCurrentLocalDateTime().toString(), Long.toString(aSW.getMillis()), Integer.toString(nFinalWarnings), Integer.toString(nFinalErrors));
            } catch (final IOException ex) {
                LOGGER.error("Error writing CSV2: " + ex.getMessage());
            }
        });
        return ret;
    } finally {
        if (LOGGER.isInfoEnabled())
            LOGGER.info("Finished validating business document with SOAP WS");
    }
}
Also used : WebScoped(com.helger.web.scope.mgr.WebScoped) Locale(java.util.Locale) VESID(com.helger.phive.api.executorset.VESID) ItemType(com.helger.peppol.wsclient2.ItemType) HttpServletResponse(javax.servlet.http.HttpServletResponse) CSVWriter(com.helger.commons.csv.CSVWriter) UncheckedIOException(java.io.UncheckedIOException) IValidationSourceXML(com.helger.phive.engine.source.IValidationSourceXML) UncheckedIOException(java.io.UncheckedIOException) IOException(java.io.IOException) Document(org.w3c.dom.Document) ValidationResult(com.helger.phive.api.result.ValidationResult) IError(com.helger.commons.error.IError) UncheckedIOException(java.io.UncheckedIOException) IOException(java.io.IOException) StopWatch(com.helger.commons.timing.StopWatch) ResponseType(com.helger.peppol.wsclient2.ResponseType) HttpServletRequest(javax.servlet.http.HttpServletRequest) ValidationResultList(com.helger.phive.api.result.ValidationResultList) ValidationResultType(com.helger.peppol.wsclient2.ValidationResultType) IErrorLevel(com.helger.commons.error.level.IErrorLevel) SVRLResourceError(com.helger.schematron.svrl.SVRLResourceError) Nonnull(javax.annotation.Nonnull)

Example 4 with ItemType

use of com.helger.peppol.wsclient2.ItemType in project peppol-practical by phax.

the class MainWSDVSClient method main.

public static void main(final String[] args) throws ValidateFaultError {
    WSHelper.enableSoapLogging(true);
    LOGGER.info("Starting the engines");
    final String sXML = StreamHelper.getAllBytesAsString(new ClassPathResource("ws/invoice1.xml"), StandardCharsets.UTF_8);
    final WSDVSService aService = new WSDVSService(new FileSystemResource("src/main/webapp/WEB-INF/wsdl/pp-dvs.wsdl").getAsURL());
    final WSDVSPort aPort = aService.getWSDVSPort();
    final WSClientConfig aWsClientConfig = new WSClientConfig(URLHelper.getAsURL(true ? "https://peppol.helger.com/wsdvs" : "http://localhost:8080/wsdvs"));
    aWsClientConfig.applyWSSettingsToBindingProvider((BindingProvider) aPort);
    LOGGER.info("Starting validation process");
    final RequestType aRequest = new RequestType();
    aRequest.setVESID(PeppolValidation3_13_0.VID_OPENPEPPOL_INVOICE_V3.getAsSingleID());
    aRequest.setXML(sXML);
    aRequest.setDisplayLocale("en");
    final ResponseType aResponse = aPort.validate(aRequest);
    if (false)
        LOGGER.info("Result:\n" + new GenericJAXBMarshaller<>(ResponseType.class, com.helger.peppol.wsclient2.ObjectFactory._ValidateResponseOutput_QNAME).getAsString(aResponse));
    LOGGER.info("Success: " + aResponse.isSuccess());
    LOGGER.info("Interrupted: " + aResponse.isInterrupted());
    LOGGER.info("Most severe error level: " + aResponse.getMostSevereErrorLevel());
    int nPos = 1;
    final int nMaxPos = aResponse.getResultCount();
    for (final ValidationResultType aResult : aResponse.getResult()) {
        LOGGER.info("  [" + nPos + "/" + nMaxPos + "] " + aResult.getArtifactType() + " - " + aResult.getArtifactPath());
        ++nPos;
        LOGGER.info("  Success: " + aResult.getSuccess());
        for (final ItemType aItem : aResult.getItem()) {
            LOGGER.info("    Error Level: " + aItem.getErrorLevel());
            if (aItem.getErrorID() != null)
                LOGGER.info("    Error ID: " + aItem.getErrorID());
            if (aItem.getErrorFieldName() != null)
                LOGGER.info("    Error Field: " + aItem.getErrorFieldName());
            LOGGER.info("    Error Text: " + aItem.getErrorText());
            if (aItem.getErrorLocation() != null)
                LOGGER.info("    Location: " + aItem.getErrorLocation());
            if (aItem.getTest() != null)
                LOGGER.info("    Test: " + aItem.getTest());
            LOGGER.info("--");
        }
    }
    LOGGER.info("Done");
}
Also used : WSDVSService(com.helger.peppol.wsclient2.WSDVSService) WSDVSPort(com.helger.peppol.wsclient2.WSDVSPort) WSClientConfig(com.helger.wsclient.WSClientConfig) ValidationResultType(com.helger.peppol.wsclient2.ValidationResultType) ItemType(com.helger.peppol.wsclient2.ItemType) FileSystemResource(com.helger.commons.io.resource.FileSystemResource) GenericJAXBMarshaller(com.helger.jaxb.GenericJAXBMarshaller) ClassPathResource(com.helger.commons.io.resource.ClassPathResource) RequestType(com.helger.peppol.wsclient2.RequestType) ResponseType(com.helger.peppol.wsclient2.ResponseType)

Example 5 with ItemType

use of com.helger.peppol.wsclient2.ItemType in project agent-java-junit5 by reportportal.

the class ReportPortalExtension method startBeforeAfter.

/**
 * Starts the following methods: <code>@BeforeEach</code>, <code>@AfterEach</code>, <code>@BeforeAll</code> or <code>@AfterAll</code>
 *
 * @param method        a method reference
 * @param parentContext JUnit's test context of a parent item
 * @param context       JUnit's test context of a method to start
 * @param itemType      a method's item type (to display on RP)
 * @return an ID of the method
 */
protected Maybe<String> startBeforeAfter(Method method, ExtensionContext parentContext, ExtensionContext context, ItemType itemType) {
    Launch launch = getLaunch(context);
    StartTestItemRQ rq = buildStartConfigurationRq(method, parentContext, context, itemType);
    return getItemId(parentContext).map(pid -> launch.startTestItem(pid, rq)).orElseGet(() -> launch.startTestItem(rq));
}
Also used : java.util(java.util) ListenerParameters(com.epam.reportportal.listeners.ListenerParameters) Launch(com.epam.reportportal.service.Launch) com.epam.ta.reportportal.ws.model(com.epam.ta.reportportal.ws.model) Maybe(io.reactivex.Maybe) LoggerFactory(org.slf4j.LoggerFactory) ReportPortal(com.epam.reportportal.service.ReportPortal) AttributeParser(com.epam.reportportal.utils.AttributeParser) TestCaseId(com.epam.reportportal.annotations.TestCaseId) TestItemTree(com.epam.reportportal.service.tree.TestItemTree) StringUtils(org.apache.commons.lang3.StringUtils) TestCaseIdEntry(com.epam.reportportal.service.item.TestCaseIdEntry) SystemAttributesFetcher.collectSystemAttributes(com.epam.reportportal.junit5.SystemAttributesFetcher.collectSystemAttributes) Attributes(com.epam.reportportal.annotations.attribute.Attributes) TestCaseIdUtils(com.epam.reportportal.utils.TestCaseIdUtils) Nonnull(javax.annotation.Nonnull) Method(java.lang.reflect.Method) Nullable(javax.annotation.Nullable) ParameterUtils(com.epam.reportportal.utils.ParameterUtils) TestItemTree.createTestItemLeaf(com.epam.reportportal.service.tree.TestItemTree.createTestItemLeaf) Logger(org.slf4j.Logger) Optional.ofNullable(java.util.Optional.ofNullable) TestAbortedException(org.opentest4j.TestAbortedException) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) ExceptionUtils.getStackTrace(org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace) ItemStatus(com.epam.reportportal.listeners.ItemStatus) SaveLogRQ(com.epam.ta.reportportal.ws.model.log.SaveLogRQ) ParameterKey(com.epam.reportportal.annotations.ParameterKey) Collectors(java.util.stream.Collectors) ItemAttributesRQ(com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ) StartLaunchRQ(com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ) org.junit.jupiter.api(org.junit.jupiter.api) ItemType(com.epam.reportportal.junit5.ItemType) org.junit.jupiter.api.extension(org.junit.jupiter.api.extension) ItemTreeUtils.createItemTreeKey(com.epam.reportportal.junit5.utils.ItemTreeUtils.createItemTreeKey) AnnotatedElement(java.lang.reflect.AnnotatedElement) Launch(com.epam.reportportal.service.Launch)

Aggregations

Nonnull (javax.annotation.Nonnull)5 ParameterKey (com.epam.reportportal.annotations.ParameterKey)4 TestCaseId (com.epam.reportportal.annotations.TestCaseId)4 Attributes (com.epam.reportportal.annotations.attribute.Attributes)4 ItemType (com.epam.reportportal.junit5.ItemType)4 SystemAttributesFetcher.collectSystemAttributes (com.epam.reportportal.junit5.SystemAttributesFetcher.collectSystemAttributes)4 ItemTreeUtils.createItemTreeKey (com.epam.reportportal.junit5.utils.ItemTreeUtils.createItemTreeKey)4 ItemStatus (com.epam.reportportal.listeners.ItemStatus)4 ListenerParameters (com.epam.reportportal.listeners.ListenerParameters)4 Launch (com.epam.reportportal.service.Launch)4 ReportPortal (com.epam.reportportal.service.ReportPortal)4 TestCaseIdEntry (com.epam.reportportal.service.item.TestCaseIdEntry)4 TestItemTree (com.epam.reportportal.service.tree.TestItemTree)4 TestItemTree.createTestItemLeaf (com.epam.reportportal.service.tree.TestItemTree.createTestItemLeaf)4 AttributeParser (com.epam.reportportal.utils.AttributeParser)4 ParameterUtils (com.epam.reportportal.utils.ParameterUtils)4 TestCaseIdUtils (com.epam.reportportal.utils.TestCaseIdUtils)4 com.epam.ta.reportportal.ws.model (com.epam.ta.reportportal.ws.model)4 ItemAttributesRQ (com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ)4 StartLaunchRQ (com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ)4