TestRunContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to provide information required to run a test suite
public class TestRunContext
type TestRunContext = class
Public Class TestRunContext
- Inheritance
-
TestRunContext
Constructors
TestRunContext() |
Initializes a new instance of the TestRunContext class. |
Properties
AndroidKeyAlias |
Key store alias. Only for Android. |
AndroidKeyPassword |
The key password. Only for Android. |
AndroidKeystoreLocation |
Location of the Android keystore. If not set, UITest will use the default global keystore. Only for Android. |
AndroidKeystorePassword |
Key store password. Only for Android. |
AppId |
The app package name (Android), or the bundle id (iOS) |
DeviceId |
The serial of the device to use for testing |
ErrorMessage |
Message that explains why the test suite can't be executed (when CanExecute == False) |
PackageFile |
Package to be installed. It overrides the ApkFile or AppBundle option. To be used only if TestAppDeployed==false. |
Success |
When set to False it means that the application preparation failed for some reason. The reason is provided in the ErrorMessage property. |
TestAppDeployed |
When set to True it means that the test application is already deployed and UITest doesn't have to do it ErrorMessage property. |
Methods
CreateError(String) |
TestRunContext factory method. |