# Timeout when launching test application

**URL:** <https://forum.katalon.com/t/timeout-when-launching-test-application/41385>\
**Category:** Desktop Testing\
**Tags:** desktop, windows, katalon-studio\
**Created:** [March 23, 2020, 2:26pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385 "2020-03-23T14:26:08Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [March 23, 2020, 2:26pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/1 "2020-03-23T14:26:08Z")

</div>

Setting up Katalon for testing a particular desktop application that my company tests. When I click to start recording the app launches, but Katalon does not seem to recognize that the app is open and gives an error that it is still waiting on the app to launch. Have any of you ran into this before? I’m currently using the 30-day free trial and am not a licensed user as we are doing dev evaluations between a few tools to see which one we will select going forward.

 ![katalon_start_error](https://europe1.discourse-cdn.com/katalon/original/2X/1/1bf0f30d06b9215cd43a99791e91c95ec7f97c0f.png)

---

<div class="post-metadata">

**Author:** ![thongnmtran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thongnmtran/32/9806_2.png) [@thongnmtran](https://forum.katalon.com/u/thongnmtran)\
**Post date:** [March 24, 2020, 8:07am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/2 "2020-03-24T08:07:47Z")

</div>

Hi @craig.mcrae,

On Oct 10, 2019, Microsoft team had published a **`pre-release`** version ([WinAppDriver v1.2](https://github.com/microsoft/WinAppDriver/releases/tag/v1.2-RC)) which includes a new capability [**ms:waitForAppLaunch**](https://github.com/microsoft/WinAppDriver/releases/tag/v1.2-RC). With this capability, you will able to wait longer for your app to open.

In addition, you will also need to install Appium version [1.16.0 or later](https://github.com/appium/appium/releases) for supporting [WinAppDriver 1.2](https://github.com/microsoft/WinAppDriver/releases/tag/v1.2-RC).

To use **ms:waitForAppLaunch** capability in Katalon, you could go to `Project Settings` and add it to the `Desired Capabilities` section.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/4/4db97f8ae18b583e93825c93e3259d9dcdde5770.png)

> Note: “The limit for this is **50** seconds”. So, don’t set it so long /=).

~ Hope this could help! /=)

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [March 24, 2020, 11:52am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/3 "2020-03-24T11:52:22Z")

</div>

It is not a problem of waiting longer. My app opens long before Katalon gives me this error. It seems to be more of Katalon just does not know that the app is open. I have been able to click around and perform actions in my app before Katalon gives the error.

---

<div class="post-metadata">

**Author:** ![thongnmtran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thongnmtran/32/9806_2.png) [@thongnmtran](https://forum.katalon.com/u/thongnmtran)\
**Post date:** [March 24, 2020, 11:59am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/4 "2020-03-24T11:59:15Z")

</div>

Hi @craig.mcrae,

Yeah, there is something weird that I still don’t truly understand. But sometimes the app is already opened for a minute but it still says that “Timeout”. And this capability has resolved that problem for me. So maybe you could try that and then tell me if it didn’t work /=)

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [March 27, 2020, 11:15am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/5 "2020-03-27T11:15:27Z")

</div>

Okay Just now getting back to this. Got Appium setup and installed. I set the timeout to the maximum 50 seconds, and I still got the error that it was “waiting for”.

---

<div class="post-metadata">

**Author:** ![thongnmtran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thongnmtran/32/9806_2.png) [@thongnmtran](https://forum.katalon.com/u/thongnmtran)\
**Post date:** [April 3, 2020, 10:57am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/6 "2020-04-03T10:57:23Z")

</div>

Hi @craig.mcrae,

Sorry for the late reply. If you still using Katalon. Please share your error log and some screenshot, that will help us to get a better understanding of the situation.

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [April 3, 2020, 11:31am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/7 "2020-04-03T11:31:08Z")

</div>

Thong,

See attached. The screenshot attached here shows that the app is open and yet, Katalon is still working and hasn’t popped an error yet. The error I get from Katalon is a screenshot in the original post. The log file is attached as well.

 ![AppStarted](https://europe1.discourse-cdn.com/katalon/original/2X/1/16deaa60299034271c47a916861274d277d82c9f.png) [Katalon\_error\_log.txt](https://forum.katalon.com/uploads/short-url/fUAwfk5EnmUfqO1MxJ8lNVbGwI3.txt) (4.9 KB)

---

<div class="post-metadata">

**Author:** ![thongnmtran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thongnmtran/32/9806_2.png) [@thongnmtran](https://forum.katalon.com/u/thongnmtran)\
**Post date:** [April 3, 2020, 1:01pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/8 "2020-04-03T13:01:59Z")

</div>

Hi @craig.mcrae,

As the log you sent me. It looks like there are some problems with the Appium driver. Could you please help me to check some points here.

1. **`Appium Directory`** is correctly set (in **`Windows`** \> **`Katalon Studio Preferences`** \> **`Katalon`** \> **`Mobile`** )  

2. Check the appium version

```console
$ appium -v

```

1. Your application has any splash screen? (any window had shown before the main application window)

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [April 3, 2020, 2:51pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/9 "2020-04-03T14:51:39Z")

</div>

Yes there is a splash screen. I believe I have the Appium settings configured correctly. I am able to successfully test something like Notepad. Appium version is 1.17.0

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [April 3, 2020, 2:55pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/10 "2020-04-03T14:55:28Z")

</div>

I did try to run one more time as a test, didn’t realize the application was already open, and it works. I guess there could be some sort of time out style issue after all.

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [April 3, 2020, 4:24pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/11 "2020-04-03T16:24:01Z")

</div>

Correction to the last post. I got it to a place where I could actually log test steps, but as soon as I go to run it, I get the same driver errors again. So I think the underlying problem is still there.

---

<div class="post-metadata">

**Author:** ![craig.mcrae](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@craig.mcrae](https://forum.katalon.com/u/craig.mcrae)\
**Post date:** [April 3, 2020, 7:13pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/12 "2020-04-03T19:13:15Z")

</div>

Changed the Appium directory setting after a little more research. I can now successfully run a test, but only if my application is open ahead of time. If I have Katalon start up the application, then it still errors out.

---

<div class="post-metadata">

**Author:** ![thongnmtran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thongnmtran/32/9806_2.png) [@thongnmtran](https://forum.katalon.com/u/thongnmtran)\
**Post date:** [April 6, 2020, 6:41am UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/13 "2020-04-06T06:41:01Z")

</div>

Hi @craig.mcrae,

I have built a demo Windows App and succeed to reproduce your issue. I’ll try to fix it in the next release. Before then, there are some suggestions to work around this issue.

> 1. Close all unneeded apps (close opened folders too). Just keep only Katalon.
> 2. Keep your desktop and your taskbar as clean as possible (e.g. remove some unused shortcuts)
> 3. Just use **Windows.startApplication(…)** instead of **Windows.startApplicationWithTitle(…)**
> 4. Try this:

```groovy
Windows.startApplication('C:\\Users\\katalon\\Desktop\\Demo\\WindowsFormsApp.exe')
Windows.switchToWindowTitle('Main App Title') // Replace this by your main window title

```

Besides, the capability **ms:waitForAppLaunch** is very useful too. So, just keep it there /=)

---

<div class="post-metadata">

**Author:** ![sigit](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sigit](https://forum.katalon.com/u/sigit)\
**Post date:** [August 3, 2020, 3:21pm UTC](https://forum.katalon.com/t/timeout-when-launching-test-application/41385/14 "2020-08-03T15:21:24Z")

</div>

Hi @thongnmtran any updates on this one? I’ve been struggling with the same issues, my app is ClickOnce application.
