1

我无法运行任何命令。我下载机器人框架 jar 文件并通过以下方式开始测试:

java -jar /home/robotFramework/robotframework-2.7.7.jar tests.tsv

我的测试文件:

Library    OperatingSystem

*Test Case*
Insert    [Tags]    test1
    [Timeout]    4 minutes
    Run     ls -l

怎么了?

==============================================================================
Tests
==============================================================================
Insert                                                                | FAIL |
No keyword with name 'Run' found.
------------------------------------------------------------------------------
Tests                                                                 | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
4

2 回答 2

2

您忘记将*Setting*标题添加到 tsv 文件。这应该如何开始:

*Setting*
Library OperatingSystem
于 2013-04-30T08:48:03.097 回答
0

我认为您的测试文件的缩进有些不对劲。

于 2013-04-30T07:09:51.950 回答