# How to install the app at the beginning of the test case

**URL:** <https://forum.katalon.com/t/how-to-install-the-app-at-the-beginning-of-the-test-case/13937>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [October 26, 2018, 1:20am UTC](https://forum.katalon.com/t/how-to-install-the-app-at-the-beginning-of-the-test-case/13937 "2018-10-26T01:20:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rushdi\_Ali](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Rushdi\_Ali](https://forum.katalon.com/u/Rushdi_Ali)\
**Post date:** [October 26, 2018, 1:20am UTC](https://forum.katalon.com/t/how-to-install-the-app-at-the-beginning-of-the-test-case/13937/1 "2018-10-26T01:20:24Z")

</div>

Hi,

I am trying to figure out, how to uninstall and install the app when the test case starts. Furthermore, I do not want the app getting uninstalled when the application closes.  
I tried the below, but it is uninstalling the app at the end of the test case.  
Mobile.startApplication(‘Path’, true)

I tried “Mobile.startApplication(‘Path’, false)” but this does not install or uninstall and install the app when the test case starts.

I basically have 2 test cases. What I am trying to do is,

Test case 1 Configuring the app: The app installs the app or uninstalls and installs the app again, and the app starts configuring.

Test case 2 Crate a workflow- Creating a workflow. Here the configured app should open and create the workflow.  
Mobile.startApplication(‘Path’, false)

Can anyone tell me how to do this?

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [November 7, 2018, 4:31am UTC](https://forum.katalon.com/t/how-to-install-the-app-at-the-beginning-of-the-test-case/13937/2 "2018-11-07T04:31:16Z")

</div>

Hi Rushdi,

You might want to check out an open source library I work on, which might handle some of the install/uninstallation cases you want:

[https://github.com/detroit-labs/katalon-mobile-util#device](https://github.com/detroit-labs/katalon-mobile-util#device "Link: https://github.com/detroit-labs/katalon-mobile-util#device")

For more info on how to add third party libraries to your Katalon project:

[https://docs.katalon.com/katalon-studio/tutorials/import\_java\_library.html](https://docs.katalon.com/katalon-studio/tutorials/import_java_library.html)

Hope this helps,

Chris
