Fix nightly failure (#15161)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Will Sun 2021-06-18 17:53:26 +08:00 committed by GitHub
parent c39345da96
commit be3f499b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 21 additions and 21 deletions

View File

@ -276,7 +276,7 @@ Create New Labels
Update A Label Update A Label
[Arguments] ${labelname} [Arguments] ${labelname}
Retry Element Click xpath=//clr-dg-row[contains(.,'${labelname}')]//clr-checkbox-wrapper Retry Element Click xpath=//clr-dg-row[contains(.,'${labelname}')]//div[contains(@class,'clr-checkbox-wrapper')]//label
Sleep 1 Sleep 1
Retry Element Click xpath=//button[contains(.,'Edit')] Retry Element Click xpath=//button[contains(.,'Edit')]
Sleep 1 Sleep 1
@ -287,7 +287,7 @@ Update A Label
Delete A Label Delete A Label
[Arguments] ${labelname} [Arguments] ${labelname}
Retry Element Click xpath=//clr-dg-row[contains(.,'${labelname}')]//clr-checkbox-wrapper Retry Element Click xpath=//clr-dg-row[contains(.,'${labelname}')]//div[contains(@class,'clr-checkbox-wrapper')]//label
Sleep 1 Sleep 1
Retry Element Click xpath=//button[contains(.,'Delete')] Retry Element Click xpath=//button[contains(.,'Delete')]
Sleep 3 Sleep 3
@ -367,7 +367,7 @@ Set User Name Claim And Save
Select Distribution Select Distribution
[Arguments] ${name} [Arguments] ${name}
Retry Element Click //clr-dg-row[contains(.,'${name}')]//clr-checkbox-wrapper/label Retry Element Click //clr-dg-row[contains(.,'${name}')]//div[contains(@class,'clr-checkbox-wrapper')]/label
Distribution Exist Distribution Exist
[Arguments] ${name} ${endpoint} [Arguments] ${name} ${endpoint}

View File

@ -40,7 +40,7 @@ Add A New Tag
Delete A Tag Delete A Tag
[Arguments] ${tag} [Arguments] ${tag}
Retry Element Click xpath=//clr-dg-row[contains(.,'${tag}')]//clr-checkbox-wrapper//label[contains(@class,'clr-control-label')] Retry Element Click xpath=//clr-dg-row[contains(.,'${tag}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
Retry Double Keywords When Error Retry Element Click ${delete_tag_button} Retry Wait Until Page Contains Element ${dialog_delete_button} Retry Double Keywords When Error Retry Element Click ${delete_tag_button} Retry Wait Until Page Contains Element ${dialog_delete_button}
Retry Double Keywords When Error Retry Element Click ${dialog_delete_button} Should Not Contain Tag ${tag} Retry Double Keywords When Error Retry Element Click ${dialog_delete_button} Should Not Contain Tag ${tag}

View File

@ -31,7 +31,7 @@ ${detail_value} //*[@id='value-link']
${value_content} //*[@id='value-content']/hbr-chart-detail-value ${value_content} //*[@id='value-content']/hbr-chart-detail-value
${version_bread_crumbs} //project-chart-detail//a[contains(.,'Versions')] ${version_bread_crumbs} //project-chart-detail//a[contains(.,'Versions')]
${version_checkbox} //clr-dg-row//clr-checkbox-wrapper/label ${version_checkbox} //clr-dg-row//div[contains(@class,'clr-checkbox-wrapper')]/label
${version_delete} //clr-dg-action-bar/button[contains(.,'DELETE')] ${version_delete} //clr-dg-action-bar/button[contains(.,'DELETE')]
${version_confirm_delete} //clr-modal//button[contains(.,'DELETE')] ${version_confirm_delete} //clr-modal//button[contains(.,'DELETE')]

View File

@ -69,7 +69,7 @@ Change Project Member Role
Change Member Role Change Member Role
[Arguments] ${user} ${role} [Arguments] ${user} ${role}
Retry Element Click xpath=${project_member_tag_xpath} Retry Element Click xpath=${project_member_tag_xpath}
Retry Element Click xpath=//project-detail//clr-dg-row[contains(.,'${user}')]//clr-checkbox-wrapper Retry Element Click xpath=//project-detail//clr-dg-row[contains(.,'${user}')]//div[contains(@class,'clr-checkbox-wrapper')]
#change role #change role
Retry Element Click ${project_member_action_xpath} Retry Element Click ${project_member_action_xpath}
Retry Element Click //button[contains(.,'${role}')] Retry Element Click //button[contains(.,'${role}')]

View File

@ -33,7 +33,7 @@ ${project_tag_retention_span_daily_xpath} //cron-selection//div//span[contains(
${project_tag_retention_dry_run_xpath} //*[@id='dry-run'] ${project_tag_retention_dry_run_xpath} //*[@id='dry-run']
${project_tag_retention_refresh_xpath} //clr-dg-action-bar/button[4] ${project_tag_retention_refresh_xpath} //clr-dg-action-bar/button[4]
${project_tag_retention_record_yes_xpath} //clr-datagrid[contains(.,'Yes')] ${project_tag_retention_record_yes_xpath} //clr-datagrid[contains(.,'Yes')]
${project_tag_retention_list_expand_icon_xpath} //project-detail/app-tag-feature-integration/tag-retention//clr-datagrid//clr-dg-row//clr-expandable-animation//clr-icon[@class='datagrid-expandable-caret-icon'] ${project_tag_retention_list_expand_icon_xpath} //project-detail/app-tag-feature-integration/tag-retention//clr-datagrid//clr-dg-row//clr-expandable-animation//cds-icon[@class='datagrid-expandable-caret-icon']
${project_tag_retention_run_now_xpath} //*[@id='run-now'] ${project_tag_retention_run_now_xpath} //*[@id='run-now']
${project_tag_retention_execute_run_xpath} //*[@id='execute-run'] ${project_tag_retention_execute_run_xpath} //*[@id='execute-run']
${project_tag_retention_record_no_xpath} //clr-datagrid[contains(.,'No')] ${project_tag_retention_record_no_xpath} //clr-datagrid[contains(.,'No')]

View File

@ -21,7 +21,7 @@ Create A New Webhook
Update A Webhook Update A Webhook
[Arguments] ${old_webhook_name} ${new_webhook_name} ${new_webhook_enpoint} [Arguments] ${old_webhook_name} ${new_webhook_name} ${new_webhook_enpoint}
# select one webhook # select one webhook
Retry Element Click xpath=//clr-dg-row[contains(.,'${old_webhook_name}')]//clr-checkbox-wrapper//label[contains(@class,'clr-control-label')] Retry Element Click xpath=//clr-dg-row[contains(.,'${old_webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
Retry Element Click ${action_webhook_xpath} Retry Element Click ${action_webhook_xpath}
Retry Element Click ${action_webhook_edit_button} Retry Element Click ${action_webhook_edit_button}
@ -37,7 +37,7 @@ Update A Webhook
Enable/Disable State of Same Webhook Enable/Disable State of Same Webhook
[Arguments] ${webhook_name} [Arguments] ${webhook_name}
Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//clr-checkbox-wrapper//label[contains(@class,'clr-control-label')] Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
Retry Element Click ${action_webhook_xpath} Retry Element Click ${action_webhook_xpath}
Retry Element Click ${action_webhook_disable_or_enable_button} Retry Element Click ${action_webhook_disable_or_enable_button}
Retry Wait Until Page Contains Element ${dialog_disable_id_xpath} Retry Wait Until Page Contains Element ${dialog_disable_id_xpath}
@ -45,7 +45,7 @@ Enable/Disable State of Same Webhook
# contain disabled webhook # contain disabled webhook
Retry Wait Until Page Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Disabled')] Retry Wait Until Page Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Disabled')]
Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//clr-checkbox-wrapper//label[contains(@class,'clr-control-label')] Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
Retry Element Click ${action_webhook_xpath} Retry Element Click ${action_webhook_xpath}
Retry Element Click ${action_webhook_disable_or_enable_button} Retry Element Click ${action_webhook_disable_or_enable_button}
Retry Wait Until Page Contains Element ${dialog_enable_id_xpath} Retry Wait Until Page Contains Element ${dialog_enable_id_xpath}
@ -55,9 +55,9 @@ Enable/Disable State of Same Webhook
Delete A Webhook Delete A Webhook
[Arguments] ${webhook_name} [Arguments] ${webhook_name}
Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//clr-checkbox-wrapper//label[contains(@class,'clr-control-label')] Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
Retry Element Click ${action_webhook_xpath} Retry Element Click ${action_webhook_xpath}
Retry Element Click ${action_webhook_delete_button} Retry Element Click ${action_webhook_delete_button}
Retry Wait Until Page Contains Element ${dialog_delete_button} Retry Wait Until Page Contains Element ${dialog_delete_button}
Retry Element Click ${dialog_delete_button} Retry Element Click ${dialog_delete_button}
Retry Wait Until Page Not Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//clr-checkbox-wrapper//label[contains(@class,'clr-control-label')] Retry Wait Until Page Not Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]

