通过了。
PS:package name 和 app-activity 的获取方法你可以看看 appium 的实现。当你没给这两个参数时,它会通过解析 apk 文件自动获取这两个参数。
分享是好的。但麻烦使用 markdown 。
不会用的话可以看 排版说明 。好文章应该配上好的排版~
#5 楼 @wyb199026 其实那是个输入框,你可以把 9.3 输进去的。
正文不要出现公众号的二维码吧
Appium 客户端的 Inspector 最高只支持 8.4 的版本
这个不对吧,能支持 9.2 啊。我觉得是你启动参数里要求要用 8.4,而你机器上没有,所以报错。
你把你 iOS 启动的参数贴上来看看?
#14 楼 @wenshi11019 你是说获取屏幕截图?可以啊。inspector 就是这么获取到屏幕截图的啊。
#10 楼 @chenhengjie123 填坑方法:
# 分步走 bootstrap.sh 里面的步骤
$ carthage checkout
*** Checking out KissXML at "5.0.3"
*** Downloading ocmock.framework binary at "OCMock 3.2.2"
*** Checking out peertalk at "5a0495a7b7d81b68e25ea1933c755b677cb040da"
*** Checking out ocmock at "v3.2.2"
*** Checking out RoutingHTTPServer at "v1.0.0"
# 这步从原来的 carthage build ocmock --platform iOS 改为 carthage build --platform iOS
$ carthage build --platform iOS
*** xcodebuild output can be found in /var/folders/k4/f6dh0_b90yj3y3rws3mt7gxr0000gn/T/carthage-xcodebuild.6HnolN.log
*** Skipped building KissXML due to the error:
Dependency "KissXML" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/robbiehanson/KissXML/issues/new
*** Skipped building RoutingHTTPServer due to the error:
Dependency "RoutingHTTPServer" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/mattstevens/RoutingHTTPServer/issues/new
*** Building scheme "OCMock iOS" in OCMock.xcodeproj
*** Skipped building peertalk due to the error:
Dependency "peertalk" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/rsms/peertalk/issues/new
2016-05-16 14:57:40.978 xcodebuild[20598:270057] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XActivatePowerMode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-05-16 14:57:42.707 xcodebuild[20636:270151] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XActivatePowerMode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
# 继续用原有脚本 build inspector
$ ./Scripts/bootstrap.sh -i
Building Inspector
Creating bundle directory...
Building inspector.js...
> web-driver-inspector@1.0.0 build /Users/hengjiechj/Personal/WebDriverAgent/Inspector
> webpack --progress --colors
Hash: 842186d690872be37d64
Version: webpack 1.12.2
Time: 2573ms
Asset Size Chunks Chunk Names
inspector.js 706 kB 0 [emitted] main
[0] multi main 28 bytes {0} [built]
+ 182 hidden modules
Done
另外,分别找了台 iOS 7 和 iOS 9.3 的真机鉴定。基本结论如下:
感觉有点像 Android 的 UIAutomator 。
我踩坑了。。。
$ ./Scripts/bootstrap.sh
Fetching dependencies
*** Checking out KissXML at "5.0.3"
*** Checking out peertalk at "5a0495a7b7d81b68e25ea1933c755b677cb040da"
*** Downloading ocmock.framework binary at "OCMock 3.2.2"
*** Checking out ocmock at "v3.2.2"
*** Checking out RoutingHTTPServer at "v1.0.0"
*** xcodebuild output can be found in /var/folders/k4/f6dh0_b90yj3y3rws3mt7gxr0000gn/T/carthage-xcodebuild.b0AqO1.log
Failed to read file or folder at /Users/hengjiechj/Personal/WebDriverAgent/ocmock/Cartfile: Error Domain=NSCocoaErrorDomain Code=260 "The file “Cartfile” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/hengjiechj/Personal/WebDriverAgent/ocmock/Cartfile, NSUnderlyingError=0x7f8c51e119a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
正在找解决方法。。。
赞~ 授人以鱼不如授人以渔啊~
请使用 markdown 。
太简洁了,有些点没想明白。能简单说一下你的 input 是怎么封装来保证 username 和 password 分别是输入到对应的输入框空间不?
另外,里面是怎么做断言的?
以前的方案现在用不了了?
没看懂这句:在 iOS7 之后,加入了 UITest。
能不能用下 markdown ?现在的分段很不明显。
另外,能否给大一点的图?图太小了,很多信息看不清。
帮转一个公众号文章上的留言:
这个工具性能怎么样?如果要支持百万级的下单接口,需要多少负载机啊?
没有二次开发的话功能比较少。
我一开始也有试过,后面还是转 gatling 了。
不错~
@anikikun 你上榜了
你获取下元素的 isVisible 属性看看?
可以的话找开发问下这个搜索框具体由什么控件组成,具体是怎么实现的。感觉你这个应该不是单纯的标准控件。