Community
Participate
Working Groups
The JUnitLaunchConfigurationDelegate#collectExecutionArguments() figures out the application to be launched by introspecting and applying a set of heuristics. SWTBot needs that tests run in a non-UI thread, which is why it needs to launch another application (internal to SWTBot) and point that application to the application that the user selects. In order to do this the application in the case of SWTBot is always hardcoded to the application ID of swtbottestapplication. This patch extracts the piece of code that determines the application id, into a protected method so that clients can override it to provide another application id. Patch follows.
Created attachment 114715 [details] the said patch
Created attachment 115081 [details] org.eclipse.pde.ui.patch Here is an updated patch. Ketan, I assume you have something like an "SWTBot" launch configuration that reuses the PDE JUnit launch configuration?
Created attachment 115082 [details] mylyn/context/zip
Looks good. SWTBot launch configuration would be overriding the getApplication to stick in the swtbot application ID instead. Thanks!
done. > 20091014 Thanks for your contribution Ketan.