Projects Page
SW360 Main Projects Page Test Cases
Advance Search on the Left Hand
Search Fields
- Test Case ID: PROJ-001
- Description: Verify that the advance search on the left hand contains the specified search fields.
- Steps:
- Navigate to the Main Projects page.
- Locate the advance search section on the left hand.
- Verify the presence of the following search fields:
- Project name
- Project version
- Project type (one of Customer Project, Internal Project, Product, Service, Inner Source, Cloud Backend)
- Project Responsible (Email)
- Group (dynamically generated by project group)
- State (one of Active, Phaseout, Unknown)
- Clearing State (one of Open, In Progress, Closed)
- Tag
- Additional Data
- A checkbox “Exact Match” with a Search button
- Expected Result: All specified search fields are present.
Search Behavior
- Test Case ID: PROJ-002
- Description: Verify the search behavior based on the “Exact Match” checkbox.
- Steps:
- Navigate to the Main Projects page.
- Locate the advance search section on the left hand.
- Enter search criteria in the search fields.
- Perform a search without checking the “Exact Match” checkbox.
- Verify that the endpoint has “luceneSearch=true” and uses full-text search.
- Check the “Exact Match” checkbox and perform a search.
- Verify that the endpoint has “luceneSearch=false” and uses exact match.
- Expected Result: The search behavior changes based on the “Exact Match” checkbox.
- Test Case ID: PROJ-003
- Description: Verify that the “Add Project” button opens a form to create a new project.
- Steps:
- Navigate to the Main Projects page.
- Click on the “Add Project” button.
- Expected Result: A form to create a new project is opened.
“Import SBOM” Dropdown
- Test Case ID: PROJ-004
- Description: Verify that the “Import SBOM” dropdown opens a popup to import SBOM files in SPDX format and CycloneDX format.
- Steps:
- Navigate to the Main Projects page.
- Click on the “Import SBOM” dropdown.
- Expected Result: A popup to import SBOM files in SPDX format and CycloneDX format is opened.
“Export Spreadsheet” Dropdown
- Test Case ID: PROJ-005
- Description: Verify that the “Export Spreadsheet” dropdown generates an Excel of the search result with either “Projects only” or “Projects with linked release”.
- Steps:
- Navigate to the Main Projects page.
- Perform a search using the advance search fields.
- Click on the “Export Spreadsheet” dropdown and select an option.
- Verify that the exported sheet has restricted data based on the advance search values from the left panel.
- Check if the file is downloaded or if a message is shown indicating that an email will be sent based on server configuration.
- Expected Result: The Excel file is generated with the correct data, and the file is either downloaded or an email is sent based on server configuration.
Table in Middle
Page Size
- Test Case ID: PROJ-006
- Description: Verify that the table can change page size, with a default of 10.
- Steps:
- Navigate to the Main Projects page.
- Locate the table in the middle.
- Change the page size and verify the default is 10.
- Expected Result: The table page size can be changed, and the default is 10.
- Test Case ID: PROJ-007
- Description: Verify that the “Print” button on the right prints the Table HTML component to the browser.
- Steps:
- Navigate to the Main Projects page.
- Locate the “Print” button on the right of the table.
- Click on the “Print” button.
- Expected Result: The Table HTML component is printed to the browser.
Column “Project name”
- Test Case ID: PROJ-008
- Description: Verify that the “Project name” column displays the project name and version (version in brackets), and is a clickable link to open the project.
- Steps:
- Navigate to the Main Projects page.
- Locate the “Project name” column in the table.
- Click on a project name to open the project.
- Expected Result: The project name and version are displayed, and clicking on it opens the project.
Column “Description”
- Test Case ID: PROJ-009
- Description: Verify that the “Description” column displays a truncated description of the project, if any, otherwise it is empty.
- Steps:
- Navigate to the Main Projects page.
- Locate the “Description” column in the table.
- Expected Result: The truncated description of the project is displayed, or it is empty if no description is available.
Column “Project Responsible”
- Test Case ID: PROJ-010
- Description: Verify that the “Project Responsible” column displays a truncated list of project responsible users, if any, otherwise it is empty.
- Steps:
- Navigate to the Main Projects page.
- Locate the “Project Responsible” column in the table.
- Expected Result: The truncated list of project responsible users is displayed, or it is empty if no responsible users are available.
Column “State”
- Test Case ID: PROJ-011
- Description: Verify that the “State” column shows “PS|CS” buttons.
- Steps:
- Navigate to the Main Projects page.
- Locate the “State” column in the table.
- Expected Result: The “PS|CS” buttons are displayed.
Column “License Clearing”
- Test Case ID: PROJ-012
- Description: Verify that the “License Clearing” column shows Clearing Done/Total releases counts for the project.
- Steps:
- Navigate to the Main Projects page.
- Locate the “License Clearing” column in the table.
- Expected Result: The Clearing Done/Total releases counts are displayed.
Column “Actions”
- Test Case ID: PROJ-013
- Description: Verify that the “Actions” column shows the specified buttons.
- Steps:
- Navigate to the Main Projects page.
- Locate the “Actions” column in the table.
- Verify the presence of the following buttons:
- “Edit”: to open the project edit page
- “Clearing Request”: to open “Clearing Request” popup to either create a new Clearing Request or display the current Clearing Request
- “Duplicate”: to duplicate the project into a new one, which opens the add project page with values populated
- “Delete”: to open a popup showing Project Name, version, linked projects count, linked release count, and a comment box for the reason to delete, with a delete button
- Expected Result: All specified buttons are present and function as described.
- Test Case ID: PROJ-014
- Description: Verify that the table bottom has pagination components.
- Steps:
- Navigate to the Main Projects page.
- Locate the table in the middle.
- Scroll to the bottom of the table and verify the presence of pagination components.
- Expected Result: Pagination components are present at the bottom of the table.