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

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.

转载于:https://www.cnblogs.com/my-blogs-for-everone/p/6388773.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值