Last updated: Sep 22, 2019 17:50
- Create a configuration file (ConfigFile.json) as a JSON text file in a known folder (you will need the full path later).
Add the device selection parameters to the configuration file
If specifying a set of devices.
This example selects two devices - one that is a Samsung phone running Android 6.* or 7.* or 8.* (uses a regular expression), and one is randomly selected by the plugin.
If specifying a number of random Android devices
Add the application parameters - identifying where the application files are located.
Using the appPath and testAppPath fields - for Android applications
Note: When testing an Android (aar or jar) library, set both the apkPath and testApkPath fields to the location specified for the assembleAndroidTest gradle task. By default, this location is: <project folder>/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apkYou can supply additional parameters if you need to limit the test application to only execute specific methods or classes.
Save the configuration file that should look something like the following:
You can see a full list of configuration parameters here.