• DocumentCode
    3306985
  • Title

    Bad Smells and Refactoring Methods for GUI Test Scripts

  • Author

    Chen, Woei-Kae ; Wang, Jung-Chi

  • Author_Institution
    Dept. of Comput. Sci. & Inf. Eng., Nat. Taipei Univ. of Technol., Taipei, Taiwan
  • fYear
    2012
  • fDate
    8-10 Aug. 2012
  • Firstpage
    289
  • Lastpage
    294
  • Abstract
    Testing the GUI (Graphical User Interface) of a software application is typically accomplished by developing a GUI test script composed of sequences of events and assertions. A GUI test script is in a sense similar to the source code of a program, since events and assertions are like source-code statements, which are executed line by line. Therefore, like source code, a GUI test script may have bad smells, and refactoring is an effective technique that can eradicate bad smells, making the script better and easier to maintain. This paper studies the bad smells a GUI test script may have and the refactoring methods that can be applied to remove the bad smells. A total of 11 bad smells are identified and 16 refactoring methods are proposed. The refactoring methods have been implemented in a GUI testing tool, called GTT, to support the automatic refactoring of GUI test scripts.
  • Keywords
    graphical user interfaces; program testing; software maintenance; GTT; GUI test scripts; GUI testing tool; assertion sequence; bad smells; event sequence; graphical user interface; refactoring methods; source-code statements; Encapsulation; Graphical user interfaces; Mice; Software; Surgery; Syntactics; Testing; GUI testing; refactoring; smell; test script;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering, Artificial Intelligence, Networking and Parallel & Distributed Computing (SNPD), 2012 13th ACIS International Conference on
  • Conference_Location
    Kyoto
  • Print_ISBN
    978-1-4673-2120-4
  • Type

    conf

  • DOI
    10.1109/SNPD.2012.10
  • Filename
    6299294