Skip to content

[Question] Is there a way to detect when a user clicks on Stop Test button in wiki page  #1523

@suchita-rknair

Description

@suchita-rknair

** 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions