AppCrawler 跑 appcrawler 大部分点击被 canceled,Exception: org.scalatest.exceptions.TestCanceledException

careysucci · 2019年11月06日 · 最后由 九宫格中迷了路 回复于 2019年12月27日 · 2294 次阅读

1、大部分都被 canceled:

2、其中一个 canceled 的报错信息:
clickedIndex=-1 action=Ready xpath=//[@instance=\"0\"]//[@instance=\"0\"]//[@instance=\"1\"]//[@instance=\"1\" and @resource-id=\"com.kugou.musicradio:id/action_bar_root\"]//[@instance=\"2\" and @resource-id=\"android:id/content\"]//[@instance=\"3\" and @resource-id=\"com.kugou.musicradio:id/maingroup\"]//[@instance=\"2\" and @resource-id=\"com.kugou.musicradio:id/container_view\"]//[@instance=\"4\"]//[@instance=\"11\" and @resource-id=\"com.kugou.musicradio:id/layout_info\"]//[@instance=\"12\"]//[@instance=\"13\" and @resource-id=\"com.kugou.musicradio:id/layout_main_top\"]//[@instance=\"14\"]//[@instance=\"16\" and @resource-id=\"com.kugou.musicradio:id/fm_layout\"]//[@instance=\"24\" and @text=\"FM 电台\" and @resource-id=\"com.kugou.musicradio:id/txt_fm\"] !!! CANCELED !!!
(Hide Details)
Message: Ready not click
Line: (TemplateTestCase.scala:98)
Exception: org.scalatest.exceptions.TestCanceledException
org.scalatest.Assertions.newTestCanceledException(Assertions.scala:531)
org.scalatest.Assertions.newTestCanceledException$(Assertions.scala:530)
org.scalatest.FunSuite.newTestCanceledException(FunSuite.scala:1560)
org.scalatest.Assertions.cancel(Assertions.scala:1141)
org.scalatest.Assertions.cancel$(Assertions.scala:1137)
org.scalatest.FunSuite.cancel(FunSuite.scala:1560)
com.testerhome.appcrawler.TemplateTestCase.$anonfun$addTestCase$8(TemplateTestCase.scala:98)
org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
org.scalatest.Transformer.apply(Transformer.scala:22)
org.scalatest.Transformer.apply(Transformer.scala:20)
org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
org.scalatest.FunSuite.withFixture(FunSuite.scala:1560)
org.scalatest.FunSuiteLike.invokeWithFixture$1(FunSuiteLike.scala:184)
org.scalatest.FunSuiteLike.$anonfun$runTest$1(FunSuiteLike.scala:196)
org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
org.scalatest.FunSuiteLike.runTest(FunSuiteLike.scala:196)
org.scalatest.FunSuiteLike.runTest$(FunSuiteLike.scala:178)
org.scalatest.FunSuite.runTest(FunSuite.scala:1560)
org.scalatest.FunSuiteLike.$anonfun$runTests$1(FunSuiteLike.scala:229)
org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:396)
scala.collection.immutable.List.foreach(List.scala:389)
org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:379)
org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
org.scalatest.FunSuiteLike.runTests(FunSuiteLike.scala:229)
org.scalatest.FunSuiteLike.runTests$(FunSuiteLike.scala:228)
org.scalatest.FunSuite.runTests(FunSuite.scala:1560)
org.scalatest.Suite.run(Suite.scala:1147)
org.scalatest.Suite.run$(Suite.scala:1129)
org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1560)
org.scalatest.FunSuiteLike.$anonfun$run$1(FunSuiteLike.scala:233)
org.scalatest.SuperEngine.runImpl(Engine.scala:521)
org.scalatest.FunSuiteLike.run(FunSuiteLike.scala:233)
org.scalatest.FunSuiteLike.run$(FunSuiteLike.scala:232)
com.testerhome.appcrawler.TemplateTestCase.org$scalatest$BeforeAndAfterAllConfigMap$$super$run(TemplateTestCase.scala:13)
org.scalatest.BeforeAndAfterAllConfigMap.liftedTree1$1(BeforeAndAfterAllConfigMap.scala:248)
org.scalatest.BeforeAndAfterAllConfigMap.run(BeforeAndAfterAllConfigMap.scala:245)
org.scalatest.BeforeAndAfterAllConfigMap.run$(BeforeAndAfterAllConfigMap.scala:242)
com.testerhome.appcrawler.TemplateTestCase.run(TemplateTestCase.scala:13)
org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1210)
org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1257)
scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:32)
scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:29)
scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:194)
org.scalatest.Suite.runNestedSuites(Suite.scala:1255)
org.scalatest.Suite.runNestedSuites$(Suite.scala:1189)
org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
org.scalatest.Suite.run(Suite.scala:1144)
org.scalatest.Suite.run$(Suite.scala:1129)
org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1346)
org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1340)
scala.collection.immutable.List.foreach(List.scala:389)
org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1340)
org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:1031)
org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:1010)
org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1506)
org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010)
org.scalatest.tools.Runner$.run(Runner.scala:850)
com.testerhome.appcrawler.Report.runTestCase(Report.scala:65)
com.testerhome.appcrawler.Report.runTestCase$(Report.scala:41)
com.testerhome.appcrawler.Report$.runTestCase(Report.scala:78)
com.testerhome.appcrawler.plugin.ReportPlugin.generateReport(ReportPlugin.scala:48)
com.testerhome.appcrawler.plugin.ReportPlugin.stop(ReportPlugin.scala:31)
com.testerhome.appcrawler.Crawler.$anonfun$stop$2(Crawler.scala:1199)
com.testerhome.appcrawler.Crawler.$anonfun$stop$2$adapted(Crawler.scala:1199)
scala.collection.immutable.List.foreach(List.scala:389)
scala.collection.generic.TraversableForwarder.foreach(TraversableForwarder.scala:35)
scala.collection.generic.TraversableForwarder.foreach$(TraversableForwarder.scala:35)
scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:44)
com.testerhome.appcrawler.Crawler.$anonfun$stop$1(Crawler.scala:1199)
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
scala.util.Try$.apply(Try.scala:209)
com.testerhome.appcrawler.Crawler.stop(Crawler.scala:1199)
com.testerhome.appcrawler.Crawler.crawl(Crawler.scala:208)
com.testerhome.appcrawler.Crawler.start(Crawler.scala:170)
com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:322)
com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:290)
com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:91)
com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)

共收到 1 条回复 时间 点赞

我也遇到了这个情况

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册