diff --git a/content/en/docs/Development/TestCases/Test-Cases-Licenses.md b/content/en/docs/Development/TestCases/Test-Cases-Licenses.md index 1f92ddc..833bdf8 100644 --- a/content/en/docs/Development/TestCases/Test-Cases-Licenses.md +++ b/content/en/docs/Development/TestCases/Test-Cases-Licenses.md @@ -4,40 +4,69 @@ linkTitle: "Licenses" weight: 10 --- -## Create, edit and delete license +## TC01: Create a license with mandatory fields then edit External link Step | Action | Result ---:|:-----|:---- -1 | Sign In with a known _clearing admin_ user | User successfully signed in and _Home_ page is displayed -2 | Click on _Licenses_ tab | _Licenses_ page is displayed -3 | Click on _Add License_ | _New License_ page is displayed -4 | Fill in _Fullname_ and _Shortname_ fields and press _Add License_ | _License added successfully!_ message is displayed -5 | Write the license or part of newly created license name in _Keyword Search_ field | License is filtered successfully -6 | Click on license name and then on _Edit License Details and Text_ | License page is displayed -7 | Modify some fields and click _Update License_ | _License updated successfully!_ message is displayed -8 | Check all fields on _Details_ and _Text_ pages | Values are filled in correctly -9 | Click on _Edit License Details and Text_ | License page is displayed -10 | Click o _Delete_ license name | _License removed successfully!_ message is displayed - -## Edit license TODOs and Obligations +1 | Click _Licenses_ tab | _Licenses_ page is displayed +2 | Click _Add License_ button | _New License_ page is displayed +3 | Fill in _Fullname_ and _Shortname_ fields
_Eg:_
- Fullname: Open Logistics Foundation License v1.3
- Shortname: OLFL-1.3 | Values are entered in the fields +4 | 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 +5 | 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 | 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 +2 | 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 +3 | 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}?"_ +4 | Click _"Delete Obligation"_ button in the dialog | The chosen obligation is removed from the obligations table +5 | Click _Add Obligation_ button | Screen display a dialog: _"Select License Obligations to be added."_ +6 | Select some obligations and click _Add_ button | The selected obligations have been added to the obligation table +7 | Click _Update License_ button | - Navigate to the license details page
- Data of the obligation is updated successfully +8 | Click the edited license name (_JAM License 2.0_) | The details page of license is displayed +9 | 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 | User successfully signed in and _Home_ page is displayed -2 | Click on previously created license name | _License Details_ page is displayed -3 | Click on _Add a Todo_ | Todo page displayed successfully -4 | Enter a Todo text (e.g. "First todo text"), click _Applies to development_, and click _Submit_ | _License updated successfully!_ message is displayed -5 | Click _TODOs and Obligations_ | The previously entered Todo is listed on the page with _No obligations_ -6 | Click on _Add a Todo_ | Todo page displayed successfully -7 | Enter a Todo text (e.g. "Second todo text"), click on some Obligations and click Submit | _License updated successfully!_ message is displayed -8 | Click TODOs and Obligations | The previously entered Todo is listed on the page together with chosen obligations -9 | Click on _Edit WhiteList_, deselect first Todo and click _Submit_ | The deselected Todo is not displayed anymore on _TODOs and Obligations_ page - -## Check Export Licenses +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 on _Licenses_ tab | _Licenses_ page is displayed -3 | Click on _Export Licenses_ | A dialog for opening _Licenses.xlsx_ is displayed -4 | Open the xlsx file and compare the number of rows with total number of entries from _Licenses_ tab | All licenses names are exported successfully. +1 | Click _Licenses_ tab | The _license_ page is displayed +2 | Click _Export Spreadsheet_ button | A dialog for opening Licenses.xlsx is displayed +3 | 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 \ No newline at end of file