Customising the Action > Stop command for test runner

Hey guys,

We have a bunch of test runners linked to TeamCity 8.1.2 (build 29993).  We are using the robot framework to execute functional tests against our applications.  Everything works really nicely together except for one thing:

When a user click's the stop button during execution of tests, the teardown's aren't executed because the teamcity agent issues equivalent of ALT+F4 to the test runner and kills the process.

I would like to instead issue a CTRL+C to the window.  Is this kind of customisation possible for this version of TeamCity?

Many thanks,
Mike

3 comments
Comment actions Permalink

If it can't be done, I'd be happy to hear that so I can stop worrying about it :)

0
Comment actions Permalink

Hi Michael,


Currently it's not possible to customize stop command. Please vote for https://youtrack.jetbrains.com/issue/TW-8201 and https://youtrack.jetbrains.com/issue/TW-13367.
As current workaround you can create additional last build step that performs needed actions. You can set this step execution policy to "Always, even if build stop command was issued". If you cannot split a different step, then I don't see other workaround for the moment.

0

Please sign in to leave a comment.