Running XCUITest Tests

The XCUITest testing framework is the default framework promoted by Apple for testing iOS applications. Typically, the XCUITest framework is used for functional testing, automating testing of common workflow, demo sequences or behavior of customer views.

To try out the framework, one can try to use XCUITest Recorder for recording the first steps of the automated test. To find elements, their properties, and navigating through the elements of the tree of the application, one can also make use of the interface builder.

The mobile application IPA needs to be created as described in creating iOS Application Package. Once the IPA file is created, the XCUITest Runner application should be located in the same folder as the application itself. Right-click the .app file and click Show in Finder.

XCUITest project

This folder contains a file ending with “”.

XCUITest: finding an app

For example, if the UI test target name is LocalizationDemoUITests, the app folder should contain the file.

Next, this file is compressed into a zip package. Right-click the file ending with “” and select Compress <>. This creates a .zip file that can be upload to BitBar Testing Cloud as the test package of the BitBar Testing XCUITest test project.

XCUITest: compress an app

For an example Xcode project with XCTest and XCUITest cases, please check our online samples.

See Also

Publication date: