提交代理Deny动作测试用例,修改关键字
This commit is contained in:
@@ -1035,6 +1035,31 @@ Profile-SearchorCreate
|
||||
... AND sleep ${sleep}
|
||||
... AND clcik element id=responseAddOk1
|
||||
... ELSE log 传入参数错误
|
||||
|
||||
ProxyProfile-SearchorCreate
|
||||
[Arguments] ${SearchorCreate} ${ProfileName} ${File}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
... ${SearchorCreate}:填入Search或Create
|
||||
... ${ProfileName}:Profile的名字
|
||||
... ${File}:上传文件路径
|
||||
... 判断是新建还是搜索profile
|
||||
sleep ${sleep}
|
||||
run keyword if "${SearchorCreate}"=="Search" run keywords sleep ${sleep}
|
||||
... AND input text xpath=/html/body/div/div[1]/div[1]/ul/div[1]/div/input ${ProfileName}
|
||||
... AND sleep ${sleep}
|
||||
... AND press keys xpath=/html/body/div/div[1]/div[1]/ul/div[1]/div/input ENTER
|
||||
... AND sleep ${sleep}
|
||||
... AND click element xpath=/html/body/div/div[1]/div[1]/ul/div[2]/div/li[1]
|
||||
... ELSE IF "${SearchorCreate}"=="Create" run keywords sleep ${sleep}
|
||||
... AND click element id=interceptionadd_fileadd
|
||||
... AND sleep ${sleep}
|
||||
... AND input text id=responsepages_profileName ${ProfileName}
|
||||
... AND sleep ${sleep}
|
||||
... AND Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${File} #上传文件
|
||||
... AND sleep ${sleep}
|
||||
... AND clcik element id=responseAddOk1
|
||||
... ELSE log 传入参数错误
|
||||
|
||||
Deny-Redirect
|
||||
[Arguments] ${QType} ${Avalue} ${Attl} ${CNAMEvalue} ${CNAMEttl}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
@@ -1893,11 +1918,11 @@ Deny-content
|
||||
run keyword if "${ContentType}"=="Profile" run keywords sleep ${sleep}
|
||||
... AND click element id=manipulation_select_blockInfo
|
||||
... AND sleep ${sleep}
|
||||
... AND click element id=ResponseContentFile
|
||||
... AND click element id=ResponseContentProfile
|
||||
... AND sleep ${sleep}
|
||||
... AND click element id=manipulation_select_htmlProfile
|
||||
... AND sleep ${sleep}
|
||||
... AND Profile-SearchorCreate ${SearchorCreate} ${ProfileName} ${File}
|
||||
... AND ProxyProfile-SearchorCreate ${SearchorCreate} ${ProfileName} ${File}
|
||||
run keyword if "${ContentType}"=="TEXT" run keywords sleep ${sleep}
|
||||
... AND click element id=manipulation_select_blockInfo
|
||||
... AND sleep ${sleep}
|
||||
|
||||
Reference in New Issue
Block a user