Parallel Execution in Appium-iOS Real Devices


Parallel Execution in Appium-iOS Real Devices



In this Appium tutorial we will learn how to execute our Appium test in parallel on Real iOS Devices.

In the last article we have already seen how to execute Appium test in parallel on iOS Simulators.

Well to perform parallel execution on iOS Real Devices we need to pass one additional parameter UDID along with other parameters that we have already seen in another article.



What is UDID?

Each iPhone or iPod Touch has a Unique Device Identifier (UDID), which is a sequence of 40 letters and numbers that is specific to your device. It's like a serial number but much harder to guess.

Let’s understand this by way of an example. Let’s say we have 2 real iOS Devices connected to our Mac host and we want to run the test cases on that in parallel.

Please look at the table below for Device capability and Port information.

S.No
Appium Port No
Real Device Name
WDA Port
UDID
1
4725
Iphone 6
8100
2K6f0dd904d137be2e1720235f5664094b8317811
2
4726
Iphone 7
8200
2K6f0dd904d137Ce2e1720645f5664094b8317811
3
4727
Iphone 8
8300
2K6f0ee904d137De2e1720795f5664094b8317811

Below is the AppiumSampleTest.java file.

Below is my testng.xml file.

Now we just need to Right-click on testng.xml and select Run option, and we will see the 3 iOS Real devices will open and each of them will execute test cases in parallel.




SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post
June 27, 2019 at 12:04 AM

Can you please share this ios framework with me?

Reply
avatar