android - Special language characters in Fastlane Screengrab -
i've got simple test project set fastlane screengrab, grabs 3 screenshots of simple activity based on 3 languages. works if have simple text within 3 string.xml files:
<resources> <string name="hello">"bonjour, "</string> <string name="test_scenario">scenario de test</string> </resources>
however, if change text include proper accented french, so:
<resources> <string name="hello">"bonjour, "</string> <string name="test_scenario">scénario de test</string> </resources>
the error screengrab throwing is:
[15:18:25]: ▸ there 1 failure: [15:18:25]: ▸ 1) sayhello(com.example.testing.testingexample.mainactivityinstrumentationtest) [15:18:25]: ▸ java.lang.runtimeexception: failed key events string scénario de test (i.e. current ime not understand how translate string key events). workaround, can use replacetext action set text directly in edittext field. [15:18:25]: ▸ @ android.support.test.espresso.base.uicontrollerimpl.injectstring(uicontrollerimpl.java:265) [15:18:25]: ▸ @ android.support.test.espresso.action.typetextaction.perform(typetextaction.java:105) [15:18:25]: ▸ @ android.support.test.espresso.viewinteraction$1.run(viewinteraction.java:144) [15:18:25]: ▸ @ java.util.concurrent.executors$runnableadapter.call(executors.java:423) [15:18:25]: ▸ @ java.util.concurrent.futuretask.run(futuretask.java:237) [15:18:25]: ▸ @ android.os.handler.handlecallback(handler.java:739) [15:18:25]: ▸ @ android.os.handler.dispatchmessage(handler.java:95) [15:18:25]: ▸ @ android.os.looper.loop(looper.java:148) [15:18:25]: ▸ @ android.app.activitythread.main(activitythread.java:5417) [15:18:25]: ▸ @ java.lang.reflect.method.invoke(native method) [15:18:25]: ▸ @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:726) [15:18:25]: ▸ @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616) [15:18:25]: ▸ failures!!! [15:18:25]: ▸ tests run: 2, failures: 1
since test includes typetext() , click() methods, don't think "as workaround, can use replacetext action set text directly" suggestion relevant, wrong.
anyone encountered issue fastlane , instrument tests before? in advance...
Comments
Post a Comment