Component / Release

TC01: Add a component and release with vendor present

StepActionResult
1Sign In with a known userUser successfully signed in and Home page is displayed
2Click Components tabComponents page is displayed
3Click Add Component button- New Component page is displayed with mandatory fields marked with red star: Name, Categories, Component Type.
- A message Success:New Component is displayed
4Fill in a component Name, Categories and Component Type fields.
Eg:
- Name: Component 1@1
- Categories: Categories_1@1
- Component Type: OSS
Values are entered in the fields
5Click Create Component button- Create component successfully.
- Redirect to the edit component page.
-Show message: Success:You are editing the original document.
6Click Releases tab
Click Add Release button
Redirect to Add Release page
7Fill in a release Version and CPE ID
Eg:
- Version: version1.0.0.x
- CPE ID: UUID_1002
Values are entered in the fields:
- Version: version1.0.0.x
- CPE ID: UUID_1002
8Click Create Release button- Create a release successfully.
- Redirect to the edit new release page.
- The message Success:You are editing the original document. is displayed
9Click Vendor fieldSearch Vendor dialog is displayed
10Click Add Vendor buttonCreate new Vendor dialog display
11Input data in fields
- Full Name: add vendor 01
-Short Name: add vendor01
-URL: https://github.com/eclipse-sw360/sw360
Values are entered in the fields.
12Click Add Vendor buttonThe vendor is added in Vendor field of the release with full name is add vendor 01
13Click Attachments tabAttachments page is displayed
14Click Add Attachment buttonUpload Attachment dialog is displayed
15Click Browse and select the attachment.
Eg: attachment1.xlsx
File name is displayed in the dialog
16Click Upload buttonThe file is uploaded and dialog is closed. Also the attached file is listed in the Attachment page
17Change the attachment Type to real type.
Eg: Component license information (Combined)
Type changed successfully
18Click Update Release buttonMessage: Success:Release {name} ({version}) updated successfully! is displayed

TC02: Verify data after add a component and release with vendor present

StepActionResult
1Search for the component is created in TC01:
- Click Components portlet
- At Advanced Search area, input Component 1@1 in the Component Name textbox.
- Click Search button
The new component display in the table with:
- Vendor: add vendor01
- Component Name: Component 1@1 is displayed with hyper link.
- Main licenses: blank
- Component Type: OSS
2Click hyper link of name Component 1@1Redirect to view component Component 1@1 page
3Click Release Overview tabThe release display with:
- Name: Component 1@1
- Version displays with hyper link: version1.0.0.x
- Clearing State: New
- Clearing Report: no report
- Release Mainline State: Open
4Click hyper link version1.0.0.xRedirect to view screen of release Component 1@1 version1.0.0.x
Data of the release:
- Summary tab:
+ display text with: COMPONENT 1@1 VERSION1.0.0.X
+ CPE ID: UUID_1002
+ Created on: date of created.
+ Created by: user created.
+ Modified On: date of modified.
+ Modified By: user modified.
+ Clearing State: New
+ Release Mainline State: Open
+ Release Vendor with:
  Full Name: add vendor 01
  Short Name: add vendor01
  URL: https://github.com/eclipse-sw360/sw360
5Click Attachments tabDisplay file name attachment1.xlsx in the table.

TC03: Modify a component and release with vendor present

StepActionResult
1Search for an existing component (e.g. created in TC01: Component 1@1) and click Edit iconSuccess:You are editing the original document message is displayed
2Click Releases tabRelease list is displayed
3Click Add Release buttonRedirect to Add Release page
4Fill in a release Version and CPE ID
Eg:
- Version: v1.0.0.1
- CPE ID: cpe:id:123456
Values are entered in the fields:
- Version: v1.0.0.1
- CPE ID: cpe:id:123456
5Click Create Release button- Redirect to the edit new release page.
- The message Success:You are editing the original document. is displayed
6Click Vendor fieldSearch Vendor dialog is displayed
7Click Search button.
Select a vendor (eg: select vendor with full name VendorUp)
Click Select Vendor button.
Dialog is closed and selected Vendor is added under Vendor field: VendorUp
8Click Attachments tab
Click Add Attachment button
Click Browse and select the attachment. Eg: attachment2.img
Click Upload button
The file is uploaded and dialog is closed. Also the attached file is listed in the Attachment page
9Click Update Release buttonMessage Success:Release Component 1@1 (v1.0.0.1) updated successfully! is displayed

TC04: Verify data after modify a component and release with vendor present

StepActionResult
1Continue TC03
2Click Summary tabData in the tab:
- Modified On: date of modified.
- Modified By: user modified.
Data of other fields in the tab is same data before updated.
3Click Release Overview tabNew release with version v1.0.0.1 is added in the release table.
4Click v1.0.0.1 hyper linkText display with: COMPONENT 1@1 V1.0.0.1 at the right corner.
- At Summary tab:
+ CPE ID: cpe:id:123456
+ Release Vendor: display with Full Name, Short Name and URL correctly with vendor VendorUp
- At Attachments tab: attachment attachment2.img display in the attachment table with correct information.
5Click Component 1@1 hyper linkRedirect to view screen of Component 1@1 component.
6Click Attachments tabData in the tab is same data before updated.
7Click Vulnerabilities tabData in the tab is same data before updated.

