我尝试在无头jenkins上运行UI测试(在centOS上),我收到此错误:
Starting 6 tests on test10_googleAPIs(AVD) - 4.1.2
com.MobileTornado.sdk.newclient.screens.login.MessageScreenTest > LimitMessage[test10_googleAPIs(AVD) - 4.1.2] [31mFAILED [0m
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with id: com.MobileTornado.newclient:id/chatTab
com.MobileTornado.sdk.newclient.screens.login.MessageScreenTest > SendMessage[test10_googleAPIs(AVD) - 4.1.2] [31mFAILED [0m
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with id: com.MobileTornado.newclient:id/chatTab
com.MobileTornado.sdk.newclient.screens.login.MessageScreenTest > zzz_signOut[test10_googleAPIs(AVD) - 4.1.2] [31mFAILED [0m
Test failed to run to completion. Reason: 'Instrumentation run failed due to 'java.lang.IllegalArgumentException''. Check device logcat for details
Tests on test10_googleAPIs(AVD) - 4.1.2 failed: Instrumentation run failed due to 'java.lang.IllegalArgumentException'
:new-client:connectedDevDebugAndroidTest FAILED
詹金斯开始做测试然后失败了!
我在android studio上运行此测试,并在windows上运行jenkins,所有测试都通过了!
模拟器运行(但我没有看到它,它是一个无头机器),因为在我得到之前:
$ /opt/android-sdk-linux/platform-tools/adb -s emulator-5786 wait-for-device shell getprop init.svc.bootanim
[android] Emulator reported that the startup process is 'running'
使用: Android Studio项目,gradle 3.3,espresso 2.2.2
有什么问题?