iOS Testing Questions
- 10 years ago
Got answers from support if anyone was curious.
- Can you get the memory being used by the iOS application being tested? I couldn't find a method or property that would return the memory being used by the iOS process we are testing.
No, so I entered a feature request http://community.smartbear.com/t5/TestComplete-Feature-Requests/We-want-to-be-able-to-track-iOS-App-memory-use/idi-p/96217
2. Can you get the iPad's resolution? We are using Mobile.Device.Desktop.Width and Mobile.Device.Desktop.Height but we are always getting 1024x768 no matter what iPad we are using. We have tested with an iPad Air for example that clearly has a much higher resolution and we'd like to be able to record that in code.
"This behavior is expected. For retina displays, TestComplete returns the size of the screen in points, not pixels. Retina displays have 4-time more pixels that non-retina ones of the same size (2048*1536 = 1024*768*4). But, from the programming point of view, this changes nothing since, programmatically, four retina pixels are just referred to as one point."
3. Is there a way to kill the iOS process being tested, something equivalent to .Terminate() which TestComplete has available for Windows processes?
"No, there is no such method in TestComplete for the iOS applications. You can only reinstall your iOS application every time you're starting testing."