mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 13:01:23 +01:00
Update routing test case (#17221)
Add retry to improve test case stability Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
parent
56e669ebbc
commit
e58f18bd51
@ -35,4 +35,4 @@ ${about_btn} //clr-dropdown-menu/a[contains(.,'About')]
|
||||
${header} xpath=//clr-header[contains(@class,'header-5')]
|
||||
${color_theme_light} //span[contains(.,'LIGHT')]
|
||||
${close_btn} //button[contains(.,'CLOSE')]
|
||||
|
||||
${more_info_link_xpath} //sign-in//div//a[contains(.,'More info...')]
|
@ -118,9 +118,4 @@ Stop Scan All Artifact
|
||||
Check Scan All Artifact Job Status Is Stopped
|
||||
Wait Until Element Is Visible ${stopped_icon}
|
||||
${stopped_total}= Get Text ${stopped_icon}
|
||||
Should Be True ${stopped_total} > 0
|
||||
|
||||
Open Image Scanners Documentation
|
||||
Switch To Scanners Page
|
||||
Retry Element Click //clr-signpost//cds-icon
|
||||
Retry Link Click //clr-signpost-content//a[contains(.,'view documentation')]
|
||||
Should Be True ${stopped_total} > 0
|
@ -34,5 +34,5 @@ ${scanner_set_default} xpath=//button[@id="set-default"]
|
||||
${scanner_set_default_success_xpath} //span[contains(.,'Successfully updated')]
|
||||
${not_scanned_icon} xpath=//span[@class[contains(.,'not-scan')]]
|
||||
${stopped_icon} //span[@class[contains(.,'badge abort')]]
|
||||
|
||||
|
||||
${view_scanner_icon_xpath} //clr-signpost//cds-icon
|
||||
${view_scanner_doc_xpath} //clr-signpost-content//a[contains(.,'view documentation')]
|
@ -301,4 +301,10 @@ Log All
|
||||
|
||||
New Tab
|
||||
Execute Javascript window.open('')
|
||||
Select Window title=undefined
|
||||
Select Window title=undefined
|
||||
|
||||
Click Link New Tab And Switch
|
||||
[Arguments] ${element_xpath}
|
||||
Retry Link Click ${element_xpath}
|
||||
${handles}= Get Window Handles
|
||||
Retry Action Keyword Switch Window ${handles}[-1]
|
@ -75,20 +75,14 @@ Test Case - Open License Page
|
||||
Init Chrome Driver
|
||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||
View About
|
||||
Retry Link Click ${license_xpath}
|
||||
Sleep 3
|
||||
Switch Window locator=NEW
|
||||
Retry Wait Until Page Contains Apache License
|
||||
Retry Double Keywords When Error Click Link New Tab And Switch ${license_xpath} Retry Wait Until Page Contains Apache License
|
||||
Close Browser
|
||||
|
||||
Test Case - Open More Info Page
|
||||
[Tags] more_info_page
|
||||
Init Chrome Driver
|
||||
Go To ${HARBOR_URL}
|
||||
Retry Link Click //sign-in//div//a[contains(.,'More info...')]
|
||||
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.
|
||||
Retry Double Keywords When Error Click Link New Tab And Switch ${more_info_link_xpath} 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
|
||||
@ -104,18 +98,14 @@ Test Case - Open CVE Details Page
|
||||
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}')]
|
||||
Retry Double Keywords When Error Click Link New Tab And Switch //hbr-artifact-vulnerabilities//clr-dg-row//a[contains(.,'${cve}')] Retry Wait Element //h1[contains(.,'${cve}')]
|
||||
Close Browser
|
||||
|
||||
Test Case - Open Image Scanners Documentation Page
|
||||
[Tags] image_scanners_documentation_page
|
||||
Init Chrome Driver
|
||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||
Open Image Scanners Documentation
|
||||
Sleep 3
|
||||
Switch Window locator=NEW
|
||||
Retry Wait Until Page Contains Vulnerability Scanning with Pluggable Scanners
|
||||
Switch To Scanners Page
|
||||
Retry Element Click ${view_scanner_icon_xpath}
|
||||
Retry Double Keywords When Error Click Link New Tab And Switch ${view_scanner_doc_xpath} Retry Wait Until Page Contains Vulnerability Scanning with Pluggable Scanners
|
||||
Close Browser
|
||||
|
Loading…
Reference in New Issue
Block a user