Can I Run APP by compiled exe file, or bat, shell start script #5

muyufan opened this Issue Oct 27, 2011 · 2 comments


None yet
2 participants

muyufan commented Oct 27, 2011

My "System under test" is lunched by a shell script, something like

some of lib path setting lines...
some of java arg setting...
bin/java arg arg arg

I don;t know how to start app by using keyword "Launch Application".
So, can I using this shell start script launch app, then test it by SwingLibrary keyword.

I tried, but not success, Select Window faild , seems can;t find app window


yanne commented Oct 28, 2011

For SwingLibrary to work, it needs to run in the same JVM as the application under test. You have to make a shell script that sets the classpath similarly as the start script, then call jybot, and in the test data you can use Start Application with the main class value from the start script.

If that doesn't seem to work, you could try using the RemoteApplications library


yanne commented Apr 3, 2012

Closing this, since it cannot be fixed in SwingLibrary itself

yanne closed this Apr 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment