** General Description **
We execute our test cases in a container. When a user clicks on "Test" button in fitnesse, we start a container and execute tests within the container(in cloud)
Scenario: when a user click on Stop Test button during the execution, we need to trigger a call to stop the execution in the container and proceeed with cleanup activity. We have tried using shutdownhooks but it only works when we stop the fitnesse server. shutdownhooks never gets called when stop test button is clicked
Is there a way to know when user clicks on stop test button and based on that make a call for cleanup. Any existing listeners in fitnesse that can be used for this purpose? Tried extending the class "StopTestReponder" to create a custom implementation but it doesn't work.
Is there a way to catch the internal exception thrown when we click on stop test button.
Any help/suggestion regarding this matter will be appreciated