How to pause and resume the test execution using python on windows machine

I need to pause/resume the test case execution through python scripts when it is in running state.
I need to do it through python script.
Is there any library or API I need to call to pause/resume execution?

Hi Shekhar,

Generally there is no way to pause a python script or robot execution once it’s started unless you put a sleep in the code before you ran it.

Robot framework does have wait for type keywords that resolves most of these issues so your test doesn’t just sit sleeping needlessly

If you need to pause the script and do a manual step, then continue the script then the Dialogs Library has keywords that might be useful