Licenses

StepActionResult
1Sign In with a known userUser successfully signed in and Home page is displayed
2Click Licenses tabLicenses page is displayed
3Click Add License buttonNew License page is displayed
4Fill in Fullname and Shortname fields
Eg:
- Fullname: Open Logistics Foundation License v1.3
- Shortname: OLFL-1.3
Values are entered in the fields
5Click 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
6At 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

StepActionResult
1Sign in with a known clearing admin user
Click Licenses tab
Click Add License button
New License page is displayed
2Fill 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
3Click Linked Obligation tabLinked Obligation page is displayed
4Click Add Obligation buttonScreen display a dialog: “Select License Obligations to be added.”
5Select some obligations and click Add buttonThe selected obligations have been added to the obligation table
6Click 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
7Click the newly created license name hyperlinkThe details page of license is displayed
8Check 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

StepActionResult
1Sign in with a known clearing admin user
Click Licenses tab
Click Add License button
New License page is displayed
2Fill in Fullname and Shortname
Eg:
- Fullname: Apache License 2.0
- Shortname: Apache-2.0
Values are entered in the fields
3Click Linked Obligation tabLinked Obligation page is displayed
4Click Add Obligation buttonScreen display a dialog: “Select License Obligations to be added”
5Select some obligations and click Add buttonThe selected obligations have been added to the obligation table
6Click Create License button- Navigate to the license list screen
- The new license should be added to the licenses list
7Search for new created license, then click hyper link of new created licenseThe details page of license is displayed
8Click Obligations tabObligation page is displayed
9Click Edit Whitelist buttonUpdate whitelist page is displayed
10Unselect 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

StepActionResult
1Sign In with a known userUser successfully signed in and Home page is displayed
2Click 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
3Edit 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
4Click 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}?”
5Click “Delete Obligation” button in the dialogThe chosen obligation is removed from the obligations table
6Click Add Obligation buttonScreen display a dialog: “Select License Obligations to be added.”
7Select some obligations and click Add buttonThe selected obligations have been added to the obligation table
8Click Update License button- Navigate to the license details page
- Data of the obligation is updated successfully
9Click the edited license name (JAM License 2.0)The details page of license is displayed
10Check data of License in Details tab, Text tab and Obligation tabThe displayed data matches the input data

TC05: Delete an existing license

StepActionResult
1Sign 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
2Click Delete License buttonScreen display dialog with message: “Do you really want to delete the license {licenseFullName ({licenseShortName})}?”
3Click 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

StepActionResult
1Sign In with a known userUser successfully signed in and Home page is displayed
2Click Licenses tabLicenses page is displayed
3Click Export Spreadsheet buttonA dialog for opening Licenses.xlsx is displayed
4Open 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. (5d58e03)