# The Wait Timeout in the OpenTap.Plugins.BasicSteps.ProcessStep (Run Program) test step is not functioning as expected

**URL:** https://forum.opentap.io/t/the-wait-timeout-in-the-opentap-plugins-basicsteps-processstep-run-program-test-step-is-not-functioning-as-expected/2230
**Category:** General
**Tags:** plugin
**Created:** [November 29, 2024, 7:29am UTC](https://forum.opentap.io/t/the-wait-timeout-in-the-opentap-plugins-basicsteps-processstep-run-program-test-step-is-not-functioning-as-expected/2230 "2024-11-29T07:29:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ratheesh](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@ratheesh](https://forum.opentap.io/u/ratheesh)
#### Post date: [November 29, 2024, 7:29am UTC](https://forum.opentap.io/t/the-wait-timeout-in-the-opentap-plugins-basicsteps-processstep-run-program-test-step-is-not-functioning-as-expected/2230/1 "2024-11-29T07:29:15Z")

</div>

The Run Program test step is not waiting for the process to finish, even though the Wait For Process to End option is turned on and the timeout is set to 60 seconds. It ends too early instead of waiting.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/1/1113c03954e5b04f65ed898b69211d1970bb3b55.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/9/904df5e63c612c90f2fa852050d51dfbb3123976.png)

---

<div class="post-metadata">

### Author: ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)
#### Post date: [November 29, 2024, 8:42am UTC](https://forum.opentap.io/t/the-wait-timeout-in-the-opentap-plugins-basicsteps-processstep-run-program-test-step-is-not-functioning-as-expected/2230/2 "2024-11-29T08:42:10Z")

</div>

Hi @ratheesh,

What kind of program are you running? Some programs are just a launcher which starts another sub process.

Does it work if you run C:\Windows\System32\notepad.exe?

---

<div class="post-metadata">

### Author: ![ratheesh](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@ratheesh](https://forum.opentap.io/u/ratheesh)
#### Post date: [December 2, 2024, 1:48am UTC](https://forum.opentap.io/t/the-wait-timeout-in-the-opentap-plugins-basicsteps-processstep-run-program-test-step-is-not-functioning-as-expected/2230/3 "2024-12-02T01:48:37Z")

</div>

Hi @rolf_madsen,

I attempted to run Notepad, but the test step stops even after Notepad is successfully opened. Additionally, the status is not updated to “fail” even after the timeout period has elapsed.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/6/6f7dbc348abee44f6da282401b2d5880e3b9598c.png)

---

<div class="post-metadata">

### Author: ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)
#### Post date: [December 6, 2024, 9:56am UTC](https://forum.opentap.io/t/the-wait-timeout-in-the-opentap-plugins-basicsteps-processstep-run-program-test-step-is-not-functioning-as-expected/2230/4 "2024-12-06T09:56:15Z")

</div>

Got it, after testing a bit more I can reproduce the problem: [RunProgram step not aborting after timeout occured · Issue #1855 · opentap/opentap · GitHub](https://github.com/opentap/opentap/issues/1855)

Also, I noticed that the stop button works correctly, but the timeout does not. Can you verify that?
