Components Page
SW360 “Main Components” Page Test Cases
Advance Search on the Left Hand
Search Fields
- Test Case ID: COMP-001
- Description: Verify that the advance search on the left hand contains the specified search fields.
- Steps:
- Navigate to the Main Components page.
- Locate the advance search section on the left hand.
- Verify the presence of the following search fields:
- Component Name
- Categories
- Component Type (one of OSS, COTS, Internal, Inner Source, Service, Freeware, Code Snippet)
- Languages (type to get defaults)
- Software Platforms (type to get defaults)
- Operating Systems (type to get defaults)
- Vendors (type to get values)
- Main licenses
- Created by
- Created on (with filter type adding or removing date field)
- A checkbox “Exact Match” with a Search button
- Expected Result: All specified search fields are present.
Search Behavior
- Test Case ID: COMP-002
- Description: Verify the search behavior based on the “Exact Match” checkbox.
- Steps:
- Navigate to the Main Components 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: COMP-003
- Description: Verify that the “Add Component” button opens a form to create a new component.
- Steps:
- Navigate to the Main Components page.
- Click on the “Add Component” button.
- Expected Result: A form to create a new component is opened.
“Export Spreadsheet” Dropdown
- Test Case ID: COMP-004
- Description: Verify that the “Export Spreadsheet” dropdown generates an Excel of the search result with either “Components only” or “Components with releases”.
- Steps:
- Navigate to the Main Components 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: COMP-005
- Description: Verify that the table can change page size, with a default of 10.
- Steps:
- Navigate to the Main Components 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: COMP-006
- Description: Verify that the “Print” button on the right prints the Table HTML component to the browser.
- Steps:
- Navigate to the Main Components 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 “Vendor”
- Test Case ID: COMP-007
- Description: Verify that the “Vendor” column displays the vendor name.
- Steps:
- Navigate to the Main Components page.
- Locate the “Vendor” column in the table.
- Expected Result: The vendor name is displayed.
Column “Component Name”
- Test Case ID: COMP-008
- Description: Verify that the “Component Name” column displays the component name with a clickable link to open the component.
- Steps:
- Navigate to the Main Components page.
- Locate the “Component Name” column in the table.
- Click on a component name to open the component.
- Expected Result: The component name is displayed, and clicking on it opens the component.
Column “Main licenses”
- Test Case ID: COMP-009
- Description: Verify that the “Main licenses” column displays truncated lists of main licenses, with a clickable link to open the license.
- Steps:
- Navigate to the Main Components page.
- Locate the “Main licenses” column in the table.
- Expected Result: The truncated lists of main licenses are displayed, and clicking on a license opens the license.
Column “Component Type”
- Test Case ID: COMP-010
- Description: Verify that the “Component Type” column displays the component type.
- Steps:
- Navigate to the Main Components page.
- Locate the “Component Type” column in the table.
- Expected Result: The component type is displayed.
Column “Actions”
- Test Case ID: COMP-011
- Description: Verify that the “Actions” column shows an Edit Icon or Delete icon.
- Steps:
- Navigate to the Main Components page.
- Locate the “Actions” column in the table.
- Expected Result: The Edit Icon or Delete icon is displayed.
- Test Case ID: COMP-012
- Description: Verify that the table bottom has pagination components.
- Steps:
- Navigate to the Main Components 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.