Hello,
I'm doing some UI testing where it find the textfield and types letters to simulate user typing as follows:
app.keys["\(letter)"].tap()
I time this operation like:
let start = NSDate()
app.keys["\(letter)"].tap()
let end = NSDate()
The difference is examined to see how long it takes. The reason is that I'm investigating a problem where the keyboard seems to get stuck for users some times on the app. When XCTest detects a situation where the end - start > threshold (4 seconds), it prints this:
t = 3610.18s Wait for com.xxxx to idle
t = 3610.24s Find the "A" Key
t = 3614.35s Check for interrupting elements affecting "A" Key
t = 3614.35s Synthesize event
t = 3614.55s Wait for com.xxxx to idle
Time difference is 4.660948038101196 sec
What this shows is that the find key "A" is executed and then 4 seconds later it does 'Check for interrupting elements affecting "A" key'. I'm trying to understand if the event 'Check for interrupting...' 4 seconds later signifies if XCTest was late or if that occurred due to the app not being responsive. Can someone help explain these events?
Thanks