Firebase仪器测试超时

时间:2019-05-30 10:59:04

标签: ui-testing android-instrumentation firebase-test-lab

我在本地运行了仪器测试,一切都很好。 但是,当我连接到Firebase Test Lab时,总是超时会失败。我尝试了几种不同的设备,但仍然没有运气。他们中的大多数人只是呆在那里,并失败了一个半小时。

timeout

android.support.test.espresso.PerformException: Error performing 'single click - At Coordinates: 539, 665 and precision: 16, 16' on view 'with id: package.name.dev:id/emailSignButton'.

at android.support.test.espresso.PerformException$Builder.build(PerformException.java:83)
at android.support.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:80)
at android.support.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:56)
at android.support.test.espresso.ViewInteraction.runSynchronouslyOnUiThread(ViewInteraction.java:184)
at android.support.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:115)
at android.support.test.espresso.ViewInteraction.perform(ViewInteraction.java:87)
at package.name.Utils$Companion.login(Utils.kt:42)
at package.name.views.active.SomeActivityTest.testPrebidAuction(SomeActivityTest.java:62)
at java.lang.reflect.Method.invoke(Native Method)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at android.support.test.internal.statement.UiThreadStatement.evaluate(UiThreadStatement.java:55)
at android.support.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:270)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2145)
Caused by: android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class fragment
Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class fragment
Caused by: android.support.v8.renderscript.RSRuntimeException: Error loading RS jni library: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/package.name.dev.test-Fa1GKc9fQmFQRxv4qGFwHg==/lib/arm64/librsjni.so" is 64-bit instead of 32-bit Support lib API: 2301
at android.support.v8.renderscript.RenderScript.internalCreate(RenderScript.java:1414)
at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1599)
at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1549)
at android.support.v8.renderscript.RenderScript.create(RenderScript.java:1525)
at at.favre.lib.dali.builder.ContextWrapper.getRenderScript(ContextWrapper.java:36)
at at.favre.lib.dali.builder.blur.BlurBuilder.<init>(BlurBuilder.java:72)
at at.favre.lib.dali.Dali.load(Dali.java:123)
at package.name.ui.BackgroundImageFragment.onCreateView(BackgroundImageFragment.kt:44)

1 个答案:

答案 0 :(得分:0)

您的测试需要运行多长时间?您可能需要将测试超时设置为比FTL中的默认超时值更长的时间,特别是如果您使用任何没有GPU来加快图形操作速度的虚拟设备。

您可以使用Firebase控制台中的高级选项来设置测试超时,如果在命令行中使用--timeout,则可以使用gcloud标志来设置测试超时。