I use GHERKINS syntax:
GIVEN ..
WHEN ..
THEN ..
In my robot test cases My question is : When i want to add [SETUP] + [TEARDOWN] how can i insert them?
Can GIVEN replace setup or i should include both ?
[SETUP]
GIVEN ..
WHEN ..
THEN ..
[TEARDOWN]
Usually we move the code to a single user defined keyword, and then call it from [SETUP] or [TEARDOWN].
Never tested but, it might be possible to write, in [SETUP]:
But then the Gherkin readability does not look so good.