Search code examples
javaautomationswtbot

Using SWTBot to automate a third party application. Is it possible?


I have a SWT application that I'd like to automate, making use of SWTBot. Is it possible? If yes, how?

All the examples I've found on the net seem to be more about testing your own applications than to launch a third party application.


Solution

  • If the application in question is not an Eclipse RCP application to which you could install SWTBot I don't think it's doable. I don't think SWTBot can control another process even if it is Java process.

    Only thing that comes to mind is some kind of -Xbootclasspath: JAR that would boot some kind of "remote control server" in that application and allow SWTBot to issue commands to it.