码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-02-11 12:12:47      阅读:488      评论:0      收藏:0      [点我收藏+]

标签:selenium   down   解决办法   ota   nbsp   who   link   ade   ram   

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)

标签:selenium   down   解决办法   ota   nbsp   who   link   ade   ram   

原文地址:http://www.cnblogs.com/my-blogs-for-everone/p/6388773.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!