首页 > 其他 > 详细

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

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

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)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!