UI Test for Specific Device Type

Hi,


I would like to run a test for a specific device type, in particular, an iPhone 4, running X version of iOS.


Is it possible to set this as a launch argument/environment?


I've got a feeling that I would need to just set up a bot and run the test on all devices and all OS versions.

However, I would expect to get failures for all other devices except the iPhone 4, which would mean I would have to put an ifdef around my tests.


Any ideas?


Thanks


Chris

This Stackoverflow post suggests I can create an additional scheme and run tests for that scheme/device only, but it seems like more hassle than it needs to be: http://stackoverflow.com/questions/19594418/target-individual-xctest-unit-test-cases-in-xcode-5-to-a-specific-ios-device-for

UI Test for Specific Device Type
 
 
Q