AppiumBooster
在每次执行测试前,会先删除已存在的模拟器,然后再用指定的模拟器配置创建新的模拟器。
对于iOS模拟器,AppiumBooster
通过调用xcrun simctl
命令的方式来对模拟器进行操作,基本原理如下所示。
1
2
3
4
|
# delete iOS simulator: xcrun simctl delete device_id
$ xcrun simctl delete F2F53866-50A5-4E0F-B164-5AC1702AD1BD
# create iOS simulator: xcrun simctl create device_type device_type_id runtime_id
$ xcrun simctl create 'iPhone 5' 'com.apple.CoreSimulator.SimDeviceType.iPhone-5' 'com.apple.CoreSimulator.SimRuntime.iOS-9-3'
|
原文转自:http://debugtalk.com/post/build-ideal-app-automation-test-framework/