diff --git a/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot b/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot index 3129707..affde0f 100644 --- a/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot +++ b/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot @@ -7,9 +7,10 @@ Resource ../tsg_bfapi/LoginLogout.robot Resource ../tsg_ui/logout/Logout.robot Resource ../tsg_ui/login/Login.robot -Force Tags tsg_adc tsg_bf_api tsg_device -*** Keywords *** + +*** Keywords *** LoginAndAddLocalIP + [Tags] tsg_adc tsg_bf_api tsg_device # 获取主机IP #${ip} Get Host IP #Run Keyword If '${ip}' != '${EMPTY}' Set Global Variable ${testClentIP} ${ip} @@ -18,7 +19,8 @@ LoginAndAddLocalIP ... ELSE IF '${loginType}' == 'cli' CliLogin ... ELSE IF '${loginType}' != '${None}' UiLoginAndAddLocalIP -LogoutAndDelLocalIP +LogoutAndDelLocalIP + [Tags] tsg_adc tsg_bf_api tsg_device Run Keyword If '${loginType}' == 'api' ApiLogoutAndDelLocalIP ... ELSE IF '${loginType}' == 'cli' CliLogout ... ELSE IF '${loginType}' != '${None}' UiLogoutAndDelLocalIP