TC05: Add and modify a component and release with all fields filled in

StepActionResult
1Click Components tab
Click Add Component button
Fill in all editable fields
Click Create Component button
- Redirect to edit component screen with the message Success:You are editing the original document. is displayed in the left corner.
- Create component successfully. Data match with input data.
2Click Releases tab.
Click Add Releases button.
At Summary tab, fill in all editable fields under Release Summary and Release Repository.
Click Create Release button.
Redirect to edit release screen.
Created release successfully. Data match with input data.
3Click Linked Releases tab
Click Click to add Releases button
The dialog Link Releases is displayed.
4Input search name into textbox
Click Search button
Select 3 releases.
Click Link Releases button
Dialog is closed and selected release is displayed under Linked Releases section.
5Click Linked Packages tab
Click Add Packages button
The dialog Link Packages is displayed.
6Input an exist orphan package name into textbox.
Click Search button.
Select a package.
Click Link Packages button.
Dialog is closed and selected package is displayed under Linked Packages table
7Click Clearing Details tab
Fill in all editable fields
Values are entered in the fields
8Click ECC Details tab
Fill in all editable fields
Values are entered in the fields
9Click Attachments tab
Click Add Attachment button
Click Browse and select the attachment. Eg: attachment3.xlsx
Click Upload button
The file is uploaded and dialog is closed. Also the attached file is listed in the Attachment page
10Click Update Release button- Success:Release {componentName} ({version}) updated successfully! message is displayed.
- Redirect to the view release screen.
11Check all fields of the release by click tabs: Summary, Linked Releases, Linked Packages, Clearing Details and Attachments.Values are filled in correctly, match with input data.
12Click Edit Release button, modify some fields.
Eg:
- Version field ( in Summary tab): rename version name_updated
- ECC Status field (in ECC Details tab): Approved.
Click Update Release button.
Values are updated successfully

TC06: Delete a component that is first linked to a project and then not, and a project

StepActionResult
1Create a new component
Eg: component with name Component @1234
Component is created successfully
2Add a new release to this component
Eg: release Rel1
Release is added successfully
3Create a new project P1Project is created successfully
4Add the linked release Rel1 to project P1.Release linked successfully
5Click Components portlet.
Search component Component @1234 by name at advanced search.
Component Component @1234 display on the result table.
6Click delete icon of component Component @1234A warning The component Component @1234 cannot be deleted, since it contains 1 releases. Please delete the releases first.
7Click OK button in the warning dialog.The dialog is closed, component is not deleted
8Click Components portlet.
Search for the component Component @1234 and click hyper link of component Component @1234.
View screen of Component @1234 component is display
9Click Release Overview.
Click Delete icon button of release Rel1.
Click Delete Release button in the dialog.
- Dialog Delete Releases is displayed.
- Delete the release is failure.
- The message: I could not delete the release, since it is used by another component (release) or project display.
10Go to project P1, delete project P1.The project is deleted successfully
11Go to component Component @1234, at Release Overview tab, click Delete icon button of release Rel1.Show message: Do you really want to delete the release {componentName} ({version}) ?
12Click Delete Release buttonRelease is deleted successfully
13Click Edit Component button.
Click Delete Component button.
The dialog is displayed with message: Do you really want to delete the component {componentName} ?
14Click Delete Component buttonComponent is deleted successfully

TC07: Add new attachments to an existing release and delete attachments

StepActionResult
1Search for an existing component (e.g. created in TC01) and click Release Overview tabThe list of releases are displayed
2Click edit icon in the Action column of release version that needs a new attachment. Eg: release Rel1.Edit release Rel1 page is displayed.
3Click Attachments tab
Click Add Attachment button
Click Browse and select several attachments.
Eg: 5 attachment files (att1, att2, att3, att4, att5)
File names are displayed in the dialog
4Click Delete button near some files not to be added.
Eg: delete 2 attachment files (att1, att3)
File names are removed from the list
5Click Upload button for the remaining files.The attached file are listed in the Attachment page: att2, att4, att5
6Change some Attachment type to real type, e.g. source file, clearing report, CLI,…Type changed successfully
7Click Update Release buttonRelease Ree1 is updated correctly.
8Click Edit Release buttonSuccess:You are editing the original document. message is displayed
9Click Attachments tabAttachments page is displayed
10Click delete icon to delete an attachmentShow message: Do you really want to delete attachment {attachmentName}({attachmentId})?
11Click Delete Attachment buttonAttachment is deleted successfully, data of attachment is removed from attachment table.
12Click Update Release buttonRelease Ree1 is updated correctly with message Success: Release {componentName}({version}) updated successfully!

TC08: Duplicate an existing release

