Licenses
TC01: Create a license with mandatory fields then edit External link
Step | Action | Result |
---|---|---|
1 | Sign In with a known user | User successfully signed in and Home page is displayed |
2 | Click Licenses tab | Licenses page is displayed |
3 | Click Add License button | New License page is displayed |
4 | Fill in Fullname and Shortname fields Eg: - Fullname: Open Logistics Foundation License v1.3 - Shortname: OLFL-1.3 | Values are entered in the fields |
5 | Click Create License button | - Navigate to the license list page and the message “Success:License added successfully!” is displayed - The new license should be added to the licenses list |
6 | At Details tab, update External link for more information field Eg: https://eclipse.dev/sw360/docs/development/testcases/test-cases-licenses/ Click Save button | - The page remains the same and the message “Success:SUCCESS” is displayed - Data of the “External link for more information” field is updated correctly |
TC02: Create a license with all fields
Step | Action | Result |
---|---|---|
1 | Sign in with a known clearing admin user Click Licenses tab Click Add License button | New License page is displayed |
2 | Fill in all editable fields Eg: - Fullname: JAM License - Shortname: Jam - License Type: select a license type - OSI Approved?: Yes - Note: take a note! - License Text: Copyright (C) YEAR by AUTHOR EMAIL Permission to use, copy and modify. | Values are entered in the fields |
3 | Click Linked Obligation tab | Linked Obligation page is displayed |
4 | Click Add Obligation button | Screen display a dialog: “Select License Obligations to be added.” |
5 | Select some obligations and click Add button | The selected obligations have been added to the obligation table |
6 | Click Create License button | - Navigate to the license portlet and the message “Success:License added successfully!" is displayed - The new license should be added to the licenses list |
7 | Click the newly created license name hyperlink | The details page of license is displayed |
8 | Check data of License in Details tab Click Text tab and check data of License in Text tab Click Obligations tab and check data of License in Obligations tab | The displayed data matches the input data |
TC03: Create a license with linked obligations then edit whitelist
Step | Action | Result |
---|---|---|
1 | Sign in with a known clearing admin user Click Licenses tab Click Add License button | New License page is displayed |
2 | Fill in Fullname and Shortname Eg: - Fullname: Apache License 2.0 - Shortname: Apache-2.0 | Values are entered in the fields |
3 | Click Linked Obligation tab | Linked Obligation page is displayed |
4 | Click Add Obligation button | Screen display a dialog: “Select License Obligations to be added” |
5 | Select some obligations and click Add button | The selected obligations have been added to the obligation table |
6 | Click Create License button | - Navigate to the license list screen - The new license should be added to the licenses list |
7 | Search for new created license, then click hyper link of new created license | The details page of license is displayed |
8 | Click Obligations tab | Obligation page is displayed |
9 | Click Edit Whitelist button | Update whitelist page is displayed |
10 | Unselect the first obligation then click Update Whitelist button | - Redirect to view license page with the message “Success:License updated successfully!” is displayed - The unselected obligation is not displayed anymore on obligations table |
TC04: Edit License and remove/ add Obligations
Step | Action | Result |
---|---|---|
1 | Sign In with a known user | User successfully signed in and Home page is displayed |
2 | Click Licenses tab At Quick Filter area, input existed license with obligations. E.g: JAM License in the textbox Click JAM License license name Click Edit License button | The update license page is displayed |
3 | Edit some editable fields Eg: - Fullname: JAM License 2.0 - OSI Approved?: (n/a) - FSF Free/Libre?: Yes - License Text: | Values are entered in the fields |
4 | Click Linked Obligation tab Click Delete icon of the first obligation in Action column | The “Delete Obligation?” dialog is displayed with message: “Do you really want to delete the obligation {deleted obligation name}?” |
5 | Click “Delete Obligation” button in the dialog | The chosen obligation is removed from the obligations table |
6 | Click Add Obligation button | Screen display a dialog: “Select License Obligations to be added.” |
7 | Select some obligations and click Add button | The selected obligations have been added to the obligation table |
8 | Click Update License button | - Navigate to the license details page - Data of the obligation is updated successfully |
9 | Click the edited license name (JAM License 2.0) | The details page of license is displayed |
10 | Check data of License in Details tab, Text tab and Obligation tab | The displayed data matches the input data |
TC05: Delete an existing license
Step | Action | Result |
---|---|---|
1 | Sign in with a known clearing admin user Click Licenses tab At Quick Filter area, input existing license in the textbox Eg: “License_delete” Click “License_delete” license name in the result table Click Edit License button | The update license page is displayed |
2 | Click Delete License button | Screen display dialog with message: “Do you really want to delete the license {licenseFullName ({licenseShortName})}?” |
3 | Click Delete License button in the dialog | - Navigate to the license portlet and the message “Success:License removed successfully!" is displayed - The removed license has been removed to the license table |
TC06: Check Export Licenses
Step | Action | Result |
---|---|---|
1 | Sign In with a known user | User successfully signed in and Home page is displayed |
2 | Click Licenses tab | Licenses page is displayed |
3 | Click Export Spreadsheet button | A dialog for opening Licenses.xlsx is displayed |
4 | Open the newly downloaded Licenses.xlsx file in the local Compare the number of rows with total number of entries from Licenses tab | All licenses names are exported successfully |
Last modified April 17, 2024: Update test case for Licenses. (ea51acb)