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

**URL:** <https://forum.robotframework.org/t/how-to-pause-and-resume-the-test-execution-using-python-on-windows-machine/5019>\
**Category:** Robot Framework\
**Created:** [2 December 2022 07:45 UTC](https://forum.robotframework.org/t/how-to-pause-and-resume-the-test-execution-using-python-on-windows-machine/5019 "2022-12-02T07:45:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekhar](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@shekhar](https://forum.robotframework.org/u/shekhar)\
**Post date:** [2 December 2022 07:45 UTC](https://forum.robotframework.org/t/how-to-pause-and-resume-the-test-execution-using-python-on-windows-machine/5019/1 "2022-12-02T07:45:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [5 December 2022 01:27 UTC](https://forum.robotframework.org/t/how-to-pause-and-resume-the-test-execution-using-python-on-windows-machine/5019/2 "2022-12-05T01:27:13Z")

</div>

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

[https://robotframework.org/robotframework/2.1.2/libraries/Dialogs.html](https://robotframework.org/robotframework/2.1.2/libraries/Dialogs.html)

Dave.
