{"id":2527,"date":"2015-10-16T12:29:19","date_gmt":"2015-10-16T12:29:19","guid":{"rendered":"http:\/\/www.gallop.net\/blog\/?p=777"},"modified":"2018-09-26T18:37:47","modified_gmt":"2018-09-26T13:07:47","slug":"automated-testing-on-real-vs-virtual-devices","status":"publish","type":"post","link":"https:\/\/www.cigniti.com\/blog\/automated-testing-on-real-vs-virtual-devices\/","title":{"rendered":"Automated Testing on Real Vs Virtual Devices"},"content":{"rendered":"

There are key differences between automated testing on real devices and on their virtual counterparts (emulators). Let\u2019s go through a comparison to assess the best path for your organization to take with regard to your test automation practices.<\/p>\n

A closer look<\/em><\/strong><\/p>\n

Here, we explore the advantages and disadvantages of automated testing on real devices and virtual ones.<\/p>\n

a. Advantages of real devices<\/em><\/strong><\/p>\n

    \n
  1. Testing real world conditions (weather, location, network, etc.) are much easier and provide deeper insight into app functioning in a variety of situations<\/li>\n
  2. Screen resolution, picture brightness in different lighting scenarios, etc. are also easily \u00a0testable<\/li>\n
  3. Interoperability testing is far easier with an actual device<\/li>\n
  4. Device performance is faster than corresponding virtual models, which means that evaluating app performance will yield more precise results<\/li>\n<\/ol>\n

    b. Disadvantages of real devices<\/em><\/strong><\/p>\n

      \n
    1. Conducting automated tests on actual devices is a relatively expensive affair, which would hinder projects that are restricted by time and budget<\/li>\n
    2. Because of the wide range of platforms and devices, it is difficult to efficiently carry out testing in a limited time period<\/li>\n
    3. During the app development phase for unit testing, real devices are much harder to connect to the Integrated Development Environment (IDE) than emulators, which would suffocate the project<\/li>\n<\/ol>\n

      c. Advantages of virtual devices \/ emulators<\/em><\/strong><\/p>\n

        \n
      1. In situations with severe deadline pressure, getting access to real devices might be challenging, so emulators can serve as reasonable substitutes for testing in such cases<\/li>\n
      2. Budget constraints can impact the team\u2019s decision to invest in real devices. Virtual environments can save money and time by allowing testers to continue with their tasks without having to spend on devices that may not in fact be entirely appropriate for the particular tests they want to execute<\/li>\n
      3. Emulators tend to be open source and easily downloadable<\/li>\n
      4. Web app testing is more convenient with emulators<\/li>\n<\/ol>\n

        d. Disadvantages of virtual devices \/ emulators<\/em><\/strong><\/p>\n

          \n
        1. For extended periods of evaluation, emulators may not be appropriate because extended usage can be measured best on a real device<\/li>\n
        2. The costs may add up when your team discovers that their emulator may be incompatible with certain apps or app elements. In such cases, they might need to invest in software patches to allow testing to continue<\/li>\n<\/ol>\n
            \n
          1. Emulators may support only a limited number of mobile operating systems, which could render them useless in many cases<\/li>\n<\/ol>\n

            Now that we\u2019ve summarized the pros and cons of each, let\u2019s look at a few testing tools for the Android platform (the most common mobile OS today, so therefore an obvious option to consider).<\/p>\n

              \n
            1. Robotium:<\/em><\/strong> A free UI testing tool, Robotium is often labeled as \u201cSelenium for Android.\u201d However, you need to spend time with the program source code to run your test automation suite, and is not entirely appropriate for interacting with system software.<\/li>\n
            2. Ranorex:<\/em><\/strong> Can provide comprehensive reports along with pictures, but the element search facility is a little sluggish.<\/li>\n
            3. Appium Automation framework<\/em><\/strong>: Uses the WebDriver interface to run tests, and supports a number of programming languages, and also supports mobile web browser testing. However, its reporting facility is not very well implemented, and XPath support on mobile devices is poor.<\/li>\n
            4. MonkeyRunner:<\/em><\/strong> A popular tool where tests are written in Python, MonkeyRunner can run tests on both real devices and emulators. But a crucial constraint in this tool is that you need to write scripts for each and every device. Furthermore, the test need to be altered every time there\u2019s an alteration to the UI of the program under testing.<\/li>\n<\/ol>\n

              Thus, it should be clear now that there are a number of advantages and disadvantages to using real devices and emulators, and the kind of tools we should be looking at for the most popular mobile operating system. QA teams need to assess their own project requirements and decide what combination of real \/ virtual would best suit their needs for a given app, and what sacrifices they\u2019d be willing to make when choosing a test automation tool.<\/p>\n

              Gallop\u2019s Test automation accelerates regression test efforts in a cost effective manner and our certified test automation specialists have expertise in diverse frameworks and methodologies. Contact us<\/strong><\/a> today for your test automation services.<\/p>\n","protected":false},"excerpt":{"rendered":"

              There are key differences between automated testing on real devices and on their virtual counterparts (emulators). Let\u2019s go through a comparison to assess the best path for your organization to take with regard to your test automation practices. A closer look Here, we explore the advantages and disadvantages of automated testing on real devices and […]<\/p>\n","protected":false},"author":2,"featured_media":12960,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[30],"tags":[769,772,827,216,1042,1289,1419,1421,1436,218,41],"ppma_author":[3736],"class_list":["post-2527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation-testing","tag-advantages-of-real-devices","tag-advantages-of-virtual-devices-or-emulators","tag-appium-automation-framework","tag-automation-testing","tag-disadvantages-of-virtual-devices-or-emulators","tag-monkeyrunner","tag-ranorex","tag-real-world-testing-conditions","tag-robotium","tag-software-testing","tag-test-automation"],"authors":[{"term_id":3736,"user_id":2,"is_guest":0,"slug":"admin","display_name":"Cigniti Technologies","avatar_url":{"url":"https:\/\/www.cigniti.com\/blog\/wp-content\/uploads\/120X120-1.png","url2x":"https:\/\/www.cigniti.com\/blog\/wp-content\/uploads\/120X120-1.png"},"user_url":"http:\/\/www.cigniti.com\/","last_name":"Technologies","first_name":"Cigniti","job_title":"","description":"Cigniti is the world\u2019s leading AI & IP-led Digital Assurance and Digital Engineering services company with offices in India, the USA, Canada, the UK, the UAE, Australia, South Africa, the Czech Republic, and Singapore. We help companies accelerate their digital transformation journey across various stages of digital adoption and help them achieve market leadership."}],"_links":{"self":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/posts\/2527"}],"collection":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/comments?post=2527"}],"version-history":[{"count":0,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/posts\/2527\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/media\/12960"}],"wp:attachment":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/media?parent=2527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/categories?post=2527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/tags?post=2527"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=2527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}