我需要制作一个循环填充的集合。所以,我需要一个全局集合,我需要在 For Loop 中使用 Robot Framework 使用该集合变量。
请看代码
*** Settings ***
Library Selenium2Library
Library Collections
*** Keywords ***
Parent Routine
${ScoreList} ???
: For ${i} IN RANGE 1 5
\ Append To List ${ScoreList} ${i}
#\ Some other manipulation
*** Test Cases ***
Sample Test Case
[Documentation] Simple test for Collection
Parent Routine
我提到了http://robotframework.org/robotframework/latest/libraries/Collections.html
请帮助我如何实现这一目标。