I used Tellurium IDE to record a test from a Japanese web site and  here are
the UI module

class JapaneseRedCrossModule extends DslContext {
    public void defineUi() {
        ui.Container(uid: "A", clocator: [tag: "a", title:
"とっさの手当・予防を学びたい"]) {
            Image(uid: "Rollover", clocator: [tag:
            "img", direct: "true", class: "rollover"])
        }
    }

    void clickLink() {
        click "A.Rollover"
        waitForPageToLoad 30000
    }

}

and test case:


public class JapaneseRedCrossTestCase extends TelluriumJUnitTestCase {
    private static JapaneseRedCrossModule jrm;

    @BeforeClass
    public static void initUi() {
        jrm = new JapaneseRedCrossModule();
        jrm.defineUi();
        connectSeleniumServer();
    }

    @Before
    public void connect() {
        connectUrl("http://www.jrc.or.jp/index.html";);
    }

    @Test
    public void testClickLink() {
        jrm.clickLink();
    }
}

Looks like tellurium core does not have any problem to handle the Japanese
characters. See the log here:

or alternatively the selenium server is running in proxy injection mode)
18:11:36.144 INFO - Got result: OK on session
6c07cb867f074a3bb290f2f86e41f9e6
18:11:36.341 INFO - Command request:
getBundleResponse[[{"uid":"A.Rollover","args":["jquery=a[title=とっさの手当・予防を学びたい]
> img.rollover"],"name":"click","sequ":2}], ] on session
6c07cb867f074a3bb290f2f86e41f9e6
18:11:36.439 INFO - Got result: OK,[] on session
6c07cb867f074a3bb290f2f86e41f9e6
18:11:36.459 INFO - Command request: waitForPageToLoad[30000, ] on session
6c07cb867f074a3bb290f2f86e41f9e6
18:11:38.618 INFO - Got result: OK on session
6c07cb867f074a3bb290f2f86e41f9e6
18:11:38.627 INFO - Command request: testComplete[, ] on session
6c07cb867f074a3bb290f2f86e41f9e6

Could you create a test case to reproduce your problem using the web site
http://www.jrc.or.jp/index.html and send it to us?

Or did you use utf-8 String when you type in input characters?

On Wed, Jun 1, 2011 at 10:45 AM, Jian Fang <[email protected]> wrote:

> Should be related to utf-8 encode. Will take a look tonight.
>
>
> On Wed, Jun 1, 2011 at 7:34 AM, Hari <[email protected]> wrote:
>
>> Hi,
>>    Am using Japanese language and running the testcases individually. Its
>> working fine....
>>
>>  Am executing the build.xml  Japanese character not accepting. The
>> following is Error message thrown..
>>
>> [*javac*] *C:\workspace\test\src\com\login.java*:35: Œx :‚±‚Ì•¶Žš‚Í
>> AƒGƒ“ƒR [ƒfƒBƒ“ƒO UTF8 ‚Ƀ}ƒbƒv‚Å‚«‚Ü‚¹‚ñ B
>>
>> [*javac*]
>> assertTrue(str.contains("���[�U���܂��̓p�X���[�h���͂��Ă��������B"));
>>  ERROR: Element
>> uimcal={"rid":"Mydata.Nobr","locator":"jquery=table.mydata
>> nobr:te_text(???s)"} not found
>>
>> Test com.login FAILED
>>
>>
>>  ??? Are Japanese character. Can you help me. How to resolve it..
>>
>> Regards,
>> Hari
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to