Android integration

  • For Android projects a Run on Android checkbox under the field Class name is displayed on class details page.
  • Test methods for the class which does not run on Android are executed locally as usual.
  • Test methods of the class which runs on Android are executed remotely on device or emulator.
  • Local and Android classes and methods are implemented in a different way.
  • When a class is not implemented user can check or uncheck the checkbox.
  • If class is implemented, user should not change Run on Android checkbox. A dialog box with warning is displayed.
  • Implemented Android class extends EcFeedTest.
  • Testing methods can have any number of parameters. Also methods without parameters are allowed. Allowed parameter types for Android methods are the same as for local ones.
  • Two packages should be generated together with Android class: application_prefix.ecfeed.android and application_prefix.ecfeed.android.tools .
  • Application prefix should be the same as in AndroidManifest.xml file (in the field: Package)
  • Together with class generation an instrumentation test runner: application_prefix.ecfeed.android.EcFeedTestRunner is added to Instrumentation section of AndroidManifest.xml file
  • When there are no devices, the test execution does not start. An error message dialog is displayed.
  • Also when there are more than one connected devices or emulators, the test execution does not start.
  • Before executing the test suite, both applications, if modified, are loaded to the device.