I was exploring my options clean up my test structures and was wondering about the possibility to pass a multiline string to a test template.
Given something like this;
Templated test case [Template] keyword that receives sql query SELECT * FROM FOOBAR
this ofcourse works but extending the query to multiline “…” syntax does not seem to help. For example;
Normal test case [Template] keyword that receives sql query SELECT ... * ... FROM FOOBAR
Now, this would receive the whole query but each row as a separate argument. This probably could be dealt with by making the test template to expect varargs and then join them on the keyword but that feels a bit off putting
PS. using varargs as keyword argument and then catenate it to a single string will work but thats sort of a workaround to actual question …