Auto-tools/Projects/SUTAgent/CommandReference: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
  * The agent was originally written for windows mobile and newlines there are \r\n references in code that interacts with the agent.  When the Android agent was introduced, we needed to support the code and it would have been a lot of work to retrofit the windows agent, so we made the android agent support \r\n.  This is known to be seen in the 'cat' command which is used in some sut_tools scripts.  Just keep this in mind as we might have some backwards compatibility issues.
  * The agent was originally written for windows mobile and newlines there are \r\n references in code that interacts with the agent.  When the Android agent was introduced, we needed to support the code and it would have been a lot of work to retrofit the windows agent, so we made the android agent support \r\n.  This is known to be seen in the 'cat' command which is used in some sut_tools scripts.  Just keep this in mind as we might have some backwards compatibility issues.
== Required Commands ==


The SUTAgent shall support at least the following commands:
The SUTAgent shall support at least the following commands:
Line 32: Line 34:
* process: process list, as with the "ps" command below
* process: process list, as with the "ps" command below
: If no subcommand is given, all the info is printed out in the above order.
: If no subcommand is given, all the info is printed out in the above order.
; inst <path to apk> :
; isdir <path>
; isdir <path>
: Prints "TRUE" if <path> is a directory, "FALSE" if it exists but isn't a directory, or an error string if <path> doesn't exist or isn't readable.
: Prints "TRUE" if <path> is a directory, "FALSE" if it exists but isn't a directory, or an error string if <path> doesn't exist or isn't readable.
Line 55: Line 56:
; testroot
; testroot
: Prints the root test directory, that is, a writable location to be used for test support files.
: Prints the root test directory, that is, a writable location to be used for test support files.
== Optional Commands ==
== Deprecated Commands ==
The original Java SUTAgent implemented these commands. They will be deprecated in the new SUTAgent. Instead, SUTAgent-specific DeviceManager objects will build this functionality out of lower-level commands like 'exec' and 'push'.
; inst <path to package file>
: Installs an application from a package located on the device.
; unzp <zip file> [dest dir]
; unzp <zip file> [dest dir]
: Unzips <zip file> to [dest dir]. [dest dir] defaults to cwd.
: Unzips <zip file> to [dest dir]. [dest dir] defaults to cwd.
; updt <path to apk> :
; updt <path to apk>
: Updates a previously installed application from a package located on the device.
Confirmed users
1,927

edits

Navigation menu