XCTest

  • XCTestCase subclass which creates and store XCUIApplication object for duration of the test.

    Example:

    class AdditionalExtensionsTests: AppUITestCase {
        override func setUp() {
            super.setUp()
            TestLauncher.configure(app).launch()
        }
    }
    

    Remark

    Every call to XCUIApplication creates new instance of this object. This is why the XCUIApplication object is created at the beginning of the test and stored in the app variable.
    See more

    Declaration

    Swift

    open class AppUITestCase : XCTestCase