Appium desktop (Object Spy) integration with pCloudy
Tags: appium, mobileapptesting, automationtesting
Published: 2019-04-03 06:40:15

---
title: Appium desktop (Object Spy) integration with pCloudy
published: true
description: Appium desktop is a graphical interface for using Appium and inspecting your app structure. It helps to create easy test scripts and set up a quick Appium test server.
tags: appium, mobile app testing, automation testing
canonical_url: https://www.pcloudy.com/object-spy/
---
<b>Appium Desktop for test automation</b>
Appium desktop is a graphical interface for using Appium and inspecting your app structure. It helps to create easy test scripts and set up a quick Appium test server.

 
<b>Appium Desktop has two components:</b>
Appium Server: Server instance for enabling testing (and test automation) of apps.

Appium Inspector: For inspecting and getting all the details of UI elements of your apps.

 
<b>What is Object spy?</b>
Object spy is mechanism to add objects to the object repository and view object properties while running Appium Desktop. It displays the selected objects hierarchy tree and it’s properties and methods in the property tab in the object spy dialogue box.  

 
<b>How to integrate Appium Desktop with pCloudy</b>
Steps to invoke Object Spy:

 1. We have three dedicated Android devices and we need to enter the particular device ID mentioned below:
     * ce011821e8f5671c01 -Galaxy S8
     * 213581e02d0b7ece -Galaxy S9
     * 803KPRW1598286 -Pixel 2 XL
2. For iOS you need to enter UDID and for that you need to go to cloud then click on UDID

<img src="https://www.pcloudy.com/wp-content/uploads/2019/02/1.png">

Then select the device and copy that UDID. If you are inspecting an element on iOS devices you should use resigned app to avoid exception.
Go to command prompt and execute Jar
e.g.: java -jar pCloudy-ObjectSpy.jar “https://[company].pcloudy.com” “Your_EmailID” “Your_ApiKey” “Application_Path” Booking_Duration(Integer type)

<img src="https://www.pcloudy.com/wp-content/uploads/2019/02/2.png">

Select the device you will get the end point.

<img src="https://www.pcloudy.com/wp-content/uploads/2019/02/3.png">

Now you need to copy the end point as you will use it in the coming step.

<img src="https://www.pcloudy.com/wp-content/uploads/2019/02/4.png">

<b>Open Appium Desktop</b>
go to “Custom Server” tab
Then in the Remote Host section, enter “[company].pcloudy.com”
Then add Remote Port “443”
Click on “SSL” check box
Enter the Capabilities for Android

Sample:
“newCommandTimeout”: 600,
“launchTimeout”: 90000,
“pCloudy_ApplicationName”: “pCloudyAppiumDemo.apk”,
“appPackage”: “com.pcloudy.appiumdemo”,
“appActivity”: “com.ba.mobile.LaunchActivity”,
“platformName”: “Android”,
“deviceName”: “803KPRW1598286”
 
Capabilities for iOS
Sample:
“newCommandTimeout”: 600,
“launchTimeout”: 90000,
pCloudy_ApplicationName”: “TestmunkDemo.ipa”,
“platformName”: “iOS”,
“bundleId”: “com.pcloudy.TestmunkDemo”,
“usePrebuiltWDA”: false,
“acceptAlerts”: true,
“automationName”: “XCUITest”,
“udid”: “00008020-000A31960E3A002E”,
“deviceName”: “iPhone XR”

 

Paste the end point that you copied (refer step 5) in the “Remote Path” section in the Appium Desktop.

<img src="https://www.pcloudy.com/wp-content/uploads/2019/02/5.png">

Then click on “Start Session”. It will book the device in pCloudy and you will get the element properties, once it is launched.

<img src="https://www.pcloudy.com/wp-content/uploads/2019/02/6.png">