Class AndroidAppManagerOptions
Defines a specific AppiumManagerOptions for an Android application.
Inherited Members
Namespace: Legerity.Android
Assembly: Legerity.Core.dll
Syntax
public class AndroidAppManagerOptions : AppiumManagerOptions
Constructors
| Improve this Doc View SourceAndroidAppManagerOptions()
Initializes a new instance of the AndroidAppManagerOptions class.
Declaration
public AndroidAppManagerOptions()
AndroidAppManagerOptions(String)
Initializes a new instance of the AndroidAppManagerOptions class.
Declaration
public AndroidAppManagerOptions(string appPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | appPath | The path of the application under test, e.g. c:/users/legerity/source/myapp/com.instagram.android.apk. |
AndroidAppManagerOptions(String, String)
Initializes a new instance of the AndroidAppManagerOptions class.
Declaration
public AndroidAppManagerOptions(string appId, string appActivity)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | The ID of the application under test, e.g. com.instagram.android. |
System.String | appActivity | The activity of the application to start, e.g. com.instagram.android.activity.MainTabActivity. |
AndroidAppManagerOptions(String, String, String, String, String, String, (String, Object)[])
Initializes a new instance of the AndroidAppManagerOptions class.
Declaration
public AndroidAppManagerOptions(string appId, string appActivity, string appPath, string osVersion, string deviceName, string deviceId, params (string, object)[] additionalOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | The ID of the application under test, e.g. com.instagram.android. |
System.String | appActivity | The activity of the application to start, e.g. com.instagram.android.activity.MainTabActivity. |
System.String | appPath | The path of the application under test, e.g. c:/users/legerity/source/myapp/com.instagram.android.apk. |
System.String | osVersion | The version of Android to run the application on. |
System.String | deviceName | The name of the Android device to run the application on. |
System.String | deviceId | The ID of the Android device to run the application on. |
System.ValueTuple<System.String, System.Object>[] | additionalOptions | The additional options to apply to the |
AndroidAppManagerOptions(String, String, (String, Object)[])
Initializes a new instance of the AndroidAppManagerOptions class.
Declaration
public AndroidAppManagerOptions(string appId, string appActivity, params (string, object)[] additionalOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | The ID of the application under test, e.g. com.instagram.android. |
System.String | appActivity | The activity of the application to start, e.g. com.instagram.android.activity.MainTabActivity. |
System.ValueTuple<System.String, System.Object>[] | additionalOptions | The additional options to apply to the |
AndroidAppManagerOptions(String, (String, Object)[])
Initializes a new instance of the AndroidAppManagerOptions class.
Declaration
public AndroidAppManagerOptions(string appPath, params (string, object)[] additionalOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | appPath | The path of the application under test, e.g. c:/users/legerity/source/myapp/com.instagram.android.apk. |
System.ValueTuple<System.String, System.Object>[] | additionalOptions | The additional options to apply to the |
Properties
| Improve this Doc View SourceAppActivity
Gets or sets the activity of the application to start, e.g. com.instagram.android.activity.MainTabActivity.
Declaration
public string AppActivity { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AppId
Gets or sets the ID of the application under test.
Declaration
public string AppId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AppPath
Gets or sets the path of the application under test, e.g. c:/users/legerity/source/myapp/com.instagram.android.apk.
Declaration
public string AppPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DeviceId
Gets or sets the ID of the Android device to run the application on.
Declaration
public string DeviceId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DeviceName
Gets or sets the name of the Android device to run the application on.
Declaration
public string DeviceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LaunchAppiumServer
Gets or sets a value indicating whether to launch the Appium server instance.
Declaration
public bool LaunchAppiumServer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OSVersion
Gets or sets the version of Android to run the application on.
Declaration
public string OSVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceConfigure()
Configures the AppiumOptions with the specified additional options.
Declaration
public override void Configure()
Overrides
| Improve this Doc View SourceConfigure((String, Object)[])
Configures the
Declaration
public void Configure((string, object)[] additionalOptions)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.String, System.Object>[] | additionalOptions | The additional options to apply to the |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |