From 7eb036ddd3674661aa52c7507ccf972ac940f07d Mon Sep 17 00:00:00 2001 From: myufei Date: Thu, 12 Oct 2017 11:31:44 +0800 Subject: [PATCH] fix scan tag case --- tests/resources/Harbor-Pages/Project.robot | 10 +++++----- tests/robot-cases/Group0-BAT/BAT.robot | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project.robot b/tests/resources/Harbor-Pages/Project.robot index d6bebf6c4..7a2e70b2e 100644 --- a/tests/resources/Harbor-Pages/Project.robot +++ b/tests/resources/Harbor-Pages/Project.robot @@ -153,11 +153,11 @@ Expand Repo sleep 1 Scan Repo - [Arguments] ${projectname} - Click Element //hbr-tag//clr-dg-row-master[contains(.,'${projectname}')]//clr-dg-action-overflow - Click Element //hbr-tag//clr-dg-row-master[contains(.,'${projectname}')]//clr-dg-action-overflow//button[contains(.,'Scan')] + [Arguments] ${tagname} + Click Element //hbr-tag//clr-dg-row-master[contains(.,'${tagname}')]//clr-dg-action-overflow + Click Element //hbr-tag//clr-dg-row-master[contains(.,'${tagname}')]//clr-dg-action-overflow//button[contains(.,'Scan')] Sleep 15 Summary Chart Should Display - [Arguments] ${projectname} - Page Should Contain Element //clr-dg-row-master[contains(.,'${projectname}')]//hbr-vulnerability-bar//hbr-vulnerability-summary-chart \ No newline at end of file + [Arguments] ${tagname} + Page Should Contain Element //clr-dg-row-master[contains(.,'${tagname}')]//hbr-vulnerability-bar//hbr-vulnerability-summary-chart diff --git a/tests/robot-cases/Group0-BAT/BAT.robot b/tests/robot-cases/Group0-BAT/BAT.robot index 36b6033d9..600293a45 100644 --- a/tests/robot-cases/Group0-BAT/BAT.robot +++ b/tests/robot-cases/Group0-BAT/BAT.robot @@ -240,8 +240,8 @@ Test Case - Scan A Tag Push Image ${ip} tester${d} Test1@34 project${d} hello-world Go Into Project project${d} Expand Repo project${d} - Scan Repo project${d} - Summary Chart Should Display project${d} + Scan Repo latest + Summary Chart Should Display latest Close Browser Test Case-Manage Project Member