• DocumentCode
    3155584
  • Title

    Inferring Types of References to GUI Objects in Test Scripts

  • Author

    Fu, Chen ; Grechanik, Mark ; Xie, Qing

  • Author_Institution
    Accenture Technol. Labs., Chicago, IL
  • fYear
    2009
  • fDate
    1-4 April 2009
  • Firstpage
    1
  • Lastpage
    10
  • Abstract
    Since manual black-box testing of GUI-based applications (GAPs) is tedious and laborious, test engineers create test scripts to automate the testing process. These test scripts interact with GAPs by performing actions on their GUI objects. Unlike conventional languages that require programmers to declare types of variables explicitly, test script statements reference GUI objects using their properties (e.g., location, color, size, etc). The absence of type information exacerbates the process of understanding test scripts, making maintenance and evolution of these scripts expensive and prohibitive, thus obliterating benefits of test automation. We offer a novel approach for type inference of GUI object references (TIGOR) in test scripts. TIGOR makes types of GUI objects explicit in the source code of scripts, enabling test engineers to reason more effectively about the interactions between operations in complex test scripts and GUI objects that these operations reference. We describe our implementation and give an algorithm for automatically inferring types of GUI objects. We built a tool and evaluated it on different GAPs. Our experience suggests that TIGOR is practical and efficient, and it yields appropriate types of GUI objects.
  • Keywords
    graphical user interfaces; object-oriented programming; program testing; reasoning about programs; type theory; test scripts; testing process automation; type Inference of GUI object references; Automatic testing; Automation; Costs; Graphical user interfaces; Java; Logic testing; Performance evaluation; Programming profession; Runtime; Software testing; GUI Testing; Test Automation; Test Script; Test mantainance; Type inference;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing Verification and Validation, 2009. ICST '09. International Conference on
  • Conference_Location
    Denver, CO
  • Print_ISBN
    978-1-4244-3775-7
  • Electronic_ISBN
    978-0-7695-3601-9
  • Type

    conf

  • DOI
    10.1109/ICST.2009.12
  • Filename
    4815332