Preparing for automated testing
As part of your automated testing, you must activate a new installation of your
BlackBerry
Dynamics
Xamarin app. This requires a user identifier (typically an email address), an access key, and a password. Common.UITests can read activation credentials from a file stored in the Resources folder of the Common.UITests project. For instructions for configuring the properties in the file, see Execute an automated test for an Android Xamarin app or Execute an automated test for an iOS Xamarin app.Please note the following:
- Automated testing works in Enterprise Simulation mode, but has the same restrictions (for example, the app cannot connect to any back-end servers).
- EveryBlackBerry DynamicsXamarin app needs to be initialized to complete activation. The ProvisionApp method has been provided to initialize the app.
- Currently, simple authentication is not supported for the automated tests.
- For the automated tests you must use a test device or simulator that does not already have aBlackBerry Dynamicsapp installed and provisioned. Enterprise Simulation mode does not have this restriction.
- There is currently a known issue withiOSsimulators where automated tests can fail because the keyboard occasionally disappears.