Class AllureTestResultGenerator

java.lang.Object
de.qytera.qtaf.allure.AllureTestResultGenerator

public class AllureTestResultGenerator extends Object
Class for mapping QTAF data structure to Allure data structure
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.qameta.allure.model.TestResult
    fromQtafTestScenario(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenario)
    Map QTAF Test feature entity to Allure TestResult entity
    static List<io.qameta.allure.model.TestResult>
    fromQtafTestSuiteCollection(de.qytera.qtaf.core.log.model.collection.TestSuiteLogCollection collection)
    QTAF Test Suite is mapped to list of Allure TestResult entities
    static List<io.qameta.allure.model.Attachment>
    getAllureStepResultAttachments(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
    Get Allure StepResult attachments from QTAF step entity
    static List<io.qameta.allure.model.Attachment>
    getAllureTestResultAttachments(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenarioLogCollection)
    Get Allure TestResult attachments from QTAF scenario entity
    static List<io.qameta.allure.model.Parameter>
    getStepResultParameters(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
    Get List of StepResult parameters from QTAF Step entity
    static List<io.qameta.allure.model.StepResult>
    getStepResultsFromQtafScenario(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenario)
    Get list of StepResult entities from QTAF scenario
    static io.qameta.allure.model.Stage
    getStepStageFromQtafStep(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
    Map QTAF Step to Allure StepResult stage
    static io.qameta.allure.model.Status
    getStepStatusFromQtafStep(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
    Map QTAF Step status to Allure StepResult status
    static io.qameta.allure.model.Status
    mapQtafScenarioStatusToAllureTestResultStatus(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection.Status status)
    Map QTAF scenario status to Allure TestResult status

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AllureTestResultGenerator

      public AllureTestResultGenerator()
  • Method Details

    • fromQtafTestSuiteCollection

      public static List<io.qameta.allure.model.TestResult> fromQtafTestSuiteCollection(de.qytera.qtaf.core.log.model.collection.TestSuiteLogCollection collection)
      QTAF Test Suite is mapped to list of Allure TestResult entities
      Parameters:
      collection - QTAF Test suite entity
      Returns:
      List of Allure TestResult entities
    • fromQtafTestScenario

      public static io.qameta.allure.model.TestResult fromQtafTestScenario(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenario)
      Map QTAF Test feature entity to Allure TestResult entity
      Parameters:
      scenario - QTAF Test Feature entity
      Returns:
      Allure TestResult Entity
    • getStepResultsFromQtafScenario

      public static List<io.qameta.allure.model.StepResult> getStepResultsFromQtafScenario(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenario)
      Get list of StepResult entities from QTAF scenario
      Parameters:
      scenario - QTAF scenario
      Returns:
      List of Allure StepResult entities
    • getStepStageFromQtafStep

      public static io.qameta.allure.model.Stage getStepStageFromQtafStep(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
      Map QTAF Step to Allure StepResult stage
      Parameters:
      stepLog - QTAF step entity
      Returns:
      Allure Step status
    • getStepStatusFromQtafStep

      public static io.qameta.allure.model.Status getStepStatusFromQtafStep(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
      Map QTAF Step status to Allure StepResult status
      Parameters:
      stepLog - QTAF step entity
      Returns:
      Allure Step status
    • getStepResultParameters

      public static List<io.qameta.allure.model.Parameter> getStepResultParameters(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
      Get List of StepResult parameters from QTAF Step entity
      Parameters:
      stepLog - QTAF step entity
      Returns:
      List of Allure Step parameters
    • getAllureTestResultAttachments

      public static List<io.qameta.allure.model.Attachment> getAllureTestResultAttachments(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenarioLogCollection)
      Get Allure TestResult attachments from QTAF scenario entity
      Parameters:
      scenarioLogCollection - QTAF scenario entity
      Returns:
      List if attachments
    • getAllureStepResultAttachments

      public static List<io.qameta.allure.model.Attachment> getAllureStepResultAttachments(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog)
      Get Allure StepResult attachments from QTAF step entity
      Parameters:
      stepLog - QTAF step entity
      Returns:
      List if attachments
    • mapQtafScenarioStatusToAllureTestResultStatus

      public static io.qameta.allure.model.Status mapQtafScenarioStatusToAllureTestResultStatus(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection.Status status)
      Map QTAF scenario status to Allure TestResult status
      Parameters:
      status - QTAF scenario status
      Returns:
      Allure TestResult status