StepActionResult
1Search for an existing component with release with all fields filled in (Eg: created in TC05) and click Release OverviewThe list of releases are displayed
2Click Duplicate button under Action columnThe page changes to create duplicate release screen
3Check all fields from copied release- Summary tab:
+ CPE ID field: blank
+ Remain fields are unchanged (exclude disable fields).
- Linked Releases tab: there is no linked release.
4Change the Version field and fill in a CPE ID.
Eg:  Version: ver_duplicate
CPE ID: CPE ID_duplicate
Click Create Release button
- Redirect to edit release screen.
- Create duplicate release is success with message: Success:You are editing the original document.
- Data of duplicate release is correct.
5Modify some other fields.
Eg: Release Date: 2023-06-12.
Click Clearing Details tab
Clearing Details page is displayed and does not contain any field from copied release
6Click Update Release buttonThe release is updated successfully with data correctly
7Click component name link on top of the pageSummary page for the component is displayed
8Click Release Overview tabThe new copied release is listed among previous releases

TC09: Search for and create a new vendor for a new release

StepActionResult
1Click Components portlet
At advanced Search, search for an existing component.
Eg: input Comp1 in the Component Name text box.
Click Search button.
Component Comp1 display in the result table.
2Click edit icon in Actions column of component Comp1.Edit screen of component Comp1 is displayed with message: Success:You are editing the original document
3Click Releases tab
Click Add Releases button
The page changes to New Release Edit page
4Fill in a release Version and CPE ID
Eg:
+ Version: @1.0.2
+ CPE ID: moshiano_002
Values are entered in the fields
5Click Vendor fieldSearch Vendor dialog is displayed
6Click Add VendorCreate New Vendor dialog is displayed
7Fill in Full name, Short name and URL
Eg:
Full Name: Fullvendor_0909
Short Name: Short_ven090
URL: https://github.com/
Values are entered in the fields
8Click Add VendorDialog closes and the new vendor is displayed in release Vendor field with full name Fullvendor_0909
9Click Create ReleaseRedirect to edit release page with the message Success:You are editing the original document. is displayed
10Click component name link on top of the pageSummary page for the component is displayed. The new vendor for the new release, as well as existing vendors from previous releases are listed under Vendors field for the component
StepActionResult
1Search for an existing component with release and click Release Overview tabThe list of releases are displayed
2Click Link Project button under Action columnThe dialog Link Release to Project is displayed with Link to Project button is disabled
3Click Search button then choose a project to linkLink to Project button on the dialog is enabled
4Click Link to Project buttonThe release {component name} ({version}) has been successfully linked to project {project name}
Click here to edit the release relation as well as the project mainline state in the project. message is displayed
5Click here hyperlink in the dialogRedirect to the edit project page with the release was linked (displayed on License Clearing page)
6Re-open the release at view page and click Summary tabUsed by project information is updated correspondingly
StepActionResult
1Search for an existing component with release and click Release Overview tabThe list of releases are displayed
2Click a release name hyperlink. Eg: release R1Redirect to the view release page
3Click Link to Project buttonThe dialog Link Release to Project is displayed with Link to Project button is disabled
4Click Search button then choose a project to linkLink to Project button on the dialog is enabled
5Click Link to Project buttonThe release {component name} ({version}) has been successfully linked to project {project name}
Click here to edit the release relation as well as the project mainline state in the project. message is displayed
6Click here hyperlink in the dialogRedirect to the edit project page with the release was linked (displayed on License Clearing page)

TC12: Import a new component by .spdx/.xml/ .rdf file

StepActionResult
1Click Components tabComponents page is displayed
2Click Import SBOM buttonA dialog Upload SBOM is displayed
3Choose a .spdx or .xml or .rdf file by clicking on the Browse button or drop/draft a file into the dialogThe message is displayed in the dialog:
The new Component and new Release will be created, do you want to import?
New Component: {new component names}
New Release: {new release names}
4Click Import buttonThe dialog is closed. New releases and new components are imported successfully

TC13: Export components without releases

StepActionResult
1Click Components tabComponents page is displayed
2Click Export Spreadsheet button and choose Components only option- A new file with name’s format components-{yyyy}-{mm}-{dd}.xlsx is downloaded
- The content of the downloaded file includes information of all components in the system

TC14: Export components with releases

StepActionResult
1Click Components tabComponents page is displayed
2Click Export Spreadsheet button and choose Components with releases option- New file with name components-{yyyy}-{mm}-{dd}.xlsx is downloaded.
- The content of the downloaded file includes information of all components and releases in the system

TC15: Create a clearing request for a release

StepActionResult
1Search for an existing component with releases and click Release Overview tabThe list of releases are displayed
2Click Edit button under Action column. Eg: edit release R1Redirect to view release page and the message Success:You are editing the original document. is displayed
3Click Attachments tab, then add a source file (Eg: .rdf file) with Type is Source fileThe data is updated correspondingly
4Click Update Release buttonThe message Success:Release {release name} updated successfully! is displayed
5Click Clearing details tab, then click Fossology Process icon beside Clearing State field and wait for the process to finishThe message The FOSSology process already finished. You should find the resulting report as attachment at this release. is displayed in the Fossology Process dialog
6Click Close button in the dialogThe dialog is closed
7Reload this page, then click Attachments tabA new file is listed in Attachments page with name’s format {component name}-{version}-{yyyymmdd}-{hhmm}-SPDX.rdf