Hafiz-Waleed-Hussain / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Russian letter #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to pass russian word to typeText. For example 
onView(withTagValue(new 
TagMatcher("nationalityEditText"))).perform(typeText("РОССИЯ"));

What is the expected output? What do you see instead?
I expect editText with russian word, but i get Exception
java.lang.NullPointerException: Failed to get events for string "РОССИЯ"

What version of the product are you using? On what operating system?
I'm using Espresso 2.0

Here is my logcat:
----- begin exception ----- 02-19 17:42:32.634 2431-2448 I/TestRunner﹕ 
java.lang.NullPointerException: Failed to get events for string РОССИЯ at 
com.android.support.test.deps.guava.base.Preconditions.checkNotNull(Precondition
s.java:208) at 
android.support.test.espresso.base.UiControllerImpl.injectString(UiControllerImp
l.java:264) at 
android.support.test.espresso.action.TypeTextAction.perform(TypeTextAction.java:
105) at 
android.support.test.espresso.ViewInteraction$1.run(ViewInteraction.java:144) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at 
java.util.concurrent.FutureTask.run(FutureTask.java:237) at 
android.os.Handler.handleCallback(Handler.java:733) at 
android.os.Handler.dispatchMessage(Handler.java:95) at 
android.os.Looper.loop(Looper.java:136) at 
android.app.ActivityThread.main(ActivityThread.java:5001) at 
java.lang.reflect.Method.invokeNative(Native Method) at 
java.lang.reflect.Method.invoke(Method.java:515) at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at 
dalvik.system.NativeStart.main(Native Method) 02-19 17:42:32.634 2431-2448 
I/TestRunner﹕ ----- end exception -----

How can I type russian text in to editText?

Original issue reported on code.google.com by kmash...@gmail.com on 19 Feb 2015 at 2:59

GoogleCodeExporter commented 9 years ago

Original comment by vale...@google.com on 16 Mar 2015 at 7:15