Run TestCase and Setup from testsuite at same time?

Ask general questions here.
MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Run TestCase and Setup from testsuite at same time?

Post by MJesper » Fri Mar 22, 2019 2:17 pm

Hi, I want to be able to run a TestCase and always have "Setup" to run in the test suite, at the moment if you run a test case the setup in the test suite never runs. I have some required things that has to run at the start of the test suite at every test case.

My current workaround is disabling everything I don't want to run and then run from the TestSuite, but this is extremely funky and doesn't feel very convienent to use (especially when you have a couple of test cases)


PS:
I don't want to have to make a setup for every test case that contains the same things.

User avatar
Stub
Posts: 276
Joined: Fri Jul 15, 2016 1:35 pm

Re: Run TestCase and Setup from testsuite at same time?

Post by Stub » Fri Mar 22, 2019 2:31 pm

Could you group the [Setup] modules into a Group Module and than apply that in the Test Cases? That would avoid a bit of duplication.

I do something similar in our Test Suite, structuring thing into nested folders, which means I have to sometimes perform the skipped [Setup]s manually e.g. open the AUT, open a file, open a dialog, whatever it may be, so that I can run the individual Test Case.