commit | a37aeec71f9d2a863a8d09c78ce981078bc8d6ba | [log] [tgz] |
---|---|---|
author | adorokhine <adorokhine@google.com> | Tue Jan 10 22:34:15 2017 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 10 22:34:15 2017 -0800 |
tree | 2781612bc0375c2a72fe6df4d35a4573a3933f54 | |
parent | 787e6a7f501a90a10c7ea043e7d93a84cdef1153 [diff] |
Update READMEs of examples to use snippet_shell. (#16)
Mobly Snippet Lib is a library for triggering device-side code from host-side Mobly tests. This tutorial teaches you how to use the snippet lib to trigger custom device-side actions.
Note: Mobly and the snippet lib are not official Google products.
The Mobly Snippet Lib allows you to write Java methods that run on Android devices, and trigger the methods from inside a Mobly test case. The Java methods invoked this way are called snippets
.
The snippet
code can either be written in its own standalone apk, or as a product flavor of an existing apk. This allows you to write snippets that instrument or automate another app.
Under the hood, the snippet lib starts a web server which listens for requests to trigger snippets. It locates the corrsponding methods by reflection, runs them, and returns results over the tcp socket. All common built-in variable types are supported as arguments.
The examples/ folder contains examples of how to use the mobly snippet lib along with detailed tutorials.