Guides

  • Configures given application with provided launch options and variables. TestLauncher is a wrapper around XCUIApplication.launchArguments and XCUIApplication.launchEnvironment. By using abstract type, LaunchOption, it is possible to pass parameters to the testing application.

    AutoMate provides set of options which can set system locale, language, keyboard languages, or advanced options like CoreData SQL debug verbosity level.

    Example:

    let app = XCUIApplication()
    TestLauncher(options: [
        SystemLanguages([.English, .German]),
        SystemLocale(language: .English, country: .Canada),
        SoftwareKeyboards([.EnglishCanada, .GermanGermany])
    ]).configure(app).launch()
    
    See more

    Declaration

    Swift

    public struct TestLauncher