还未发布过话题
  • 嗨,我装的 appcrawler 的版本是 2.1.3,同时我装了两种方式的 appium(dmg1.5.3 和终端的 v1.7。2),xcode 的版本是 8,可我在每次运行 appcrawler 的时候显示的 log 如下:--------------------------------

    2018-04-23 18:41:20 INFO [AppCrawler$.parseParams.219] Set Platform=iOS
    2018-04-23 18:41:20 INFO [AppCrawler$.parsePath.336] use app in the config file
    2018-04-23 18:41:20 INFO [AppCrawler$.parseParams.234] app path =
    2018-04-23 18:41:20 INFO [AppCrawler$.parseParams.245] use default appium address 4723
    2018-04-23 18:41:20 INFO [AppCrawler$.parseParams.252] appium address = Some(http://127.0.0.1:4723/wd/hub)
    2018-04-23 18:41:20 INFO [AppCrawler$.parseParams.264] result directory = iOS_20180423184120
    2018-04-23 18:41:21 INFO [DataRecord.initLog.30] alread exist
    2018-04-23 18:41:21 INFO [DataRecord.append.13] append 1
    2018-04-23 18:41:21 INFO [Crawler.start.126] set xpath attribute with List(name, label, value, resource-id, content-desc, index, text)
    2018-04-23 18:41:21 INFO [Crawler.start.129] set xpath
    2018-04-23 18:41:21 INFO [Crawler.loadPlugins.82] dynamic load plugin in /Users/chenxiangxiang/Desktop/plugins/
    2018-04-23 18:41:23 WARN [Runtimes$.loadPlugins.83] no /Users/chenxiangxiang/Desktop/plugins/ directory, skip
    2018-04-23 18:41:23 INFO [Crawler.loadPlugins.84] found dynamic plugins size 0
    2018-04-23 18:41:23 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.TagLimitPlugin@254f906e
    2018-04-23 18:41:23 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.ReportPlugin@1f346ad2
    2018-04-23 18:41:23 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.FreeMind@7ab34619
    2018-04-23 18:41:23 INFO [TagLimitPlugin.init.17] com.testerhome.appcrawler.plugin.TagLimitPlugin init
    2018-04-23 18:41:23 INFO [ReportPlugin.init.17] com.testerhome.appcrawler.plugin.ReportPlugin init
    2018-04-23 18:41:23 INFO [FreeMind.init.17] com.testerhome.appcrawler.plugin.FreeMind init
    2018-04-23 18:41:23 INFO [ReportPlugin.start.21] reportPath=/Users/chenxiangxiang/Desktop/iOS_20180423184120
    2018-04-23 18:41:23 INFO [ReportPlugin.start.24] create /Users/chenxiangxiang/Desktop/iOS_20180423184120/tmp/ directory
    2018-04-23 18:41:23 INFO [Crawler.start.132] prepare setup Appium
    2018-04-23 18:41:23 INFO [Crawler.setupAppium.262] use AppiumClient
    Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either an app or a bundleId for iOS (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 271 milliseconds
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'chenxiangxiangdeMacBook-Pro.local', ip: 'fe80:0:0:0:cf2:54c7:f6ad:a394%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.2', java.version: '1.8.0_151'
    Driver info: driver.version: IOSDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
    at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
    at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
    at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$24(ProtocolHandshake.java:359)
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
    at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
    at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:362)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:89)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:217)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:140)
    at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:83)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:93)
    at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:78)
    at com.testerhome.appcrawler.driver.AppiumClient.appium(AppiumClient.scala:166)
    at com.testerhome.appcrawler.driver.AppiumClient.(AppiumClient.scala:39)
    at com.testerhome.appcrawler.Crawler.setupAppium(Crawler.scala:263)
    at com.testerhome.appcrawler.Crawler.start(Crawler.scala:133)
    at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:344)
    at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:312)
    at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:92)
    at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)

    我觉得应该是 appium 就没起来。我实际想用的是终端的 appium,我以为我在终端上运行了 appium 就默认使用了它,实际没有。。。我看 log 上显示的是 use appiumclient,

    问题 1:我现在要怎么去设置才能解决这个问题呢。

    问题 2:我是 ios 真机运行,手机上已经装了 app,包名的后缀是.ipa,可是我发现他总是提示找不到。这个我又要怎么设置呢