小编S.R*_*S.R的帖子

'Else If' 是保留关键字。在robotframework中用作带有“Run Keyword If”的标记时,它必须是大写的(ELSE IF)

我收到以下错误“Else If”是保留关键字。当用作带有“Run Keyword If”的标记时,它必须是大写的(ELSE IF)

代码片段如下...谁能帮我解决这个问题?谢谢

Run Keyword If    '${intf_type}' == 'l3'    Run Keywords
            Execute         Load Configuration      @{target}[0]      commit_comment=configure isis   data=set interfaces xe-0/0/2:0 unit 0 family inet address 10.0.0.1/24 ${\n} set interfaces xe-0/0/2:0 unit 0 family iso ${\n} set protocols isis interface xe-0/0/2:0.0 ${\n} set protocols isis interface lo0.0                format=set
            Sleep   30s
            ELSE IF    '${intf_type}' == 'irb'    Run Keywords
            Execute         Load Configuration       @{target}[0]    commit_comment=configure isis    data=set interfaces xe-0/0/2:0 unit 0 family ethernet-switching interface-mode trunk ${\n} set interfaces xe-0/0/2:0 unit 0 …
Run Code Online (Sandbox Code Playgroud)

robotframework

-2
推荐指数
1
解决办法
4039
查看次数

标签 统计

robotframework ×1