From 8b739dcbbbd8ef4679c57bbaa1f64d51c6d8a158 Mon Sep 17 00:00:00 2001 From: sigsbee <23101283+sigsbee@users.noreply.github.com> Date: Wed, 21 Mar 2018 18:37:52 +0800 Subject: [PATCH] Fix scan repo keyword and delete multi tag case (#4448) --- tests/resources/Harbor-Pages/Vulnerability.robot | 1 + tests/robot-cases/Group11-Nightly/Nightly.robot | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/resources/Harbor-Pages/Vulnerability.robot b/tests/resources/Harbor-Pages/Vulnerability.robot index 657dbf8c8..5afdec043 100644 --- a/tests/resources/Harbor-Pages/Vulnerability.robot +++ b/tests/resources/Harbor-Pages/Vulnerability.robot @@ -45,6 +45,7 @@ Scan Repo #select one tag Click Element //clr-dg-row[contains(.,"${tagname}")]//label Click Element //button[contains(.,'Scan')] + Sleep 1 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 diff --git a/tests/robot-cases/Group11-Nightly/Nightly.robot b/tests/robot-cases/Group11-Nightly/Nightly.robot index b763f424f..24a073894 100644 --- a/tests/robot-cases/Group11-Nightly/Nightly.robot +++ b/tests/robot-cases/Group11-Nightly/Nightly.robot @@ -432,8 +432,8 @@ Test Case - Delete Multi Tag ${d}= Get Current Date result_format=%m%s Create An New User ${HARBOR_URL} test${d} test${d}@vmware.com test${d} Test1@34 harbor Create An New Project project${d} - Push Image With Tag ${ip} test${d} Test1@34 project${d} redis 3.2.10-alpine - Push Image With Tag ${ip} test${d} Test1@34 project${d} redis 4.0.7-alpine + Push Image With Tag ${ip} test${d} Test1@34 project${d} redis 3.2.10-alpine 3.2.10-alpine + Push Image With Tag ${ip} test${d} Test1@34 project${d} redis 4.0.7-alpine 4.0.7-alpine Sleep 2 Go Into Project project${d} Go Into Repo redis