Skip to content

Commit

Permalink
Merge pull request #16705 from YangJiao0817/add-cve-details-testcase
Browse files Browse the repository at this point in the history
Add open cve details page test case
  • Loading branch information
YangJiao0817 authored Apr 18, 2022
2 parents 7df0c39 + 31efa54 commit 1a981cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/robot-cases/Group1-Nightly/Routing.robot
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,23 @@ Test Case - Open More Info Page
Sleep 3
Switch Window locator=NEW
Retry Wait Until Page Contains An open source trusted cloud native registry project that stores, signs, and scans content.
Close Browser

Test Case - Open CVE Details Page
[Tags] cve_details_page
${d}= Get Current Date result_format=%m%s
${image}= Set Variable goharbor/harbor-portal
${sha256}= Set Variable 55d776fc7f431cdd008c3d8fc3e090c81c1368ed9ed85335f4664df71f864f0d
${cve}= Set Variable CVE-2021-36222
Init Chrome Driver
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Create An New Project And Go Into Project project${d}
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} ${image} sha256=${sha256}
Go Into Repo project${d}/${image}
Scan Repo ${sha256} Succeed
Go Into Artifact ${sha256}
Retry Link Click //hbr-artifact-vulnerabilities//clr-dg-row//a[contains(.,'${cve}')]
Sleep 3
Switch Window locator=NEW
Retry Wait Element //h1[contains(.,'${cve}')]
Close Browser

0 comments on commit 1a981cb

Please sign in to comment.