Edit License
SW360 “Edit License” Page Test Cases
General Page Behavior
- Test Case ID: LIC-EDIT-001
- Description: Verify the presence of the “Update License”, “Delete License” and “Cancel” buttons on top.
- Steps:
- Navigate to the “Edit License” page.
- Locate the top section of the page.
- Expected Result: The “Update License”, “Delete License” and “Cancel” buttons are present.
License Tab
License Details Section
- Test Case ID: LIC-EDIT-002
- Description: Verify the presence of the specified fields in the License Details section.
- Steps:
- Navigate to the “Edit License” page.
- Locate the License Details section in the License Tab.
- Verify the presence of the following fields:
- Fullname (required)
- Shortname (required)
- License Type (dropdown, dynamic)
- OSI Approved? (one of (n/a), Yes)
- FSF Free/Libre? (one of (n/a), Yes)
- Is checked (checkbox)
- Note (text area)
- Expected Result: All specified fields are present and function as described.
License Text Section
- Test Case ID: LIC-EDIT-003
- Description: Verify the presence of a big text area for license text.
- Steps:
- Navigate to the “Edit License” page.
- Locate the License Text section in the License Tab.
- Expected Result: The big text area for license text is present.
Linked Obligations Tab
- Test Case ID: LIC-EDIT-004
- Description: Verify the presence of the “Add Obligation” button on top.
- Steps:
- Navigate to the “Edit License” page.
- Locate the Linked Obligations Tab.
- Expected Result: The “Add Obligation” button is present.
Obligations Table
- Test Case ID: LIC-EDIT-005
- Description: Verify the presence of the specified columns in the obligations table.
- Steps:
- Navigate to the “Edit License” page.
- Locate the Linked Obligations Tab.
- Verify the presence of a table with the following columns:
- Collapse
- Obligation Title
- Obligation Type
- Action (delete icon)
- Click on the “Expand” button to reveal the obligation text.
- Expected Result: The table with the specified columns is present, and the “Expand” button reveals the obligation text.
- Test Case ID: LIC-EDIT-006
- Description: Verify that clicking on the “Add Obligation” button opens a popup showing obligations which can be added.
- Steps:
- Navigate to the “Edit License” page.
- Locate the Linked Obligations Tab.
- Click on the “Add Obligation” button.
- Expected Result: A popup showing obligations which can be added is opened.
License update
- Test Case ID: LIC-EDIT-007
- Description: Verify that clicking on the “Update License” button saves the changes, shows the message “License updated,” and navigates the user back to the Main Licenses page.
- Steps:
- Navigate to the “Edit License” page.
- Fill in the required fields and any additional information.
- Click on the “Update License” button.
- Expected Result: The license is saved, the message “License updated” is shown, changelog created, and the user is navigated back to the Main Licenses page.
License deletion
- Test Case ID: LIC-EDIT-008
- Description: Verify that clicking on the “Delete License” button shows a confirmation popup. Clicking “Yes” should delete the license and navigate the user back to the Main Licenses page.
- Steps:
- Navigate to the “Edit License” page.
- Click on the “Delete License” button.
- In the confirmation popup, click “Yes”.
- Expected Result: The license is deleted, and the user is navigated back to the Main Licenses page.