OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add infos about showing test automation information from GitHub and GitLab (#19109)
isugic3ac3d1dcf0a6
diff --git a/docs/use-cases/test-management/README.md b/docs/use-cases/test-management/README.mdindex bbb3ad7920d..2315a998a4d 100644--- a/docs/use-cases/test-management/README.md+++ b/docs/use-cases/test-management/README.md@@ -37,23 +37,23 @@ This setup is not a replacement for full-scale test automation or advanced lab m### Core entities-| Concept | OpenProject entity |-| ------------------ | --------------------------------------------------- |-| Requirements | Work package (e.g., type `Feature` or `User Story`) |-| Test case | Work package type `Test Case` |-| Test run | Work package type `Test Run` (child of test case) |-| Test plan | Project (created from a template) |-| Version under test | OpenProject *Version* field on test runs |-| Defect | Work package (e.g., type `Bug`) |+| Concept | OpenProject entity |+| ------------------ | ------------------------------------------------------------ |+| Requirements | Work package (e.g., type `Feature` or `User Story`) |+| Test case | Work package type `Test Case` |+| Test run | Work package type `Test Run` (child of test case) |+| Test plan | Project (created from a [template](../../user-guide/projects/project-templates/)) |+| Version under test | OpenProject [Version](../../user-guide/projects/project-settings/versions/) field on test runs |+| Defect | Work package (e.g., type `Bug`) |### Relationships-- Each `Feature` or `User Story` may relate to one or more test cases.+- Each `Feature` or `User Story` may relate to one or more `Test Cases`.- Each `Test Case` defines a reusable test specification.-- Each `Test Case` has one or more Test Runs (child work packages).+- Each `Test Case` has one or more `Test Runs` (child work packages).- A `Test Run` is specific to one software version.- `Test Plans` are realized as individual projects per version, created from a reusable template.-- `Bugs` can be linked to failed Test Runs.+- `Bugs` can be linked to failed `Test Runs`.This structure supports traceability from requirements to execution and defect reporting.@@ -61,7 +61,7 @@ This structure supports traceability from requirements to execution and defect r### 1.1 Creating a test plan (project)-A new test plan project is created based on a predefined template using the *create project form*.+A new test plan project is created based on a predefined template using the [create project form](../../getting-started/projects/#create-a-new-project).@@ -111,14 +111,55 @@ Further tools can be used for reporting and metrics purposes with OpenProject:* Count test cases by status (Passed, Failed, Blocked)* Show tests assigned to each tester* Track the number of open vs. closed defects, or simply have an overview of the bugs by priority.-+-## 2. Configuration guidance+### 1.5 Test case evolution: reusability and standardization++As test cases evolve, we need to track changes and reuse them across different cycles. There are several possibilities to achieve this:+* Duplicating work packages, copying projects, creating projects from template, moving work packages to another projects are all good methods for reusing test cases for new test cycles or for creating variations.+* Manual history can be tracked on the activity/comment log for any manual changes to test case steps.+* Naming conventions can be implemented (e.g., "TC-Login-ValidCredentials-v1.0") to help manage variations.++To support consistency and standardization, OpenProject allows administrators to define **automatically generated subjects** for work packages. This feature enables the use of predefined patterns for naming, including for work package types such as `Test Case` and `Test Run`. As a result, newly created test cases and test runs automatically follow a consistent naming structure. This approach helps eliminate manual errors, improves searchability, and enhances filtering capabilities.++The subject pattern can incorporate dynamic attributes from the test case/test run itself (or its parent). In this example, `Test run`'s subject is derived from 2 fields: `Parent's subject` and `Version`.++++Such subject is created upon save and is not manually editable.++++Automatically generated subjects reduce manual effort and ensure that the name remains accurate and up-to-date if an attribute referenced in the subject pattern changes.++## 2. Test automation with GitHub and GitLab++### 2.1 Integration concept++OpenProject enables seamless integration between software development and test automation workflows in GitHub and GitLab with planning and specification in OpenProject. Work packages can display information from [GitHub pull requests](../../system-admin-guide/integrations/github-integration/) and [GitLab merge requests](../../system-admin-guide/integrations/gitlab-integration) in a dedicated tab.++This tab lists all pull or merge requests linked to a work package, showing their status (e.g., *Ready* or *Merged*) as well as the current state (e.g., *success* or *queued*) of the actions configured to run for each request—whether in GitHub or GitLab. The results of these actions are also displayed within the tab.++The relationship between work packages and pull/merge requests is many-to-many: a single work package can be linked to multiple pull or merge requests, and a single pull or merge request can be associated with multiple work packages.++++### 2.2 Benefits of the integration++Integrating GitHub and GitLab with OpenProject offers several advantages for software development teams:++- **Enhanced traceability**: By linking code changes directly to work packages, teams can easily trace the origin of each change, facilitating better understanding and accountability throughout the development process.+- **Improved collaboration**: Real-time visibility into the status of pull and merge requests fosters collaboration between developers, testers, and project managers, ensuring everyone stays informed and aligned.+- **Streamlined workflows**: Automated updates from GitHub and GitLab reduce manual tracking efforts, allowing teams to focus on development tasks and reducing the likelihood of oversight.+- **Accelerated delivery**: By integrating continuous integration and deployment (CI/CD) pipelines, teams can automate testing and deployment processes, leading to faster and more reliable software releases.+- **Comprehensive reporting**: Consolidated data from development and project management tools enables more comprehensive reporting and analytics, supporting informed decision-making and continuous improvement.++## 3. Configuration guidanceThis section provides guidance on how to configure OpenProject for test management. It assumes familiarity with OpenProject administration features.-### 2.1 Configuration example: Test Cases (work package type)+### 3.1 Configuration example: Test Cases (work package type)The work package type `Test case` can be configured so it shows the relevant information:@@ -133,7 +174,7 @@ Here you find an [example for a test case](https://testmanagement.openproject.co-### 2.2 Configuration example: Test Run (work package type)+### 3.2 Configuration example: Test Run (work package type)The work package type `Test run` can be configured so it shows the relevant information:@@ -148,7 +189,7 @@ Here you find an [example for a test run](https://testmanagement.openproject.com-### 2.3 Roles and permissions+### 3.3 Roles and permissions- Define useful roles such as:- `Tester`@@ -157,14 +198,14 @@ Here you find an [example for a test run](https://testmanagement.openproject.com- Add permissions such as:- Edit work packages-### 2.4 Custom fields+### 3.4 Custom fieldsDefine custom fields that describe the test object such as:- Test environment (type `hierarchy`)- Tester (custom field type `user`)-### 2.5 Workflow and statuses+### 3.5 Workflow and statuses- Define custom statuses such as:- `New`,diff --git a/docs/use-cases/test-management/automatically-generated-subject-after-saving2.png b/docs/use-cases/test-management/automatically-generated-subject-after-saving2.pngnew file mode 100644index 00000000000..a3c461a3f53Binary files /dev/null and b/docs/use-cases/test-management/automatically-generated-subject-after-saving2.png differdiff --git a/docs/use-cases/test-management/automatically-generated-subject-before-saving.png b/docs/use-cases/test-management/automatically-generated-subject-before-saving.pngnew file mode 100644index 00000000000..c4917a3e1b4Binary files /dev/null and b/docs/use-cases/test-management/automatically-generated-subject-before-saving.png differdiff --git a/docs/use-cases/test-management/test-automation-integration.png b/docs/use-cases/test-management/test-automation-integration.pngnew file mode 100644index 00000000000..c78c7d0c446Binary files /dev/null and b/docs/use-cases/test-management/test-automation-integration.png differ