Introduction to Windows Spy Utility


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/intro-spy-windows.html

The “Application File” I believe is referring to the Windows Application Driver you would have installed.

The default locations is:
“C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe”

Could you describe which file is meant by “Windows Executable File (*.exe)” ? I’m having trouble locating the correct .exe file for the Application File box.
Thanks!

Hello everyone,

Application File in the configurations is your tested Windows app, aka the AUT (Application under test) (an EXE file).

Jass

Can it automate “.jnlp” application?

as far as i know, .jnlp are not executable files, but just some .xml’s containing instructions for javaws to download and execute third-party web applications

what exactly do you intend to achieve?

Hi Ibus,

Completely agreed, JNLP are xmls file containing information to download java(aws/awt…etc) application.
Actually we want to automate JAVA application launched by “.jnlp”.
steps:
1- Double click on “.jnlp” file and it will launch the JAVA application.
2- Automate opened JAVA application using Katalon.

looking forward for you solution :slight_smile
Regards,
Prabhat

@prabhat.pk589 got it.
well, to start the application is the easy part, just execute a system comand (there are few examples on the forum how to do it) sort of javaws your_app.jnpl, no need for click.

to actualy do some tests on the application … well, here i have no clue, since i never played with such. it will open the app in a browser? or a dedicated window? however will be tricky and i am not sure if is actualy possible.
you can give a try … or wait for someone else to land here with more experience.

@Russ_Thomas any idea who may possess some knowledge on this technology?

Hmm. Not sure.

If it’s a web page in a browser, use WebUI APIs

If it’s a desktop app on Windows, use Windows APIs.

yeah … that was my thinking too.
but … if web browser, the trick will be to run katalon tests in an already opened browser.

if 2nd … not sure if winAPI will be able to detect the elements properly.
anyway is challenging …
@prabhat.pk589 do you know any public available, simple jnpl app so we can play with?

@Russ_Thomas @Ibus:
Thanks for your reply :slightly_smiling_face:
I will try from my end and will update you.
Now i convert that ".jnlp " file into runnable jar…but getting problem with KATALON to launch any window application .
It would be great help if you resolve attached screen shot issue.

logs are as below:

java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: Connection refused: connect
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘SAPIENT-S-V04’, ip: ‘172.20.137.147’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: WindowsDriver
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
at com.kms.katalon.composer.windows.dialog.WindowsAppComposite$5.run(WindowsAppComposite.java:198)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.openqa.selenium.WebDriverException: Connection refused: connect
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘SAPIENT-S-V04’, ip: ‘172.20.137.147’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: WindowsDriver
at io.appium.java_client.remote.AppiumCommandExecutor.lambda$5(AppiumCommandExecutor.java:251)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.windows.WindowsDriver.execute(WindowsDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.windows.WindowsDriver.(WindowsDriver.java:38)
at com.kms.katalon.core.windows.driver.WindowsDriverFactory.newWindowsDriver(WindowsDriverFactory.java:170)
at com.kms.katalon.core.windows.driver.WindowsDriverFactory.startApplication(WindowsDriverFactory.java:91)
at com.kms.katalon.composer.windows.spy.WindowsInspectorController.startApplication(WindowsInspectorController.java:148)
at com.kms.katalon.composer.windows.dialog.WindowsAppComposite$5$1.call(WindowsAppComposite.java:201)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)
… 2 more
Caused by: java.net.ConnectException: Connection refused: connect
at okhttp3.internal.platform.Platform.connectSocket(Platform.java:129)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:245)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:165)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
at okhttp3.RealCall.execute(RealCall.java:77)
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
… 17 more
image

Anyone can help me in above question?

I have the same problem. We need help please! thanks in advance

I am facing the same issue, Not able to select the sub menu from menu bar list please provide the solution.

image

Having the same exception
“java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: Connection refused: connect”

Facing below issue while recording windows app
java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException:

@karofsky,

Having the same exception
“java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: Connection refused: connect”

You need to start WinAppDriver first.

Facing below issue while recording windows app
java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException:

Please share us some screenshots of the error.

@vookat,

You need to exclude IP: localhost or 127.0.0.1 in Exclude fields of Proxy settings.