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

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?

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

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

Hope this helps,

Chris