Preview

Sqa Engineering Testing

Powerful Essays
Open Document
Open Document
5472 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Sqa Engineering Testing
Automating GUI Testing for Android Applications
Cuixiong Hu Iulian Neamtiu
Department of Computer Science and Engineering University of California, Riverside, CA, USA

{huc,neamtiu}@cs.ucr.edu

ABSTRACT
Users increasingly rely on mobile applications for computational needs. Google Android is a popular mobile platform, hence the reliability of Android applications is becoming increasingly important. Many Android correctness issues, however, fall outside the scope of traditional verification techniques, as they are due to the novelty of the platform and its GUI-oriented application construction paradigm. In this paper we present an approach for automating the testing process for Android applications, with a focus on GUI bugs. We first conduct a bug mining study to understand the nature and frequency of bugs affecting Android applications; our study finds that GUI bugs are quite numerous. Next, we present techniques for detecting GUI bugs by automatic generation of test cases, feeding the application random events, instrumenting the VM, producing log/trace files and analyzing them post-run. We show how these techniques helped to re-discover existing bugs and find new bugs, and how they could be used to prevent certain bug categories. We believe our study and techniques have the potential to help developers increase the quality of Android applications.

Categories and Subject Descriptors
D.2.4 [Software Engineering]: Software/Program Verification—Reliability; D.2.5 [Software Engineering]: Testing and Debugging—Testing tools,Tracing

General Terms
Reliability, Verification

Keywords
Test automation, Mobile applications, Google Android, GUI testing, Test case generation, Empirical bug studies

1. INTRODUCTION
Smartphones are becoming pervasive, with more than 195 million sold worldwide in the first three quarters of 2010

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that



References: [1] andoku. http://code.google.com/p/andoku/. [2] android-cmis-browser. http://code.google.com/p/android-cmis-browser/. [3] android-delicious-bookmarks. http://code.google. com/p/android-delicious-bookmarks/. [4] connectbot. http://code.google.com/p/connectbot/. [5] dealdroid. http://code.google.com/p/dealdroid/. [6] guessthenumber. http://code.google.com/p/guessthenumber/. [7] monolithandroid. http://code.google.com/p/monolithandroid/. [8] opensudoku-android. http://code.google.com/p/opensudoku-android/. [9] rokon. http://code.google.com/p/rokon/. [10] skylight1. http://code.google.com/p/skylight1/. [11] T. J. Watson Libraries for Analysis (WALA). http:// wala.sourceforge.net/wiki/index.php/Main_Page. [12] Android activity lifecycle, May 2010. http://developer.android.com/reference/ android/app/Activity.html#ActivityLifecycle. [13] Google code, April 2010. http://code.google.com/. [14] Guitar – a gui testing framework, August 2010. http://guitar.sourceforge.net/index.shtml. [15] JUnit, May 2010. http://www.junit.org/. [16] Monkey UI/Application Exerciser, May 2010. http://developer.android.com/guide/developing/ tools/monkey.html. [17] Androlib. Number of New Applications in Android Market by month, September 2010. http://www.androlib.com/appstats.aspx. [18] A. Chaudhuri. Language-based security on android. In PLAS ’09, pages 1–7. [19] W. Enck, P. Gilbert, B. gon Chun, L. P. Cox, J. Jung, P. McDaniel, and A. N. Sheth. Taintdroid: An information-flow tracking system for realtime privacy monitoring on smartphones. 2010. [20] W. Enck, M. Ongtang, and P. McDaniel. Understanding Android security. IEEE Security and Privacy, 7(1):50 –57, Jan.-Feb. 2009. [21] D. Engler and K. Ashcraft. Racerx: effective, static detection of race conditions and deadlocks. SOSP, pages 237–252, 2003. [22] Gartner Corporation. Gartner Says Worldwide Mobile Device Sales Grew 13.8 Percent in Second Quarter of 2010, But Competition Drove Prices Down, August 2010. http://www.gartner.com/it/page.jsp?id=1421013. [23] Gartner Corporation. Gartner Says Worldwide Mobile Phone Sales Grew 17 Per Cent in First Quarter 2010, May 2010. http://www.gartner.com/it/page.jsp?id=1372013. [24] Gartner Corporation. Gartner Says Worldwide Mobile Phone Sales Grew 35 Percent in Third Quarter 2010; Smartphone Sales Increased 96 Percent, November 2010. http://www.gartner.com/it/page.jsp?id=1466313. [25] D. R. Hackner and A. M. Memon. Test case generator for guitar. In ICSE Companion ’08, pages 959–960. [26] A. Kervinen, M. Maunumaa, T. P¨¨kk¨nen, and aa o M. Katara. Model-based testing through a gui. In Formal Approaches to Software Testing, volume 3997, pages 16–31. 2006. [27] A. Kumar Maji, K. Hao, S. Sultana, and S. Bagchi. Characterizing failures in mobile oses: A case study with android and symbian. In Software Reliability Engineering (ISSRE), 2010 IEEE 21st International Symposium on, pages 249–258. [28] M. Ongtang, S. Mclaughlin, W. Enck, and P. Mcdaniel. Semantically rich application-centric security in android. In ACSAC’09: Annual Computer Security Applications Conference, 2009. [29] M. Swift. Android operating system is expected to surge past rivals. Los Angeles Times, Sep 11 2010. [30] X. Yuan and A. M. Memon. Generating event sequence-based test cases using gui runtime state feedback. IEEE Trans. on Software Engineering, 36:81–95, 2010.

