• DocumentCode
    732074
  • Title

    Generating Refactoring Proposals to Remove Clones from Automated System Tests

  • Author

    Hauptmann, Benedikt ; Eder, Sebastian ; Junker, Maximilian ; Juergens, Elmar ; Woinke, Volkmar

  • fYear
    2015
  • fDate
    18-19 May 2015
  • Firstpage
    115
  • Lastpage
    124
  • Abstract
    Automated system tests often have many clones, which make them complex to understand and costly to maintain. Unfortunately, removing clones is challenging as there are numerous possibilities of how to refactor them to reuse components such as subroutines. Additionally, clones often overlap partly which makes it particularly difficult to decide which parts to extract. If done wrongly, reuse potential is not leveraged optimally and structures between tests and reuse components will become unnecessarily complex. We present a method to support test engineers in extracting overlapping clones. Using grammar inference algorithms, we generate a refactoring proposal that demonstrates test engineers how overlapping clones can be extracted. Furthermore, we visualize the generated refactoring proposal to make it easily understandable for test engineers. An industrial case study demonstrates that our approach helps test engineers to gain information of the reuse potential of test suites and guides them to perform refactorings.
  • Keywords
    Automation; Cloning; Manuals; Measurement; Proposals; Testing; Visualization; Automated Testing; Refactoring; Test Clones;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Program Comprehension (ICPC), 2015 IEEE 23rd International Conference on
  • Conference_Location
    Florence, Italy
  • Type

    conf

  • DOI
    10.1109/ICPC.2015.20
  • Filename
    7181438