在机器人框架中,如何在HTML报告中使用的测试用例关键字显示带有变量的实际值中传递的变量
我的代码是:
*** Variables ***
${language_a} English
*** Test Cases ***
Change Language in Settings
User sets ${language_a} in Language dropdown
瓦里巴尔(Varibale)传递,脚本执行罚款。
但是由此产生的HTML报告显示关键字为
“用户设置$ {latchaning_a}在语言下拉列表中” 而不是 “用户在语言下拉列表中设置英语”,
变量替换并未反映在生成的HTML报告中。
my code is:
*** Variables ***
${language_a} English
*** Test Cases ***
Change Language in Settings
User sets ${language_a} in Language dropdown
The varibale is passed and scripts execute fine.
But the resulting html report displays the keyword as
"User sets ${language_a} in Language dropdown"
instead of
"User sets English in Language dropdown"
The variable substitution is not getting reflected in the generated html report.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为不可能做您正在尝试的事情。
但是,您可以做的只是在测试柜开始时记录变量:
I don't think it is possible to do what you're trying.
What you could do however is just log the variable at the start of the testcase like: