Setup&Teardown blocks not called from command line

Ask general questions here.
bygones
Posts: 31
Joined: Fri Nov 27, 2015 11:32 am

Setup&Teardown blocks not called from command line

Post by bygones » Tue Aug 23, 2016 1:24 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Setup&Teardown blocks not called from command line

Post by Support Team » Wed Aug 24, 2016 1:30 pm

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
.
Image