Add retry for prject list display

Signed-off-by: Danfeng Liu (c) <danfengl@vmware.com>
This commit is contained in:
Danfeng Liu (c) 2020-01-13 10:54:09 +08:00
parent e2bab855ac
commit d02f15fb0f
2 changed files with 10 additions and 3 deletions

View File

@ -39,9 +39,17 @@ Filter Object
Retry Element Click xpath=//hbr-filter//clr-icon Retry Element Click xpath=//hbr-filter//clr-icon
${element}= Set Variable xpath=//hbr-filter//input ${element}= Set Variable xpath=//hbr-filter//input
Wait Until Element Is Visible And Enabled ${element} Wait Until Element Is Visible And Enabled ${element}
Input Text ${element} ${kw} Retry Clear Element Text ${element}
Retry Text Input ${element} ${kw}
Sleep 3 Sleep 3
Filter Project
#Filter project repo user tag.
[Arguments] ${kw}
Retry Element Click ${log_xpath}
Retry Element Click ${projects_xpath}
Filter Object ${kw}
Select Object Select Object
#select single element such as user project repo tag #select single element such as user project repo tag
[Arguments] ${obj} [Arguments] ${obj}

View File

@ -117,8 +117,7 @@ Test Case - Project Level Policy Public
# Here logout and login to try avoid a bug only in autotest # Here logout and login to try avoid a bug only in autotest
Logout Harbor Logout Harbor
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Filter Object project${d} Retry Double Keywords When Error Filter Project project${d} Project Should Be Public project${d}
Project Should Be Public project${d}
Close Browser Close Browser
Test Case - Verify Download Ca Link Test Case - Verify Download Ca Link