Create Vulnerability
SW360 “Add Vulnerability” Page Test Cases
General Page Behavior
Top Buttons
- Test Case ID: VUL-CRT-001
- Description: Verify the presence of the “Create Vulnerability” and “Cancel” buttons on top.
- Steps:
- Navigate to the “Add Vulnerability” page.
- Locate the top section of the page.
- Expected Result: The “Create Vulnerability” and “Cancel” buttons are present.
Vulnerability Detail Section
Fields
- Test Case ID: VUL-CRT-002
- Description: Verify the presence of the specified fields in the Vulnerability Detail section.
- Steps:
- Navigate to the “Add Vulnerability” 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.
Vulnerability Impact Section
Fields
- Test Case ID: VUL-CRT-003
- Description: Verify the presence of the specified fields in the Vulnerability Impact section.
- Steps:
- Navigate to the “Add Vulnerability” 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.
Vulnerability Access Section
Fields
- Test Case ID: VUL-CRT-004
- Description: Verify the presence of the specified fields in the Vulnerability Access section.
- Steps:
- Navigate to the “Add Vulnerability” 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.
CVE References Section
Add CVE Reference Button
- Test Case ID: VUL-CRT-005
- 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 “Add Vulnerability” 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
Add Assigned External Component Id Button
- Test Case ID: VUL-CRT-006
- 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 “Add Vulnerability” 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
Add Vulnerability Reference Button
- Test Case ID: VUL-CRT-007
- 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 “Add Vulnerability” 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
Add Vendor Advisory Button
- Test Case ID: VUL-CRT-008
- 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 “Add Vulnerability” 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
Add Vulnerability Configuration Button
- Test Case ID: VUL-CRT-009
- 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 “Add Vulnerability” 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.
Create Vulnerability Button
Vulnerability Creation
- Test Case ID: VUL-CRT-010
- Description: Verify that clicking on the “Create Vulnerability” button saves the vulnerability and redirects the user to the main vulnerability page with the message “Vulnerability (external ID) added successfully!” displayed.
- Steps:
- Navigate to the “Add Vulnerability” page.
- Fill in the required fields and any additional information.
- Click on the “Create Vulnerability” button.
- Expected Result: The vulnerability is saved, the user is redirected to the main vulnerability page, and the message “Vulnerability (external ID) added successfully!” is displayed.