Hi All,
I am also getting the same exception like below:
E:\Automation\Monkey\WorkSapce\PoCUI\bin>adb shell uiautomator runtet
/data/loca
l/tmp/PoC_UI.jar -c test.PoC_UI
Usage: uiautomator <subcommand> [options]
Available subcommands:
help: displays help message
runtest: executes UI automation tests
runtest <class spec> [options]
<class spec>: <JARS> < -c <CLASSES> | -e class <CLASSES> >
<JARS>: a list of jar files containing test classes and dependencies.
If
the path is relative, it's assumed to be under /data/local/tmp. Use
absolute path if the file is elsewhere. Multiple files can be
specified, separated by space.
<CLASSES>: a list of test class names to run, separated by comma. To
a single method, use TestClass#testMethod format. The -e or -c
option
may be repeated. This option is not required and if not provided
then
all the tests in provided jars will be run automatically.
options:
--nohup: trap SIG_HUP, so test won't terminate even if parent process
is terminated, e.g. USB is disconnected.
-e debug [true|false]: wait for debugger to connect before starting.
-e runner [CLASS]: use specified test runner class instead. If
unspecified, framework default runner will be used.
-e <NAME> <VALUE>: other name-value pairs to be passed to test
classes.
May be repeated.
-e outputFormat simple | -s: enabled less verbose JUnit style output.
dump: creates an XML dump of current UI hierarchy
dump [--verbose][file]
[--compressed]: dumps compressed layout information.
[file]: the location where the dumped XML should be stored, default is
/storage/emulated/legacy/window_dump.xml
events: prints out accessibility events until terminated
On Tuesday, October 15, 2013 8:27:47 PM UTC+5:30, Timo Steuerwald wrote:
>
> Hi all,
> the official documentation [1] states that starting with API18 it's
> possible to execute all tests of a JAR file without explicitly mentioning
> them in the command line.
> However, if I try this with an API18 device I get this message:
>
> D:\sources\MyUiautomatorTests\adb shell uiautomator runtest
> myuiautomatortests.jar
> Error: more parameters expected for runtest; please see usage for details
> Usage: uiautomator <subcommand> [options]
>
> Also according to the help message of the "uiautomator command" my command
> seems to be valid:
>
> runtest: executes UI automation tests
> runtest <class spec> [options]
> <class spec>: <JARS> < -c <CLASSES> | -e class <CLASSES> >
> <JARS>: a list of jar files containing test classes and
> dependencies. If
> the path is relative, it's assumed to be under /data/local/tmp. Use
> absolute path if the file is elsewhere. Multiple files can be
> specified, separated by space.
> <CLASSES>: a list of test class names to run, separated by comma. To
> a single method, use TestClass#testMethod format. The -e or -c
> option
> may be repeated. !!!!-->
> *This option is not required and if not provided then all the tests
> in provided jars will be run automatically*. <--!!!!
>
> So what am I doing wrong?
>
> Best wishes
> Timo
>
> [1] https://developer.android.com/tools/help/uiautomator/index.html
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.