diff --git a/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot b/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot index 05805bd..cb9000a 100644 --- a/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot +++ b/02-Keyword/tsg_common/LoginAndLogoutTypeSwitch.robot @@ -11,8 +11,7 @@ Resource ../tsg_ui/Login/Login.robot LoginAndAddLocalIP # 获取主机IP ${ip} Get Host IP - Set Global Variable ${testClentIP} ${ip} - Should Not Be Empty ${testClentIP} + Run Keyword If '${ip}' != '${EMPTY}' Set Global Variable ${testClentIP} ${ip} Run Keyword If '${loginType}' == 'api' ApiLoginAndAddLocalIP aa ... ELSE IF '${loginType}' == 'cli' CliLogin