skip to main content
10.1145/1753326.1753555acmconferencesArticle/Chapter ViewAbstractPublication PageschiConference Proceedingsconference-collections
research-article

GUI testing using computer vision

Published:10 April 2010Publication History

ABSTRACT

Testing a GUI's visual behavior typically requires human testers to interact with the GUI and to observe whether the expected results of interaction are presented. This paper presents a new approach to GUI testing using computer vision for testers to automate their tasks. Testers can write a visual test script that uses images to specify which GUI components to interact with and what visual feedback to be observed. Testers can also generate visual test scripts by demonstration. By recording both input events and screen images, it is possible to extract the images of components interacted with and the visual feedback seen by the demonstrator, and generate a visual test script automatically. We show that a variety of GUI behavior can be tested using this approach. Also, we show how this approach can facilitate good testing practices such as unit testing, regression testing, and test-driven development.

References

  1. Autoit. http://www.autoitscript.com/autoit3/, 1999.Google ScholarGoogle Scholar
  2. M. Boshernitsan, S.L. Graham, and M.A. Hearst. Aligning development tools with the way programmers think about code changes. In CHI '07, pages 567--576, New York, NY, USA, 2007. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. HP Mercury Interactive. Winrunner. http://www.winrunner.com.Google ScholarGoogle Scholar
  4. D.J. Kasik and H.G. George. Toward automatic generation of novice user test scripts. In CHI '96, pages 244--251, New York, NY, USA, 1996. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. A.J. Koand, B.A. Myers. Designing the why line: a debugging interface for asking questions about program behavior. In CHI '04, pages 151--158, New York, NY, USA, 2004. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. A.J. Koand, B.A. Myers. Finding causes of program output with the java why line. In CHI '09, pages 1569--1578, New York, NY, USA, 2009. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. G. Leshed, E.M. Haber, T. Matthews, and T. Lau. Coscripter: automating & sharing how-to knowledge in the enterprise. In CHI '08, pages 1719--1728, New York, NY, USA, 2008. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. G. Little, T.A. Lau, A. Cypher, J. Lin, E.M. Haber, and E. Kandogan. Koala: capture, share, automate, personalize business processes on the web. In CHI '07, pages 943--946, New York, NY, USA, 2007. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. A. Memon. GUI testing: pitfalls and process. Computer, 35(8):87--88, Aug 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. A. Memon, I. Banerjee, and A. Nagarajan. GUI ripping: reverse engineering of graphical user interfaces for testing. In Reverse Engineering, 2003. WCRE 2003. Proceedings. 10th Working Conference on, pages 260--269, Nov. 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. T. Ostrand, A. Anodide, H. Foster, and T. Goradia. A visual test development environment for GUI systems. SIGSOFT Softw. Eng. Notes, 23(2):82--92, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. G. Singh and Z. Cuie. Sage: creating reusable, modularized interactive behaviors by demonstration. In CHI '94, pages 297--298, New York, NY, USA, 1994. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. SOFTWARERESEARCHINC.Capbak.http://soft.com, 1999.Google ScholarGoogle Scholar
  14. R. St. Amant, H. Lieberman, R. Potter, and L. Zettlemoyer. Programming by example: visual generalization in programming by example. Commun. ACM, 43(3):107--114, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. N. Subrahmaniyan, L. Beckwith, V. Grigoreanu, M. Burnett, S. Wiedenbeck, V. Narayanan, K. Bucht, R. Drummond, and X. Fern. Testing vs. code inspection vs. what else?: male and female end users' debugging strategies. In CHI '08, pages 617--626, New York, NY, USA, 2008. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. E.M. Wilcox, J.W. Atwood, M.M. Burnett, J.J. Cadiz, and C.R. Cook. Does continuous visual feedback aid debugging in direct-manipulation programming systems? In CHI '97, pages 258--265, New York, NY, USA, 1997. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Q. Xie and A.M. Memon. Designing and comparing automated test oracles for GUI-based software applications. ACM Trans. Softw. Eng. Methodol., 16(1):4, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. T. Yeh, T.-H. Chang, and R.C. Miller. Sikuli: Using GUI screenshots for search and automation. In UIST '09, pages 183--192. ACM, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. L.S. Zettlemoyer and R. St. Amant. A visual medium for programmatic control of interactive applications. In CHI '99, pages 199--206, New York, NY, USA, 1999. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. GUI testing using computer vision

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        CHI '10: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems
        April 2010
        2690 pages
        ISBN:9781605589299
        DOI:10.1145/1753326

        Copyright © 2010 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 10 April 2010

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate6,199of26,314submissions,24%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader