Using the Android Device Tunnel, users can connect and take full control of any Android device using Android Debug Bridge. Users can connect any pCloudy device using DeviceTunnel as if the device is connected physically with their Local Machine with USB. This can be used by Developers to control a device using ADB commands and debug their apps in real time.
Install pCloudy plugin on Eclipse IDE or Android StudioSteps for Android Studio:
- Click the pCloudy icon to open the plugin
- Enter Cloud URL,Username and Access Key
- Select "DeviceTunnel" and "Device Location"
- Select a device with which the DeviceTunnel connection should be established
- Click Generate DeviceTunnel Command to initiate the connection
- The plugin provides an ADB connect command with Port number. Please copy the URL and paste it in terminal
- Open terminal/cmd in the computer. Enter command adb devices
- Login with credentials.
- After login, goto Device page and click on” My Bookings” ,connect the device as shown below
- The device will be connected.
- Once the connection is established, the user can push ADB commands to the device
Click here for Manual and automation
pCloudy has released a plugin for Android Studio which provides you access to the platform for performing manual and automation testing of mobile apps from within Android Studio IDE.
For Manual Testing: Now you can build and upload your Android Apps to pCloudy devices directly from your Android Studio project workspace.
For Automation Testing: If you are using Appium as automation tool and have created your Automation scripts as a project in Android Studio, you can run the scripts directly on pCloudy devices.
1. An account in pCloudy with enough credits.
2. An API Access key for authentication with pCloudy.com
3. Chrome Browser on local machine
4. Android Studio IDE
5. Android Studio pCloudy plugin
- Reference the JAR files to Eclipse
- Make a note the API Username and API Access Key
How to install the plugin
- Download the
Android Studio pluginfor pCloudy
- Open your Android Studio > go to Setting icon of Android Studio > Select Plugins > All available plugins are shown which can be filtered with the help of Show feature as per requirement.
- Click on Install plugin from disk > Browse and select location of your downloaded Android Studio plugin of pCloudy
- Click on OK
- Now, you can see that pCloudy plugin has been successfully integrated to Android Studio.
Select pcloudy plugin and click on OK to proceed. Here, we are going to install pCloudy plugin for Android Studio from local disk. Click on Install plugin from disk
pCloudy plugin for Android Studio has been integrated successfully.
Click on pCloudy plugin icon shown on Android Studio. pCloudy Login page opens. Enter your Username and Access Key and click on Login. Your login credentials are verified. Click on OK to proceed.
Note: This is one-time task. Credentials will be valid until you logout.
Now, you are ready to use the Android Studio Plugin for pCloudy.
Manual Functional Testing of App
Click on pCloudy plugin icon. Select the 'Manual' option from the 3 options and then select the country for test. Click on Next to proceed.
Select Workspace and then add the Workspace path of your local machine.
Cloud Drive page lets you to select app from the list and click on Next to proceed.
Local Drive lets you to upload your app from your local machine to perform testing.
Mobile Browser enables you to use mobile browser for testing.
After selecting app, the next step is choosing a device. Select and Connect to devices page provides you list of devices which can be filtered by using filter parameters (Android/iOS, Manufacturer, and OS version). Select duration of your testing. The device will get booked for selected time duration.
When you click on Next, you get a message “Please wait while we open the pCloudy Platform on your default browser for Manual Testing. Please advised that…”
Just after few seconds, you will be redirected to the connected device page over pCloudy to perform manual functional testing of your app on selected device.
Automation Testing of App
Click on pCloudy plugin icon. Select the 'Automation' option from the 3 options and then select the country for test. Click on Next to proceed.
Similarly, the first step towards performing automation testing is selecting an app from workspace/cloud drive/local drive or use mobile browser.
Select your desired device; select duration of automation testing. You can filter devices displaying devices by using filter options (Android/iOS, Manufacturer, and OS version). Click on Next to proceed.
Note: Here, you can select multiple devices as well.
Finally, you get corresponding pseudo code for performing Automation testing of app. You can copy this pseudo code to clipboard and use it within your Automation script…
You will need the pCloudy java connector jar file for the above code to work. The pCloudy-java-conector.jar contains the API wrappers, classes & methods to use the pCloudy RestfulAPIs (without knowing how to call rest webservices from java). The gson.jar is a well known, opensource google library. You should add the pCloudy-java-connector.jar in its build path as a reference within your java project containing appium scripts.
download pCloudy-java-connector.jar & gson.jar (a dependency of the pCloudy-java-connector.jar)