修改策略关键字
This commit is contained in:
@@ -1025,8 +1025,7 @@ Profile-SearchorCreate
|
||||
... AND clcik element id=responseAddOk1
|
||||
... ELSE log 传入参数错误
|
||||
Deny-Redirect
|
||||
[Arguments] ${DenyRedirectadd}
|
||||
# ${QType} ${Avalue} ${Attl} ${CNAMEvalue} ${CNAMEttl}
|
||||
[Arguments] ${QType} ${Avalue} ${Attl} ${CNAMEvalue} ${CNAMEttl}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
... ${QType}:填入A或AAAA
|
||||
... ${Avalue}:根据${QType}填入IPV4或IPV6的值
|
||||
@@ -1034,21 +1033,7 @@ Deny-Redirect
|
||||
... ${CNAMEvalue}:根据${QType}填入A的CNAME的域名值或AAAA的CNAME域名值
|
||||
... ${CNAMEttl}:根据${QType}填入A的CNAME的ttl值或AAAA的CNAME的ttl值
|
||||
... 新建Redirect
|
||||
${return} ${QType} Run Keyword And Ignore Error Get From Dictionary ${DenyRedirectadd} QType
|
||||
${QType} Run Keyword If "${return}"=="FAIL" or "${QType}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${QType}
|
||||
${return} ${Avalue} Run Keyword And Ignore Error Get From Dictionary ${DenyRedirectadd} Avalue
|
||||
${Avalue} Run Keyword If "${return}"=="FAIL" or "${Avalue}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${Avalue}
|
||||
${return} ${Attl} Run Keyword And Ignore Error Get From Dictionary ${DenyRedirectadd} Attl
|
||||
${Attl} Run Keyword If "${return}"=="FAIL" or "${Attl}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${Attl}
|
||||
${return} ${CNAMEvalue} Run Keyword And Ignore Error Get From Dictionary ${DenyRedirectadd} CNAMEvalue
|
||||
${CNAMEvalue} Run Keyword If "${return}"=="FAIL" or "${CNAMEvalue}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${CNAMEvalue}
|
||||
${return} ${CNAMEttl} Run Keyword And Ignore Error Get From Dictionary ${DenyRedirectadd} CNAMEttl
|
||||
${CNAMEttl} Run Keyword If "${return}"=="FAIL" or "${CNAMEttl}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${CNAMEttl}
|
||||
|
||||
run keyword if "${QType}"=="A" run keywords sleep ${sleep}
|
||||
... AND input text id=A00 ${Avalue}
|
||||
... AND sleep ${sleep}
|
||||
|
||||
Reference in New Issue
Block a user