Page 1 of 1

Setup&Teardown blocks not called from command line

Posted: Tue Aug 23, 2016 1:24 pm
by bygones
Hi,

I have a test suite with multiple test cases and a setup and teardown block.

When I select a test case in Ranorex studio and select "Run Selected Test Case" or when I execute it from the command line via /tc:<test case guid> parameter, only the test case itself is executed, no setup and therefore the test fails.

How can I include the setup and then the teardown (especially) in the command line execution of a single test case ?

Thanks

Re: Setup&Teardown blocks not called from command line

Posted: Wed Aug 24, 2016 1:30 pm
by Support Team
Hi bygones,

If you execute a specific test case, the setup and teardown region will only be executed if they are located within this test case.

If you want the setup and teardown region of the test suite to be executed when running a specific test case, I would suggest creating different run configurations.

I hope this information will help you.

Sincerely,
Johannes