Vulnerability Edit
SW360 “Vulnerability Edit” Page Test Cases
General Page Behavior
Opening Vulnerability Edit
- Test Case ID: VUL-EDIT-001
- Description: Verify that the vulnerability edit can be opened from the Vulnerability Details page.
- Steps:
- Navigate to the “Vulnerability Details” page.
- Click on the “Edit” button to open the vulnerability edit page.
- Expected Result: The vulnerability edit page is opened with the data from the vulnerability already filled.
- Test Case ID: VUL-EDIT-002
- Description: Verify the presence of the “Update Vulnerability”, “Delete Vulnerability”, and “Cancel” buttons on top.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the top section of the page.
- Expected Result: The “Update Vulnerability”, “Delete Vulnerability”, and “Cancel” buttons are present.
Vulnerability Detail Section
Fields
- Test Case ID: VUL-EDIT-003
- Description: Verify the presence of all fields from the “Create Vulnerability” page with the data from the vulnerability already filled.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Vulnerability Detail section.
- Verify the presence of the following fields:
- External ID (required)
- Title
- Description (text area)
- Priortiy
- Priority Text
- Action
- Legal Notice
- Cwe (“CWE-” then a textbox)
- Extended Description
- CVSS Score (floating numbers)
- CVSS Date
- CVSS Time
- Publish Date
- Publish Time
- Last External Update Date
- Last External Update Time
- Expected Result: All specified fields are present and function as described, with the data from the vulnerability already filled.
Vulnerability Impact Section
Fields
- Test Case ID: VUL-EDIT-004
- Description: Verify the presence of the specified fields in the Vulnerability Impact section with the data from the vulnerability already filled.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Vulnerability Impact section.
- Verify the presence of the following fields:
- Availability (dropdown)
- Confidentiality (dropdown)
- Integrity (dropdown)
- Expected Result: All specified fields are present and function as described, with the data from the vulnerability already filled.
Vulnerability Access Section
Fields
- Test Case ID: VUL-EDIT-005
- Description: Verify the presence of the specified fields in the Vulnerability Access section with the data from the vulnerability already filled.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Vulnerability Access section.
- Verify the presence of the following fields:
- Authentication (dropdown)
- Complexity (dropdown)
- Vecotr (dropdown)
- Expected Result: All specified fields are present and function as described, with the data from the vulnerability already filled.
CVE References Section
- Test Case ID: VUL-EDIT-006
- Description: Verify the presence of the “Add CVE Reference” button and the ability to add a row with the specified fields.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the CVE References section.
- Click on the “Add CVE Reference” button.
- Verify the presence of a row with the following fields:
- CVE Year (required)
- CVE Number (required)
- Delete row button
- Expected Result: The “Add CVE Reference” button is present, and a row with the specified fields is added.
Assigned External Component Ids Section
- Test Case ID: VUL-EDIT-007
- Description: Verify the presence of the “Add Assigned External Component Id” button and the ability to add a row with the specified field.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Assigned External Component Ids section.
- Click on the “Add Assigned External Component Id” button.
- Verify the presence of a row with the following field:
- External Component Id
- Delete row button
- Expected Result: The “Add Assigned External Component Id” button is present, and a row with the specified field is added.
Vulnerability References Section
- Test Case ID: VUL-EDIT-008
- Description: Verify the presence of the “Add Vulnerability Reference” button and the ability to add a row with the specified field.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Vulnerability References section.
- Click on the “Add Vulnerability Reference” button.
- Verify the presence of a row with the following field:
- Reference
- Delete row button
- Expected Result: The “Add Vulnerability Reference” button is present, and a row with the specified field is added.
Vendor Advisories Section
- Test Case ID: VUL-EDIT-009
- Description: Verify the presence of the “Add Vendor Advisory” button and the ability to add a row with the specified fields.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Vendor Advisories section.
- Click on the “Add Vendor Advisory” button.
- Verify the presence of a row with the following fields:
- Advisory Vendor (required)
- Adivsory Name (required)
- Advisory URL (required)
- delete row button
- Expected Result: The “Add Vendor Advisory” button is present, and a row with the specified fields is added.
Vulnerability Configuration Section
- Test Case ID: VUL-EDIT-010
- Description: Verify the presence of the “Add Vulnerability Configuration” button and the ability to add a row with the specified fields.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Locate the Vulnerability Configuration section.
- Click on the “Add Vulnerability Configuration” button.
- Verify the presence of a row with the following fields:
- Configuration Key
- Configuration Value
- delete row button
- Expected Result: The “Add Vulnerability Configuration” button is present, and a row with the specified fields is added.
Vulnerability Update
- Test Case ID: VUL-EDIT-011
- Description: Verify that clicking on the “Update Vulnerability” button saves the changes and redirects the user to the main vulnerability page with the message “Vulnerability (external ID) updated successfully!” displayed.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Make changes to the fields.
- Click on the “Update Vulnerability” button.
- Expected Result: The changes are saved, the user is redirected to the main vulnerability page, and the message “Vulnerability (external ID) updated successfully!” is displayed.
Discard Changes
- Test Case ID: VUL-EDIT-012
- Description: Verify that clicking the “Cancel” button discards the changes and takes the user back to the Vulnerability Details page.
- Steps:
- Navigate to the “Vulnerability Edit” page.
- Make changes to the fields.
- Click on the “Cancel” button.
- Expected Result: The changes are discarded, and the user is redirected to the Vulnerability Details page.