From d1981d23b1218d4cb507bbcac6572a2a47cbfff7 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Wed, 10 Oct 2018 10:38:48 +0800 Subject: [PATCH] Update automation test cases (#5991) Longer the wait time to pass the nightly testing Signed-off-by: Wenkai Yin --- tests/resources/Harbor-Pages/Project.robot | 1 + tests/resources/Harbor-Pages/Vulnerability.robot | 5 ++--- tests/robot-cases/Group1-Nightly/Common.robot | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project.robot b/tests/resources/Harbor-Pages/Project.robot index 2a573d876..81fa867af 100644 --- a/tests/resources/Harbor-Pages/Project.robot +++ b/tests/resources/Harbor-Pages/Project.robot @@ -84,6 +84,7 @@ Make Project Private Go Into Project ${project name} Sleep 1 Click Element xpath=//project-detail//a[contains(.,'Configuration')] + Sleep 1 Checkbox Should Be Selected xpath=//input[@name='public'] Click Element //clr-checkbox[@name='public']//label Click Element //button[contains(.,'SAVE')] diff --git a/tests/resources/Harbor-Pages/Vulnerability.robot b/tests/resources/Harbor-Pages/Vulnerability.robot index 624ac9a08..9e0f06e9e 100644 --- a/tests/resources/Harbor-Pages/Vulnerability.robot +++ b/tests/resources/Harbor-Pages/Vulnerability.robot @@ -45,9 +45,8 @@ Scan Repo #select one tag Click Element //clr-dg-row[contains(.,"${tagname}")]//label Click Element //button[contains(.,'Scan')] - Sleep 20 - Run Keyword If '${status}' == 'Succeed' Wait Until Element Is Visible //hbr-vulnerability-bar//hbr-vulnerability-summary-chart - Run Keyword If '${status}' == 'Fail' Wait Until Element Is Visible //hbr-vulnerability-bar//a + Run Keyword If '${status}' == 'Succeed' Wait Until Element Is Visible //hbr-vulnerability-bar//hbr-vulnerability-summary-chart 300 + Run Keyword If '${status}' == 'Fail' Wait Until Element Is Visible //hbr-vulnerability-bar//a 300 Summary Chart Should Display diff --git a/tests/robot-cases/Group1-Nightly/Common.robot b/tests/robot-cases/Group1-Nightly/Common.robot index f45426b66..33515a64d 100644 --- a/tests/robot-cases/Group1-Nightly/Common.robot +++ b/tests/robot-cases/Group1-Nightly/Common.robot @@ -68,6 +68,7 @@ Test Case - Read Only Mode Cannot Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} busybox:latest Disable Read Only + Sleep 5 Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} busybox:latest Close Browser @@ -265,6 +266,8 @@ Test Case - User View Logs Go Into Project project${d} Delete Repo project${d} + Sleep 1 + Go To Project Log Advanced Search Should Display