【发布时间】:2019-11-07 05:20:14
【问题描述】:
在 [Return] 语句之后编写的指令集正在执行。 Robot Framework 应该通过错误或者不应该考虑 [Return] 关键字之后写的关键字。如果我遗漏了什么,请给出解释。
Settings
Variables
Keywords
Custom Keyword
[Return] hyyyy
Return From Keyword hyyyy2222
Test Cases
Test1
${var_rt_ky2}= Custom Keyword
Log To Console ${var_rt_ky2}
输出: hyyyy2222
其他情况
Settings
Variables
Keywords
Custom Keyword
Return From Keyword hyyyy2222
[Return] hyyyy
Test Cases
Test1
${var_rt_ky2}= Custom Keyword
Log To Console ${var_rt_ky2}
输出: 嘿嘿
【问题讨论】:
标签: robotframework