Inspecting Element on pCloudy Devices Using Appium Desktop

Appium Desktop

 

Appium Desktop is a point-and-click interface for using Appium and inspecting your app’s structure. With this new feature you will be able to run Inspector sessions on pCloudy. You just have to login in to your registered account, set up the desired capabilities for your test appropriately, and you’ll be able to drive your app remotely using Appium Desktop.

 

Let’s understand this in detail:

Overview

Appium Desktop is a new open source GUI application for Windows, Mac, and Linux which gives you the power of the Appium automation server in a more organized manner with a flexible UI. From an Appium Beginner’s perspective – if you want to write test scripts with Appium, you would need 2 things.

 

First, you would need to start the Appium Server. And second, you would also need a mechanism using which you can identify the controls (buttons, text boxes etc) in the mobile app which you want to automate.

So Appium Desktop is a combination of two essential components of Appium:

 

  • 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.

Advantages of Appium Desktop

  • The Appium Desktop tool enables users to work with Appium on their desktops and use Inspector for yet better analysis of their apps.
  • Allows using desired capabilities and presets configuration for convenient use.
  • Provides the ability to switch between web-view and native app view from inspector.
  • Provides an action recorder and the code generator.

 

How to install Appium Desktop

Refer the link given below to know how and from where to install Appium Desktop.

http://www.automationtestinghub.com/appium-desktop/

 

Pre-requisites to use the tools effectively

  • Appium Desktop installed on your machine
  • APK or IPA file
  • pCloudy Account

 

Let’s see the steps in detail

1.Open Appium Desktop in your system and click on Start Inspector Session as shown in below screenshot.

 

appium 2

 

2. Click on Select Cloud Providers.

 

Appium pCloudy 2

 

2.1 Click on the pCloudy logo and then click on done.

appium pCloudy 3

2.2 You will be directed to the desired capabilities page of pCloudy in Appium Desktop.

appium pCloudy 4

2.3 Enter the below mentioned field details

  • pCloudy Host
  • pCloudy User Name
  • pCloudy API Key

 

appium 5

2.4 Once field details are inserted, set the Desired Capabilities.

These are used to inform Appium Server that what kind of platform and application you want to automate. Click here to know about Desired Capabilities.

 

appium pCloudy 5

Note:

By default, Booking duration is 10 minutes. If you wish to change the device duration, you have to change the number of minutes in the desired capabilities. For example, if you to keep the duration for 15 minutes, you have to set desired capabilities as ” pCloudy_DurationInMinutes”, 15 “

 

3. Click on Start Session once you have entered the field details and set the Desired Capabilities.

 

appium pCloudy 6

 

4. Once session has started, login to your registered pCloudy account .

After login go to Reports section and then go to My Active Session. Click this icon present under Action. You will be directed to LIVE VIEW page.

 

Live View

Note:

Device will be connected as per the set Desired Capabilities. Once your app gets launched on the device you will able to see Appium Desktop view.

 

5.Click on Select Element to start inspection .

 

select element

Example: In the below screenshot “Refuse” has been selected.

 

Refuse

 

6.Once you select the element you will be able to see interactions .

 

Appium Demo

Note:

  • There are three interaction given in Appium Desktop contributors. These are “Tap”, “Send keys” and “Clear” as shown in the screenshot.

 

7. According to the selected interaction action will be performed on the device page.

 

Tap

As shown in the screenshot Tap has been selected.

 

8.Click on this X icon to End the session.

 

End Session

Note:

As soon as you end the session device will get released from Live view.

 

appium 7

Shivani Sinha

She is a Product Marketer with over 9 years of diversified experience across content, branding, and product marketing. Her experience ranges from global brands to nimble startups. She is a custodian of Brand & Content, telling stories about the brand that delights customers and provides compelling business value.