BUG?: Teardown sections not run on manual test interuption

Bug reports.
krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

BUG?: Teardown sections not run on manual test interuption

Post by krstcs » Wed Apr 23, 2014 7:09 pm

Win7 x64
Ranorex 5.0.1

Not sure if this is a bug, or intended, but wanted to get clarification.

If I am running a test and hit the interruption key (Pause in my case), the test's teardown regions are not being executed. (NOTE: This is only for manual interruptions, normal stops on error or test completion DO run the teardown regions correctly.) In my case it is a Suite-level teardown region (haven't tried it with a Case-level teardown), don't know if this makes a difference.

There is nothing in the documentation that says this is intentional for a manual interruption, so my assumption is that this is a bug, but I can also see how it might be intended.

Thanks guys!
Shortcuts usually aren't...

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

Re: BUG?: Teardown sections not run on manual test interuption

Post by Support Team » Fri Apr 25, 2014 2:05 pm

Hello krstcs,

The abort key is definitely designed to stop the test execution (teardown section included). Therefore, the experienced behavior is intended. It empowers the user to manually stop the test execution.

Regards,
Robert
.
Image

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

Re: BUG?: Teardown sections not run on manual test interuption

Post by krstcs » Fri Apr 25, 2014 3:50 pm

Thanks Robert. That's what I thought, but since it isn't specifically stated I wanted to make sure.

Perhaps that should be included as a note in the user guide?
Shortcuts usually aren't...

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

Re: BUG?: Teardown sections not run on manual test interuption

Post by Support Team » Fri May 02, 2014 2:16 pm

Hi krstcs,

Thank you for reporting. I've added an entry in our bug tracking system and we will discuss this internally.

Kind regards,

Markus (S)
.
Image