Discussion:
[tycho-user] Setting workspace for SWTBot in Tycho Surefire plugin
Stephan Druskat
2017-06-27 07:46:39 UTC
Permalink
Dear List,

I'm trying to test my RCP application's GUI with SWTBot, automated with
the Tycho Surefire Plugin.

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>org.my.app.product</product>
<application>org.my.app.application</application>
</configuration>
</plugin>

The product sets "-data" to "@noDefault", and the workspace is not
remembered, therefore at running the app for the first time, the
Workspace Chooser Dialog pops up, which is wanted behaviour during
runtime, but not for the GUI tests, as this defies the logic of running
headless GUI tests.

Is there any way I can set the workspace remembrance to true and also
set the workspace directory from Tycho Surefire? I've tried setting
'osgiDataDirectory', but this didn't work.

Many thanks for any pointers
Stephan
Mickael Istria
2017-06-27 08:46:46 UTC
Permalink
Hi,

FYI, the behaviour you see here doesn't seem related to SWTBot, but more to
your product setup.
Do you see the same issue with the regular SDK product + workbench
application from Platform? If not, then it's most likely your application
or product that fails at properly honoring the `-data` settings; you should
mimic the regular Eclipse application behavior.

HTH
Stephan Druskat
2017-06-27 08:50:59 UTC
Permalink
Thanks Mickael,

I've just stumbled across the same thing while trying to pass -data to
the application, it doesn't honour it. I'll change that now.

Cheers
Stephan
Post by Mickael Istria
Hi,
FYI, the behaviour you see here doesn't seem related to SWTBot, but more
to your product setup.
Do you see the same issue with the regular SDK product + workbench
application from Platform? If not, then it's most likely your
application or product that fails at properly honoring the `-data`
settings; you should mimic the regular Eclipse application behavior.
HTH
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Loading...