Package de.qytera.qtaf.xray.builder.test
Class MultipleIterationsXrayTestEntityBuilder
java.lang.Object
de.qytera.qtaf.xray.builder.test.XrayTestEntityBuilder<List<TestScenarioLogCollection>>
de.qytera.qtaf.xray.builder.test.MultipleIterationsXrayTestEntityBuilder
public class MultipleIterationsXrayTestEntityBuilder
extends XrayTestEntityBuilder<List<TestScenarioLogCollection>>
Builds an
XrayTestEntity objects for multiple test iterations.-
Field Summary
Fields inherited from class de.qytera.qtaf.xray.builder.test.XrayTestEntityBuilder
collection, issueSummaries, reportCreator -
Constructor Summary
ConstructorsConstructorDescriptionMultipleIterationsXrayTestEntityBuilder(@NonNull TestSuiteLogCollection collection, @NonNull Map<String, String> issueSummaries) Constructs a new Xray test entity builder for tests with multiple test iterations. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAssignee(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the user id who the test should be assigned to from provided scenario data.protected StringgetComment(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test comment from provided scenario data.protected List<XrayCustomFieldEntity>getCustomFields(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's list of custom field (values) from provided scenario data.getDefects(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's list of defects from provided scenario data.protected DategetEndDate(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test end date from provided scenario data.protected List<XrayEvidenceItemEntity>getEvidence(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's list of (defect) evidence from provided scenario data.getExamples(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's list of examples from provided scenario data.protected StringgetExecutedBy(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the user id who executed the test from provided scenario data.protected List<XrayIterationResultEntity>getIterations(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's list of iterations from provided scenario data.protected DategetStartDate(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test start date from provided scenario data.protected TestScenarioLogCollection.StatusgetStatus(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's status from provided scenario data.protected List<XrayManualTestStepResultEntity>getSteps(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Extracts the test's list of test step results from provided scenario data.protected XrayTestInfoEntitygetTestInfo(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Builds a test information entity for a test.Methods inherited from class de.qytera.qtaf.xray.builder.test.XrayTestEntityBuilder
buildActualResult, buildManualTestStepResultEntity, buildMergedManualTestStepResultEntity, buildMergedTestStepEntity, buildTestEntity, buildTestStepEntity
-
Constructor Details
-
MultipleIterationsXrayTestEntityBuilder
public MultipleIterationsXrayTestEntityBuilder(@NonNull @NonNull TestSuiteLogCollection collection, @NonNull @NonNull Map<String, String> issueSummaries) Constructs a new Xray test entity builder for tests with multiple test iterations.- Parameters:
collection- the collection instance required for building HTML reportsissueSummaries- the Jira issue summaries required when updating test issue steps
-
-
Method Details
-
getStatus
protected TestScenarioLogCollection.Status getStatus(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Description copied from class:XrayTestEntityBuilderExtracts the test's status from provided scenario data.- Specified by:
getStatusin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the status from- Returns:
- the test's status
- See Also:
-
getTestInfo
protected XrayTestInfoEntity getTestInfo(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Description copied from class:XrayTestEntityBuilderBuilds a test information entity for a test. Returnsnullif the configuration has not been configured to build test information entities.- Specified by:
getTestInfoin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to transform into anXrayTestInfoEntity- Returns:
- the test information entity
-
getStartDate
Description copied from class:XrayTestEntityBuilderExtracts the test start date from provided scenario data.- Specified by:
getStartDatein classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the start date from- Returns:
- the test's start date
- See Also:
-
getEndDate
Description copied from class:XrayTestEntityBuilderExtracts the test end date from provided scenario data.- Specified by:
getEndDatein classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the end date from- Returns:
- the test's end date
- See Also:
-
getComment
Description copied from class:XrayTestEntityBuilderExtracts the test comment from provided scenario data.- Specified by:
getCommentin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the comment from- Returns:
- the test's comment
- See Also:
-
getExecutedBy
Description copied from class:XrayTestEntityBuilderExtracts the user id who executed the test from provided scenario data.- Specified by:
getExecutedByin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the user id from- Returns:
- the user id of the user who executed the test
- See Also:
-
getAssignee
Description copied from class:XrayTestEntityBuilderExtracts the user id who the test should be assigned to from provided scenario data.- Specified by:
getAssigneein classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the assignee from- Returns:
- the test's assignee
- See Also:
-
getSteps
protected List<XrayManualTestStepResultEntity> getSteps(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Description copied from class:XrayTestEntityBuilderExtracts the test's list of test step results from provided scenario data.- Specified by:
getStepsin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the steps from- Returns:
- the test's steps
- See Also:
-
getExamples
Description copied from class:XrayTestEntityBuilderExtracts the test's list of examples from provided scenario data.- Specified by:
getExamplesin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the examples from- Returns:
- the test's examples
- See Also:
-
getIterations
protected List<XrayIterationResultEntity> getIterations(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Description copied from class:XrayTestEntityBuilderExtracts the test's list of iterations from provided scenario data.- Specified by:
getIterationsin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the iterations from- Returns:
- the test's iterations
- See Also:
-
getDefects
Description copied from class:XrayTestEntityBuilderExtracts the test's list of defects from provided scenario data.- Specified by:
getDefectsin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the defects from- Returns:
- the test's defects
- See Also:
-
getEvidence
protected List<XrayEvidenceItemEntity> getEvidence(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Description copied from class:XrayTestEntityBuilderExtracts the test's list of (defect) evidence from provided scenario data.- Specified by:
getEvidencein classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the evidence from- Returns:
- the test's evidence
- See Also:
-
getCustomFields
protected List<XrayCustomFieldEntity> getCustomFields(XrayTest xrayTest, List<TestScenarioLogCollection> scenarioLogs) Description copied from class:XrayTestEntityBuilderExtracts the test's list of custom field (values) from provided scenario data.- Specified by:
getCustomFieldsin classXrayTestEntityBuilder<List<TestScenarioLogCollection>>- Parameters:
xrayTest- theXrayTestannotation of the testscenarioLogs- the scenario data to extract the custom fields from- Returns:
- the test's custom field (values)
- See Also:
-