= Retrieve capabilities - pCloudy documentation

Overview:

pCloudy has redesigned the capability section. Our redesigned Capability section enables pCloudy user to generate Appium desired capabilities directly as per filter selection(e.g. OS, Automation type ....etc) .Generated capability can be copied and pasted directly into their Appium script .We tried to make it more simple and user-friendly .

Pre-requisite

User should be registered to pcloudy platform

Let's see the steps

  • Login to your registered account.
  • Go to "Device page" and navigate to "Capabilities" section as shown in below screenshot. You will see "Capability Configurator"
  • Select Operating System->Android or iOS
  • Select Automation Type->Browser Testing or App Testing

Note: As per Automation Type selection other fields gets updated.

capability-configurator

Let's see all cases in details

Case 1:If user selects OS as "Android" and Automation Type as "Browser Testing".

Below mentioned fields will appear-:

  • Device Full Name:
    • Note: Once device Full name is selected, Device Manufacturer and Device Version get disabled.
    • If selected device is busy user will see "busy" tag appended to device name as shown below.
  • Device Manufacturer:
    • If you select device Manufacturer the all version respective to Manufacturer will appear
  • Device Version:
    • User needs to select Device Manufacturer to select version.
  • Duration:
  • Note:
    • User has to enter minutes for which device needs to be booked.
    • Duration has to be in whole numbers.

     

    device-manufacturer

Once All details are entered user needs to click on Generate Capabilities. Capabilities will be generated on other side.

Note :To reset entered details-: Click on "Reset" button.

E.g. In below mentioned screenshot

generate-capabilities

 

We have selected

  • OS as "Android"
  • Automation Type as "Browser Testing"
  • Device Location "India" (as we are using device.pcloudy.com)
  • Device Full name as "SAMSUNG_GalaxyNote8_Android_9.0.0"
  • Duration as "15" mins
  • Note:
    • After filling all the details, we will click "Generate Capability" button.
    • Capabilities will be generated other side as shown in the screenshot.
    • Generated capabilities can be edited and copied.
  • To Edit-:Click on edit icon as shown in the screenshot.
  • To Copy-:Click on copy icon as shown in the screen shot.
    • Note: Once capability is copied ,user can directly paste it in their appium script and you can run.
appium-script

 

Case 2: If user selects OS as "Android" and Automation Type as "App Testing"
Apart from above mentioned field that appear for Browser Testing, extra below mentioned fields
appear as shown in below screenshot

app-testing

 

  • Application Name-:This is optional field.
    • Note:we kept it option as for preinstalled app,app name not required
  • App Package-:
    • In very basic terms, appPackage is the technical name of the app which is provided by its developers
  • App Activity-:
    • AppActivity refers to the different functionalities that are provided by the app.
      For example, WhatsApp provides multiple functionalities such as conversations, profile information, setting profile photo, setting status, notifications and a lot of other things. All these functionalities are represented by different appActivity

Note: You can find AppPackage and App Activity by-:

  • Using 'mCurrentFocus' or 'mFocusedApp' in Command Prompt. For this adb needs to be installed in your system.
  • Using APK Info app-:APK Info is an app which you can download from Play Store, and it will provide the appPackage and appActivity name of any app which is installed on your mobile device.

Case 3: If user selects OS as iOS and Automation Type as Browser Testing

Please follow same steps as for Android. Refer Case 1

Just difference is that in device drop-down iOS devices will appear as we have selected OS as iOS.

ios-devices

Case 4: If user selects OS as iOS and Automation Type as App Testing.

Below mentioned field will appear.

  • Device Full Name-:
    • Note: Once device Full name is selected, Device Manufacturer and Device Version get disabled.
  • Device Manufacturer
    • If you select device Manufacturer the all version respective to Manufacturer will appear
  • Device Version
    • User needs to select Device Manufacturer to select version.
  • Duration-:
    • Note :
      • User has to enter minutes for which device needs to be booked.
      • Duration has to be in whole numbers
  • Application Name-:This is optional field.
    • Note:we kept it option as for preinstalled app,app name not required.
  • Bundle ID-:

BundleIds represents the app's unique identifier of app.

Steps to find Bundle ID

  • Sign in to iTunes Connect.
  • Click My Apps.
  • Click on the app whose Bundle ID you want to find.
  • Click More and then click About This App.
  • Your Bundle ID is displayed
capabilities

 

Once All details are entered user needs to click on Generate Capabilities. Capabilities will be generated as per selection.