*** Settings *** Test Teardown DeletePolicyAndObject ${policyIds} ${objectids} ${categoryIds} Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot Resource ../../../02-Keyword/tsg_bfapi/policy_object/Object.robot Resource ../../../02-Keyword/tsg_bfapi/policy_object/Log.robot Resource ../../../02-Keyword/tsg_bfapi/Common.robot Resource ../../../03-Variable/BifangApiVariable.txt Library json Library DateTime *** Variables *** ${policyIds} ${EMPTY} ${objectids} ${EMPTY} ${categoryIds} ${EMPTY} *** Test Cases *** ForwardAddCategoriesOneFqdn Comment 创建categories ${addItemList1} Create Dictionary fqdn=$www.lkong.net ${addItemLists} Create list ${addItemList1} ${objectDict} Create Dictionary categoryType=fqdn categoryName=lkong objectSubType=category isValid=${1} fqdnList=${addItemLists} ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 200 sleep ${policyModifySleepSeconds} Comment query Max QueryCategory pageSize=20&pageNo=1&categoryId=${categoryId}&orderBy=categoryId desc&categoryType=fqdn&categoryName=lkong&isInitialize=0&fqdn=lkong 200 sleep ${policyModifySleepSeconds} Comment update Category ${addItemList1} Create Dictionary fqdn=*xinxin.lkong.net ${addItemLists} Create list ${addItemList1} ${objectDict} Create Dictionary objectId=${categoryObjId} categoryId=${categoryId} categoryType=fqdn categoryName=lkongchaoji objectSubType=category fqdnList=${addItemLists} ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} update 200 ${categoryIds} set Variable ${categoryId} ForwardAddCategoriesMulFqdn Comment 创建categories ${addItemList1} Create Dictionary fqdn=$www.hao123.com ${addItemList2} Create Dictionary fqdn=*huai123.com ${addItemList3} Create Dictionary fqdn=*baidu.com ${addItemList4} Create Dictionary fqdn=*kuxiu.com ${addItemLists} Create list ${addItemList1} ${addItemList2} ${addItemList3} ${addItemList4} ${objectDict} Create Dictionary categoryType=fqdn categoryName=lkong objectSubType=category isValid=${1} fqdnList=${addItemLists} ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 200 ${categoryIds} set Variable ${categoryId} ReverseAddCategoriesMulFqdn1 Comment 创建categories ${addItemList1} Create Dictionary fqdn=cuowuwang.com ${addItemLists} Create list ${addItemList1} ${objectDict} Create Dictionary categoryType=fqdn categoryName=lkong objectSubType=category isValid=${1} fqdnList=${addItemLists} ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 40014018 Comment 创建categories ${addItemList1} Create Dictionary fqdn=cuowuwang.com ${addItemList2} Create Dictionary fqdn=*cuowuwang.com ${addItemLists} Create list ${addItemList1} ${addItemList2} ${objectDict} Create Dictionary categoryType=fqdn categoryName=lkong objectSubType=category isValid=${1} fqdnList=${addItemLists} ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 40014018 ReverseAddCategoriesMulFqdn2 Comment 创建categories ${addItemList1} Create Dictionary fqdn=*a ${addItemLists} Create list ${addItemList1} ${objectDict} Create Dictionary categoryType=fqdn categoryName=lkong objectSubType=category isValid=${1} fqdnList=${addItemLists} ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 40014006 ReverseSearchCategories1 QueryCategory pageSize=20&pageNo=1&categoryId=abc 400 ReverseSearchCategories2 QueryCategory pageSize=20&pageNo=1&categoryType=halala 40090025