Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Add randomised testing using public XCTest APIs instead of private ones #2

Open
DagAgren opened this issue Nov 22, 2016 · 3 comments
Open
Assignees

Comments

@DagAgren
Copy link
Collaborator

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

@DagAgren DagAgren self-assigned this Nov 22, 2016
@singh88
Copy link

singh88 commented Aug 25, 2017

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.

@DagAgren
Copy link
Collaborator Author

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.

@a455455b
Copy link
Contributor

a455455b commented Oct 3, 2019

@DagAgren #81

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants