`Deferred Results` step's abort behavior: abort does not wait for `Deferred Results`, and there is no indication about abort at all
Environment:
Windows 10, 64-bit
OpenTAP 9.5.1
Steps to reproduce:
- Use Test Step
public class DeferredResultsStep : TestStep
{
public override void Run()
{
Results.Defer(() =>
{
Thread.Sleep(10000);
Log.Info("Deferred Step also done");
});
}
}
- Execute it, press abort
Actual result:
The Test plan immediately appears to be ended (Start Button again active). After the deferred results are fully executed, the Log message "Deferred Step also done" comes.
There is no indication that there is still something running, and there is no indication that there was an abort:
Expected result:
Deferred Results should be better considered in Abort. If Test plan is not aborted, then the Start button only gets active again when also the deferred result is complete. This should also be in the abort case. Only if all deferred results are done, then the test plan should be done (start button again enabled). And the usual logging of a test plan aborted should happen.
For instance this is how a Log file of a Test Plan with just a Delay test step that gets aborted looks:
Other remarks: