I’m currently working on developing a GUI, and I’m looking to implement a feature where the user can pause a TestPlan by clicking a “Pause” button and then resume it by clicking a “Resume” button. However, I’ve been unable to locate a member function within the TestPlan class that allows me to achieve this. Would anyone be able to assist me in understanding how to pause and resume a TestPlan? Your assistance would be greatly appreciated.
This can be achieved using the TestPlan.BreakOffered event.
When TestSteps or the TestPlan is at a place during execution where break is permitted you can block the thread in the eventhandler until you wish to continue.