So I have an App that has a UITest trying to break it by rapidly pressing the same button over and over again (it's a known issue in our app that we're trying to fix). Of course this crash leads to a Thread 1: EXC_BAD_ACCESS (code=2, address=0x7b0400013af0) and stalls the rest of our UI tests. I was wondering if I could use Execution Time Allowance to have testing continue after the EXC_BAD_ACCESS. I was under the impression from the #WWDC2020 video that it could. Also does this feature only work with Test Plans?
(here is the WWDC2020 video I watched about time allowance)
Also here is my test:
(here is the WWDC2020 video I watched about time allowance)
Also here is my test:
Code Block func testKeyboardDelete() { executionTimeAllowance = 30 let app = XCUIApplication() let notes = app.buttons["notesIcon"] notes.waitForExistence(timeout: 1) notes.tap() app.buttons["New Note"].tap() let typeNoteHereTextView = app.textViews.containing(.staticText, identifier:"Type note here...").element typeNoteHereTextView.waitForExistence(timeout: 1) typeNoteHereTextView.tap() let staticText = app/*@START_MENU_TOKEN@*/.staticTexts["⌫"]/*[[".keys[\"Delete\"].staticTexts[\"⌫\"]",".staticTexts[\"⌫\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/ for i in 0..<100{ print(i) staticText.tap() } }