Only run SETUP at the start and TEARDOWN at the end

Ask general questions here.
ElSticky
Posts: 34
Joined: Tue Sep 17, 2013 1:45 pm

Only run SETUP at the start and TEARDOWN at the end

Post by ElSticky » Thu Oct 10, 2013 1:01 pm

testcase.jpg
I'm having one testcase with 4 recordings. The first recording is marked as SETUP and the last one is marked as TEARDOWN.

The two recordings in the middle contain some variables so they have to be run multiple times. All the recordings are working but when the variable changes it does not only repeat the middle steps but also the SETUP and TEARDOWN steps.

I would like it to only repeat the middle steps for the variables and only use TEARDOWN at the end (when all variables are tested). Is this possible somehow?

*EDIT
testcase2.jpg
I currently tried to solve it by placing the testcase in another testcase which only contains start and stop recordings. Is the the correct way of working or is there another solution?
You do not have the required permissions to view the files attached to this post.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Only run SETUP at the start and TEARDOWN at the end

Post by krstcs » Thu Oct 10, 2013 1:36 pm

That is one way to do it.

There are also SETUP and TEARDOWN sections in the SUITE. Right-click on the Test Suite name and select "Show SETUP/TEARDOWN".
Shortcuts usually aren't...