View File

@ -147,7 +147,7 @@ Filter Repo
Delete Repo Delete Repo
[Arguments] ${pro_name} ${repo_name} [Arguments] ${pro_name} ${repo_name}
${element_repo_checkbox}= Set Variable xpath=//clr-dg-row[contains(.,'${pro_name}/${repo_name}')]//clr-checkbox-wrapper//label ${element_repo_checkbox}= Set Variable xpath=//clr-dg-row[contains(.,'${pro_name}/${repo_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label
Filter Repo ${pro_name} ${repo_name} Filter Repo ${pro_name} ${repo_name}
Retry Double Keywords When Error Retry Element Click ${element_repo_checkbox} Wait Until Element Is Visible And Enabled ${repo_delete_btn} Retry Double Keywords When Error Retry Element Click ${element_repo_checkbox} Wait Until Element Is Visible And Enabled ${repo_delete_btn}
Retry Double Keywords When Error Retry Element Click ${repo_delete_btn} Wait Until Element Is Visible And Enabled ${delete_confirm_btn} Retry Double Keywords When Error Retry Element Click ${repo_delete_btn} Wait Until Element Is Visible And Enabled ${delete_confirm_btn}
@ -165,7 +165,7 @@ Delete Repo on CardView
Delete Project Delete Project
[Arguments] ${projectname} [Arguments] ${projectname}
Navigate To Projects Navigate To Projects
Retry Element Click xpath=//clr-dg-row[contains(.,'${projectname}')]//clr-checkbox-wrapper//label Retry Element Click xpath=//clr-dg-row[contains(.,'${projectname}')]//div[contains(@class,'clr-checkbox-wrapper')]//label
Retry Element Click xpath=//*[@id='delete-project'] Retry Element Click xpath=//*[@id='delete-project']
Retry Element Click //clr-modal//button[contains(.,'DELETE')] Retry Element Click //clr-modal//button[contains(.,'DELETE')]
Sleep 1 Sleep 1

