新手区 Appium 做 iOS 自动化测试框架是否需要 iOS 程序的源代码?

王超 · May 19, 2015 · Last by 王超 replied at May 25, 2015 · 1380 hits

大家好:
我刚刚接触 iOS 产品的自动化测试工作,目前处于学习阶段,有几个问题希望大家能够给与解答:
1、iOS 自动化测试是否必须要有 app 的源代码?
2、我在终端通过:appium -U xxxxxxxxxxxxxxxx --app com.when.coco,的命令,启动 appium 服务后,脚本中还需要再指明测试设备的型号和 iOS 版本吗?

共收到 2 条回复 时间 点赞

1、iOS 自动化测试是否必须要有 app 的源代码?

可以不需要源码,但必须有使用 development 证书打包的 ipa/app 文件以及你的机器安装有对应的开发者证书。简单地说,即使没有源码,你也需要有完整的、拿到源码也能直接做打包的开发环境。

2、我在终端通过:appium -U xxxxxxxxxxxxxxxx --app com.when.coco,的命令,启动 appium 服务后,脚本中还需要再指明测试设备的型号和 iOS 版本吗?

需要。关于 appium 的配置参数详情请看 https://github.com/appium/appium/blob/master/docs/cn/writing-running-appium/caps.cn.mdhttps://github.com/appium/appium/blob/master/docs/cn/writing-running-appium/server-args.cn.md

建议你通过 官方文档官方示例代码(官方示例代码由于比较长时间没有更新,不一定都能跑通,以文档为准。)来入门。

王超 #2 · May 25, 2015 Author

谢谢

3Floor has deleted
4Floor has deleted
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up