有啥接口
这个会影响 iOS 的功能吧?
apiium 是使用终端里面的还是使用 appium-desktop 的 那个里面的参数包含哪些可以也贴下吗?我的报一个这样的错误:[XCUITest] Error: Platform version must be 9.3 or above. '9.2' is not supported. 但是我已经使用了 iOS 10.0 的手机啦
有真机跑起来 appcrawler 的经验么?
新报一个问题错误 我使用的手机是 iOS 10.0 的却提示
···
Error: Platform version must be 9.3 or above. '9.2' is not supported.
···
以下是完整日志
HeminWon-Extranet:appcrawler Hm$ java -jar appcrawler-2.0.0.jar --capability udid=059f479bdb378ac6daf95ae8e2091243259b1b73 -a EQHexinFee.ipa
2017-05-09 18:29:30 INFO [AppCrawler$.main.160]
----------------
AppCrawler 2.0.0
app爬虫, 用于自动遍历测试. 支持Android和iOS, 支持真机和模拟器
帮助文档: http://seveniruby.gitbooks.io/appcrawler
移动测试技术交流: https://testerhome.com
感谢: 晓光 泉龙 杨榕 恒温 mikezhou yaming116
感谢提供商业支持的优秀公司: Keep
--------------------------------
2017-05-09 18:29:30 INFO [AppCrawler$.main.202] Set Platform=iOS
2017-05-09 18:29:30 INFO [AppCrawler$.main.233] app path = /Users/Hm/Desktop/appcrawler/EQHexinFee.ipa
2017-05-09 18:29:30 INFO [AppCrawler$.main.243] use default appium address 4723
2017-05-09 18:29:30 INFO [AppCrawler$.main.250] appium address = Some(http://127.0.0.1:4723/wd/hub)
2017-05-09 18:29:30 INFO [AppCrawler$.main.262] result directory = iOS_20170509182929
2017-05-09 18:29:31 INFO [Crawler.loadPlugins.76] dynamic load plugin in /Users/Hm/Desktop/plugins/
2017-05-09 18:29:33 WARN [Runtimes$.loadPlugins.84] no /Users/Hm/Desktop/plugins/ directory, skip
2017-05-09 18:29:33 INFO [Crawler.loadPlugins.78] found dynamic plugins size 0
2017-05-09 18:29:33 INFO [Crawler.apply.80] com.xueqiu.qa.appcrawler.plugin.TagLimitPlugin@56781d96
2017-05-09 18:29:33 INFO [Crawler.apply.80] com.xueqiu.qa.appcrawler.plugin.ReportPlugin@378bd86d
2017-05-09 18:29:33 INFO [Crawler.apply.80] com.xueqiu.qa.appcrawler.plugin.FreeMind@69b2f8e5
2017-05-09 18:29:33 INFO [TagLimitPlugin.init.17] com.xueqiu.qa.appcrawler.plugin.TagLimitPlugin init
2017-05-09 18:29:33 INFO [ReportPlugin.init.17] com.xueqiu.qa.appcrawler.plugin.ReportPlugin init
2017-05-09 18:29:33 INFO [FreeMind.init.17] com.xueqiu.qa.appcrawler.plugin.FreeMind init
2017-05-09 18:29:33 INFO [ReportPlugin.start.20] reportPath=/Users/Hm/Desktop/appcrawler/iOS_20170509182929
2017-05-09 18:29:33 INFO [ReportPlugin.start.23] create /Users/Hm/Desktop/appcrawler/iOS_20170509182929/tmp/ directory
2017-05-09 18:29:33 INFO [Crawler.handleCtrlC.1130] add shutdown hook
2017-05-09 18:29:33 INFO [Crawler.start.120] prepare setup Appium
2017-05-09 18:29:33 INFO [Crawler.setupAppium.232] use AppiumClient
Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Platform version must be 9.3 or above. '9.2' is not supported. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.45 seconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'HeminWon-Extranet.local', ip: '192.168.15.55', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: io.appium.java_client.ios.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:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
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:249)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:36)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:114)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:132)
at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:82)
at com.xueqiu.qa.appcrawler.AppiumClient.appium(AppiumClient.scala:168)
at com.xueqiu.qa.appcrawler.AppiumClient.<init>(AppiumClient.scala:42)
at com.xueqiu.qa.appcrawler.Crawler.setupAppium(Crawler.scala:233)
at com.xueqiu.qa.appcrawler.Crawler.start(Crawler.scala:121)
at com.xueqiu.qa.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:313)
at com.xueqiu.qa.appcrawler.AppCrawler$.main(AppCrawler.scala:303)
at com.xueqiu.qa.appcrawler.AppCrawler.main(AppCrawler.scala)
HeminWon-Extranet:appcrawler Hm$
HeminWon-Extranet:~ Hm$ appium --platform-name iOS --platform-version 10.0.1 --automation-name XCUITest --udid 059f479bdb378ac6daf95ae8e2091243259b1b73 --session-override
[Appium] Welcome to Appium v1.6.4
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] platformName: iOS
[Appium] platformVersion: 10.0.1
[Appium] automationName: XCUITest
[Appium] udid: 059f479bdb378ac6daf95ae8e2091243259b1b73
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium] --platform-version => --default-capabilities '{"platformVersion":"10.0.1"}'
[Appium] --automation-name => --default-capabilities '{"automationName":"XCUITest"}'
[Appium] -U,--udid => --default-capabilities '{"udid":"059f479bdb378ac6daf95ae8e2091243259b1b73"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] platformName: 'iOS'
[Appium] platformVersion: '10.0.1'
[Appium] automationName: 'XCUITest'
[Appium] udid: '059f479bdb378ac6daf95ae8e2091243259b1b73'
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/Hm/Desktop/appcrawler/EQHexinFee.ipa","appium":"http://127.0.0.1:4723/wd/hub","noReset":"false","autoLaunch":"true","platformVersion":"9.2","bundleId":"","autoWebview":"false","platformName":"iOS","udid":"059f479bdb378ac6daf95ae8e2091243259b1b73","deviceName":"iPhone 6","autoAcceptAlerts":"true"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/Hm/Desktop/appcrawler/EQHexinFee.ipa","appium":"http://127.0.0.1:4723/wd/hub","noReset":"false","autoLaunch":"true","platformVersion":"9.2","bundleId":"","autoWebview":"false","platformName":"iOS","udid":"059f479bdb378ac6daf95ae8e2091243259b1b73","deviceName":"iPhone 6","autoAcceptAlerts":"true"},null,null,null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1494325177390 (18:19:37 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: '/Users/Hm/Desktop/appcrawler/EQHexinFee.ipa'
[Appium] appium: 'http://127.0.0.1:4723/wd/hub'
[Appium] noReset: 'false'
[Appium] autoLaunch: 'true'
[Appium] platformVersion: '9.2'
[Appium] bundleId: ''
[Appium] autoWebview: 'false'
[Appium] platformName: 'iOS'
[Appium] udid: '059f479bdb378ac6daf95ae8e2091243259b1b73'
[Appium] deviceName: 'iPhone 6'
[Appium] autoAcceptAlerts: 'true'
[Appium] automationName: 'XCUITest'
[debug] [XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'autoAcceptAlerts' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium.
[XCUITest] The capabilities 'autoAcceptAlerts' and 'autoDismissAlerts' do not work for XCUITest-based tests. Please adjust your alert handling accordingly.
[BaseDriver] Session created with session id: bd6a068a-314b-433b-8860-222287a348eb
[debug] [XCUITest] Xcode version set to '8.3.2' (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[XCUITest] Error: Platform version must be 9.3 or above. '9.2' is not supported.
at Error (native)
at XCUITestDriver.start$ (../../lib/driver.js:216:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Platform version must be 9.3 or above. '9.2' is not supported.
at Error (native)
at XCUITestDriver.start$ (../../lib/driver.js:216:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[MJSONWP] Encountered internal error running command: Error: Platform version must be 9.3 or above. '9.2' is not supported.
at Error (native)
at XCUITestDriver.start$ (../../lib/driver.js:216:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 3338 ms - 199
^C[Appium] Received SIGINT - shutting down
HeminWon-Extranet:~ Hm$ appium --platform-name iOS --platform-version 10.0.1 --automation-name XCUITest --udid 059f479bdb378ac6daf95ae8e2091243259b1b73 --session-override
[Appium] Welcome to Appium v1.6.4
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] platformName: iOS
[Appium] platformVersion: 10.0.1
[Appium] automationName: XCUITest
[Appium] udid: 059f479bdb378ac6daf95ae8e2091243259b1b73
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium] --platform-version => --default-capabilities '{"platformVersion":"10.0.1"}'
[Appium] --automation-name => --default-capabilities '{"automationName":"XCUITest"}'
[Appium] -U,--udid => --default-capabilities '{"udid":"059f479bdb378ac6daf95ae8e2091243259b1b73"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] platformName: 'iOS'
[Appium] platformVersion: '10.0.1'
[Appium] automationName: 'XCUITest'
[Appium] udid: '059f479bdb378ac6daf95ae8e2091243259b1b73'
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/Hm/Desktop/appcrawler/EQHexinFee.ipa","appium":"http://127.0.0.1:4723/wd/hub","noReset":"false","autoLaunch":"true","platformVersion":"9.2","bundleId":"","autoWebview":"false","platformName":"iOS","udid":"059f479bdb378ac6daf95ae8e2091243259b1b73","deviceName":"iPhone 6","autoAcceptAlerts":"true"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/Hm/Desktop/appcrawler/EQHexinFee.ipa","appium":"http://127.0.0.1:4723/wd/hub","noReset":"false","autoLaunch":"true","platformVersion":"9.2","bundleId":"","autoWebview":"false","platformName":"iOS","udid":"059f479bdb378ac6daf95ae8e2091243259b1b73","deviceName":"iPhone 6","autoAcceptAlerts":"true"},null,null,null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1494325528616 (18:25:28 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: '/Users/Hm/Desktop/appcrawler/EQHexinFee.ipa'
[Appium] appium: 'http://127.0.0.1:4723/wd/hub'
[Appium] noReset: 'false'
[Appium] autoLaunch: 'true'
[Appium] platformVersion: '9.2'
[Appium] bundleId: ''
[Appium] autoWebview: 'false'
[Appium] platformName: 'iOS'
[Appium] udid: '059f479bdb378ac6daf95ae8e2091243259b1b73'
[Appium] deviceName: 'iPhone 6'
[Appium] autoAcceptAlerts: 'true'
[Appium] automationName: 'XCUITest'
[debug] [XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'autoAcceptAlerts' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium.
[XCUITest] The capabilities 'autoAcceptAlerts' and 'autoDismissAlerts' do not work for XCUITest-based tests. Please adjust your alert handling accordingly.
[BaseDriver] Session created with session id: 36a81816-9fb5-45f5-9fc7-ab9118471d38
[debug] [XCUITest] Xcode version set to '8.3.2' (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[XCUITest] Error: Platform version must be 9.3 or above. '9.2' is not supported.
at Error (native)
at XCUITestDriver.start$ (../../lib/driver.js:216:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Platform version must be 9.3 or above. '9.2' is not supported.
at Error (native)
at XCUITestDriver.start$ (../../lib/driver.js:216:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[MJSONWP] Encountered internal error running command: Error: Platform version must be 9.3 or above. '9.2' is not supported.
at Error (native)
at XCUITestDriver.start$ (../../lib/driver.js:216:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 2584 ms - 199
^C[Appium] Received SIGINT - shutting down
你好,请问你的问题解决啦么
xctest client proxy error with: Error: socket hang up 这个问题现在有解决么
'//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[3]/XCUIElementTypeOther[2]/XCUIElementTypeTable[1]/XCUIElementTypeCell[1]/XCUIElementTypeStaticText[1]')
请问一下这个里面的元素序号是如何获取到的呢
你好,xcode8 之后对于一些 ID 不确定的你们是如何做 UI 自动化的
谢谢 已下载
同问
Github 一直没下载成功,求个云盘链接
下载不下来,求个百度云下载链接
这个问题有解决么?是不是在启动方法里面加
恩恩 WebDriverAgent 还是没有安装成功
Xcode8 以上的版本不支持 Appium-1.5.3 版本
HeminWon-Extranet:WebDriverAgent Hm$ ./Scripts/bootstrap.sh
Fetching dependencies
*** Downloading peertalk.framework binary at "v1.0"
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
A shell task (/usr/bin/env unzip -qq -d /var/folders/65/k7c4ccfx30s6ns328bt6jbv00000gn/T/carthage-archive.cXcrLY /Users/Hm/Library/Caches/org.carthage.CarthageKit/binaries/RoutingHTTPServer/v1.0.1/1724992-RoutingHTTPServer.framework.zip) failed with exit code 9:
[/Users/Hm/Library/Caches/org.carthage.CarthageKit/binaries/RoutingHTTPServer/v1.0.1/1724992-RoutingHTTPServer.framework.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/Hm/Library/Caches/org.carthage.CarthageKit/binaries/RoutingHTTPServer/v1.0.1/1724992-RoutingHTTPServer.framework.zip or
/Users/Hm/Library/Caches/org.carthage.CarthageKit/binaries/RoutingHTTPServer/v1.0.1/1724992-RoutingHTTPServer.framework.zip.zip, and cannot find /Users/Hm/Library/Caches/org.carthage.CarthageKit/binaries/RoutingHTTPServer/v1.0.1/1724992-RoutingHTTPServer.framework.zip.ZIP, period.
运行脚本过程错误,
#4 楼 @xiaoyu_li xcode8.x 只支持 appium1.6.x 以上的工具。1.6 以下的 appium 需下载 xcode7.x 的 IDE
#18 楼 @y693055797 同求
工具本身就有的问题,不是你的原因
等解决方案
#1 楼 @codeskyblue 还没研究过那款工具
#2 楼 @sanlengjingvv 感谢,可是使用 fullReset 的时候由于缓存问题,卸载重装之后的 app 里面的数据并没有恢复到原有状态,这种问题该如何解决呢?
#1 楼 @chungeguo 有时候我也没切换能成功
后来怎么解决的