All Projects → google → mobly-bundled-snippets

google / mobly-bundled-snippets

Licence: Apache-2.0 License
Snippets to allow Mobly tests to control Android devices by exposing a simplified Android API.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to mobly-bundled-snippets

cerebro-snippets
Cerebro plugin to create snippets (https://cerebroapp.com)
Stars: ✭ 17 (-32%)
Mutual labels:  snippets
vscode-odoo-snippets
Develop Odoo modules faster and with no Typing Errors.
Stars: ✭ 20 (-20%)
Mutual labels:  snippets
pymolsnips
Pymolsnips is a library of PyMOL scripting language code fragments for several popular text editors.
Stars: ✭ 19 (-24%)
Mutual labels:  snippets
vscode-django
Beautiful syntax and snippets for perfectionists with deadlines
Stars: ✭ 113 (+352%)
Mutual labels:  snippets
vscode-terraform-doc-snippets
Snippets in vscode for all resources and data sources, as yanked directly from provider docs.
Stars: ✭ 26 (+4%)
Mutual labels:  snippets
jt tools
Ruby on Rails Continuous Deployment Ecosystem to maintain Healthy Stable Development
Stars: ✭ 13 (-48%)
Mutual labels:  snippets
code-examples
Short code snippets written by our open source community!
Stars: ✭ 60 (+140%)
Mutual labels:  snippets
30-seconds-of-code-texteditorsnippets
Files to import the 30-seconds-of-code snippets into VSCode, Atom and Sublime.
Stars: ✭ 35 (+40%)
Mutual labels:  snippets
logbook
📖 a programmer's logbook.
Stars: ✭ 40 (+60%)
Mutual labels:  snippets
steemsnippets
A collection of snippets for steem programming
Stars: ✭ 44 (+76%)
Mutual labels:  snippets
vscode-hyper-javascript-snippets
Visual Studio Code snippet extension for JavaScript and TypeScript
Stars: ✭ 14 (-44%)
Mutual labels:  snippets
code-cheats
Quick reference code snippets curated from various sources
Stars: ✭ 17 (-32%)
Mutual labels:  snippets
vscode-gleam
📟 Gleam support for VS Code
Stars: ✭ 34 (+36%)
Mutual labels:  snippets
vcl-snippets
Snippets for Varnish Cache
Stars: ✭ 17 (-32%)
Mutual labels:  snippets
awesome-ecommerce
Collect and develop Open Source or Free Projects for building ecommerce platform easy and fast and free
Stars: ✭ 39 (+56%)
Mutual labels:  snippets
php-tools
Some code snippets that are often used in PHP
Stars: ✭ 25 (+0%)
Mutual labels:  snippets
modx-instagram-latest-posts
This snippet allows us to get the latest posts of any Instagram user. Access tokens are NOT required.
Stars: ✭ 20 (-20%)
Mutual labels:  snippets
vim-bootstrap4-snippets
Bootstrap 4 markup snippets for Vim
Stars: ✭ 55 (+120%)
Mutual labels:  snippets
Desktop
A comprehensive solution for convenient and efficient work with notes, snippets, clipboard, files, and other information that requires quick access via any device.
Stars: ✭ 123 (+392%)
Mutual labels:  snippets
Xylitol-MASM32-snippets
MASM32 Code collection for reverse engineers
Stars: ✭ 119 (+376%)
Mutual labels:  snippets

Mobly Bundled Snippets is a set of Snippets to allow Mobly tests to control Android devices by exposing a simplified version of the public Android API suitable for testing.

We are adding more APIs as we go. If you have specific needs for certain groups of APIs, feel free to file a request in Issues.

Note: this is not an official Google product.

Usage

  1. Compile and install the bundled snippets

    ./gradlew assembleDebug
    adb install -d -r -g ./build/outputs/apk/debug/mobly-bundled-snippets-debug.apk
    
  2. Use the Mobly snippet shell to interact with the bundled snippets

    snippet_shell.py com.google.android.mobly.snippet.bundled
    >>> print(s.help())
    Known methods:
      bluetoothDisable() returns void  // Disable bluetooth with a 30s timeout.
    ...
      wifiDisable() returns void  // Turns off Wi-Fi with a 30s timeout.
      wifiEnable() returns void  // Turns on Wi-Fi with a 30s timeout.
    ...
    
  3. To use these snippets within Mobly tests, load it on your AndroidDevice objects after registering android_device module:

    def setup_class(self):
      self.ad = self.register_controllers(android_device, min_number=1)[0]
      self.ad.load_snippet('api', 'com.google.android.mobly.snippet.bundled')
    
    def test_enable_wifi(self):
      self.ad.api.wifiEnable()

Develop

If you want to contribute, use the usual github method of forking and sending a pull request.

Before sending a pull request, run the presubmit target to format and run lint over the code. Fix any issues it indicates. When complete, send the pull request.

./gradlew presubmit

This target will reformat the code with googleJavaFormat and run lint. The lint report should open in your default browser.

Be sure to address all off the errors reported by lint. When finished and you run presubmit one last time you should see:

No Issues Found Congratulations!

in your browser.

Other resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].