【RobotFrameWork学习记录】rf--两个库的关键字重复处理-2020-02-29

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

处理两个库的关键字重复

当我们遇到如下提示信息时:
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关键字
在这里插入图片描述
如遇到这种情况在关键字使用时加上 库的名称即可,如下图:
在这里插入图片描述
这样处理后即可解决 关键字重复的问题‘

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值