feat(Cli):1、策略状态更改测试用例补充策略类型,2、策略对象查询测试用例多次迭代,3、增加对各cli命令help参数返回值测试
This commit is contained in:
@@ -3,20 +3,14 @@ Force Tags tsg-cli Policy EnDisable
|
||||
Resource ../../03-Variable/bifangapivariable.txt
|
||||
Resource ../../02-Keyword/tsg_cli/interface.robot
|
||||
|
||||
*** Variables ***
|
||||
${PolicyType} tsg_security
|
||||
|
||||
*** Test Cases ***
|
||||
init
|
||||
${data} Get_Policy_Object3 ${PolicyType}
|
||||
Set Suite Variable ${obj} ${data}
|
||||
|
||||
Policy_Update01
|
||||
Tsg_Policy_EnDisable ${obj}[policyId] ${PolicyType} ${obj}[commandType1]
|
||||
|
||||
Policy_Update02
|
||||
Tsg_Policy_EnDisable ${obj}[policyId] ${PolicyType} ${obj}[commandType2]
|
||||
|
||||
|
||||
|
||||
|
||||
Policy_EnDisable_TestCase
|
||||
# 操作不同类型策略
|
||||
FOR ${policyType} IN @{PolicyTypes}
|
||||
${obj} Get_Policy_Object3 ${policyType}
|
||||
# 更改策略状态
|
||||
Tsg_Policy_EnDisable ${obj}[policyId] ${policyType} ${obj}[commandType1]
|
||||
# 复原策略状态
|
||||
Tsg_Policy_EnDisable ${obj}[policyId] ${policyType} ${obj}[commandType2]
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user