= 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 have a registered pcloudy account.

Note - The steps to generate Capabilties are a bit different for both the New and Old User Interface, please scroll down further to view the steps on the Old UI.

Let's see the steps to follow in the New UI

Step 1 - Login to your registered account.

Step 2 - On the "Start page" navigate to "Capabilities" in the tools section as shown in below screenshot.

capability-configurator

Step 3 - On the Capabilities Configurator Page, you can select OS and the Automation Type.

capability-configurator

Step 4 - Next, you can you can enable different capabilites like Capturing Logs, Enabling local testing or Wildnet, Capturing Video, and capturing Performance Data.

capability-configurator

Step 5 - Next, you can you can enter the Device Details such as region, Device Full name, Manufacturer or Device Version.

Please Note - You can select the Device Full Name from the drop down of available devices. However, it is advisable to select the Device Manufacturer and Version instead of the full name of the device to avoid failure of execution due to non-availability of a specific device that yu might select in the Device Full name field. Providing a Device Manufacture and Version, gives you a broader reach when your script starts to look for available devices on the platform.

capability-configurator

Step 6 - Once you have selected the Device Details, simply fill in the Duration of the execution in mins, selection the App from the drop down, please ensure that you have uploaded the app beforehand on the My Data. The app package and activity.

capability-configurator

Click on Generate Capabilites, once all the details are filled in.

Step 7 - The Capabilities will get generated according to the details and specifications that the user mentions. A success notification will appear as well.

capability-configurator

Now you can simply click on the Copy icon to copy the Capabilites and paste it in your appium script and execute the program.

To startover for a different specification or scenario, simply hit the reset button on the bottom and follow the same steps as mentioned above.

capability-configurator

Let's see the steps to follow in the Old UI

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