Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nightwatch/mobile-helper

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nightwatch/mobile-helper

Easily setup all the requirements needed to get started with mobile-web testing using Nightwatch.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@nightwatch/mobile-helper

Official Nightwatch tool to help easily setup all the requirements needed to get started with mobile testing in Nightwatch.js. Nightwatch.js supports web and native app testing in both Android and iOS devices.

BONUS: For Android folks, there's much more this tool has to offer now apart for setting up requirements for testing:

  • Setup fully functional Android Emulator environment in a matter of minutes (without downloading Android Studio).
  • Alternatively, setup just adb to only connect to real devices.
  • Easy-to-use CLI flows for common use-cases like connecting to emulator/real devices, downloading new system-images, creating/deleting AVDs, installing/uninstalling apps, and much more.
  • For use-cases not covered above, run commands with major Android SDK tools like adb, emualator, sdkmanager, avdmanager directly from a single CLI.
  • Update your SDK tools automatically and seamlessly (WIP).

Usage

Do more with Android

Setup Android SDKs

You can now setup a fully functional Android Emulator environment, or just adb for connecting to real device, without the need to download the whole Android Studio IDE.

Run the below command to download all the required Android SDKs needed to get the Android Emulator setup and running with Android v11:

npx @nightwatch/mobile-helper android --standalone

The above command makes sure that you have everything you need to use Android Emulator as well as connect your computer to real Android devices.

CLI Flows for common use-cases

This tool allows you to do a lot of things with simple and tailored flows, accessible through the following subcommands:

  1. connect
  2. list
  3. install
  4. uninstall

Syntax

The following syntax is used for executing subcommands:

npx @nightwatch/mobile-helper android <subcommand> [flags|cliConfigs]
1. connect

This subcommand allows you to connect to a real device using adb or launch an AVD (Android Virtual Device) inside Android Emulator.

npx @nightwatch/mobile-helper android connect [flags]
FlagDescription
--wirelessConnect a real device wirelessly
--emulatorLaunch an AVD inside Android Emulator.
2. list

This subcommand allows you to list all connected devices and installed AVDs.

npx @nightwatch/mobile-helper android list [flags]
FlagDescription
--deviceShow a list of all the connected real devices and AVDs
--avdShow a list of all the currently installed AVDs
3. install

This subcommand allows you to install a new system-image, create a new AVD or install an app to a target AVD/device.

npx @nightwatch/mobile-helper android install [flags]
FlagDescription
--appInstall an APK on a real device or an AVD
--avdCreate a new AVD
--system-imageInstall a new system-image
4. uninstall

This subcommand allows you to uninstall a system-image, delete an AVD, or uninstall an app from a target device.

npx @nightwatch/mobile-helper android uninstall [flags]
FlagDescription
--appUninstall an app from a real device or an AVD
--avdDelete an AVD
--system-imageUninstall a system-image

Run Android SDK tool commands

Run commands with major Android SDK tools/binaries directly from a single CLI without the need to locate and then run the binaries manually.

Syntax

npx @nightwatch/mobile-helper android.<binary_name> [args]

Currently supported binaries: adb, avdmanager, sdkmanager and emulator.

Check the following docs to know more about the usage of the above mentioned binaries:

FAQs

Package last updated on 13 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc