Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Problem setting locale for SWTBot with tycho

Hi all,

I'm running SWTBot tests against my e4 rcp application in my tycho build with the help of the tycho-surefire-plugin which I configured according to http://wiki.eclipse.org/SWTBot/Automate_test_execution

So far everything worked fine. I can execute the tests in my Eclipse IDE and I also can execute them in my tycho-build via "integration-test"-phase.

But I run into problems because the locale of the maven-tycho builds seems to differ from the locale of my eclipse ide execution. For example I test a button with SWTBot and with maven the locale seems to be "en" because it's a "cancel"-button whereas in my eclipse execution with SWTBot the button is localized to german ("Abbrechen" for "cancel"), so the locale is "de".

I would like to set the locale of my maven SWTBot Execution to "de" but I cannot get it to work for me. I already tried:

* my .product-file includes a program argument:
	-nl de_DE
* configuring tycho-surefire-plugin with:
	<systemProperties>
		<user.language>de</user.language>
		<user.region>DE</user.region>
		<osgi.nl>de_DE</osgi.nl>
	</systemProperties>
* I also tried to set the above arguments to "argLine" and "appArgLine" configuration

So far nothing worked out.

Can anyone give me a hint what's missing?


Best Regards

Joachim Bleidiessel


-- 
Diese E-Mail kann vertrauliche und/oder rechtlich geschuetzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender durch eine Antwortmail und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Wir danken fuer Ihre Kooperation.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and delete this e-mail from your systems. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly prohibited. Thank you for your cooperation.

Back to the top