Skip to content

Configuration

Mille Boström edited this page Jun 26, 2017 · 4 revisions

When you create a device you also provide a configuration. Here are the possible vales that you can change:

/// <summary>
/// Gets or sets the path to adb.exe
/// </summary>
public string AdbPath { get; set; }

/// <summary>
/// Gets or sets the serial of device under test.
/// </summary>
public string Serial { get; set; }

/// <summary>
/// Gets or sets a value indicating whether we should push and install
/// all required dependencies.
/// </summary>
public DependencyHandling Dependencies { get; set; }

/// <summary>
/// Gets or sets the directory to all dependencies (uiautomator stub, helper apk, etc)
/// </summary>
public string DependenciesDirectory { get; set; }

/// <summary>
/// Gets or sets the local port to the device
/// </summary>
public int Port { get; set; }

/// <summary>
/// Gets or sets how many times we should try to dump the UI before 
/// sending exception.
/// </summary>
public int DumpTries { get; set; }

Default values

  • AdbPath - Empty, we assume you have adb in your environment variables
  • Serial - Empty, we assume you only have one device connected to the computer.
  • Dependencies - Install if missing
  • DependenciesDirectory - Your bin/Dependencies directory
  • Port - 9008
  • DumpTries - 3

Server APK

Testura requires two APKs for dumping and changing settings. Testura will install all automatically if you leave ShouldInstallDependencies as true. But it is also possible to install them manually.

First download all from https://github.com/Testura/Testura.Android/tree/master/src/Testura.Android/Dependencies, then install them like this:

$ adb install "local/path/to/Testura.Android.Server.apk"
$ adb install "local/path/to/Testura.Android.Server-UiAutomator.apk"

Clone this wiki locally