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:
    1. Navigate to the “Vulnerability Details” page.
    2. 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.

Top Buttons

  • Test Case ID: VUL-EDIT-002
  • Description: Verify the presence of the “Update Vulnerability”, “Delete Vulnerability”, and “Cancel” buttons on top.
  • Steps:
    1. Navigate to the “Vulnerability Edit” page.
    2. 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Vulnerability Detail section.
    3. 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Vulnerability Impact section.
    3. 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Vulnerability Access section.
    3. 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

Add CVE Reference Button

  • 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the CVE References section.
    3. Click on the “Add CVE Reference” button.
    4. 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

Add Assigned External Component Id Button

  • 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Assigned External Component Ids section.
    3. Click on the “Add Assigned External Component Id” button.
    4. 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

Add Vulnerability Reference Button

  • 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Vulnerability References section.
    3. Click on the “Add Vulnerability Reference” button.
    4. 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

Add Vendor Advisory Button

  • 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Vendor Advisories section.
    3. Click on the “Add Vendor Advisory” button.
    4. 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

Add Vulnerability Configuration Button

  • 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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Locate the Vulnerability Configuration section.
    3. Click on the “Add Vulnerability Configuration” button.
    4. 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.

Update Vulnerability Button

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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Make changes to the fields.
    3. 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.

Cancel Button

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:
    1. Navigate to the “Vulnerability Edit” page.
    2. Make changes to the fields.
    3. Click on the “Cancel” button.
  • Expected Result: The changes are discarded, and the user is redirected to the Vulnerability Details page.