Multiple Devices Automation through Appium












2















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










share|improve this question























  • 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
















2















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










share|improve this question























  • 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














2












2








2


1






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










share|improve this question














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







android automation appium






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












2 Answers
2






active

oldest

votes


















2














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.






share|improve this answer
























  • 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





















1














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.






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    2














    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.






    share|improve this answer
























    • 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


















    2














    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.






    share|improve this answer
























    • 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
















    2












    2








    2







    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.






    share|improve this answer













    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.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    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





















    • 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















    1














    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.






    share|improve this answer




























      1














      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.






      share|improve this answer


























        1












        1








        1







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 7 at 3:18









        Rajesh ChaudharyRajesh Chaudhary

        896




        896






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            generate and download xml file after input submit (php and mysql) - JPK

            Angular Downloading a file using contenturl with Basic Authentication

            Can't read property showImagePicker of undefined in react native iOS