While using datadriver extension to externalize test data, came across this issue where robot complains “Variable ‘@{CENTERS}’ not found” and could not figure out why. Could someone help pls.
Code:
*** Settings ***
Documentation A sample test.
Library DataDriver \TestData\\Test.csv
Test Template Sample Test
*** Test Cases ***
This is a Sample Test @{CENTERS}
*** Keywords ***
Sample Test
[Arguments] @{CENTERS}
Log Many @{CENTERS}
FOR ${Center} IN @{CENTERS}
IF "${Center}" == "Input"
Log ${Center}
END
END
CSV File content:
*** Test Cases ***;@{CENTERS};[Tags];[Documentation]
Validate the ability to access List variables;Input,Output,Admin;;