Whenever a TestPlan is aborted a nasty looking error message appears that draws deep groans from the operators. I’ve ignored it until now, but I suppose I should really do something about it.
I have many parent steps that use RunChildSteps, OfferBreak exists in just about every possible long-running loop I’ve ever created and I have used TapThread.Sleep() in a few place,
- How can a CancellationToken be used with RunChildSteps?
- How is an abort to be handled gracefully?
- How can CancellationTokens be used with UserInput.Request(someObj)?
- Can a CancellationToke be used instead of TapThread.Sleep(), i.e. var cancellationTriggered = new CancellationToken().WaitHandle.WaitOne(200) ?