Skip to main content

LambDroid Espresso Plugin

LambdaTest have developed a new plugin to help developers execute tests on the LambdaTest Grid directly from the Android Studio (via LambDroid). The all-new LambdaTest plugin will allow developers and testers to directly run automated tests based on Espresso (Android Studio) framework on the LambdaTest real device cloud.

Google's Espresso is a native framework for automated Android testing. It is a part of the Android SDK and is easy to use for native mobile development, which helps you create tests that are close to the Android app's logic.

With this new plugin, testers and developers never have to leave Android Studio to execute a test on LambdaTest’s real device cloud. Follow these steps to install LambDroid plugin:

How to Install LambDroid Plugin

  1. Press Command (Ctrl)+ Comma (,) to open the Preferences tab.

  2. Head to the Plugins section from the left navigation bar.

  3. You can install LambDroid in two ways:

  • You can directly search for LambDroid in the Marketplace and install it. Select LambDroid, click on Apply, and OK.
  • You can head to the Gear Icon and click on the Install Plugin from Disk… option from the dropdown menu and manually install LambDroid. You can find the jar file to install LambDroid manually here. Click on Apply and OK.

Note: If you don’t want to add the plugin from the marketplace, you can also use this sample .jar file to run the LambDroid plugin on Android Studio.

  1. Head to the Tools section in the menu bar of Android Studio in the top-left corner, and you will find LambDroid in the dropdown list. Launch the plugin or use the shortcut (ctrl+cmd+b).
5. Enter your LambdaTest credentials - Username and Access Key. Along with this, specify the APKPath and TestAPKPath.

6. Click on Execute. Your Android Studio tests will directly reflect on the LambdaTest Grid.

Once executed, your tests will reflect on the LambdaTest dashboard.

Note: If you are interested in learning more about Espresso testing, you can refer to our detailed documentation.