【发布时间】:2017-11-03 19:27:55
【问题描述】:
我需要有关 Robot Framework 语法的帮助。 首次使用 Log My List 关键字很好,完美记录列表。第二种用法,在 if 语句中不断告诉我:
变量“@{MyList}”的值不是列表或类似列表
有谁知道问题出在哪里?
*** Settings ***
Documentation Problematic Suite
*** Variables ***
${condition} 0
*** Keywords ***
Log My List ${MyList}
Log Many @{MyList}
*** Test Cases ***
LD_0: Pass List in If Statement.
[Documentation] Problem example.
[Tags] Problem
@{LIST}= Create List item1 item2 item3
Log My List ${LIST}
Run Keyword If ${condition} == 0 Log My List ${LIST}
【问题讨论】:
标签: syntax robotframework