是否有可能在Robot Framework中返回两个变量?
${result1}, ${result2}= MyKeyword
不起作用。
答案 0 :(得分:10)
是的,只需在分配时和返回值时将变量放在单独的单元格中。
例如:
*** Test Case ***
Example
${value1} ${value2} return two values
Should be equal ${value1} this is value 1
Should be equal ${value2} this is value 2
*** Keywords ***
Return two values
${v1}= set variable this is value 1
${v2}= set variable this is value 2
[Return] ${v1} ${v2}
答案 1 :(得分:3)
删除,
@media screen and (max-height: 480px){
.CLASS-TO-BE-SET {
width: 50%;
}
}
@media screen and (min-height: 481px){
.CLASS-TO-BE-SET {
width: 100%;
}
}
答案 2 :(得分:0)
${result1} ${result2} = MyKeyword
为我工作。
${result1} ${result2} = MyKeyword
给我:
No keyword with name '=' found.
万一重要,我只使用空格,没有制表符。