NativeAutomatorConfig class
Configuration for NativeAutomator
.
Constructors
- NativeAutomatorConfig({String host = const String.fromEnvironment('PATROL_HOST', defaultValue: 'localhost'), String port = const String.fromEnvironment('PATROL_TEST_SERVER_PORT', defaultValue: '8081'), String packageName = const String.fromEnvironment('PATROL_APP_PACKAGE_NAME'), String iosInstalledApps = const String.fromEnvironment('PATROL_IOS_INSTALLED_APPS'), String bundleId = const String.fromEnvironment('PATROL_APP_BUNDLE_ID'), String androidAppName = const String.fromEnvironment('PATROL_ANDROID_APP_NAME'), String iosAppName = const String.fromEnvironment('PATROL_IOS_APP_NAME'), Duration connectionTimeout = const Duration(seconds: 60), Duration findTimeout = const Duration(seconds: 10), KeyboardBehavior keyboardBehavior = KeyboardBehavior.showAndDismiss, void logger(String) = _defaultPrintLogger})
-
Creates a new NativeAutomatorConfig.
const
Properties
- androidAppName → String
-
Name of the application under test on Android.
final
- appName → String
-
Name of the application under test.
no setter
- bundleId → String
-
Bundle identifier name of the application under test.
final
- connectionTimeout → Duration
-
Time after which the connection with the native automator will fail.
final
- findTimeout → Duration
-
Time to wait for native views to appear.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
Host on which Patrol server instrumentation is running.
final
- iosAppName → String
-
Name of the application under test on iOS.
final
- iosInstalledApps → String
-
Apps installed on the iOS simulator.
final
- keyboardBehavior → KeyboardBehavior
-
How the keyboard should behave when entering text.
final
- logger → void Function(String)
-
Called when a native action is performed.
final
- packageName → String
-
Package name of the application under test.
final
- port → String
-
Port on host on which Patrol server instrumentation is running.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? host, String? port, String? packageName, String? bundleId, String? androidAppName, String? iosAppName, Duration? connectionTimeout, Duration? findTimeout, KeyboardBehavior? keyboardBehavior, void logger(String)?}) → NativeAutomatorConfig - Creates a copy of this config but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited