I want to use for loop to iterate the element in a list. but i think the library is missing. when IN keyword is taken it gives error.
*** Test Cases ***
Acuvue inquiry
@{index} = BuiltIn.Create List a b
FOR ${item} IN @{index}
BuiltIn.Log ${item}
Error:
Acuvue inquiry | FAIL | FOR loop contains no keywords.
The for loop in RobotFramework follows a very strict syntax - this is the "new" syntax, where the in-loop keywords don't start with \
, but the loop body must be closed with an END:
FOR ${item} IN @{index}
BuiltIn.Log ${item}
END
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.