An Overview: 

pCloudy has released a plugin for Jenkins which provides you access to the platform for performing automation testing of mobile apps from within Jenkins on real devices.

 

 Prerequisites:

  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. Jenkins installed on local machine
  5. Download Jenkins pCloudy plugin

Preparation:


How to install the plugin:


Download the 
Jenkins plugin for pCloudy

Launch Jenkins in a Web Browser -> Navigate to Manage Jenkins


Navigate to Manage Plugins



Navigate to Advanced Tab


Scroll down to Upload Plugin -> Click Choose File -> Browse for pCloudyJenkinsPlugin.hpi


Click on Upload, and w

ait for the pCloudy plugin to be installed.


How to run automation test execution from Jenkins using pCloudy’s mobile device Cloud?

Launch Jenkins in a Web Browser

Select New Item


Enter a Name for a project, select Project Type and Click OK


Navigate to Build -> Add build step -> select Execute Test Suite on pCloudy



Execute Test Suite on pCloudy will open a form


In Step 1, enter Authentication details for pCloudy



In Step 2, enter Execution details

a) CLI Path is a path where the test scripts are located. It can be in exe or jar format.

  i.  CLI Path for exe "C:\xyz.exe %USERNAME% %CLOUDURL%"

  ii.  CLI Path for jar "java -jar C:\xyz.jar %USERNAME% %CLOUDURL%"

Eg:

java -jar C:/Users/user/Desktop/pCloudy/Jenkins/TestMunk-Automation.jar %CLOUDURL% %USERNAME% %APIKEY% %APPPATH% %DURATION% %DEVICES%

b) App Path is the location of the .apk or .ipa file

c) Duration is the total time required to execute the entire test script


In Step 3, Select Devices


Finally, once configuration is complete click Save or Apply


Running Automation Execution

The Build can be triggered automatically to start a build as soon as a change is made, or can be manually triggered by clicking Build Now


Viewing Console Output


Select the Project you are working on


Select a Build from the Build History


Select Console Output



View the Reports

The complete execution reports can be viewed in the HTML format


Scroll down to the end of a Build's Console Output


The complete execution report will be available in the path provided in the Console Output