The possible states an application can be in during UI testing.


Enumeration Cases

case unknown

The application's current state is not known.

case notRunning

The application is not running.

case runningBackgroundSuspended

The application is running in the background, but is suspended.

case runningBackground

The application is running in the background.

case runningForeground

The application is running in the foreground.

See Also

Determining Application State

var state: XCUIApplication.State

The most recently observed state of the application.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software