DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42379>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42379

           Summary: GUI JUnit tests fails when test are executed in Locale
                    different from en_US
           Product: JMeter
           Version: 2.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: HTTP
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


If you run the Ant target for executing the JMeter unit tests, and your JVM
Locale is for example "no", or any other value than "en", you will get more than
10 failures looking like :

[java] 10)
GUIComponents1(org.apache.jmeter.junit.JMeterTest)junit.framework.ComparisonFailure:
Name should be same as static label for
org.apache.jmeter.threads.gui.ThreadGroupGui expected:<...oup> but was:<...uppe>
[java]     at 
org.apache.jmeter.junit.JMeterTest.GUIComponents1(JMeterTest.java:416)

If you change the language setting in jmetertest.properties to "no", you will
see the same problems.

I think this is caused by the fact that the Locale in effect when the GUI
objects used in the org.apache.jmeter.junit.JMeterTest tests are the "default
locale", i.e. the Locale that JMeterUtils is initialized with. In my case it is
"no".

But then some tests changes the Locale, by calling JMeterUtils.setLocale, which
can be seen by looking at the jmeter-test.log.
So when the org.apache.jmeter.junit.JMeterTest.GUIComponents1 tests are actually
executed, another Locale is in effect, and therefore the tests fails.
In my case, the language in effect at this point is "en".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to