View File

@ -49,7 +49,7 @@ ${repo_search_input} xpath=//hbr-filter//input
${repo_list_spinner} xpath=//clr-datagrid//clr-spinner ${repo_list_spinner} xpath=//clr-datagrid//clr-spinner
#${repo_search_icon} xpath=//hbr-repository-gridview//clr-datagrid//clr-dg-column[contains(.,'Name')]//clr-dg-string-filter//button//clr-icon #${repo_search_icon} xpath=//hbr-repository-gridview//clr-datagrid//clr-dg-column[contains(.,'Name')]//clr-dg-string-filter//button//clr-icon
#${repo_search_input} xpath=//div[@class[contains(.,'datagrid-filter')]]//input #${repo_search_input} xpath=//div[@class[contains(.,'datagrid-filter')]]//input
${repo_tag_1st_checkbox} xpath=//clr-datagrid//clr-dg-row//clr-checkbox-wrapper ${repo_tag_1st_checkbox} xpath=//clr-datagrid//clr-dg-row//div[contains(@class,'clr-checkbox-wrapper')]
${tag_table_column_pull_command} xpath=//clr-dg-column//span[contains(.,'Pull Command')] ${tag_table_column_pull_command} xpath=//clr-dg-column//span[contains(.,'Pull Command')]
${tag_table_column_vulnerabilities} xpath=//clr-dg-column//span[contains(.,'Vulnerabilities')] ${tag_table_column_vulnerabilities} xpath=//clr-dg-column//span[contains(.,'Vulnerabilities')]
${tag_table_column_os_arch} xpath=//clr-dg-column//span[contains(.,'OS/ARCH')] ${tag_table_column_os_arch} xpath=//clr-dg-column//span[contains(.,'OS/ARCH')]

View File

@ -224,7 +224,7 @@ Delete Endpoint
Retry Element Click ${endpoint_filter_search} Retry Element Click ${endpoint_filter_search}
Retry Text Input ${endpoint_filter_input} ${name} Retry Text Input ${endpoint_filter_input} ${name}
#click checkbox before target endpoint #click checkbox before target endpoint
Retry Double Keywords When Error Retry Element Click //clr-dg-row[contains(.,'${name}')]//clr-checkbox-wrapper Retry Wait Element ${registry_del_btn} Retry Double Keywords When Error Retry Element Click //clr-dg-row[contains(.,'${name}')]//div[contains(@class,'clr-checkbox-wrapper')] Retry Wait Element ${registry_del_btn}
Retry Element Click ${registry_del_btn} Retry Element Click ${registry_del_btn}
Wait Until Page Contains Element ${dialog_delete} Wait Until Page Contains Element ${dialog_delete}
Retry Element Click ${dialog_delete} Retry Element Click ${dialog_delete}

View File

