mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 14:47:38 +01:00
07b005bcda
Signed-off-by: Danfeng Liu (c) <danfengl@vmware.com>
24 lines
982 B
Plaintext
24 lines
982 B
Plaintext
*** Settings ***
|
|
|
|
Resource ../../resources/Util.robot
|
|
|
|
*** Variables ***
|
|
|
|
*** Keywords ***
|
|
Switch To Project Robot Account
|
|
#Switch To Project Tab Overflow
|
|
Retry Element Click ${project_robot_account_tabpage}
|
|
Retry Wait Until Page Contains Element ${project_robot_account_create_btn}
|
|
|
|
Create A Robot Account And Return Token
|
|
[Arguments] ${projectname} ${robot_account_name} ${project_has_image}=${false}
|
|
Go Into Project ${projectname} has_image=${project_has_image}
|
|
Switch To Project Robot Account
|
|
Retry Element Click ${project_robot_account_create_btn}
|
|
Retry Text Input ${project_robot_account_create_name_input} ${robot_account_name}
|
|
Retry Double Keywords When Error Retry Element Click ${project_robot_account_create_save_btn} Retry Wait Until Page Not Contains Element ${project_robot_account_create_save_btn}
|
|
${token}= Get Value ${project_robot_account_token_input}
|
|
[Return] ${token}
|
|
|
|
|