【发布时间】:2019-08-26 02:48:18
【问题描述】:
我正在编写一个关键字,它将从警报框中返回两种可用的时间格式(时间 1 和时间 2)。现在,当我在测试用例中调用关键字时,我将只传递一个参数,即时间 1,它应该只返回文本时间1
[Arguments] ${filename} ${uploadtime}=SKIP ${updatetime}=SKIP
Selenium2Library.Wait Until Element is Visible xpath=.//*[contains(text(),'${filename}')]
Selenium2Library.Wait Until Element is Visible ${opt}
Selenium2Library.wait until element is visible ${opt1}
Selenium2Library.Click Element ${opt1}
${uploadt}= Get Text ${upload_time}
Run Keyword If '${uploadtime}' != 'SKIP' [Return] ${uploadt}
${updatet}= Get Text ${upload_time}
Run Keyword If '${updatetime}' != 'SKIP' [Return] ${updatet}
参数说明无效:参数语法“${filename} ${uploadtime}”无效。
【问题讨论】:
-
检查
${filename} ${uploadtime}之间的空格应该是2或4个空格
标签: robotframework