首页 > 代码库 > robot framework 在pycharm中语法无法高亮显示的,显示绿色解决办法(Robot Framework with PyCharm)

robot framework 在pycharm中语法无法高亮显示的,显示绿色解决办法(Robot Framework with PyCharm)

Robot Framework with PyCharm

up vote1down votefavorite
1

I am totally new to automation and trying to learn RobotFramework. I am trying to write the scripts following some video guide. Usually robot scripts autocomplete in PyCharm IDE with desired color. I found the whole script along with 4 sections(Settings, Variables, Test cases and Keywords) are in green. Not sure how to change that thing.

***  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 ***

答案:

You cannot have two or more spaces between *** and Test Cases, and between *** and Settings. In the format you‘re using, two spaces mark the separation between two cells in a table row. The string *** Test Cases *** needs to all be in a single cell.

robot framework 在pycharm中语法无法高亮显示的,显示绿色解决办法(Robot Framework with PyCharm)