Multiple Devices Automation through Appium

Multi tool use
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 :)

add a comment |
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 :)

you can experiment this by removing any device while the appium script is running
– Suban Dhyako
Jan 3 at 6:29
I will. Thank you
– Nauman Malik
Jan 3 at 10:06
add a comment |
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 :)

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 :)


asked Jan 3 at 4:23
Nauman MalikNauman Malik
986
986
you can experiment this by removing any device while the appium script is running
– Suban Dhyako
Jan 3 at 6:29
I will. Thank you
– Nauman Malik
Jan 3 at 10:06
add a comment |
you can experiment this by removing any device while the appium script is running
– Suban Dhyako
Jan 3 at 6:29
I will. Thank you
– Nauman Malik
Jan 3 at 10:06
you can experiment this by removing any device while the appium script is running
– Suban Dhyako
Jan 3 at 6:29
you can experiment this by removing any device while the appium script is running
– Suban Dhyako
Jan 3 at 6:29
I will. Thank you
– Nauman Malik
Jan 3 at 10:06
I will. Thank you
– Nauman Malik
Jan 3 at 10:06
add a comment |
2 Answers
2
active
oldest
votes
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.
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
|
show 1 more comment
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.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54016310%2fmultiple-devices-automation-through-appium%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
|
show 1 more comment
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.
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
|
show 1 more comment
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.
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.
answered Jan 3 at 6:36
Venkatesh GVenkatesh G
157113
157113
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
|
show 1 more comment
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
Ok, Thats what I needed to know. Thanks. Gonna try automation on multiple devices.
– Nauman Malik
Jan 3 at 10:03
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
One more thing. WIll using appium on multiple devices effect its performance?
– Nauman Malik
Jan 3 at 10:04
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
No, There is no effect on Appium performance. Your system should be good to handle multiple appium servers that's it.
– Venkatesh G
Jan 3 at 10:15
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
Thank you for the Response.
– Nauman Malik
Jan 3 at 11:35
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
There is a minimal performance spike when establishing a new device. If you launch 100 at the same time, you might have some problems. We've also found some other issues (possibly related to our code - not worth investigating at this time) that have caused us to stagger launching new devices by a few seconds. You may find the same.
– Mike Collins
Jan 5 at 0:23
|
show 1 more comment
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 7 at 3:18
Rajesh ChaudharyRajesh Chaudhary
896
896
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54016310%2fmultiple-devices-automation-through-appium%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
ztAVE3jl0 xzeNpq,Q 5ZwzE1ld,jbO0i,l,1,4pffjwPMn v yTwJEZZdAU VGaxeFg5VDo,wmwtFvFRC3f8FL83,nBJYeeLdLsc6Nt7kAMT
you can experiment this by removing any device while the appium script is running
– Suban Dhyako
Jan 3 at 6:29
I will. Thank you
– Nauman Malik
Jan 3 at 10:06