Add Go To Harbor Api Page TestCase

Signed-off-by: YangJiao <jiaoya@vmware.com>
This commit is contained in:
YangJiao 2021-09-09 16:55:12 +08:00 committed by Yang Jiao
parent ecc1a04c92
commit 5533015fd1
2 changed files with 15 additions and 0 deletions

View File

@ -436,3 +436,11 @@ Replication With Flattening
END
Log All ${target_images}
Body Of Replication Of Pull Images from Registry To Self harbor https://${src_endpoint} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} ${src_project}/** ${null} N ${flattening_type} @{target_images}
Check Harbor Api Page
Retry Link Click //a[contains(.,'Harbor API V2.0')]
Sleep 3
Switch Window locator=NEW
${Title}= Get Title
Should Be Equal ${Title} Harbor Swagger
Retry Wait Element xpath=//h2[contains(.,"Harbor API")]

View File

@ -819,3 +819,10 @@ Test Case - System Robot Account
${name}= Create A New System Robot Account project_permission_list=${project_permission_list}
System Robot Account Exist ${name} ${project_count}
Close Browser
Test Case - Go To Harbor Api Page
[Tags] go_to_harbor_api_page
Init Chrome Driver
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Retry Keyword N Times When Error 4 Check Harbor Api Page
Close Browser