*** Settings *** Test Teardown DeletePolicyAndObject ${policyIds} ${objectids} Force Tags tsg_adc_wp adc_log security_policy Library OperatingSystem Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot Resource ../../../05-Other/AllFlowCaseVariable.txt Resource ../../../02-Keyword/tsg_adc/FileOperation.robot Resource ../../../05-Other/AllFlowCaseVariable1.txt *** Variables *** ${policyIds} ${EMPTY} ${objectids} ${EMPTY} *** Test Cases *** SecurityPolicy-Deny-Mail-00001 [Tags] content #删除对象 ${objectids} set Variable ${deny_mail_objectId} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId}]} ${s} Convert to String ${deny_mail_policyId} GetLogList security_event_log ${deny_mail_starttime} ${deny_mail_endtime} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00002 [Tags] att_cont #删除对象 ${objectids} set Variable ${deny_mail_objectId1} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId1}]} ${s} Convert to String ${deny_mail_policyId1} GetLogList security_event_log ${deny_mail_starttime1} ${deny_mail_endtime1} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00003 [Tags] subject from #删除对象 ${objectids} set Variable ${deny_mail_objectId2} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId3} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId2}]} ${s} Convert to String ${deny_mail_policyId2} GetLogList security_event_log ${deny_mail_starttime2} ${deny_mail_endtime2} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00004 [Tags] subject from #删除对象 ${objectids} set Variable ${deny_mail_objectId4} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId5} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId3}]} ${s} Convert to String ${deny_mail_policyId3} GetLogList security_event_log ${deny_mail_starttime3} ${deny_mail_endtime3} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00005 [Tags] subject from #删除对象 ${objectids} set Variable ${deny_mail_objectId6} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId7} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId4}]} ${s} Convert to String ${deny_mail_policyId4} GetLogList security_event_log ${deny_mail_starttime4} ${deny_mail_endtime4} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00006 [Tags] subject from #删除对象 ${objectids} set Variable ${deny_mail_objectId8} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId9} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId5}]} ${s} Convert to String ${deny_mail_policyId5} GetLogList security_event_log ${deny_mail_starttime5} ${deny_mail_endtime5} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00007 [Tags] subject to #删除对象 ${objectids} set Variable ${deny_mail_objectId10} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId11} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId6}]} ${s} Convert to String ${deny_mail_policyId6} GetLogList security_event_log ${deny_mail_starttime6} ${deny_mail_endtime6} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00008 [Tags] subject to #删除对象 ${objectids} set Variable ${deny_mail_objectId12} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId13} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId7}]} ${s} Convert to String ${deny_mail_policyId7} GetLogList security_event_log ${deny_mail_starttime7} ${deny_mail_endtime7} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00009 [Tags] subject to #删除对象 ${objectids} set Variable ${deny_mail_objectId14} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId15} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId8}]} ${s} Convert to String ${deny_mail_policyId8} GetLogList security_event_log ${deny_mail_starttime8} ${deny_mail_endtime8} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00010 [Tags] subject to #删除对象 ${objectids} set Variable ${deny_mail_objectId16} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId17} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId9}]} ${s} Convert to String ${deny_mail_policyId9} GetLogList security_event_log ${deny_mail_starttime9} ${deny_mail_endtime9} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00011 [Tags] account subject #删除对象 ${objectids} set Variable ${deny_mail_objectId18} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId19} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId10}]} ${s} Convert to String ${deny_mail_policyId10} GetLogList security_event_log ${deny_mail_starttime10} ${deny_mail_endtime10} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00012 [Tags] account subject #删除对象 ${objectids} set Variable ${deny_mail_objectId20} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId21} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId11}]} ${s} Convert to String ${deny_mail_policyId11} GetLogList security_event_log ${deny_mail_starttime11} ${deny_mail_endtime11} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00013 [Tags] account subject #删除对象 ${objectids} set Variable ${deny_mail_objectId22} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId23} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId12}]} ${s} Convert to String ${deny_mail_policyId12} GetLogList security_event_log ${deny_mail_starttime12} ${deny_mail_endtime12} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00014 [Tags] account subject #删除对象 ${objectids} set Variable ${deny_mail_objectId24} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId25} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId13}]} ${s} Convert to String ${deny_mail_policyId13} GetLogList security_event_log ${deny_mail_starttime13} ${deny_mail_endtime13} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com SecurityPolicy-Deny-Mail-00015 [Tags] 最大组合 #删除对象 ${objectids} set Variable ${deny_mail_objectId26} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId27} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId28} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId29} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId30} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId31} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId14}]} ${s} Convert to String ${deny_mail_policyId14} GetLogList security_event_log ${deny_mail_starttime14} ${deny_mail_endtime14} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com