测试人社区

【求助】appcrawler使用配置文件执行自动遍历的报错

报错信息如下:

Driver info: io.appium.java_client.android.AndroidDriver Capabilities {app: , appActivity: com.mobile2345.ads.demo.act…, appPackage: com.admob2345.ads.demo, appium: http://127.0.0.1:4723/wd/hub, autoLaunch: true, autoWebview: false, automationName: appium, databaseEnabled: false, desired: {app: , appActivity: com.mobile2345.ads.demo.act…, appPackage: com.admob2345.ads.demo, appium: http://127.0.0.1:4723/wd/hub, autoLaunch: true, autoWebview: false, automationName: appium, deviceName: demo, fullReset: false, launchTimeout: 120000, newCommandTimeout: 120, noReset: true, platformName: android, platformVersion: , unicodeKeyboard: true}, deviceApiLevel: 26, deviceManufacturer: Xiaomi, deviceModel: MI 6, deviceName: ac35bdba, deviceScreenDensity: 480, deviceScreenSize: 1080x1920, deviceUDID: ac35bdba, fullReset: false, javascriptEnabled: true, launchTimeout: 120000, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 120, noReset: true, pixelRatio: 3, platform: LINUX, platformName: Android, platformVersion: 8.0.0, statBarHeight: 72, takesScreenshot: true, unicodeKeyboard: true, viewportRect: {height: 1848, left: 0, top: 72, width: 1080}, warnings: {}, webStorageEnabled: false} Session ID: 3b64d2e4-b091-4a22-85bd-c798e2900e20 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce ssorImpl.java:62) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru ctorAccessorImpl.java:45) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W 3CHttpResponseCodec.java:187) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpR esponseCodec.java:122) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpR
esponseCodec.java:49) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandEx ecutor.java:158) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumComm andExecutor.java:231) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.jav a:543) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobil eDriver.java:42) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java: 1) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElemen t.java:276) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMo bileElement.java:45) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.MobileElement.execute(MobileElement.java:1) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at io.appium.java_client.android.AndroidElement.execute(AndroidElement.java:1) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at org.openqa.selenium.remote.RemoteWebElement.getSize(RemoteWebElement .java:337) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.driver.AppiumClient.getRect(AppiumClient.scala: 309)
2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.doElementAction(Crawler.scala: 1078) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.crawl(Crawler.scala:898) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.$anonfun$crawl$1(Crawler.scala: 187) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at scala.util.Try$.apply(Try.scala:209) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.crawl(Crawler.scala:187) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.Crawler.start(Crawler.scala:170) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala: 322) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:290) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:91) 2020-10-23 08:33:32 ERROR [Crawler.197.$anonfun$crawl$2] at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala) 2020-10-23 08:33:32 ERROR [Crawler.198.crawl] create new session

日志里有报错,但是脚本还是一直在正常执行,

怎么感觉你截图的错误日志不全,你贴的更完整些试试