Android Espresso俄罗斯信

时间:2015-02-19 14:39:52

标签: android testing android-espresso cyrillic

我正在使用Espresso来测试我的Android应用程序。我尝试使用EditText将俄语文本输入typeText()。我得到了一个例外

java.lang.NullPointerException: Failed to get events for string blabla...

任何人,谁知道解决方案?

我的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(Preconditions.java:208)
            at android.support.test.espresso.base.UiControllerImpl.injectString(UiControllerImpl.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 -----

0 个答案:

没有答案