Comment #2 on issue 958 by [email protected]: For Loop - Cannot put
inside a resource file
http://code.google.com/p/robotframework/issues/detail?id=958
Please try and run this (with appropriate updates) as a) .txt and b) .tsv
and tell me what you get
*** Settings ***
Documentation Sample Database Connectivity
Library DatabaseLibrary
*** Variables ***
${sql_statement} select * from DAVE_TEST
${sleep} 3
*** Test Cases ***
Looping Test Case
Connect To Database Using Custom Params
cx_Oracle 'DAVID.PARK', 'DAVID.PARK', 'yourURL:1521/dev1'
${results}= Query With Retry 10 3 select * from
DAVE_TEST
*** Keywords ***
Query With Retry
[Arguments] ${num_of_attempts} ${sleep} ${sql_statement}
:FOR ${counter} IN RANGE ${num_of_attempts}
${query_results}= Query ${sql_statement}
# break out if we get a result
Run Keyword If ${query_results} Exit For Loop
Sleep ${sleep}
[Return] ${query_results}