positron
Class RunTests
java.lang.Object
positron.RunTests
public class RunTests
- extends Object
Call acceptance tests from the host OS.
Usage: java positron.RunTests my.android.app [.Positron] [/path/to/android_sdk]
The quick version: adb shell "/system/bin/am instrument -w my.android.app/.Positron"
RunTests allows users to run their tests from a script or directly from
eclipse as a 'Java Application' target. It expects one to three parameters.
The first is the tested package (the same as the targetPackage attribute you
declared the Positron instrumentation with.) It is mandatory.
The second parameter is optional and names the instrumentation to run. It
corrosponds to the class attribute on the instrumentation tag. The default
is ".Positron". If you named your positron subclass differently, supply
that name here. Do no forget the leading period.
The third parameter is optional and declares where to find the android sdk
installation. It should be the absolute path to the parent of the standard
'tools' directory. If omitted, the value is taken from the ANDROID_HOME
environment variable, which is then mandatory.
- Author:
- philhsmith
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunTests
public RunTests()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException