配置 yaml:
afterPage:
- action: "driver.swipe(0.5, 0.2, 0.5, 0.8)"
afterPageMax: 2
报错日志:
2019-12-30 21:36:49 ERROR [Crawler.193.crawl] crawl not finish, return with exception
2019-12-30 21:36:49 ERROR [Crawler.194.crawl]
2019-12-30 21:36:49 ERROR [Crawler.195.crawl] NullPointerException:
2019-12-30 21:36:49 ERROR [Crawler.196.crawl]
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] java.lang.NullPointerException
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.$anonfun$crawl$3(Crawler.scala:855)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.$anonfun$crawl$3$adapted(Crawler.scala:855)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.collection.LinearSeqOptimized.exists(LinearSeqOptimized.scala:91)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.collection.LinearSeqOptimized.exists$(LinearSeqOptimized.scala:88)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.collection.immutable.List.exists(List.scala:86)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.collection.generic.TraversableForwarder.exists(TraversableForwarder.scala:41)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.collection.generic.TraversableForwarder.exists$(TraversableForwarder.scala:41)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.collection.mutable.ListBuffer.exists(ListBuffer.scala:44)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.crawl(Crawler.scala:855)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.$anonfun$crawl$1(Crawler.scala:187)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at scala.util.Try$.apply(Try.scala:209)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.crawl(Crawler.scala:187)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.start(Crawler.scala:170)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:322)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:290)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:91)
2019-12-30 21:36:49 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)
2019-12-30 21:36:49 ERROR [Crawler.198.crawl] create new session
2019-12-30 21:36:49 INFO [Crawler.214.restart] execute shell on restart
2019-12-30 21:36:49 INFO [Crawler.217.restart] restart appium
2019-12-30 21:36:49 INFO [Crawler.250.setupAppium] afterPageMax=2