Guides
-
Configures given application with provided launch options and variables.
TestLauncher
is a wrapper aroundXCUIApplication.launchArguments
andXCUIApplication.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:
See morelet app = XCUIApplication() TestLauncher(options: [ SystemLanguages([.English, .German]), SystemLocale(language: .English, country: .Canada), SoftwareKeyboards([.EnglishCanada, .GermanGermany]) ]).configure(app).launch()
Declaration
Swift
public struct TestLauncher