处理两个库的关键字重复
当我们遇到如下提示信息时:
Keyword ‘Run’ found both from a custom test library ‘AutoItLibrary’ and a standard library ‘OperatingSystem’. The custom keyword is used. To select explicitly, and to get rid of this warning, use either ‘AutoItLibrary.Run’ or ‘OperatingSystem.Run’.
警告提示: AutoItLibrary 库 和 OperatingSystem 中都存在 Run关键字

如遇到这种情况在关键字使用时加上 库的名称即可,如下图:

这样处理后即可解决 关键字重复的问题‘
当同一关键字出现在不同库中时,可通过指定库名明确调用,避免警告并解决关键字重复问题。例如,在Robot Framework中,'Run'关键字同时存在于'AutoItLibrary'和'OperatingSystem'库,使用时需明确指定库名。
903

被折叠的 条评论
为什么被折叠?



