修改因名称重复导致测试用例执行失败问题

This commit is contained in:
byb11
2021-02-24 18:28:30 +08:00
parent 03b463b0d6
commit 74ace4ce6d
5 changed files with 47 additions and 43 deletions

View File

@@ -391,7 +391,7 @@ TrafficMirrorProfilesValidationError
input id=trafficmirror_addrArray0 ${shuru}
sleep 2
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK
Sleep 2
Wait Until Element Is Enabled id=trafficMirrorAdd 20
${text1} Get Text xpath=/html/body/div[last()]/p #获取点击后页面提示信息
Should Be Equal As Strings ${text1} ${PromptInformation} #断言
@@ -415,7 +415,7 @@ CreateTrafficMirrorProfiles
input id=trafficmirror_addrArray0 ${shuru}
sleep 2
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK
Sleep 2
Wait Until Element Is Enabled id=trafficMirrorAdd 20
Settings-Search ${name} ${search} #搜索框的关键字
Sleep 1
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
@@ -609,7 +609,7 @@ EditTrafficMirrorProfiles
input id=trafficmirror_addrArray0 ${shuju} #输入内容
sleep 1
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击ok
Sleep 2
Wait Until Element Is Enabled id=trafficMirrorAdd 20
run keyword if "${search}"=="id" run keywords sleep 1
... AND Settings-Search ${id-name} ${search} #搜索框的关键字
... ELSE IF "${search}"=="name" run keywords sleep 1