Comment #3 on issue 958 by pekka.klarck: For Loop - Cannot put inside a
resource file
http://code.google.com/p/robotframework/issues/detail?id=958
I didn't have DatabaseLibrary installed but otherwise had no problem
running this in TSV or in TXT format. Notice that, as explained in the User
Guide section I linked earlier, in TXT format you need to escape the
indented cell like this:
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}
If you still cannot get this working, please attach a failing test case
here (preferably without DatabaseLibrary) so that I can run the exact same
file you are running.