eclipse-tractusx / sig-release

https://eclipse-tractusx.github.io/sig-release
Apache License 2.0
9 stars 10 forks source link

[Testmanagement] TRG Test Automation Proposal #969

Open ds-hzimmer opened 3 weeks ago

ds-hzimmer commented 3 weeks ago

Overview

Providing a Tractus-X Release Guideline (TRG) for Test Automation using Open Source methods and tools, in order to give product teams a template and best-practice example to start with or improve

Focus will be on API tests at the integration test level (end-to-end). Potentially UI tests at the integration test level can also be covered. Test automation with Unit Tests at lower test levels are presumably out of scope of this TRG, as those are already covered elsewhere and standard for implementation.

Explain the topic in 2 sentences

Creation of a TRG for test automation Open Source methods and tools. Providing code examples for an implementation focused on Cucumber (Gherkin).

What's the benefit?

Providing a guideline on how to implement a closed test automation cycle from feature user story via test case creation to implementation, test execution and test reporting.

Ultimately this should result in increased quality and speed in test execution.

What are the Risks/Dependencies ?

Detailed explanation

TRG contents:

Current implementation

Compare to existing implementations for products Trace-X and IRS as examples that can be provided https://github.com/eclipse-tractusx/item-relationship-service/tree/main/irs-cucumber-tests https://github.com/eclipse-tractusx/traceability-foss/tree/main/tx-cucumber-tests

Proposed improvements

Feature Team

Catena-X e.V. test management (doubleSlash, on order of the association)

Potentially involvement of additional teams. Interviews for current test automation status have already been conducted with first teams.

Contributor

Additional contributors to be determined

Committer

Additional committers to be determined

User Stories

Acceptance Criteria

Out of scope: Implementation of Test Automation TRG by a new product team within the release.

Test Cases

Note: Not directly applicable as this feature suggestion describes a testing improvement itself.

Test Case 1: Test Automation TRG describes definition of test cases (structure, syntax, etc.) with Cucumber

Test Case 2: Test Automation TRG includes suggestions for implementation, including code examples.

(Though exact implementation of scenarios of course depends on the used programming language.)

Test Case 3: Test Automation TRG describes test case handling:

Test Case 3: Test Automation should describe scenarios for different REST API calls

Steps and Expected Results to be determined

Architectural Relevance

Note: Some checks potentially not directly applicable as this feature suggestion describes a testing/test management improvement and not a feature change in the functionality of a product itself.

The following items are ensured (answer: yes) after this issue is implemented:

Justification: (Fill this out, if at least one of the checkboxes above cannot be ticked. Contact the Architecture Management Committee to get an approval for the justification)

Additional information

stephanbcbauer commented 1 week ago

Some hints from Release Management (@ther3sa) and Tractus-X Project Lead (@stephanbcbauer)