ABSTRACT
Context-aware applications (CAAs) sense and react to changes from the environment when performing their tasks. Testing such applications is challenging. Firstly, due to the number of combinations of possible events and values they can handle. Secondly, due to the different execution scenarios that may be hard to reproduce manually. We present the ENVIAR tool whose objective is to support test case generation and execution of Android CAAs. Generation combines a set of events that may trigger failure in such applications filtered by pairwise testing. Execution simulates the environment in which the CAA runs by sending mock data. Current version focus on Android events, GPS, and Internet sensor events and values. Empirical results have shown that the tool can generate test cases that detect context defects in real Android applications, particularly covering scenarios that would be tricky to run in a real environment.
- Accessed: 2019. Genius Maps: Offline GPS Navigator. https://play.google.com/store/apps/details?id=hr.mireo.arthurGoogle Scholar
- Accessed: 2019. GPS Offline Navigation Route Maps & Directions. https://play.google.com/store/apps/details?id=com.offline.routemaps.gps.directionfinder.freerGoogle Scholar
- Accessed: 2019. OsmAnd. https://play.google.com/store/apps/details?id=net.osmandGoogle Scholar
- Accessed: 2019. Voice GPS Navigation: Live Driving Direction. https://play.google.com/store/apps/details?id=com.voicenavigation.gps.driving.directionsGoogle Scholar
- Accessed: 2019-09-05. GitHub. https://github.comGoogle Scholar
- Accessed: 2019-09-09. Android Debug Bridge. https://developer.android.com/studio/command-line/adb.htmlGoogle Scholar
- Accessed: 2019-09-23. Pairwise Independent Combinatorial Tool (PICT). https://github.com/microsoft/pictGoogle Scholar
- Accessed: 2020. Google Maps. https://www.google.com/mapsGoogle Scholar
- Accessed: 2020-01-15. Microsoft Home Page. https://www.microsoft.comGoogle Scholar
- Accessed: 2020-02-01. Android Emulator. https://developer.android.com/studio/run/emulatorGoogle Scholar
- Accessed: 2020-08-24. ENVIronment dAta simulatoR (ENVIAR). https://github.com/diegotabira/ENVIARGoogle Scholar
- D. R. Almeida, P. D. L. Machado, and W. L. Andrade. 2020. Context-Aware Android Applications Testing. In 34th Brazilian Symposium on Software Engineering (CBSoft/SBES 2020). To be published.Google Scholar
- D. Amalfitano, A. R. Fasolino, P. Tramontana, and N. Amatucci. 2013. Considering Context Events in Event-Based Testing of Mobile Applications. In 2013 IEEE Sixth International Conference on Software Testing, Verification and Validation Workshops. 126--133. https://doi.org/10.1109/ICSTW.2013.22Google ScholarDigital Library
- D. Amalfitano, A. R. Fasolino, P. Tramontana, S. De Carmine, and G. Imparato. 2012. A toolset for GUI testing of Android applications. In 2012 28th IEEE International Conference on Software Maintenance (ICSM). 650--653. https://doi.org/10.1109/ICSM.2012.6405345Google ScholarDigital Library
- A. S. Ami, Md. M. Hasan, Md. R. Rahman, and K. Sakib. 2018. Mobicomonkey: Context Testing of Android Apps. In Proceedings of the 5th International Conference on Mobile Software Engineering and Systems (Gothenburg, Sweden) (MOBILESoft '18). ACM, New York, NY, USA, 76--79. https://doi.org/10.1145/3197231.3197234Google ScholarDigital Library
- R. Black. 2007. Pragmatic Software Testing: Becoming an Effective and Efficient Test Professional. John Wiley & Sons, Inc., New York, NY, USA.Google ScholarDigital Library
- Y. Hu and I. Neamtiu. 2016. VALERA: An Effective and Efficient Record-andreplay Tool for Android. In Proceedings of the International Conference on Mobile Software Engineering and Systems (Austin, Texas) (MOBILESoft '16). ACM, New York, NY, USA, 285--286. https://doi.org/10.1145/2897073.2897712Google ScholarDigital Library
- C. Luo, J. Goncalves, E. Velloso, and V. Kostakos. 2020. A Survey of Context Simulation for Testing Mobile Context-Aware Applications. ACM Comput. Surv. 53, 1, Article 21 (Feb. 2020), 39 pages. https://doi.org/10.1145/3372788Google ScholarDigital Library
- S. Matalonga, F. Rodrigues, and G. H. Travassos. 2015. Matching Context Aware Software Testing Design Techniques to ISO/IEC/IEEE 29119. In Software Process Improvement and Capability Determination, Terry Rout, Rory V. O'Connor, and Alec Dorling (Eds.). Springer International Publishing, Cham, 33--44.Google Scholar
- H. Muccini, A. Di Francesco, and P. Esposito. 2012. Software Testing of Mobile Applications: Challenges and Future Research Directions. In Proceedings of the 7th International Workshop on Automation of Software Test (Zurich, Switzerland) (AST '12). IEEE Press, Piscataway, NJ, USA, 29--35. http://dl.acm.org/citation.cfm?id=2663608.2663615Google Scholar
- V. Vieira, K. Holl, and M. Hassel. 2015. A Context Simulator As Testing Support for Mobile Apps. In Proceedings of the 30th Annual ACM Symposium on Applied Computing (Salamanca, Spain) (SAC '15). ACM, New York, NY, USA, 535--541. https://doi.org/10.1145/2695664.2695782Google ScholarDigital Library
Index Terms
- ENVIAR: ENVIronment dAta simulatoR
Recommendations
Context-Aware Android Applications Testing
SBES '20: Proceedings of the XXXIV Brazilian Symposium on Software EngineeringContext-aware applications (CAAs) are those that use information from the environment based on sensors such as gyroscope, GPS, and accelerometer. Compared to desktop and web applications, there are additional challenges to test CAAs. It is necessary to ...
Using GUI ripping for automated testing of Android applications
ASE '12: Proceedings of the 27th IEEE/ACM International Conference on Automated Software EngineeringWe present AndroidRipper, an automated technique that tests Android apps via their Graphical User Interface (GUI). AndroidRipper is based on a user-interface driven ripper that automatically explores the app’s GUI with the aim of exercising the ...
An Explorative Study of the Mobile App Ecosystem from App Developers' Perspective
WWW '17: Proceedings of the 26th International Conference on World Wide WebWith the prevalence of smartphones, app markets such as Apple App Store and Google Play has become the center stage in the mobile app ecosystem, with millions of apps developed by tens of thousands of app developers in each major market. This paper ...
Comments