SwiftMonkey icon indicating copy to clipboard operation
SwiftMonkey copied to clipboard

Add randomised testing using public XCTest APIs instead of private ones

Open DagAgren opened this issue 9 years ago • 3 comments

Find clickable view and click them directly instead of clicking random locations, to compensate for the slow event generation.

DagAgren avatar Nov 22 '16 10:11 DagAgren

This would be a great idea!!! But I was trying to see if we can do hit test on the CGPoints via UIkit hit test function for every CGPoint we try to hit on to limit actual tap operation to the only hittable point.

https://developer.apple.com/documentation/uikit/uiview/1622469-hittest

In event parameter can be specified nil. But the problem I was getting into was no reference to the hit test method. Since there is no reference to window or UIApplication.shared.window.

singh88 avatar Aug 25 '17 06:08 singh88

The problem is, the tests actually run in a completely different process than the app itself. They communicate through private IPC. You can not access anything at all from the app being tested other than what is exposed through the testing APIs, public or private.

DagAgren avatar Aug 25 '17 07:08 DagAgren

@DagAgren #81

a455455b avatar Oct 03 '19 01:10 a455455b