@ -75,7 +75,7 @@ ${replication_rule_action} //*[@id='rule-action']
${replication_rule_action_bar_edit} //*[@id='edit_replication_rule_id'] ${replication_rule_action_bar_edit} //*[@id='edit_replication_rule_id']
${replication_rule_action_bar_delete} //*[@id='delete_replication_rule_id'] ${replication_rule_action_bar_delete} //*[@id='delete_replication_rule_id']
${replication_rule_exec_id} //*[@id='replication_exe_id'] ${replication_rule_exec_id} //*[@id='replication_exe_id']
${replication_task_line_1} //clr-datagrid//clr-dg-row/div/div[2]//clr-checkbox-wrapper/label[1] ${replication_task_line_1} //clr-datagrid//clr-dg-row/div/div[2]//div[contains(@class,'clr-checkbox-wrapper')]/label[1]
${is_overide_xpath} //label[contains(.,'Replace the destination resources if name exists')] ${is_overide_xpath} //label[contains(.,'Replace the destination resources if name exists')]
${enable_rule_xpath} //label[contains(.,'Enable rule')] ${enable_rule_xpath} //label[contains(.,'Enable rule')]
${targetCron_id} //*[@id='targetCron'] ${targetCron_id} //*[@id='targetCron']

View File

@ -107,7 +107,7 @@ Create A New System Robot Account
${permission_item_list}= Get From Dictionary ${tmp} permission_item_list ${permission_item_list}= Get From Dictionary ${tmp} permission_item_list
Log To Console permission_item_list: ${permission_item_list} Log To Console permission_item_list: ${permission_item_list}
Filter Project In Project Permisstion List ${project_name} Filter Project In Project Permisstion List ${project_name}
Retry Element Click //clr-dg-row[contains(.,'${project_name}')]//clr-checkbox-wrapper/label Retry Element Click //clr-dg-row[contains(.,'${project_name}')]//div[contains(@class,'clr-checkbox-wrapper')]/label
Retry Element Click //clr-dg-row[contains(., '${project_name}')]//clr-dropdown/button Retry Element Click //clr-dg-row[contains(., '${project_name}')]//clr-dropdown/button
Select Project Permission ${project_name} ${permission_item_list} Select Project Permission ${project_name} ${permission_item_list}
END END

View File

@ -25,8 +25,8 @@ ${sys_robot_account_coverall_chb_input} xpath=//input[@id='coverAll']
${sys_robot_account_coverall_chb} //clr-checkbox-wrapper[contains(@class, 'clr-checkbox-wrapper')]/label[contains(@for, 'coverAll')] ${sys_robot_account_coverall_chb} //clr-checkbox-wrapper[contains(@class, 'clr-checkbox-wrapper')]/label[contains(@for, 'coverAll')]
${sys_robot_account_permission_list_btn} //form/section//clr-dropdown/button ${sys_robot_account_permission_list_btn} //form/section//clr-dropdown/button
${save_sys_robot_account_btn} //*[@id='system-robot-save'] ${save_sys_robot_account_btn} //*[@id='system-robot-save']
${save_sys_robot_project_filter_chb} //clr-dg-string-filter/clr-dg-filter//clr-icon ${save_sys_robot_project_filter_chb} //clr-dg-string-filter/clr-dg-filter//cds-icon
${save_sys_robot_project_filter_input} //input[contains(@name, 'search')] ${save_sys_robot_project_filter_input} //input[contains(@name, 'search')]
${save_sys_robot_project_filter_close_btn} //button/clr-icon[contains(@title, 'Close')] ${save_sys_robot_project_filter_close_btn} //button/cds-icon[contains(@title, 'Close')]
${save_sys_robot_project_paste_icon} //hbr-copy-input//clr-icon ${save_sys_robot_project_paste_icon} //hbr-copy-input//clr-icon

View File

@ -97,7 +97,7 @@ Multi-delete User
Multi-delete Member Multi-delete Member
[Arguments] @{obj} [Arguments] @{obj}
FOR ${obj} IN @{obj} FOR ${obj} IN @{obj}
Retry Element Click //clr-dg-row[contains(.,'${obj}')]//clr-checkbox-wrapper/label Retry Element Click //clr-dg-row[contains(.,'${obj}')]//div[contains(@class,'clr-checkbox-wrapper')]/label
END END
Retry Double Keywords When Error Retry Element Click ${member_action_xpath} Retry Wait Until Page Contains Element ${delete_action_xpath} Retry Double Keywords When Error Retry Element Click ${member_action_xpath} Retry Wait Until Page Contains Element ${delete_action_xpath}
Retry Double Keywords When Error Retry Element Click ${delete_action_xpath} Retry Wait Until Page Contains Element ${delete_btn} Retry Double Keywords When Error Retry Element Click ${delete_action_xpath} Retry Wait Until Page Contains Element ${delete_btn}