Post on 21-Mar-2017
transcript
pCloudy – Appium Integration
Anshuman ChatterjeeSoftware Engineeranshuman.chatterjee@pcloudy.com
About pCloudy
About pCloudypCloudy is one of it’s kind Mobile App Testing Platform which developers and Testers can use to make their Apps market ready.
About pCloudypCloudy is one of it’s kind Mobile App Testing Platform which developers and Testers can use to make their Apps market ready.
Real devices
About pCloudypCloudy is one of it’s kind Mobile App Testing Platform which developers and Testers can use to make their Apps market ready.
Real devices Tools for App Testing
About pCloudypCloudy is one of it’s kind Mobile App Testing Platform which developers and Testers can use to make their Apps market ready.
Real devices Tools for App Testing Over Cloud
About pCloudypCloudy is one of it’s kind Mobile App Testing Platform which developers and Testers can use to make their Apps market ready.
Real devices Tools for App Testing Over Cloud
100+Active customers from across the
globe
100000+Hours of testing on
our platform
Appium on Local Machine
Local Machine
+Android SDK+Node.js+Mac OSX+XCode
Test Script
Capabilities:{
“devices”: “app” :
}
Diver ObjectWebDriver driver = new RemoteWebDriver(“http://localhost:4723”, capabilities);
Test Case :WebElement elem = driver.findElement(By.id(“q”));elem.click();elem.sendKeys(“Hello World!”);
Appium
Localhost: 4723
4
Local Appium on a Single Device
+Android SDK+Node.js+Mac OSX+XCode
Appium
localhost 4723
Appium
localhost 4724
Appium
localhost 4725
TestScript
TestScript TestScript
driver1:4723 driver2:4724 driver3:4725
5
Local Appium on Multiple Devices
You need multiple driver objects at different ports. You also need to make a copy of script and invoke it new driver object.
It becomes cumbersome to run this way on more than couple of devices. Building a consolidated report is another challenge.
Appium on pCloudy
Appium with pCloudy
Local
With pCloudy
Appium with pCloudy
Modified Script for pCloudy, No need of multiple copies now
Local
With pCloudy
Appium with pCloudy
Modified Script for pCloudy, No need of multiple copies now
No need of any setup at your local machine, Everything moves to pCloudy
Local
With pCloudy
Modification in Existing Script
Local Appium Script Structure
Modification in Existing Script
Step Local Appium Script Structure
1 Open Appium Server
2 Provide local path location of apk or ipa file
3 Connect required device to local system
4 Fill Desired Capabilities
5 Instantiate Driver Object
6 Use the Driver Object to execute test cases
Local Appium Script Structure
Modification in Existing Script
Step Local Appium Script Structure
1 Open Appium Server
2 Provide local path location of apk or ipa file
3 Connect required device to local system
4 Fill Desired Capabilities
5 Instantiate Driver Object
6 Use the Driver Object to execute test cases
Modification in Existing Script
Modification in Existing Script
With pCloudy
Modification in Existing Script
Step Local Appium Script Structure1 Open Appium Server
2 Provide local path location of apk or ipa file
3 Connect required device to local system
4 Fill Desired Capabilities
5 Instantiate Driver Object
6 Use the Local Appium Driver Object to execute test cases
With pCloudy
Modification in Existing Script
Step Local Appium Script Structure1 Open Appium Server
2 Provide local path location of apk or ipa file
3 Connect required device to local system
4 Fill Desired Capabilities
5 Instantiate Driver Object
6 Use the Local Appium Driver Object to execute test cases
Step With PCloudy
1 Authenticate to pCloudy
2 Upload App to pCloudy
3 Select Devices from pCloudy
4 Fill Desired Capabilities
5 Instantiate Driver Object
6 Use the pCloudy Appium Driver Object to execute test
cases
With pCloudy
Appiumon
Cloud
Appiumon
Cloud
Appiumon
Cloud
driver@pCloudy
Selenium Grid(on HTTPS)
Rest
API
Authenticate
Upload App/ Select App
Book Devices
Init Appium Execution
Get Appium Endpoint
9
1
2
3
4
5
6
Appium on pCloudy – A Typical Flow
To know more
https://www.pcloudy.com/how-to-run-appium-scripts-on-pcloudy/
https://www.pcloudy.com/help-guide-for-pcloudy-java-connector-for-appium-version-2/
Thank You
Let’s change the way Mobile App Testing is performed