IsInUITestLaunchEnvironment
public struct IsInUITestLaunchEnvironment : LaunchEnvironmentWithSingleValue, AutoMateLaunchEnvironment
Launch environment informing application that is running in UI test.
Example:
let isInUITest = IsInUITestLaunchEnvironment()
-
Defines associated type from
LaunchEnvironmentProtocol
to beBooleanLaunchEnvironmentValue
.Declaration
Swift
public typealias Value = BooleanLaunchEnvironmentValue
-
Defines
LaunchEnvironmentResourceValue
asAutoMateKey.animation
.Declaration
Swift
public static let key: AutoMateKey
-
Value from which is used as launch enviroment value.
Declaration
Swift
public var value: Value
-
Initialize launch option. By default inform application that it is running in UI test (
true
).Declaration
Swift
public init(inUITest: Value = true)
Parameters
running
true
(default) if the application should know if it is running in UI test.