diff options
Diffstat (limited to 'docs/html/tools/help/uiautomator/index.jd')
| -rw-r--r-- | docs/html/tools/help/uiautomator/index.jd | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/docs/html/tools/help/uiautomator/index.jd b/docs/html/tools/help/uiautomator/index.jd index e3899d6..4b3c255 100644 --- a/docs/html/tools/help/uiautomator/index.jd +++ b/docs/html/tools/help/uiautomator/index.jd @@ -26,7 +26,7 @@ parent.link=index.html <h2 id="syntax">Syntax</h2> <p>To run your testcases on the target device, you can use the {@code adb shell} command to invoke the {@code uiautomator} tool. The syntax is: <pre> -adb shell uiautomator runtest <jar> -c <test_class_or_method> [options] +adb shell uiautomator runtest <JARS> -c <CLASSES> [options] </pre> </p> <p>Here’s an example:</p> @@ -45,19 +45,26 @@ adb shell uiautomator runtest <jar> -c <test_class_or_method> [optio </tr> <tr> -<td rowspan="6"><code>runtest</code></td> -<td><nobr>{@code <jar>}</nobr></td> -<td><strong>Required</strong>. The {@code <jar>} argument is the name of one or more JAR files that you deployed to the target device which contain your uiautomator testcases. You can list more than one JAR file by using a space as a separator.</td> +<td rowspan="7"><code>runtest</code></td> +<td><nobr>{@code <JARS>}</nobr></td> +<td><strong>Required</strong>. The {@code <JARS>} argument is the name of one or more JAR files that you deployed to the target device which contain your uiautomator testcases. You can list more than one JAR file by using a space as a separator.</td> </tr> <tr> -<td><nobr><code>-c <test_class_or_method> </code></nobr></td> -<td><strong>Required</strong>. The {@code <test_class_or_method>} argument is a list of one or more specific test classes or test methods from the JARs that you want {@code uiautomator} to run. <p>Each class or method must be fully qualified with the package name, in one of these formats: +<td><nobr><code>-c <CLASSES> </code></nobr></td> +<td><strong>Required (API 17 or lower)</strong>.The {@code <CLASSES>} +argument is a list of test classes or test methods in {@code <JARS>} to run. +<p>Each class or method must be fully +qualified with the package name, in one of these formats: <ul> <li>{@code package_name.class_name}</li> <li>{@code package_name.class_name#method_name}</li> </ul> -You can list multiple classes or methods by using a space as a separator.</p></td> +You can list multiple classes or methods by using a space as a separator.</p> +<p class="note"><strong>Note:</strong>This argument is not required for API 18 +and higher. If not specified, all test cases in {@code <JARS>} will be run. +</p> +</td> </tr> <tr> @@ -76,12 +83,16 @@ You can list multiple classes or methods by using a space as a separator.</p></t </tr> <tr> -<td><code>dump</code></td> -<td><code>[file]</code></td> +<td><code>dump [file]</code></td> <td>Generate an XML file with a dump of the current UI hierarchy. If a filepath is not specified, by default, the generated dump file is stored on the device in this location {@code /storage/sdcard0/window_dump.xml}.</td> </tr> <tr> +<td><nobr><code>-e outputFormat simple | -s</code></nobr></td> +<td>Enables less verbose JUnit style output.</td> +</tr> + +<tr> <td><code>events</code></td> <td> </td> <td>Prints out accessibility events to the console until the connection to the device is terminated</td> @@ -123,6 +134,11 @@ You can list multiple classes or methods by using a space as a separator.</p></t <td>Represents a query for one or more target UI elements on a device screen. </td> </tr> +<tr> +<td><nobr><a href="{@docRoot}tools/help/uiautomator/Configurator.html">{@code com.android.uiautomator.core.Configurator}</a></nobr></td> +<td>Allows you to set key parameters for running uiautomator tests.</td> +</tr> + </table> <h3 id="interfaces">Interfaces</h3> |
