Merge pull request #15566 from YangJiao0817/add-harbor-api-testcase

Add Go To Harbor Api Page TestCase
This commit is contained in:
Yang Jiao 2021-09-17 17:02:11 +08:00 committed by GitHub
commit 04cd65d179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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