python - 机器人框架在导入具有相关功能的 python 模块后给出“no keyword with name”错误
问题描述
测试.py
def test_method():
print("hello")
回归机器人
*** Settings ***
Library libs/Test.py
测试机器人
*** Settings ***
Resource regression/regression.robot
*** Test Cases ***
Tvh1641513c
Test Method
请参阅下面的文件夹结构。
- 测试文件夹
- 库
- 测试.py
- 资源
- 回归
- 回归机器人
- 回归
- 测试
- 测试机器人
- 库
我相信我正在正确地将模块导入机器人文件中。但我仍然收到错误“没有找到名称为'测试方法'的关键字”。如果有人可以就此提出建议,那将很有帮助。
解决方案
推荐阅读
- java - for循环中的返回列表
- javascript - Vue-router - 当用户点击菜单链接时如何取消操作
- c# - 使用 1 个查询字符串将 3 个文本框值从 Gridview 传递到另一个页面
- c# - 基于鼠标输入的对角相机围绕对象旋转的钳位问题
- linux - Protostar,Linux 无法解析 'ftp.au.debian.org'
- actionscript-3 - 添加事件侦听器以在进入新场景时停止声音
- ruby-on-rails - Rails NoMethodError(Hyperclient:Module 的未定义方法“新”)
- javascript - 计算旋转(或旋转)
- validation - 需要帮助从应用程序脚本中的“范围列表”获取数据验证标准,以便我可以循环浏览这些值
- angular - 在Angular 9中重新签名时从组件B中的组件A获取变量