Abstract
Test libraries explode in size, but both practitioners and researchers report much redundancy among test cases. Similar functions require similar test cases. Redundancy may be particularly overwhelming in test libraries for mobile computing, where we need to test the same functionality implemented on various models/brands of mobile phones. Redundancies create reuse opportunities. We propose a generic adaptive test template (GATT) approach to contain explosion of test libraries by reusing common recurring test patterns instead of enumerating the same test case in many variant forms. The objective is to ease the test development and maintenance effort. The process starts with automated detection of test clones. We represent a group of similar test cases by a test template along with specifications for automated generation of test cases in a group. We illustrate GATT with examples from Android OS test libraries, and evaluate its benefits and trade-offs. The approach scales to large test libraries and is oblivious to application domains or programming languages. GATT is practical as it focuses on managing test libraries without affecting the follow up test execution. Therefore, it smoothly blends with any other existing techniques and tools used for testing.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Asaithambi, S.P.R., Jarzabek, S.: Generic adaptable test cases for software product line testing: Software product line. In: Proceedings of the 3rd Annual Conference on Systems, Programming, and Applications: Software for Humanity, pp. 33–36. ACM (2012)
Asaithambi, S.P.R., Jarzabek, S.: Towards Test Case Reuse: A Study of Redundancies in Android Platform Test Libraries. In: Favaro, J., Morisio, M. (eds.) ICSR 2013. LNCS, vol. 7925, pp. 49–64. Springer, Heidelberg (2013)
Basit, H.A., Ali, U., Haque, S., Jarzabek, S.: Things structural clones tell that simple clones don’t. In: 28th IEEE International Conference on Software Maintenance (ICSM), pp. 275–284. IEEE (2012)
Basit, H.A., Jarzabek, S.: A case for structural clones. In: Proc. Int. Workshop on Software Clones (IWSC 2009) (2009)
Basit, H.A., Jarzabek, S.: A data mining approach for detecting higher-level clones in software. IEEE Transactions on Software Engineering 35(4), 497–514 (2009)
Beizer, B.: Software testing techniques. Dreamtech Press (2003)
Bertolino, A.: Software testing research: Achievements, challenges, dreams. In: 2007 Future of Software Engineering, pp. 85–103. IEEE Computer Society (2007)
Cohen, D.M., Dalal, S.R., Fredman, M.L., Patton, G.C.: The AETG system: An approach to testing based on combinatorial design. IEEE Transactions on Software Engineering 23(7), 437–444 (1997)
Gnesi, S., Latella, D., Massink, M.: Formal test-case generation for UML statecharts. In: Proceedings of the Ninth IEEE International Conference on Engineering Complex Computer Systems, pp. 75–84 (2004)
Hartman, A.: Software and hardware testing using combinatorial covering suites. In: Graph Theory, Combinatorics and Algorithms, pp. 237–266. Springer (2005)
Kraft, N., Bonds, B., And Smith, R.: Cross-language clone detection. In: Proceedings of the 20th International Conference on Software Engineering and Knowledge Engineering, SEKE (2008)
McGregor, J.D.: Testing a software product line. In: Borba, P., Cavalcanti, A., Sampaio, A., Woodcook, J. (eds.) PSSE 2007. LNCS, vol. 6153, pp. 104–140. Springer, Heidelberg (2010)
Offutt, J., Abdurazik, A.: Generating tests from UML specifications. In: France, R.B. (ed.) UML 1999. LNCS, vol. 1723, pp. 416–429. Springer, Heidelberg (1999)
Riebisch, M., Philippow, I., Götze, M.: UML-based statistical test case generation. In: Akşit, M., Mezini, M., Unland, R. (eds.) NODe 2002. LNCS, vol. 2591, pp. 394–411. Springer, Heidelberg (2003)
Utting, M., Legeard, B.: Practical model-based testing: A tools approach. Morgan Kaufmann (2010) 0080466486
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Asaithambi, S.P.R., Jarzabek, S. (2014). Pragmatic Approach to Test Case Reuse - A Case Study in Android OS BiDiTests Library. In: Schaefer, I., Stamelos, I. (eds) Software Reuse for Dynamic Systems in the Cloud and Beyond. ICSR 2015. Lecture Notes in Computer Science, vol 8919. Springer, Cham. https://doi.org/10.1007/978-3-319-14130-5_9
Download citation
DOI: https://doi.org/10.1007/978-3-319-14130-5_9
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-14129-9
Online ISBN: 978-3-319-14130-5
eBook Packages: Computer ScienceComputer Science (R0)