如何在从詹金斯运行 RobotFramework 时禁用 [WARN] 消息以记录到控制台
Posted
技术标签:
【中文标题】如何在从詹金斯运行 RobotFramework 时禁用 [WARN] 消息以记录到控制台【英文标题】:How to disable [WARN] messages to log to console while RobotFramework is running from jenkins 【发布时间】:2021-12-08 22:04:28 【问题描述】:当我在 jenkins 上开始工作时,有输出:
[ WARN ] TSV file '/home/robot/NightlyRegression/robot_frame/SP100-newSetup-10.2/54xx_Resources/OSA_User_Keywords.tsv' has quotes around cells which is deprecated and must be fixed. Remove quotes from '"""$media.upper()""==""FIBER"""' on line 329.
[ WARN ] TSV file '/home/robot/NightlyRegression/robot_frame/SP100-newSetup-10.2/54xx_Resources/OSA_User_Keywords.tsv' has quotes around cells which is deprecated and must be fixed. Remove quotes from '"""$media.upper()""==""COPPER"""' on line 330.
[ WARN ] TSV file '/home/robot/NightlyRegression/robot_frame/SP100-newSetup-10.2/54xx_Resources/OSA_User_Keywords.tsv' has quotes around cells which is deprecated and must be fixed. Remove quotes from '"""$media.upper()""==""FIBER"""' on line 338.
[ WARN ] TSV file '/home/robot/NightlyRegression/robot_frame/SP100-newSetup-10.2/54xx_Resources/OSA_User_Keywords.tsv' has quotes around cells which is deprecated and must be fixed. Remove quotes from '"""$media.upper()""==""COPPER"""' on line 339.
[ WARN ] TSV file '/home/robot/NightlyRegression/robot_frame/SP100-newSetup-10.2/54xx_Resources/OSA_User_Keywords.tsv' has quotes around cells which is deprecated and must be fixed. Remove quotes from '"""$media.upper()""==""FIBER"""' on line 382.
您知道如何禁用此 [Warn] 消息吗?
谢谢
【问题讨论】:
按照味精说的做,去掉引号...? 有 1000 多个警告。它的工作,这是它只是警告的原因。 " .. 在单元格 which is deprecated 周围有引号,必须修复"。如果您弄清楚如何隐藏警告,那么当他们remove 该功能并且它停止工作时,您将遇到严重失败。祝你好运。您似乎也落后了一些版本。 【参考方案1】:我找到了解决方案。 经过一番调查,我发现这是由于机器人框架的版本而发生的。 我将版本升级到最新版本,这就是为什么出现此警告的原因。
当我将版本恢复到 3.0.4 时 - 此警告已消失。
【讨论】:
以上是关于如何在从詹金斯运行 RobotFramework 时禁用 [WARN] 消息以记录到控制台的主要内容,如果未能解决你的问题,请参考以下文章