首页 文章

PyCharm的机器人框架

提问于
浏览
1

我是自动化的新手,并试图学习RobotFramework . 我正在尝试按照一些视频指南编写脚本 . 通常机器人脚本在PyCharm IDE中自动完成所需的颜色 . 我发现整个脚本以及4个部分(设置,变量,测试用例和关键字)都是绿色的 . 不知道如何改变那件事 .

***  Settings ***
Doumentation  This is some basic info about the whole suite

Library   Selenium2Library


*** variables ***


***  Test Cases ***
User must sign in to check out
    [Documentation]  This is somebasic information about the test
    [Tags]   Smoke
    Open browser   http://www.amazon.com  chrome
    Close browser


***  keywords ***

此外,当我运行此脚本时,我收到错误

[ ERROR ] Parsing 'tests/amazon.robot' failed: File has no test case table.

2 回答

  • 0

    为什么不使用专用IDE,RIDE?之前它有点像马车,但是已经完成了很多工作,而且它现在运行得非常好 . 我强烈建议给它一个镜头,它使工作更容易 .

  • 2

    ***Test Cases 之间以及 ***Settings 之间不能有两个或多个空格 . 在您使用的格式中,两个空格标记表格行中两个单元格之间的分隔 . 字符串 *** Test Cases *** 需要全部在单个单元格中 .

相关问题