EarlGrey icon indicating copy to clipboard operation
EarlGrey copied to clipboard

caught "EarlGreyInternalTestInterruptException", "Immediately halt execution of testcase"

Open MustangYM opened this issue 4 years ago • 4 comments

when i perform a button tap, caught this error. please help me

MustangYM avatar Jul 31 '19 09:07 MustangYM

@MustangYM

when i perform a button tap, caught this error. please help me

Can you provide more context? Maybe some code?

OlivierMrz avatar Sep 04 '19 11:09 OlivierMrz

Hello @OlivierMrz, we are seeing the same issue reported here. Our environment is: -Xcode 11, iOS 13. -EarlyGrey 1.15.0. (Also tried with 2.0.0)

Our app is launched in the simulator, but it is not correctly loaded, it does not fit the full screen. Screenshot 2019-09-26 at 10 10 49

The grey line at the top should not be there, and we are missing text at the bottom, it is like the screen is scrolled down. But I honestly don't know if that has something to do with the error.

The test hangs there for a couple of minutes and then we see the error. We are experiencing that only with UI tests, for XCUITests (we don't use EarlGrey) everything works fine with that environment. Let me share some logs in case that is helpful: EarlGrey xcode 11 iOS 13.docx

Please let me know if you would need more info. Thank you in advance!

isabelrios avatar Sep 26 '19 08:09 isabelrios

Please forget about previous comment, we figured out the problem and now, updating to latest EarlGrey, our tests will work again. Thanks and sorry

isabelrios avatar Oct 02 '19 11:10 isabelrios

If that can help others, I was having the same issue on GitHub Actions, and I was using the latest version.

I found a hack by tapping a button with XCTests at the beginning of the test, prior to starting using EarlGrey.

let loginButton = application.buttons["LoginButton"]
loginButton.tap()

EarlGrey.selectElement(with: grey_accessibilityID("LoginButton"))
    .assert(grey_sufficientlyVisible())
    .perform(grey_tap())

stremsdoerfer avatar Mar 01 '22 18:03 stremsdoerfer