Package de.qytera.qtaf.allure
Class AllureTestResultGenerator
java.lang.Object
de.qytera.qtaf.allure.AllureTestResultGenerator
Class for mapping QTAF data structure to Allure data structure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.qameta.allure.model.TestResultfromQtafTestScenario(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenario) Map QTAF Test feature entity to Allure TestResult entitystatic 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 entitiesstatic List<io.qameta.allure.model.Attachment>getAllureStepResultAttachments(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog) Get Allure StepResult attachments from QTAF step entitystatic List<io.qameta.allure.model.Attachment>getAllureTestResultAttachments(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenarioLogCollection) Get Allure TestResult attachments from QTAF scenario entitystatic List<io.qameta.allure.model.Parameter>getStepResultParameters(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog) Get List of StepResult parameters from QTAF Step entitystatic List<io.qameta.allure.model.StepResult>getStepResultsFromQtafScenario(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection scenario) Get list of StepResult entities from QTAF scenariostatic io.qameta.allure.model.StagegetStepStageFromQtafStep(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog) Map QTAF Step to Allure StepResult stagestatic io.qameta.allure.model.StatusgetStepStatusFromQtafStep(de.qytera.qtaf.core.log.model.message.StepInformationLogMessage stepLog) Map QTAF Step status to Allure StepResult statusstatic io.qameta.allure.model.StatusmapQtafScenarioStatusToAllureTestResultStatus(de.qytera.qtaf.core.log.model.collection.TestScenarioLogCollection.Status status) Map QTAF scenario status to Allure TestResult status
-
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
-