You May Also Find These Documents Helpful

  • Best Essays

    Mrkt571 Week 2 Paper

    • 2241 Words
    • 9 Pages

    Escallier, P. (2010). 10 Things Android Does better than iPhone OS. Retrieved February 25, 2012 from…

    • 2241 Words
    • 9 Pages
    Best Essays
  • Good Essays

    Eco 306 First Assignment

    • 843 Words
    • 4 Pages

    We are living in a digital world. With smartphone or other types of portable devices, we can easily communicate with friends, read latest news, check emails, listen to music and watch videos on-the-go. According to comScore Mobilens’ report, 133.7 million people in the U.S owned smartphones (57 percent mobile market penetration) during the three months ending in February, up 8 percent since November. In October, 2010, smartphone market penetration was only 29.7%.…

    • 843 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Using the Smartphone application, in not less than 250 words provide reasons for the tools and techniques used. Include types of variables (i.e. global, local, static, overloads and instances).…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    Lawton, G. (2008). Is it finally time to worry about mobile malware? Computer, 41(5), 12-14.…

    • 781 Words
    • 4 Pages
    Good Essays
  • Best Essays

    Android vs IOS

    • 2431 Words
    • 10 Pages

    With over 243million iPhone’s been sold to date (segall, 2012) and over 500million android phones (Knight, 2012) it is fair to say that both IOS (Apple’s mobile platform) and Android (Google’s mobile platform) are the two most popular/common operating systems currently on the market. The high demand for these two systems makes them number one and two in the Smartphone market share (Velazco, 2012).…

    • 2431 Words
    • 10 Pages
    Best Essays
  • Better Essays

    android

    • 1051 Words
    • 5 Pages

    term paper we have discuss the history of Android, the architecture on which it works? Various application developments like android market. The various GUI android challenges faced by…

    • 1051 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    References: Gahran, A. (2011). Mobile phone security: What are the risks?. CNNTech. Retrieved from http://articles.cnn.com/2011-06-17/tech/mobile.security.gahran_1_android-app-android-phone-apple-s-app-store?_s=PM:TECH…

    • 2094 Words
    • 7 Pages
    Powerful Essays
  • Better Essays

    Cell Phones are a forever growing epidemic around the world. Cell phones have quickly moved to an item of necessity in today’s world since its invention in 1973. The current generation of smartphones have various features that enhance the ease of organization, social networking, and entertainment, making it easy to see how they became such an essential commodity for business and personal use. You cannot walk into any public place and not see someone talking on their phone, texting, or browsing the web on their smartphone. It is such a spreading trend that some would say that cell phones have become an addiction. It is estimated that there are currently six billion cell phone in use in the world and soon predicted to surpass the current population by 2014 (Pramis, 2013).…

    • 1568 Words
    • 7 Pages
    Better Essays
  • Powerful Essays

    The development of Apps has accelerated from fairly basic software programs into rather sophisticated and useful programs. Apps have proved very popular, because of the ease and flexibility to leverage functionality and the level of mobility they offer.…

    • 1278 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    In white-box testing, the purpose is to ensure that the all the code has been tested and covered.There are different coverage measures depending on the level of detail of the white-box test. The coverage measures may also be applied to integration testing and system testing.…

    • 429 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Over the last decade, electronic-based companies such as Samsung and Apple have collaborated with cellular-phone carriers, and have studied the average consumer to find endless ways to improve the cellular phone. As a result, the smart phone was born. With their ability to provide users with instant access to communication, entertainment, Internet access, calendar, news, social media, and much more, the smart phone revolutionized and shifted the path of modern technology. In 2006, Apple began this revolution with their release of the iPhone. Being the first proper smart phone, many other companies attempted to mimic the unbeatable features and technology that Apple had included with the iPhone. Though many had failed in doing so, Google managed to keep up with the iPhone with their Android software. Soon enough, Google’s Android software became the dominant smart phone based software for smart phones not manufactured by Apple. Because of this, Android phones had become just as popular as iPhones. This paper will explore the similarities and differences between both Apple’s iPhone and Google’s Android.…

    • 775 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    discriminant analysis

    • 582 Words
    • 7 Pages

    With the US Financial Crisis 2008, recession made strong inroads across the industries. It not only affected banks and financial services, but also almost all other industries, especially BPOs and IT/ITES. As a result, many lost their employment and many couldn’t repay their loans or debts. Banks started monitoring retail accounts of its customers continuously to avoid any further delinquency.…

    • 582 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    White Box Testing

    • 3894 Words
    • 16 Pages

    design test cases that (1) exercise independent paths within a module or unit; (2) exercise…

    • 3894 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Asdf

    • 549 Words
    • 3 Pages

    | Mobile Application Development and Android: Native mobile ,web mobile and hybrid mobile application development, Different and famous types of mobile applications, what is Android and how to get different tool for android development, Native Android Applications, Android SDK features and Android stack overview. Lab Exercise: Download and install Android SDK, ADT Plugin and configure eclipse for mobile application development and familiarity with AVD(android virtual devices).…

    • 549 Words
    • 3 Pages
    Good Essays
  • Good Essays

    6.1 Testing Principles

    • 1118 Words
    • 5 Pages

    Following are the testing principles, which are used: The role of a test plan is to guide all testing activities. It defines what is to be tested and what is to be overlooked, how the testing is to be performed (described on a general level) and by whom. It is therefore a managerial document, not technical one - in essence; it is a project plan for testing. Therefore, the target audience of the plan should be a manager with a decent grasp of the technical issues involved. You can find information about test plans in the lecture notes, as well as international standards and textbooks.…

    • 1118 Words
    • 5 Pages
    Good Essays