Merge pull request #9850 from jwangyangls/add-scanner-nightly-case

Modify scan now nightly case
This commit is contained in:
Will Sun 2019-11-13 19:20:08 +08:00 committed by GitHub
commit 87de8f1de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,7 @@
<span>{{ 'SCANNER.TOTAL' | translate }}</span>
<span class="margin-left-5">{{scanningMetrics?.total}}</span>
</div>
<div class="container" [style.width]="totalWidth+'px'">
<div class="container" id="scan-result-container" [style.width]="totalWidth+'px'">
<div class="error h-100" [style.width]="errorWidth()"></div>
<div class="finished h-100" [style.width]="finishedWidth()"></div>
<div class="in-progress h-100" [style.width]="runningWidth()"></div>

View File

@ -11,9 +11,10 @@ Disable Scan Schedule
Retry Element Click ${vulnerability_dropdown_list_item_none}
Retry Double Keywords When Error Retry Element Click ${vulnerability_save_btn} Retry Wait Until Page Not Contains Element ${vulnerability_save_btn}
Trigger Scan Now
Trigger Scan Now And Wait Until The Result Appears
Retry Element Click xpath=${scan_now_button}
Sleep 10
Retry Wait Until Page Contains Element ${scan_now_result}
Switch To Vulnerability Page
Retry Element Click xpath=//clr-main-container//clr-vertical-nav//a[contains(.,'Interrogation')]

View File

@ -27,5 +27,6 @@ ${scanner_action_xpath} //span[@id='action-scanner']
${delete_scanner_action_xpath} //span[@id='delete-scanner-action']
${immutable_msg_xpath} //span[contains(.,'registration Clair is not allowed to delete as it is immutable: scanner API: delete')]
${delete_scanner_confirm_btn} xpath=//clr-modal//button[contains(.,'DELETE')]
${scan_now_result} xpath=//div[@id="scan-result-container"]

View File

@ -72,7 +72,7 @@ Test Case - Manual Scan All
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Switch To Vulnerability Page
Trigger Scan Now
Trigger Scan Now And Wait Until The Result Appears
Navigate To Projects
Go Into Project library
Go Into Repo redis

View File

@ -447,7 +447,7 @@ Test Case - Manual Scan All
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Switch To Vulnerability Page
Trigger Scan Now
Trigger Scan Now And Wait Until The Result Appears
Navigate To Projects
Go Into Project library
Go Into Repo redis