Package de.qytera.qtaf.xray.builder.test
Class SingleIterationXrayTestEntityBuilder
java.lang.Object
de.qytera.qtaf.xray.builder.test.XrayTestEntityBuilder<TestScenarioLogCollection>
de.qytera.qtaf.xray.builder.test.SingleIterationXrayTestEntityBuilder
public class SingleIterationXrayTestEntityBuilder
extends XrayTestEntityBuilder<TestScenarioLogCollection>
Builds
XrayTestEntity objects for single test iterations.-
Field Summary
Fields inherited from class de.qytera.qtaf.xray.builder.test.XrayTestEntityBuilder
collection, issueSummaries, reportCreator -
Constructor Summary
ConstructorsConstructorDescriptionSingleIterationXrayTestEntityBuilder(@NonNull TestSuiteLogCollection collection, @NonNull Map<String, String> issueSummaries) Constructs a new Xray test entity builder for tests with single test iterations. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAssignee(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the user id who the test should be assigned to from provided scenario data.protected StringgetComment(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test comment from provided scenario data.protected List<XrayCustomFieldEntity>getCustomFields(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's list of custom field (values) from provided scenario data.getDefects(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's list of defects from provided scenario data.protected DategetEndDate(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test end date from provided scenario data.protected List<XrayEvidenceItemEntity>getEvidence(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's list of (defect) evidence from provided scenario data.getExamples(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's list of examples from provided scenario data.protected StringgetExecutedBy(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the user id who executed the test from provided scenario data.protected List<XrayIterationResultEntity>getIterations(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's list of iterations from provided scenario data.protected DategetStartDate(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test start date from provided scenario data.protected TestScenarioLogCollection.StatusgetStatus(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's status from provided scenario data.protected List<XrayManualTestStepResultEntity>getSteps(XrayTest xrayTest, TestScenarioLogCollection scenario) Extracts the test's list of test step results from provided scenario data.protected XrayTestInfoEntitygetTestInfo(XrayTest xrayTest, TestScenarioLogCollection scenario) 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
-
SingleIterationXrayTestEntityBuilder
public SingleIterationXrayTestEntityBuilder(@NonNull @NonNull TestSuiteLogCollection collection, @NonNull @NonNull Map<String, String> issueSummaries) Constructs a new Xray test entity builder for tests with single 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, TestScenarioLogCollection scenario) Description copied from class:XrayTestEntityBuilderExtracts the test's status from provided scenario data.- Specified by:
getStatusin classXrayTestEntityBuilder<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- the scenario data to extract the status from- Returns:
- the test's status
- See Also:
-
getTestInfo
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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- the scenario data to extract the assignee from- Returns:
- the test's assignee
- See Also:
-
getSteps
protected List<XrayManualTestStepResultEntity> getSteps(XrayTest xrayTest, TestScenarioLogCollection scenario) Description copied from class:XrayTestEntityBuilderExtracts the test's list of test step results from provided scenario data.- Specified by:
getStepsin classXrayTestEntityBuilder<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- the scenario data to extract the examples from- Returns:
- the test's examples
- See Also:
-
getIterations
protected List<XrayIterationResultEntity> getIterations(XrayTest xrayTest, TestScenarioLogCollection scenario) Description copied from class:XrayTestEntityBuilderExtracts the test's list of iterations from provided scenario data.- Specified by:
getIterationsin classXrayTestEntityBuilder<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- 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<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- the scenario data to extract the defects from- Returns:
- the test's defects
- See Also:
-
getEvidence
protected List<XrayEvidenceItemEntity> getEvidence(XrayTest xrayTest, TestScenarioLogCollection scenario) Description copied from class:XrayTestEntityBuilderExtracts the test's list of (defect) evidence from provided scenario data.- Specified by:
getEvidencein classXrayTestEntityBuilder<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- the scenario data to extract the evidence from- Returns:
- the test's evidence
- See Also:
-
getCustomFields
protected List<XrayCustomFieldEntity> getCustomFields(XrayTest xrayTest, TestScenarioLogCollection scenario) Description copied from class:XrayTestEntityBuilderExtracts the test's list of custom field (values) from provided scenario data.- Specified by:
getCustomFieldsin classXrayTestEntityBuilder<TestScenarioLogCollection>- Parameters:
xrayTest- theXrayTestannotation of the testscenario- the scenario data to extract the custom fields from- Returns:
- the test's custom field (values)
- See Also:
-