【发布时间】:2015-07-06 23:32:01
【问题描述】:
我有以下结构:
test_init
|__________resources
| |__________ keywords.robot
|__________tests
|__________ __init__.txt
|__________ TestInit.robot
keywords.robot 包含:
*** Keywords ***
Keyword for init
Log init
__init__.txt 包含:
*** Settings ***
Documentation This is from init file
Resource ${EXECDIR}/resources/keywords.robot
TestInit.robot 包含:
*** Test Cases ***
Testing the Init
Log Vimal
Keyword for init
如果我从test_init目录中的命令行执行如下:
> pybot tests
我收到错误消息:
No keyword with name 'Keyword for init' found
我在想,初始化文件也导入了资源文件。但是初始化文件被文档识别,我在我的报告中得到了它。
我对初始化文件的用法有点困惑,请帮助我更好地理解它。
【问题讨论】:
标签: robotframework