Bugs item #693598, was opened at 2003-02-26 06:22
Message generated for change (Comment added) made by mraible
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=693598&group_id=61302

Category: None
Group: None
Status: Open
Resolution: Accepted
Priority: 7
Submitted By: Markus (sorcerer13)
Assigned to: Nobody/Anonymous (nobody)
Summary: setLocale has no effect

Initial Comment:
Setting a new locale using setLocale() in WebTester has 
no effect. getLocale() returns the locale set with 
setLocale(), but the locale "en_US" is sent to the server.

Here is the code:
public void setUp()
{
  System.out.println ("old locale: " + getTestContext
().getLocale ());
  getTestContext().setLocale (Locale.GERMAN);
  getTestContext().setBaseUrl(BASE_URL);
                
  System.out.println ("new locale: " + getTestContext
().getLocale ());
}



----------------------------------------------------------------------

Comment By: Matt Raible (mraible)
Date: 2004-09-09 14:41

Message:
Logged In: YES 
user_id=226669

Here's a workaround that seems to work.  Add the code 
below to your setUp() method.

        getTestContext().getWebClient().setHeaderField
("Accept-Language", "de");

----------------------------------------------------------------------

Comment By: Jim Weaver (prospero2000us)
Date: 2003-09-22 13:26

Message:
Logged In: YES 
user_id=597548

This method was originally added to compare property file
values against html results.  It should also pass to
httpunit as the browser locale.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=693598&group_id=61302


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to