I expect the Test Setup and Test Teardown keywords to run for every execution of a templated test but that does not seem to be the case. Here's a boiled-down version of my test suite that demonstrates what I'm talking about. I run it like pybot template-problem.txt
. Notice that the resulting log file shows that my Test Case Setup
and Test Case Teardown
keywords were each run only one time.
*** Settings ***
Test Setup Test Case Setup
Test Teardown Test Case Teardown
*** Test Cases ***
Look for All Possible Outputs from the System Under Test
[Template] Look for Specific Output
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
*** Keywords ***
Test Case Setup
Comment Setting up before the test case runs
Test Case Teardown
Comment Cleaning up after the test case finishes
Look For Specific Output
[Arguments] ${output}
Comment Pretending to look for a specific output...
Log ${output}