Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UI Tests no longer working on Xcode 7.3

I have a set of XCUITests that run with our iOS app. They used to run fine on Xcode 7.2.1, but upgrading to 7.3 causes tests to fail in the "Set Up -> Wait for app to idle" phase with the following error:

UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f82450288c0 [appName here] (25670)>, error: Error -25204 performing AXAction 2043

This failure is seen on every single UI test, both on bots and when running locally.

Has anyone else seen this or have any workarounds?

like image 531
Lindsay Landry Avatar asked Mar 25 '16 19:03

Lindsay Landry


People also ask

How do I test UI in Xcode?

How to Run XCUI Tests on XCode. To run the XCUITests on XCode, you can click the highlighted icon below to see your newly created UI Test targets. You can hover on the “testExample()” test case and click the “Play” icon to run that specific test to see if everything was set up properly.

How do I test my iOS UI?

When you're ready to test, go to a test class and place the cursor inside the test method to record the interaction. From the debug bar, click the Record UI Test button. Xcode will launch the app and run it. You can interact with the element on-screen and perform a sequence of interactions for any UI test.


1 Answers

In case anyone still has this issue - for me it was activating the Optimizely framework that caused this error. Disabling the framework when running XCUITest solved it for me.

like image 142
Florian Schulz Avatar answered Oct 10 '22 05:10

Florian Schulz