From 6b9584a71f21c59299d102d7c744f602b7a095ab Mon Sep 17 00:00:00 2001 From: danfengliu Date: Mon, 22 Apr 2019 15:47:43 +0800 Subject: [PATCH] Add retry and wait for keyword , Jenkins chart CI failed at 1 test case in rare occasion, the reason is lacking of wait and retry to wait. (#7466) Signed-off-by: danfengliu --- .../Harbor-Pages/Project-Repository.robot | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project-Repository.robot b/tests/resources/Harbor-Pages/Project-Repository.robot index 5e7bb6cf9..23d4ad569 100644 --- a/tests/resources/Harbor-Pages/Project-Repository.robot +++ b/tests/resources/Harbor-Pages/Project-Repository.robot @@ -18,22 +18,18 @@ Resource ../../resources/Util.robot *** Keywords *** View Repo Scan Details - Click Element xpath=${first_repo_xpath} - Sleep 2 + Retry Element Click xpath=${first_repo_xpath} Capture Page Screenshot viewcve1.png - Wait Until Page Contains unknown - Wait Until Page Contains high - Wait Until Page Contains medium - Page Should Contain CVE - Sleep 2 - Click Element xpath=${build_history_btn} - Sleep 1 - Page Should Contain Element xpath=${build_history_data} + Retry Wait Until Page Contains unknown + Retry Wait Until Page Contains high + Retry Wait Until Page Contains medium + Retry Wait Until Page Contains CVE + Retry Element Click xpath=${build_history_btn} + Retry Wait Until Page Contains Element xpath=${build_history_data} View Scan Error Log - Page Should Contain View Log - Click Element xpath=${view_log_xpath} - Sleep 1 + Retry Wait Until Page Contains View Log + Retry Element Click xpath=${view_log_xpath} Capture Page Screenshot viewlog.png