Programmatically control the Network Link Conditioner from UIAutomation
| Originator: | david.anderson | ||
| Number: | rdar://14303793 | Date Originated: | 28-Jun-2013 10:32 AM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 6.1 |
| Classification: | Enhancement | Reproducible: |
Summary: When driving an app via UIAutomation it would be incredibly useful to be able to specify the Network Link Conditioner setting for the simulator and the device via UIAutomation. This would allow the UIAutomation framework to be used to create network-condition-specific tests, allowing validation of the app in *controllable* network conditions. Steps to Reproduce: No steps. Network link conditioner settings are available only on the device and only via the Settings app. UIAutomation does not have access to the network link conditioner settings. Expected Results: UIATarget should have access to the network link conditioner settings for the device *and* the simulator, including the ability to enter airplane mode, turn off wifi, and vary the performance of the app via the normal network link conditioner. Actual Results: Currently the simulator can only simulate no network by disconnecting the host computer from the network. The iOS device must be manually entered into a specific network condition by hand, and it is not possible to mix UIAutomation testing with varying (per-test) network conditions. Regression: Notes: This ability would increase the usefulness of UIAutomation to test real-world conditions, simply the testing process for developers, and increase the quality of apps that have to deal with varying network conditions.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!