Nauman Malik
Nauman Malik

Reputation: 188

Multiple Devices Automation through Appium

I have seen some articles and questions regarding Automation through Appium on multiple Android devices. I know that for Appium to work on multiple devices we need to give the device id to udid in the JAVA code.

what I really want to understand is how will Appium perform the same script on multiple devices? What if a command fails on one device and does not fail on the other device? will there be multiple servers running?

Any help will be appreciated. Thank you :)

Upvotes: 2

Views: 2049

Answers (2)

Rajesh Chaudhary
Rajesh Chaudhary

Reputation: 112

Most of the time same test will not fail on some other devices. Some reasons to fail on same platform and different devices might be size of devices and different device behavior in different manufactures.

If you write your test wisely keeping everything in mind then you will have very less test failure because of device.

Also to launch test on multiple device either you can launch multiple appium server or you can launch one server and create multiple sessions of it.

Test failure in one device will not affect test running in another device. As these are using different servers or sessions.

Upvotes: 1

Venkatesh G
Venkatesh G

Reputation: 9506

Its Possible! But there is no direct approach to do it. We have to start Appium server in different ports(Example: 4723, 4725,...). We have to get the udid of multiple devices connected to the system & have to set the capability.

If a command fails on one device it won't give any effect to other device. Since, We have 2 appium servers running.

Upvotes: 2

Related Questions