XCTest typeText function is extremely slow in iOS 15 beta 8

typeText function is slow by as much as 5 times in iOS 15 release

https://developer.apple.com/documentation/xctest/xcuielement/1500968-typetext

func testType() {
    safariApp.textFields.containing(NSPredicate(format: "label CONTAINS[c] 'Address'")).firstMatch.tap()
    self.measure {
      safariApp.textFields.containing(NSPredicate(format: "label CONTAINS[c] 'Address'")).firstMatch.typeText("Hello World from Test App ")
    }
    //print(safariApp.debugDescription)
  }

I have the same issue and have not found a way to speed it up.

Not just beta - this went straight into the final release. This affects the parallel tests even more as the typeText uses 300% CPU alone for only 1 simulator, which make it almost impossible to run tests on more than 2 simulators in parallel.

typeText(…) function is slow by as much as 5 times in iOS 15 release

Has anyone filed a bug about this? If so, please post your bug number.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I've posted this as developer feedback in FB9756931 (XCTest typeText() function is 5x slower in Xcode 13 / 13.1).

I've posted this as developer feedback in FB9756931

Thanks for that.

Your bug is marked as a dup of another bug that we think we believe we have fixed. Do you still see this problem with the current iOS 15.2b2 seed (19C5036e)?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I’m glad to hear that our patch has stuck.

As to when 13.2 will be released, I’m unable to predict the future, alas.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

XCTest typeText function is extremely slow in iOS 15 beta 8
 
 
Q