Pragmatic Approach to Test Case Reuse - A Case Study in Android OS BiDiTests Library

  • Suriya Priya R. Asaithambi
  • Stan Jarzabek
Conference paper

DOI: 10.1007/978-3-319-14130-5_9

Part of the Lecture Notes in Computer Science book series (LNCS, volume 8919)
Cite this paper as:
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

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.

Keywords

Reusability Test Libraries Test Clones Software Testing Mobile Platform Android Platform Test Libraries Test Construction Approach 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Suriya Priya R. Asaithambi
    • 1
  • Stan Jarzabek
    • 1
    • 2
  1. 1.School of ComputingNational UniversitySingapore
  2. 2.Faculty of Computer ScienceBialystok University of TechnologySingapore

Personalised recommendations