How to automate installing process of an desktop application using Katalon?

Hi I need to automate the installation process of my desktop application can this be achieved using Katalon studio?

Hi there,
I’m in the same situation, anyone else has made it works?
for e.g: I’m trying to automate the teamview desktop installing process.

Windows.startApplication(‘C:\Users\username\Downloads\TeamViewer_Setup_x64.exe’)

I got this error message:

=============== ROOT CAUSE =====================
Caused by: java.lang.reflect.InvocationTargetException

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html

07-02-2021 03:58:25 PM Test Cases/install_Teamview

Elapsed time: 30.351s

Test Cases/install_Teamview FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to create a new remote session. Please check the server log for more details. Original error: Failed to locate opened application window with appId: C:\Users\username\Downloads\TeamViewer_Setup_x64.exe, and processId: 22344 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 27.17 seconds
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’

Note: winAppDrive running already.
Thanks!

No. This is not the way.

Rather you need this.

Yay! it works
but it got a null pointer on the next step, seem it relates to the windows driver? (starting the exe file by this way, can it start window driver also?)

=============== ROOT CAUSE =====================
Caused by: java.lang.NullPointerException

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html

07-02-2021 06:19:10 PM Test Cases/install

Elapsed time: 21.792s

Test Cases/install FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: (Root cause: java.lang.NullPointerException
at com.kms.katalon.core.windows.driver.WindowsDriverFactory.getWindowsDriver(WindowsDriverFactory.java:62)
at com.kms.katalon.core.windows.driver.WindowsDriverFactory$getWindowsDriver.call(Unknown Source)
at com.kms.katalon.core.windows.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:38)
at com.kms.katalon.core.windows.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy)

do you know how to overcome it, thanks!

I do not understand what you are saying.

Please have a look at the following guidance.

oh, sorry I may need to give more detail
script like this

Runtime.runtime.exec(‘C:\Users\username\Documents\katalon\draft\Data Files\builds\TeamViewer_Setup_x64.exe’)

Windows.delay(20)

Windows.click(findWindowsObject(‘instalDialog/defaultCheckbox’))

At the time Katalon kicks to start the exe file running, we have a GUI, then I need to tick on the “default installation” by command

Windows.click(findWindowsObject(‘instalDialog/defaultCheckbox’))

But at this step, error thrown as my previous response, something relates to the “getWindowsDriver”, I can see from the log…

Something like the windowsDriver is null

PS: Thank you for the guide by the link, I just read :stuck_out_tongue:

Thanks!

Perhaps

is null.

Why?

Perhaps you do not have the test object named ‘instalDialog/defaultCheckbox’.

I doubt the spell ‘instal’.

Might be ‘install’ ?

Just my typo, but that test object exists, and it’s set ok
I just worry about the way we start the exe file

Runtime.runtime.exec(‘C:\Users\username\Documents\katalon\draft\Data Files\builds\TeamViewer_Setup_x64.exe’)
It doesn’t start window driver like the normal way :thinking:

and I can see from the error thrown, it relates to the windowsDriver is null

do you think so?

Please understand that I have no idea what you want to achieve.

I do not understand this.

By its name, I guesed that “TeamViewer_Setup_x64.exe” is an installer of some software called “TeamViewer”. I don’t know it at all.

And you say

“it does’t start window driver”.

I am confused. Usually an installer does nothing other than installing the target software. I guess that the installer program for TeamViewer WILL NOT start the “window driver” at all.

But you seem to expect it should. Are you sure?

yes, yeah!
It is the title of this topic :stuck_out_tongue:
is it possible to start windowsDriver along with the exe file?, haha
thank you!

Are you asking me still? I don’t know.

yay, thank you,
I think Katalon guys missing this scenario or we’re on the incorrect approach, haha, thanks!