AppUITestCase
open class AppUITestCase : XCTestCase
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 toXCUIApplication
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.
-
Stores
XCUIApplication
for the duration of the test.Declaration
Swift
open var app: XCUIApplication!
-
Setup method called before the invocation of each test method in the class.
Declaration
Swift
override open func setUp()
-
Teardown method called after the invocation of each test method in the class.
Declaration
Swift
override open func tearDown()